Admin
2022-09-21 999cab6fb3fc6d2a288d365da991351c5a396bf0
src/views/goalManagement/targetDecompositionYear/index.vue
@@ -23,8 +23,9 @@
      <div class="minCenter">
         <div class="btns">
            <div>
               <el-button size="default" type="primary" :icon="Plus" @click="openD('新建')">新建</el-button>
               <!-- <el-button size="default" type="warning" :disabled="warning" :icon="EditPen" plain>修改</el-button> -->
               <!--<el-button size="default" type="primary" :icon="Plus" @click="openD('新建')">新建</el-button>-->
                <el-button size="default" type="warning" :disabled="warning" :icon="EditPen" plain
                        @click="openD('修改', deletAll[0])">修改</el-button>
               <el-button size="default" type="danger" :disabled="danger" :icon="Delete" plain @click="onDeleteAll">删除</el-button>
            </div>
         </div>
@@ -32,16 +33,16 @@
            <el-table-column label="序号" align="center" type="index" width="70" />
            <el-table-column type="selection" align="center" width="55" />
            <el-table-column type="expand">
               <template #default>
               <template #default="scope">
                  <div class="tableC">
                     <el-tabs v-model="activeNames">
                        <el-tab-pane label="目标指标分解" name="1">
                           <el-table :data="tableData.targetDivideDetailList" style="width: 100%">
                              <el-table-column align="center" prop="dutyDepartmentId" label="责任部门" />
                           <el-table :data="scope.row.targetDivideDetailList" style="width: 100%">
                              <el-table-column align="center" prop="dutyDepartmentName" label="责任部门" />
                              <el-table-column align="center" prop="value" label="考核指标" />
                              <el-table-column align="center" prop="makerDepartmentId" label="制定人部门" />
                              <el-table-column align="center" prop="makeDate" label="制定日期" />
                              <el-table-column align="center" prop="commitPersonId" label="上报人" />
                              <el-table-column align="center" prop="makerDepartmentName" label="制定人部门" />
                              <el-table-column align="center" prop="makeDate" :formatter="timeDate" label="制定日期"  />
                              <el-table-column align="center" prop="commitPersonName" label="上报人" />
                           </el-table>
                        </el-tab-pane>
                     </el-tabs>
@@ -76,6 +77,7 @@
   </div>
</template>
<script lang="ts">
import { timeDate } from '/@/assets/index.ts';
import Dailog from './component/Dailog.vue';
import { ref, toRefs, reactive, onMounted, defineComponent } from 'vue';
import { ElMessageBox, ElMessage, ElButton, ElInput, TabsPaneContext, FormInstance } from 'element-plus';
@@ -103,6 +105,7 @@
      const resetForm = () => {
         ruleForm.searchParams.qName = '';
         ruleForm.searchParams.indexNum = '';
         listApi()
      };
      const listApi = () => {
         goalManagementApi()
@@ -223,6 +226,7 @@
         listApi()
      }
      return {
         timeDate,
         listApi,
         add,
         resetForm,