Browse Source

bug fixed

duwendi 1 year ago
parent
commit
ca39f1b041
2 changed files with 20 additions and 5 deletions
  1. 4 0
      src/api/audit.js
  2. 16 5
      src/pages/index/components/enterprise_service.vue

+ 4 - 0
src/api/audit.js

@@ -422,6 +422,10 @@ export default {
422 422
     return axios.post(`/dash/enterprise/service/config/delete`, params)
423 423
   },
424 424
   // 服务评价
425
+  getPjjzDic(params) {
426
+    return axios.get(`/dash/enterprise/service/config/select`, {params})
427
+  },
428
+  // 服务评价
425 429
   getPj(params) {
426 430
     return axios.get(`/dash/enterprise/service/evaluation/page`, {params})
427 431
   },

+ 16 - 5
src/pages/index/components/enterprise_service.vue

@@ -113,7 +113,9 @@
113 113
           </el-select>
114 114
         </el-form-item>
115 115
         <el-form-item label="评分项" prop="dictKey">
116
-          <el-input v-model="formLabelAlign3.dictKey" maxLength="10" placeholder="请输入评分项"></el-input>
116
+          <el-select clearable filterable v-model="formLabelAlign3.dictKey" placeholder="请选择" popper-class="cur-select">
117
+            <el-option v-for="item in pjOptions" :key="item.dictKey" :label="item.dictKey" :value="item.dictKey"></el-option>
118
+          </el-select>
117 119
         </el-form-item>
118 120
         <el-form-item>
119 121
           <el-button type="primary" @click="handleConfirm3('formLabelAlign3')">立即创建</el-button>
@@ -135,6 +137,7 @@ export default {
135 137
   },
136 138
   data() {
137 139
     return {
140
+      pjOptions: '',
138 141
       title: '',
139 142
       rule3: {
140 143
         parkId: [
@@ -211,12 +214,12 @@ export default {
211 214
       queryParams3: {},
212 215
       columns3: [
213 216
         {
214
-          label: '评价项',
215
-          key: 'dictKey'
217
+          label: '停车场',
218
+          key: 'carParkName'
216 219
         },
217 220
         {
218
-          label: '分值',
219
-          key: 'dictValue'
221
+          label: '评价项',
222
+          key: 'dictKey'
220 223
         },
221 224
         {
222 225
           label: '创建时间',
@@ -232,6 +235,7 @@ export default {
232 235
   },
233 236
   mounted() {
234 237
     this.getParkDic()
238
+    this.getPjDic()
235 239
     this.queryTable()
236 240
     this.queryTable2()
237 241
     this.queryTable3()
@@ -280,6 +284,11 @@ export default {
280 284
         this.carOptions = res.data || [];
281 285
       })
282 286
     },
287
+    getPjDic() {
288
+      api.getPjjzDic().then(res => {
289
+        this.pjOptions = res.data || [];
290
+      })
291
+    },
283 292
     queryTable() {
284 293
       this.pageNum = 1
285 294
       this.queryParams = {...this.formInline}
@@ -341,6 +350,7 @@ export default {
341 350
                   type: 'success'
342 351
                 })
343 352
                 this.queryTable2()
353
+                this.getPjDic()
344 354
               }
345 355
             })
346 356
           } else {
@@ -352,6 +362,7 @@ export default {
352 362
                   type: 'success'
353 363
                 })
354 364
                 this.queryTable2()
365
+                this.getPjDic()
355 366
               }
356 367
             })
357 368
           }