保存进度!
This commit is contained in:
12
code/web/task_schedule/src/utils/api/EventBus.ts
Normal file
12
code/web/task_schedule/src/utils/api/EventBus.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
* @Author: Kane
|
||||
* @Date: 2023-09-14 00:22:04
|
||||
* @LastEditors: Kane
|
||||
* @FilePath: /task_schedule/src/utils/api/eventBus.ts
|
||||
* @Description:
|
||||
*
|
||||
* Copyright (c) ${2022} by Kane, All Rights Reserved.
|
||||
*/
|
||||
import mitt from "mitt";
|
||||
|
||||
export default mitt();
|
@@ -9,28 +9,29 @@
|
||||
*/
|
||||
export const API_URL = {
|
||||
// URL_LOGIN: import.meta.env.VITE_URL_LOGIN,
|
||||
// URL_LOGIN: "http://222.76.244.118:11101/admin-system/account/p13_account_check",
|
||||
URL_LOGIN: "http://10.39.0.41:8081/admin-system/account/p13_account_check",
|
||||
URL_LOGIN: "http://222.76.244.118:11101/admin-system/account/p13_account_check",
|
||||
// URL_LOGIN: "http://10.39.0.41:8081/admin-system/account/p13_account_check",
|
||||
|
||||
// URL_LOGIN_CALLER: "http://localhost:8080/desktop_archievement_backend/account/query_telsaler_info.do",
|
||||
// URL_LOGIN_CALLER: "http://222.76.244.118:11101/desktop_archievement_backend/account/query_telsaler_info.do",
|
||||
URL_LOGIN_CALLER: "http://10.39.0.41:8081/desktop_archievement_backend/account/query_telsaler_info.do",
|
||||
URL_LOGIN_CALLER: "http://222.76.244.118:11101/desktop_archievement_backend/account/query_telsaler_info.do",
|
||||
// URL_LOGIN_CALLER: "http://10.39.0.41:8081/desktop_archievement_backend/account/query_telsaler_info.do",
|
||||
|
||||
// URL_DEPARTMENT_ARCHIEVEMENT: import.meta.env.VITE_URL_DEPARTMENT_ARCHIEVEMENT,
|
||||
// URL_DEPARTMENT_ARCHIEVEMENT: "http://222.76.244.118:11101/desktop_archievement_backend/archievement/query_department_archievement.do",
|
||||
URL_DEPARTMENT_ARCHIEVEMENT: "http://10.39.0.41:8081/desktop_archievement_backend/archievement/query_department_archievement.do",
|
||||
URL_DEPARTMENT_ARCHIEVEMENT: "http://222.76.244.118:11101/desktop_archievement_backend/archievement/query_department_archievement.do",
|
||||
// URL_DEPARTMENT_ARCHIEVEMENT: "http://10.39.0.41:8081/desktop_archievement_backend/archievement/query_department_archievement.do",
|
||||
|
||||
// URL_RANKINGLIST: "http://localhost:8080/desktop_archievement_backend/archievement/query_ranking_list.do",
|
||||
// URL_RANKINGLIST: "http://222.76.244.118:11101/desktop_archievement_backend/archievement/query_ranking_list.do",
|
||||
URL_RANKINGLIST: "http://10.39.0.41:8081/desktop_archievement_backend/archievement/query_ranking_list.do",
|
||||
URL_RANKINGLIST: "http://222.76.244.118:11101/desktop_archievement_backend/archievement/query_ranking_list.do",
|
||||
// URL_RANKINGLIST: "http://10.39.0.41:8081/desktop_archievement_backend/archievement/query_ranking_list.do",
|
||||
|
||||
// 坐席业绩查询
|
||||
URL_CALLER_ARCHIEVEMENT: "http://10.39.0.41:8081/desktop_archievement_backend/archievement/query_caller_archievement.do",
|
||||
URL_CALLER_ARCHIEVEMENT: "http://222.76.244.118:11101/desktop_archievement_backend/archievement/query_caller_archievement.do",
|
||||
// URL_CALLER_ARCHIEVEMENT: "http://10.39.0.41:8081/desktop_archievement_backend/archievement/query_caller_archievement.do",
|
||||
|
||||
/** 奖项相关 **/
|
||||
// 查询奖励项目
|
||||
// URL_RWARD_PROJECTS: "http://222.76.244.118:11101/desktop_archievement_backend/rewards/query_reward_projects.do"
|
||||
URL_RWARD_PROJECTS: "http://10.39.0.41:8081/desktop_archievement_backend/rewards/query_reward_projects.do",
|
||||
URL_RWARD_PROJECTS: "http://222.76.244.118:11101/desktop_archievement_backend/rewards/query_reward_projects.do",
|
||||
// URL_RWARD_PROJECTS: "http://10.39.0.41:8081/desktop_archievement_backend/rewards/query_reward_projects.do",
|
||||
// 查询获奖人员
|
||||
// URL_REWARD_GAINERS: "http://{{生产地址}}/desktop_archievement_backend/rewards/query_reward_gainers.do"
|
||||
URL_REWARD_GAINERS: "http://222.76.244.118:11101/desktop_archievement_backend/rewards/query_reward_gainers.do",
|
||||
|
@@ -42,7 +42,6 @@
|
||||
border
|
||||
stripe
|
||||
style="width:100%;"
|
||||
:height="tableHeight"
|
||||
:data="rewardGainerData"
|
||||
>
|
||||
<el-table-column type="selection" />
|
||||
@@ -105,14 +104,8 @@
|
||||
</template>
|
||||
<script lang="ts">
|
||||
import { reactive, computed, onBeforeMount } from "vue";
|
||||
import {
|
||||
type RewardProject,
|
||||
type RewardGainer,
|
||||
type RewardProjectResponse,
|
||||
type RewardGainerResponse,
|
||||
requestRewardPorjectsList,
|
||||
requestRewardGainers
|
||||
} from "@/utils/reward.js";
|
||||
import { type RewardGainer, type RewardGainerResponse, requestRewardGainers } from "@/utils/reward.js";
|
||||
import eventBus from "@/utils/api/EventBus.js";
|
||||
import { ElMessageBox } from "element-plus";
|
||||
import RewardGainerDialog from "@/views/reward/RewardTelsaler.vue";
|
||||
|
||||
@@ -219,6 +212,11 @@ export default {
|
||||
ui.showEditRewardGainerDialog = true;
|
||||
};
|
||||
|
||||
/** 事件相关 ***************/
|
||||
eventBus.on( "onSavedRewardTelsaler", (): void =>
|
||||
{
|
||||
ui.showEditRewardGainerDialog = false;
|
||||
});
|
||||
/**
|
||||
* 用于刷新页面
|
||||
*/
|
||||
@@ -249,7 +247,7 @@ export default {
|
||||
|
||||
.wrapper {
|
||||
margin: 10px;
|
||||
padding: 10px;
|
||||
// padding: 10px;
|
||||
|
||||
// background-color: #fff;
|
||||
// border-radius: 5px;
|
||||
|
@@ -42,6 +42,7 @@
|
||||
<el-button
|
||||
type="primary"
|
||||
icon="select"
|
||||
@click="onSaveRewardTelsaler"
|
||||
>
|
||||
保存
|
||||
</el-button>
|
||||
@@ -56,16 +57,9 @@
|
||||
</template>
|
||||
<script lang="ts">
|
||||
import { reactive, onBeforeMount } from "vue";
|
||||
import
|
||||
{
|
||||
type RewardProject,
|
||||
type RewardGainer,
|
||||
type RewardProjectResponse,
|
||||
type RewardGainerResponse,
|
||||
requestRewardPorjectsList,
|
||||
requestRewardGainers
|
||||
} from "@/utils/reward.js";
|
||||
import { ElMessageBox } from "element-plus";
|
||||
import { type RewardProject, type RewardProjectResponse, requestRewardPorjectsList } from "@/utils/reward.js";
|
||||
import eventBus from "@/utils/api/EventBus.js";
|
||||
|
||||
interface RewardGainerUI
|
||||
{
|
||||
@@ -144,12 +138,17 @@ export default {
|
||||
console.log( props.selectedRewardProjectCode );
|
||||
});
|
||||
|
||||
const onSaveRewardTelsaler = (): void =>
|
||||
{
|
||||
eventBus.emit( "onSavedRewardTelsaler" );
|
||||
};
|
||||
|
||||
// onBeforeUpdate((): void =>
|
||||
// {
|
||||
// refresh();
|
||||
// });
|
||||
|
||||
return { ui, };
|
||||
return { ui, onSaveRewardTelsaler, };
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
Reference in New Issue
Block a user