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

feat(考核指标): 新增考核指标分类和指标管理功能

添加考核指标分类和指标管理的API接口及前端页面
实现分类和指标的增删改查、导入导出功能
优化前端页面展示和交互逻辑
huoyi 1 месяц назад
Родитель
Сommit
506b101c79

+ 88 - 0
src/api/system/classificationAssess.js

@@ -0,0 +1,88 @@
1
+import request from '@/utils/request'
2
+
3
+// 查询考核指标列表
4
+// @param query 查询参数
5
+// @returns {*}
6
+export function listIndicator(query) {
7
+  return request({
8
+    url: '/system/indicator/list',
9
+    method: 'get',
10
+    params: query
11
+  })
12
+}
13
+
14
+// 导出考核指标列表
15
+// @param query 查询参数
16
+// @returns {*}
17
+export function exportIndicator(query) {
18
+  return request({
19
+    url: '/system/indicator/export',
20
+    method: 'post',
21
+    // data: query,
22
+    responseType: 'blob'
23
+  })
24
+}
25
+
26
+// 获取考核指标详细信息
27
+// @param id 考核指标ID
28
+// @returns {*}
29
+export function getIndicator(id) {
30
+  return request({
31
+    url: `/system/indicator/${id}`,
32
+    method: 'get'
33
+  })
34
+}
35
+
36
+// 新增考核指标
37
+// @param data 考核指标数据
38
+// @returns {*}
39
+export function addIndicator(data) {
40
+  return request({
41
+    url: '/system/indicator',
42
+    method: 'post',
43
+    data: data
44
+  })
45
+}
46
+
47
+// 修改考核指标
48
+// @param data 考核指标数据
49
+// @returns {*}
50
+export function updateIndicator(data) {
51
+  return request({
52
+    url: '/system/indicator',
53
+    method: 'put',
54
+    data: data
55
+  })
56
+}
57
+
58
+// 删除考核指标
59
+// @param ids 考核指标ID,多个用逗号分隔
60
+// @returns {*}
61
+export function delIndicator(ids) {
62
+  return request({
63
+    url: `/system/indicator/${ids}`,
64
+    method: 'delete'
65
+  })
66
+}
67
+
68
+// 导入考核指标数据
69
+// @param data 导入数据
70
+// @returns {*}
71
+export function importIndicator(data) {
72
+  return request({
73
+    url: '/system/indicator/importData',
74
+    method: 'post',
75
+    data: data,
76
+    
77
+  })
78
+}
79
+
80
+// 获取导入模板
81
+// @returns {*}
82
+export function getImportTemplate() {
83
+  return request({
84
+    url: '/system/indicator/importTemplate',
85
+    method: 'get',
86
+    responseType: 'blob'
87
+  })
88
+}

+ 48 - 0
src/api/system/classificationAssessIndicator.js

@@ -0,0 +1,48 @@
1
+import request from '@/utils/request'
2
+//查询考核指标分类列表
3
+export function queryAssessCategoryList(query) {
4
+    return request({
5
+        url: '/system/performanceIndicatorCategory/list',
6
+        method: 'get',
7
+        params: query
8
+    })
9
+}
10
+//获取考核指标分类详细信息
11
+export function queryAssessCategoryDetail(categoryId) {
12
+    return request({
13
+        url: `/system/performanceIndicatorCategory/${categoryId}`,
14
+        method: 'get',
15
+
16
+    })
17
+}
18
+//新增考核指标分类
19
+export function addAssessCategory(data) {
20
+    return request({
21
+        url: '/system/performanceIndicatorCategory',
22
+        method: 'post',
23
+        data
24
+    })
25
+}
26
+//修改考核指标分类
27
+export function updateAssessCategory(data) {
28
+    return request({
29
+        url: '/system/performanceIndicatorCategory',
30
+        method: 'put',
31
+        data
32
+    })
33
+}
34
+//删除考核指标分类
35
+export function deleteAssessCategory(ids) {
36
+    return request({
37
+        url: `/system/performanceIndicatorCategory/${ids}`,
38
+        method: 'delete',
39
+    })
40
+}
41
+//查询考核指标分类列表树形结构
42
+export function queryAssessCategoryTree(query) {
43
+    return request({
44
+        url: '/system/performanceIndicatorCategory/listTree',
45
+        method: 'get',
46
+        params: query
47
+    })
48
+}

+ 138 - 31
src/views/system/classificationAssess/index.vue

@@ -25,10 +25,10 @@
25 25
         <el-button type="primary" plain icon="Plus" @click="handleAdd"
26 26
           v-hasPermi="['system:project:add']">新增</el-button>
27 27
       </el-col>
28
-      <el-col :span="1.5">
28
+      <!-- <el-col :span="1.5">
29 29
         <el-button type="success" plain icon="Edit" :disabled="single" @click="handleUpdate"
30 30
           v-hasPermi="['system:project:edit']">修改</el-button>
31
-      </el-col>
31
+      </el-col> -->
32 32
       <el-col :span="1.5">
33 33
         <el-button type="danger" plain icon="Delete" :disabled="multiple" @click="handleDelete"
34 34
           v-hasPermi="['system:project:remove']">删除</el-button>
@@ -37,10 +37,14 @@
37 37
         <el-button type="warning" plain icon="Download" @click="handleExport"
38 38
           v-hasPermi="['system:project:export']">导出</el-button>
39 39
       </el-col>
40
+      <el-col :span="1.5">
41
+        <el-button type="info" plain icon="Upload" @click="handleImport"
42
+          v-hasPermi="['system:project:import']">导入</el-button>
43
+      </el-col>
40 44
       <right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar>
41 45
     </el-row>
42 46
 
43
-    <el-table v-loading="loading" :data="projectList" @selection-change="handleSelectionChange">
47
+    <el-table v-loading="loading" :data="indicatorList" @selection-change="handleSelectionChange">
44 48
       <el-table-column type="selection" width="55" align="center" />
45 49
       <el-table-column label="编码" align="center" prop="code" />
46 50
       <el-table-column label="考核指标名称" align="center" prop="name" />
@@ -77,15 +81,15 @@
77 81
     <!-- 添加或修改考核指标对话框 -->
78 82
     <el-dialog :title="title" v-model="open" width="500px" append-to-body>
79 83
       <el-form ref="projectRef" :model="form" :rules="rules" label-width="120px">
80
-        <el-form-item label="编码" prop="code" v-if="form.id">
81
-          <el-input v-model="form.code" placeholder="请输入编码" disabled />
82
-        </el-form-item>
84
+        <!-- <el-form-item label="编码" prop="code">
85
+          <el-input v-model="form.code" placeholder="请输入编码"  />
86
+        </el-form-item> -->
83 87
         <el-form-item label="考核指标名称" prop="name">
84 88
           <el-input v-model="form.name" placeholder="请输入考核指标名称" />
85 89
         </el-form-item>
86 90
         <el-form-item label="所属分类" prop="categoryCode">
87 91
           <el-tree-select v-model="form.categoryCode" :data="enableCategoryOptions"
88
-            :props="{ value: 'code', label: 'label', children: 'children' }" value-key="id" placeholder="请选择所属分类"
92
+            :props="{ value: 'code', label: 'name', children: 'children' }" value-key="id" placeholder="请选择所属分类"
89 93
             @node-click="handleNodeClick" />
90 94
         </el-form-item>
91 95
         <el-form-item label="分值" prop="score">
@@ -101,8 +105,9 @@
101 105
 
102 106
         <el-form-item label="事病假" prop="leaveType">
103 107
           <el-select v-model="form.leaveType" placeholder="请选择事病假" style="width: 100%">
104
-            <el-option label="是" value="1" />
105
-            <el-option label="否" value="0" />
108
+            <el-option label="事假" value="事假" />
109
+            <el-option label="病假" value="病假" />
110
+            <el-option label="无" value="无" />
106 111
           </el-select>
107 112
         </el-form-item>
108 113
         <!-- <el-form-item label="重要程度" prop="importance">
@@ -123,17 +128,44 @@
123 128
         </div>
124 129
       </template>
125 130
     </el-dialog>
131
+
132
+    <!-- 导入对话框 -->
133
+    <el-dialog :title="upload.title" v-model="upload.open" width="400px" append-to-body>
134
+      <el-upload ref="uploadRef" :limit="1" accept=".xlsx, .xls" :headers="upload.headers"
135
+        :action="upload.url + '?updateSupport=' + upload.updateSupport" :disabled="upload.isUploading"
136
+        :on-progress="handleFileUploadProgress" :on-success="handleFileSuccess" :auto-upload="false" drag>
137
+        <el-icon class="el-icon--upload"><upload-filled /></el-icon>
138
+        <div class="el-upload__text">
139
+          将文件拖到此处,或<em>点击上传</em>
140
+        </div>
141
+        <template #tip>
142
+          <div class="el-upload__tip">
143
+            <!-- <el-checkbox v-model="upload.updateSupport" /> -->
144
+            <!-- 是否更新已经存在的考核指标数据 -->
145
+             <span>仅允许导入xls、xlsx格式文件。</span>
146
+            <el-link type="primary" :underline="false" style="font-size:12px;vertical-align: baseline;"
147
+              @click="importTemplate">下载模板</el-link>
148
+          </div>
149
+        </template>
150
+      </el-upload>
151
+      <template #footer>
152
+        <div class="dialog-footer">
153
+          <el-button type="primary" @click="submitFileForm">确 定</el-button>
154
+          <el-button @click="upload.open = false">取 消</el-button>
155
+        </div>
156
+      </template>
157
+    </el-dialog>
126 158
   </div>
127 159
 </template>
128 160
 
129 161
 <script setup name="Project">
130
-import { listProject, getProject, delProject, addProject, updateProject } from "@/api/system/project"
131
-import { treeSelectByType } from "@/api/system/common"
132
-
162
+import { listIndicator, getIndicator, delIndicator, addIndicator, updateIndicator, exportIndicator, importIndicator, getImportTemplate } from "@/api/system/classificationAssess"
163
+import { queryAssessCategoryTree } from "@/api/system/classificationAssessIndicator"
164
+import { getToken } from '@/utils/auth'
133 165
 const { proxy } = getCurrentInstance()
134 166
 const { base_check_importance, check_level, check_checked_level } = proxy.useDict('base_check_importance', 'check_level', 'check_checked_level')
135 167
 
136
-const projectList = ref([])
168
+const indicatorList = ref([])
137 169
 const open = ref(false)
138 170
 const loading = ref(true)
139 171
 const showSearch = ref(true)
@@ -145,20 +177,31 @@ const title = ref("")
145 177
 const base_check_status = ref([{ "value": "0", "label": "启用" }, { "value": "1", "label": "停用" }])
146 178
 const enableCategoryOptions = ref(undefined)
147 179
 
180
+// 导入参数
181
+const upload = reactive({
182
+  // 是否显示弹出层
183
+  open: false,
184
+  // 弹出层标题
185
+  title: "",
186
+  // 是否禁用上传
187
+  isUploading: false,
188
+  // 是否更新已经存在的考核指标数据
189
+  updateSupport: 0,
190
+  // 设置上传的请求头部
191
+  headers: { Authorization: "Bearer " + getToken() },
192
+  // 上传的地址
193
+  url: import.meta.env.VITE_APP_BASE_API + "/system/indicator/importData"
194
+})
195
+
196
+const uploadRef = ref()
197
+
148 198
 const data = reactive({
149 199
   form: {},
150 200
   queryParams: {
151 201
     pageNum: 1,
152 202
     pageSize: 10,
153 203
     name: null,
154
-    categoryCode: null,
155
-    checkStandard: null,
156
-    checkMethod: null,
157
-    importance: null,
158
-    status: null,
159
-    categoryName: null,
160 204
     code: null,
161
-    importanceDesc: null
162 205
   },
163 206
   rules: {
164 207
     name: [
@@ -190,8 +233,8 @@ const { queryParams, form, rules } = toRefs(data)
190 233
 /** 查询考核指标列表 */
191 234
 function getList() {
192 235
   loading.value = true
193
-  listProject(queryParams.value).then(response => {
194
-    projectList.value = response.rows
236
+  listIndicator(queryParams.value).then(response => {
237
+    indicatorList.value = response.rows
195 238
     total.value = response.total
196 239
     loading.value = false
197 240
   })
@@ -257,7 +300,7 @@ function handleAdd() {
257 300
 function handleUpdate(row) {
258 301
   reset()
259 302
   const _id = row.id || ids.value
260
-  getProject(_id).then(response => {
303
+  getIndicator(_id).then(response => {
261 304
     form.value = {
262 305
       ...response.data,
263 306
       checkLevel: response.data?.checkLevel?.split(","),
@@ -271,6 +314,11 @@ function handleUpdate(row) {
271 314
 function submitForm() {
272 315
   proxy.$refs["projectRef"].validate(valid => {
273 316
     if (valid) {
317
+      // 根据categoryCode获取categoryName
318
+      if (form.value.categoryCode) {
319
+        form.value.categoryName = getCategoryNameByCode(form.value.categoryCode)
320
+      }
321
+      
274 322
       // 名称转换
275 323
       if (form.value.importance) {
276 324
         form.value.importanceDesc = base_check_importance.value.find(item => item.value === form.value.importance).label;
@@ -281,13 +329,13 @@ function submitForm() {
281 329
         checkLevel: form.value.checkLevel && form.value.checkLevel.join(","),
282 330
       }
283 331
       if (form.value.id != null) {
284
-        updateProject(res).then(response => {
332
+        updateIndicator(res).then(response => {
285 333
           proxy.$modal.msgSuccess("修改成功")
286 334
           open.value = false
287 335
           getList()
288 336
         })
289 337
       } else {
290
-        addProject(res).then(response => {
338
+        addIndicator(res).then(response => {
291 339
           proxy.$modal.msgSuccess("新增成功")
292 340
           open.value = false
293 341
           getList()
@@ -301,7 +349,7 @@ function submitForm() {
301 349
 function handleDelete(row) {
302 350
   const _ids = row.id || ids.value
303 351
   proxy.$modal.confirm('是否确认删除数据项?').then(function () {
304
-    return delProject(_ids)
352
+    return delIndicator(_ids)
305 353
   }).then(() => {
306 354
     getList()
307 355
     proxy.$modal.msgSuccess("删除成功")
@@ -310,19 +358,78 @@ function handleDelete(row) {
310 358
 
311 359
 /** 导出按钮操作 */
312 360
 function handleExport() {
313
-  proxy.download('system/project/export', {
314
-    ...queryParams.value
315
-  }, `project_${new Date().getTime()}.xlsx`)
361
+  // 过滤掉值为null的参数,但保留分页参数
362
+  const filteredParams = Object.fromEntries(
363
+    Object.entries(queryParams.value).filter(([key, value]) => {
364
+      // 保留分页参数
365
+      if (key === 'pageNum' || key === 'pageSize') return true
366
+      // 过滤掉其他为null的参数
367
+      return value !== null
368
+    })
369
+  )
370
+ 
371
+  proxy.download('/system/indicator/export', filteredParams, `indicator_${new Date().getTime()}.xlsx`)
316 372
 }
317 373
 /** 查询分类下拉树结构 */
318 374
 function getCategoryTree() {
319
-  treeSelectByType("CHECK_CATEGORY", 2).then(response => {
375
+  queryAssessCategoryTree().then(response => {
320 376
     enableCategoryOptions.value = response.data
321 377
   })
322 378
 }
323 379
 
324 380
 function handleNodeClick(data) {
325
-  form.value.categoryName = data.label;
381
+  form.value.categoryName = data.name;
382
+}
383
+
384
+/** 根据categoryCode获取categoryName */
385
+function getCategoryNameByCode(categoryCode) {
386
+  if (!categoryCode || !enableCategoryOptions.value) return ''
387
+  
388
+  const findCategory = (categories) => {
389
+    for (const category of categories) {
390
+      if (category.code === categoryCode) {
391
+        return category.name
392
+      }
393
+      if (category.children && category.children.length > 0) {
394
+        const result = findCategory(category.children)
395
+        if (result) return result
396
+      }
397
+    }
398
+    return ''
399
+  }
400
+  
401
+  return findCategory(enableCategoryOptions.value)
402
+}
403
+
404
+/** 导入按钮操作 */
405
+function handleImport() {
406
+  upload.title = "考核指标导入"
407
+  upload.open = true
408
+}
409
+
410
+/** 下载模板操作 */
411
+function importTemplate() {
412
+  proxy.download('/system/indicator/importTemplate', {
413
+  }, `考核指标导入模板_${new Date().getTime()}.xlsx`)
414
+}
415
+
416
+/** 文件上传中处理 */
417
+const handleFileUploadProgress = (event, file, fileList) => {
418
+  upload.isUploading = true
419
+}
420
+
421
+/** 文件上传成功处理 */
422
+const handleFileSuccess = (response, file, fileList) => {
423
+  upload.open = false
424
+  upload.isUploading = false
425
+  uploadRef.value.handleRemove(file)
426
+  proxy.$alert("<div style='overflow: auto;overflow-x: hidden;max-height: 70vh;padding: 10px 20px 0;'>" + response.msg + "</div>", "导入结果", { dangerouslyUseHTMLString: true })
427
+  getList()
428
+}
429
+
430
+/** 提交上传文件 */
431
+function submitFileForm() {
432
+  uploadRef.value.submit()
326 433
 }
327 434
 
328 435
 getCategoryTree()

+ 28 - 31
src/views/system/classificationAssessIndicator/index.vue

@@ -40,15 +40,15 @@
40 40
     <el-table
41 41
       v-if="refreshTable"
42 42
       v-loading="loading"
43
-      :data="checkCategoryList"
43
+      :data="assessCategoryList"
44 44
       row-key="id"
45 45
       :default-expand-all="isExpandAll"
46 46
       :tree-props="{children: 'children', hasChildren: 'hasChildren'}"
47 47
     >
48
-      <el-table-column label="编码" align="center" prop="code" />
48
+      <el-table-column label="序号" align="center" prop="code" />
49 49
       <el-table-column label="指标名称" align="center" prop="name" />
50 50
       <el-table-column label="显示顺序" align="center" prop="orderNum" />
51
-      <el-table-column label="分值" align="center" prop="score" />
51
+      <!-- <el-table-column label="分值" align="center" prop="score" /> -->
52 52
       <el-table-column label="备注" align="center" prop="remark" />
53 53
       <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
54 54
         <template #default="scope">
@@ -62,10 +62,10 @@
62 62
     <!-- 添加或修改指标对话框 -->
63 63
     <el-dialog :title="title" v-model="open" width="500px" append-to-body>
64 64
       <el-form ref="checkCategoryRef" :model="form" :rules="rules" label-width="80px">
65
-        <el-form-item label="序号" prop="orderNum">
65
+        <!-- <el-form-item label="序号" prop="code">
66 66
       
67
-          <el-input v-model="form.orderNum" placeholder="请输入序号" />
68
-        </el-form-item>
67
+          <el-input v-model="form.code" placeholder="请输入序号" />
68
+        </el-form-item> -->
69 69
         <el-form-item label="指标名称" prop="name">
70 70
          
71 71
           <el-input v-model="form.name" placeholder="请输入指标名称" />
@@ -74,24 +74,20 @@
74 74
         
75 75
           <el-tree-select
76 76
             v-model="form.parentId"
77
-            :data="checkCategoryOptions"
77
+            :data="assessCategoryOptions"
78 78
             :props="{ value: 'id', label: 'name', children: 'children' }"
79 79
             value-key="id"
80 80
             placeholder="顶级节点"
81 81
             check-strictly
82 82
           />
83 83
         </el-form-item>
84
-        <el-form-item label="分值/单位" prop="scoreUnit">
84
+        <!-- <el-form-item label="分值/单位" prop="scoreUnit">
85 85
           <div style="display: flex; align-items: center; gap: 8px; width: 100%;">
86 86
             <el-input v-model="form.score" placeholder="" style="flex: 1;" />
87 87
             <span>/</span>
88
-            <el-select v-model="form.unit" placeholder="下拉菜单" style="flex: 1;">
89
-              <el-option label="分" value="分" />
90
-              <el-option label="次" value="次" />
91
-              <el-option label="项" value="项" />
92
-            </el-select>
88
+            <el-input v-model="form.unit" placeholder="请输入单位" style="flex: 1;" />
93 89
           </div>
94
-        </el-form-item>
90
+        </el-form-item> -->
95 91
         <el-form-item label="备注" prop="remark">
96 92
           <el-input v-model="form.remark" type="textarea" placeholder="请输入内容" />
97 93
         </el-form-item>
@@ -107,12 +103,12 @@
107 103
 </template>
108 104
 
109 105
 <script setup name="CheckCategory">
110
-import { listCheckCategory, getCheckCategory, delCheckCategory, addCheckCategory, updateCheckCategory } from "@/api/system/checkCategory"
106
+import { queryAssessCategoryList, queryAssessCategoryDetail, addAssessCategory, updateAssessCategory, deleteAssessCategory } from "@/api/system/classificationAssessIndicator"
111 107
 
112 108
 const { proxy } = getCurrentInstance()
113 109
 
114
-const checkCategoryList = ref([])
115
-const checkCategoryOptions = ref([])
110
+const assessCategoryList = ref([])
111
+const assessCategoryOptions = ref([])
116 112
 const open = ref(false)
117 113
 const loading = ref(true)
118 114
 const showSearch = ref(true)
@@ -125,7 +121,7 @@ const data = reactive({
125 121
   queryParams: {
126 122
     name: null,
127 123
     parentId: null,
128
-    orderNum: null,
124
+    code: null,
129 125
     code: null,
130 126
     score: null,
131 127
     unit: null,
@@ -137,7 +133,7 @@ const data = reactive({
137 133
     parentId: [
138 134
       { required: true, message: "上级位置不能为空", trigger: "blur" }
139 135
     ],
140
-    orderNum: [
136
+    code: [
141 137
       { required: true, message: "序号不能为空", trigger: "blur" }
142 138
     ],
143 139
   }
@@ -145,22 +141,22 @@ const data = reactive({
145 141
 
146 142
 const { queryParams, form, rules } = toRefs(data)
147 143
 
148
-/** 查询检查项分类列表 */
144
+/** 查询考核指标分类列表 */
149 145
 function getList() {
150 146
   loading.value = true
151
-  listCheckCategory(queryParams.value).then(response => {
152
-    checkCategoryList.value = proxy.handleTree(response.data, "id", "parentId")
147
+  queryAssessCategoryList(queryParams.value).then(response => {
148
+    assessCategoryList.value = proxy.handleTree(response.data, "id", "parentId")
153 149
     loading.value = false
154 150
   })
155 151
 }
156 152
 
157
-/** 查询检查项分类下拉树结构 */
153
+/** 查询考核指标分类下拉树结构 */
158 154
 function getTreeselect() {
159
-  listCheckCategory().then(response => {
160
-    checkCategoryOptions.value = []
155
+  queryAssessCategoryList().then(response => {
156
+    assessCategoryOptions.value = []
161 157
     const data = { id: 0, name: '顶级节点', children: [] }
162 158
     data.children = proxy.handleTree(response.data, "id", "parentId")
163
-    checkCategoryOptions.value.push(data)
159
+    assessCategoryOptions.value.push(data)
164 160
   })
165 161
 }
166 162
 	
@@ -184,7 +180,7 @@ function reset() {
184 180
     parentId: null,
185 181
     ancestors: null,
186 182
     level: null,
187
-    orderNum: null,
183
+    code: null,
188 184
     code: null,
189 185
     score: null,
190 186
     unit: null,
@@ -208,6 +204,7 @@ function resetQuery() {
208 204
 function handleAdd(row) {
209 205
   reset()
210 206
   getTreeselect()
207
+  
211 208
   if (row != null && row.id) {
212 209
     form.value.parentId = row.id
213 210
   } else {
@@ -233,7 +230,7 @@ async function handleUpdate(row) {
233 230
   if (row != null) {
234 231
     form.value.parentId = row.parentId
235 232
   }
236
-  getCheckCategory(row.id).then(response => {
233
+  queryAssessCategoryDetail(row.id).then(response => {
237 234
     form.value = response.data
238 235
     open.value = true
239 236
     title.value = "修改指标"
@@ -245,13 +242,13 @@ function submitForm() {
245 242
   proxy.$refs["checkCategoryRef"].validate(valid => {
246 243
     if (valid) {
247 244
       if (form.value.id != null) {
248
-        updateCheckCategory(form.value).then(response => {
245
+        updateAssessCategory(form.value).then(response => {
249 246
           proxy.$modal.msgSuccess("修改成功")
250 247
           open.value = false
251 248
           getList()
252 249
         })
253 250
       } else {
254
-        addCheckCategory(form.value).then(response => {
251
+        addAssessCategory(form.value).then(response => {
255 252
           proxy.$modal.msgSuccess("新增成功")
256 253
           open.value = false
257 254
           getList()
@@ -264,7 +261,7 @@ function submitForm() {
264 261
 /** 删除按钮操作 */
265 262
 function handleDelete(row) {
266 263
   proxy.$modal.confirm('是否确认删除数据项?').then(function() {
267
-    return delCheckCategory(row.id)
264
+    return deleteAssessCategory(row.id)
268 265
   }).then(() => {
269 266
     getList()
270 267
     proxy.$modal.msgSuccess("删除成功")