Просмотр исходного кода

任务中心部门考评启动页面功能修改;

SunZehao 1 год назад
Родитель
Сommit
48652ead0b

+ 1 - 1
src/components/assessment/monthQuarterYearFrom.vue

@@ -90,7 +90,7 @@
                                 <el-table-column type="index" label="排名" align="center"></el-table-column>
                                 <el-table-column label="考评单位" prop="organizationShortName" width="300">
                                     <template #default="scope">
-                                        <el-select v-model="scope.row.organizationShortName" placeholder="请选择审核状态">
+                                        <el-select v-model="scope.row.organizationShortName" placeholder="请选择考评单位">
                                             <el-option
                                             v-for="item in organizationData"
                                             :key="item.organizationId"

+ 18 - 13
src/components/taskCenter/taskCenterDeptStartFrom.vue

@@ -138,7 +138,7 @@
                             </el-table-column>
                             <el-table-column label="操作" width="80" align="center">
                                 <template #default="scope">
-                                    <p class="indicitem" v-if="scope.row.dataPermission === '-1'" @click="handleDelete(scope.row)">删除</p>
+                                    <p class="indicitem" v-if="scope.row.dataPermission !== '-1'" @click="handleDelete(scope.row)">删除</p>
                                 </template>
                             </el-table-column>
                         </el-table>
@@ -304,18 +304,22 @@ export default {
                 type: 'warning'
             }).then(() => {
                 let that = this
-                let params = {
-                    id: row.id,
-                    deptId: that.userMes.deptId
+                if (!row.id) {
+                    that.quantifiedList.splice(index, 1)
+                } else {
+                    let params = {
+                        id: row.id,
+                        deptId: that.userMes.deptId
+                    }
+                    apiGetevaluationdeptplandelete(params).then(datas =>{
+                        that.$message({
+                            type: 'success',
+                            message: '删除成功!'
+                        });
+                        that.getevaluStartList()
+                        that.changeDateSelect = []
+                    })
                 }
-                apiGetevaluationdeptplandelete(params).then(datas =>{
-                    that.$message({
-                        type: 'success',
-                        message: '删除成功!'
-                    });
-                    that.getevaluStartList()
-                    that.changeDateSelect = []
-                })
             })
         },
         handleClick() {
@@ -372,7 +376,8 @@ export default {
                 targetValue: '',
                 baseScore: 0,
                 evaluationCriteria: '',
-                auditStatus: '-1'
+                auditStatus: '-1',
+                dataPermission: '-1'
             }
             this.quantifiedList.unshift(obj)
         },

+ 3 - 2
src/components/taskCenter/taskCenterEvlNewFrom.vue

@@ -89,7 +89,7 @@
                                 <el-table-column type="index" label="排名" align="center"></el-table-column>
                                 <el-table-column label="考评单位" prop="organizationShortName" width="300">
                                     <template #default="scope">
-                                        <el-select v-model="scope.row.organizationShortName" placeholder="请选择审核状态">
+                                        <el-select v-model="scope.row.organizationShortName" placeholder="请选择考评单位">
                                             <el-option
                                             v-for="item in organizationData"
                                             :key="item.organizationId"
@@ -199,7 +199,8 @@
 import importDailog from '../importPage/importDailog.vue'
 import {apiGetEvaluationIndicatorList,apiGetgetEvaluationInfoDataList,apiGetbinsectionList, apiGetbinstageList,apiGetExportMsg,
 apiPostorganizationUpdateEvaluationInfo, apiPostorganizationUpdateAddEvaluationInfo,apiGetHeaderOrganizationEvaluation,
-apiPostIsdoAction, apiGetorganizationevaluationcommoninfo, apiPostsaveEvaluationCommonInfo, apiPostremoveEvaluationCommonInfo} from '../../api/api'
+apiPostIsdoAction, apiGetorganizationevaluationcommoninfo, apiPostsaveEvaluationCommonInfo, apiPostremoveEvaluationCommonInfo,
+apiGetOrganizationListAll} from '../../api/api'
 import * as XLSX from 'xlsx'
 import { saveAs } from 'file-saver'
 import  * as XLSXD from 'xlsx-js-style'