|
@@ -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({
|