浏览代码

no message

duwendi 1 年之前
父节点
当前提交
bd0972da37
共有 4 个文件被更改,包括 44 次插入5 次删除
  1. 8 0
      src/api/article_z.js
  2. 9 0
      src/api/audit.js
  3. 8 5
      src/pages/index/components/customer_complaint.vue
  4. 19 0
      src/util/options.js

+ 8 - 0
src/api/article_z.js

@@ -2,6 +2,14 @@
2 2
 import axios from "../util/ajax";
3 3
 
4 4
 export default {
5
+  // 字典查询 /dash/ex/dict
6
+  getDict(params) {
7
+    return axios.get(`/dash/ex/dict/select`, {params})
8
+  },
9
+  // 字典增加 /dash/ex/dict
10
+  addDict(params) {
11
+    return axios.post(`/dash/ex/dict/add`, params)
12
+  },
5 13
   // 停车盲点挖掘/dash/blind/spot/digging/page
6 14
   queryBlindListByPage(params) {
7 15
     return axios.get(`/dash/blind/spot/digging/page`, {params})

+ 9 - 0
src/api/audit.js

@@ -389,4 +389,13 @@ export default {
389 389
   parkDic(params) {
390 390
     return axios.get(`/dash/customer/complaint/list`, {params})
391 391
   },
392
+  // 事件添加
393
+  addEvent(params) {
394
+    return axios.get(`/dash/event/monitoring/ex/add`, {params})
395
+  },
396
+  // 事件查询
397
+  EventList(params) {
398
+    return axios.get(`/dash/event/monitoring/ex/add`, {params})
399
+  },
400
+
392 401
 }

+ 8 - 5
src/pages/index/components/customer_complaint.vue

@@ -144,6 +144,7 @@ import api from "@/api/article_z";
144 144
 import options from '@/util/options'
145 145
 import {validateInput} from '@/util/common'
146 146
 
147
+const date = new Date;
147 148
 export default {
148 149
   components: {
149 150
     barchart
@@ -173,12 +174,12 @@ export default {
173 174
       },
174 175
       formInline1: {
175 176
         parkId: '',
176
-        time: [],
177
+        time:  [date.getFullYear() + "-" + (date.getMonth() + 1) + "-" + (date.getDate()), date.getFullYear() + "-" + (date.getMonth() + 1) + "-" + (date.getDate())],
177 178
         regionCode: '',
178 179
         streetName: ''
179 180
       },
180 181
       districtOptions: options.districtOptions,
181
-      complaintOptions: options.complaintOptions,
182
+      complaintOptions: [],
182 183
       options: [{
183 184
         value: '经营服务类停车问题',
184 185
         label: '经营服务类停车问题'
@@ -244,7 +245,9 @@ export default {
244 245
   watch: {},
245 246
   methods: {
246 247
     getKslx() {
247
-      // todo 查询客诉类型
248
+      api.getDict({dictType: 'customer_complaint'}).then(res => {
249
+        this.complaintOptions = res.data || []
250
+      })
248 251
     },
249 252
     onSubmit() {
250 253
       this.pageNum = 1
@@ -315,8 +318,8 @@ export default {
315 318
     handleConfirm2(formName) {
316 319
       this.$refs[formName].validate((valid) => {
317 320
         if (valid) {
318
-          // todo 添加配置接口
319
-          api.khtsSave(this.formLabelAlign2).then(res => {
321
+          let params = {...this.formLabelAlign2}
322
+          api.addDict({dictType: 'customer_complaint', dictKey: params.comType, dictValue: params.comType}).then(res => {
320 323
             if (res.code === 200) {
321 324
               this.dialogVisible2 = false
322 325
               this.$message({

+ 19 - 0
src/util/options.js

@@ -72,5 +72,24 @@ export default {
72 72
   }, {
73 73
     value: '不合格',
74 74
     label: '不合格'
75
+  }],
76
+  eventOptions: [ {
77
+    value: '黑名单入场事件',
78
+    label: '黑名单入场事件'
79
+  }, {
80
+    value: '套牌车事件',
81
+    label: '套牌车事件'
82
+  }, {
83
+    value: '客诉事件',
84
+    label: '客诉事件'
85
+  }, {
86
+    value: '设备事件',
87
+    label: '设备事件'
88
+  }, {
89
+    value: '超长停车事件',
90
+    label: '超长停车事件'
91
+  }, {
92
+    value: '大额欠费事件',
93
+    label: '大额欠费事件'
75 94
   }]
76 95
 }