|
@@ -8,6 +8,7 @@
|
|
|
:tableAttributes="tableAttributes"
|
|
|
:tableEvents="tableEvents"
|
|
|
:operation="operation()"
|
|
|
+ :moreParameters="moreParameters"
|
|
|
>
|
|
|
<div class="cartographer_big">
|
|
|
<el-dialog title="配置" width="100%" :modal="false" :visible.sync="formBool" :before-close="handleClose">
|
|
@@ -150,10 +151,27 @@ export default {
|
|
|
streetList: [],
|
|
|
classifyList: [],
|
|
|
classifyListLv2: [],
|
|
|
- createWebsitList: []
|
|
|
+ createWebsitList: [],
|
|
|
+ statusTypeList: []
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
|
+ moreParameters() {
|
|
|
+ return [
|
|
|
+ {
|
|
|
+ name: '状态',
|
|
|
+ key: 'status',
|
|
|
+ value: '',
|
|
|
+ conditions: [
|
|
|
+ {
|
|
|
+ label: '全部',
|
|
|
+ value: ''
|
|
|
+ },
|
|
|
+ ...this.statusTypeList
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
optionsEvensGroup() {
|
|
|
return [
|
|
|
[
|
|
@@ -965,7 +983,51 @@ export default {
|
|
|
this.formData.address = ''
|
|
|
},
|
|
|
// 列表请求函数
|
|
|
- getList: qualityFeedbackList,
|
|
|
+ getList(p, cb) {
|
|
|
+ var pam = JSON.parse(JSON.stringify(p))
|
|
|
+ try {
|
|
|
+ if (pam.status) {
|
|
|
+ pam.params.push({ param: 'a.status', compare: '=', value: pam.status })
|
|
|
+ }
|
|
|
+ cb && cb(pam)
|
|
|
+ return qualityFeedbackList(pam)
|
|
|
+ } catch (err) {
|
|
|
+ } finally {
|
|
|
+ qualityFeedbackCount().then(res => {
|
|
|
+ this.statusTypeList = [
|
|
|
+ {
|
|
|
+ label: `保存`,
|
|
|
+ value: 'SAVE'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: `待中心审核`,
|
|
|
+ value: 'WAIT'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: `通过`,
|
|
|
+ value: 'OK'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: `驳回可修改`,
|
|
|
+ value: 'REJECT'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: `驳回不可修改`,
|
|
|
+ value: 'FAIL'
|
|
|
+ }
|
|
|
+ ].map(item => {
|
|
|
+ if (item.value === 'SAVE') {
|
|
|
+ item.label = `${item.label}(${res.data.saveCount || 0})`
|
|
|
+ } else if (item.value === 'WAIT') {
|
|
|
+ item.label = `${item.label}(${res.data.waitCount || 0})`
|
|
|
+ } else if (item.value === 'REJECT') {
|
|
|
+ item.label = `${item.label}(${res.data.rejectCount || 0})`
|
|
|
+ }
|
|
|
+ return { ...item }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
// 导出
|
|
|
exportList: qualityFeedbackListExport,
|
|
|
// 表格列解析渲染数据更改
|