shj
2022-08-10 d3d6b956f529d17f8f2774fcfe6c3252d34d3f00
src/views/goalManagement/targetDecompositionYear/component/Dailog.vue
@@ -40,7 +40,7 @@
         <el-table-column align="center" property="dutyDepartmentId" label="责任部门" width="180" />
         <el-table-column align="center" property="value" label="考核指标" width="180" />
         <el-table-column align="center" property="makerDepartmentId" label="制定人部门" />
         <el-table-column align="center" property="makeDate" label="制定日期" :formatter="timeDate"/>
         <el-table-column align="center" property="makeDate" label="制定日期" />
         <el-table-column align="center" property="commitPersonName" label="上报人" />
         <el-table-column align="center" property="操作">
            <template #default="scope">
@@ -69,6 +69,7 @@
import DailogSearch from '../../../../components/DailogSearch/DailogSearch.vue';
import { goalManagementApi } from '/@/api/goalManagement';
import { emit } from 'process';
import {deepClone} from '/@/utils/other'
export default defineComponent({
   components: { DailogAdd, DailogSearch},
   setup(props,{emit}) {
@@ -120,11 +121,16 @@
         delTargetDivideDetails: '', //要删除的目标指标分解ID,多个用逗号隔开
         targetDivideDetailList: [], //目标指标分解列表
      });
      const add = (val: any) => {
         const item = deepClone(val)
            if(index.value==-1){
            formUp.targetDivideDetailList.push(val);
            formUp.targetDivideDetailList.push(item);
         }else{
            formUp.targetDivideDetailList[index.value] = val;
            formUp.targetDivideDetailList[index.value] = item;
         }
         
         // let obj=JSON.parse(JSON.stringify(form.value))