--遗漏的中文信息以及英文拼写
This commit is contained in:
@@ -472,8 +472,7 @@ function fnModalVisibleByEdit(id?: string) {
|
||||
res.data.granulOption.substring(0, 2)
|
||||
);
|
||||
|
||||
if (res.data.kpiSet.includes('[') && res.data.neIds.includes('[')) {
|
||||
modalState.neType = [res.data.neType, JSON.parse(res.data.neIds)[0]];
|
||||
if (res.data.kpiSet.includes('[')) {
|
||||
modalState.neTypPerformanceList = JSON.parse(res.data.kpiSet).reduce(
|
||||
(acc: any, item: any) => acc.concat(item.KPIs),
|
||||
[]
|
||||
@@ -485,6 +484,8 @@ function fnModalVisibleByEdit(id?: string) {
|
||||
modalState.from.smPlan = JSON.parse(res.data.schedule)[0].Days;
|
||||
}
|
||||
|
||||
modalState.neType = [res.data.neType, JSON.parse(res.data.neIds)[0]];
|
||||
modalState.from.neId=JSON.parse(res.data.neIds)[0];
|
||||
modalState.timeRangePicker = [res.data.startTime, res.data.endTime];
|
||||
modalState.from = Object.assign(modalState.from, res.data);
|
||||
|
||||
@@ -513,6 +514,8 @@ function fnModalVisibleByEdit(id?: string) {
|
||||
modalState.initPeriods = [];
|
||||
modalState.from.periods = modalState.timeSlotAll;
|
||||
}
|
||||
} else {
|
||||
modalState.from.periods = [];
|
||||
}
|
||||
modalState.title = t('views.perfManage.taskManage.editTask');
|
||||
modalState.visibleByEdit = true;
|
||||
@@ -533,7 +536,6 @@ function fnModalOk() {
|
||||
.then(e => {
|
||||
const from = toRaw(modalState.from);
|
||||
from.accountId = useUserStore().userName;
|
||||
console.log(from);
|
||||
modalState.confirmLoading = true;
|
||||
const perfTask = from.id ? updatePerfTask(from) : addPerfTask(from);
|
||||
const hide = message.loading(t('common.loading'), 0);
|
||||
|
||||
Reference in New Issue
Block a user