优化aitable
This commit is contained in:
		| @@ -33,7 +33,7 @@ | |||||||
|           style="margin-top: 6px;" |           style="margin-top: 6px;" | ||||||
|           :current.sync="search.current" |           :current.sync="search.current" | ||||||
|           :size.sync="search.size" |           :size.sync="search.size" | ||||||
|           @getList="getList"> |           @getList="getList" :dict="dict"> | ||||||
|         <el-table-column slot="options" width="160px" fixed="right" label="操作" align="center"> |         <el-table-column slot="options" width="160px" fixed="right" label="操作" align="center"> | ||||||
|           <template slot-scope="{ row }"> |           <template slot-scope="{ row }"> | ||||||
|             <div class="table-options"> |             <div class="table-options"> | ||||||
| @@ -88,7 +88,7 @@ export default { | |||||||
|         {prop: 'name', label: '模板名称'}, |         {prop: 'name', label: '模板名称'}, | ||||||
|         {prop: 'createUserName', align: 'center', label: '创建人'}, |         {prop: 'createUserName', align: 'center', label: '创建人'}, | ||||||
|         {prop: 'description', align: 'center', label: '描述'}, |         {prop: 'description', align: 'center', label: '描述'}, | ||||||
|         {prop: 'status', align: 'center', label: '状态', formart: v => this.dict.getLabel('cwpStatus', v)}, |         {prop: 'status', align: 'center', label: '状态', dict:"cwpStatus"}, | ||||||
|         {prop: 'createTime', align: 'center', label: '创建时间'} |         {prop: 'createTime', align: 'center', label: '创建时间'} | ||||||
|       ], |       ], | ||||||
|       tableData: [], |       tableData: [], | ||||||
|   | |||||||
| @@ -210,7 +210,7 @@ export default { | |||||||
|         {prop: 'appName', label: '应用名'}, |         {prop: 'appName', label: '应用名'}, | ||||||
|         {prop: 'appTableName', align: 'center', label: '表名'}, |         {prop: 'appTableName', align: 'center', label: '表名'}, | ||||||
|         {prop: 'description', align: 'center', label: '描述'}, |         {prop: 'description', align: 'center', label: '描述'}, | ||||||
|         {prop: 'type', align: 'center', label: '类型', formart: v => v === '0' ? '村微应用' : 'sql语句'}, |         {prop: 'type', align: 'center', label: '类型', format: v => v === '0' ? '村微应用' : 'sql语句'}, | ||||||
|         {prop: 'createUserName', align: 'center', label: '创建人'}, |         {prop: 'createUserName', align: 'center', label: '创建人'}, | ||||||
|         {prop: 'createTime', align: 'center', label: '创建时间'} |         {prop: 'createTime', align: 'center', label: '创建时间'} | ||||||
|       ], |       ], | ||||||
|   | |||||||
| @@ -127,14 +127,14 @@ export default { | |||||||
|               } |               } | ||||||
|             }, row.householdName === '1' ? '户主' : (this.dict.getLabel('householdRelation', row.householdRelation) || '-')) |             }, row.householdName === '1' ? '户主' : (this.dict.getLabel('householdRelation', row.householdRelation) || '-')) | ||||||
|           }, |           }, | ||||||
|           formart: v => this.dict.getLabel('householdRelation', v) |           format: v => this.dict.getLabel('householdRelation', v) | ||||||
|         }, |         }, | ||||||
|         { |         { | ||||||
|           prop: 'idNumber', |           prop: 'idNumber', | ||||||
|           label: '身份证号', |           label: '身份证号', | ||||||
|           align: 'center', |           align: 'center', | ||||||
|           width: 220, |           width: 220, | ||||||
|           formart: v => v ? v.replace(/^(\d{10})\d{4}(.{4}$)/g, `$1${Array(5).join('*')}$2`) : '-' |           format: v => v ? v.replace(/^(\d{10})\d{4}(.{4}$)/g, `$1${Array(5).join('*')}$2`) : '-' | ||||||
|         }, |         }, | ||||||
|         {prop: 'phone', label: '联系方式', align: 'center'} |         {prop: 'phone', label: '联系方式', align: 'center'} | ||||||
|       ], |       ], | ||||||
|   | |||||||
| @@ -185,7 +185,7 @@ | |||||||
|         recordList: [], |         recordList: [], | ||||||
|         colConfigs: [ |         colConfigs: [ | ||||||
|           {prop: 'createTime', label: '上报日期', align: 'center', dateFormat: 'YYYY-MM-DD'}, |           {prop: 'createTime', label: '上报日期', align: 'center', dateFormat: 'YYYY-MM-DD'}, | ||||||
|           {prop: 'status', label: '健康状态', align: 'center', formart: v => v === '0' ? '异常' : '正常' } |           {prop: 'status', label: '健康状态', align: 'center', format: v => v === '0' ? '异常' : '正常' } | ||||||
|         ], |         ], | ||||||
|         tabList: ['基本信息', '每日上报', '异常处理'] |         tabList: ['基本信息', '每日上报', '异常处理'] | ||||||
|       } |       } | ||||||
|   | |||||||
| @@ -131,9 +131,9 @@ | |||||||
|               }, row.today === '0' ? '-' : (row.vaccine || 0 + '次')) |               }, row.today === '0' ? '-' : (row.vaccine || 0 + '次')) | ||||||
|             } |             } | ||||||
|           }, |           }, | ||||||
|           { prop: 'healthCode', align: 'center', label: '健康码', formart: v => v ? this.dict.getLabel('epidemicHealthCode', v) : '-' }, |           { prop: 'healthCode', align: 'center', label: '健康码', format: v => v ? this.dict.getLabel('epidemicHealthCode', v) : '-' }, | ||||||
|           { prop: 'checkTime', align: 'center', label: '核酸日期', formart: v => v ? v.split(' ')[0] : '-' }, |           { prop: 'checkTime', align: 'center', label: '核酸日期', format: v => v ? v.split(' ')[0] : '-' }, | ||||||
|           { prop: 'checkResult', align: 'center', label: '检测结果', formart: v => v ? this.dict.getLabel('epidemicRecentTestResult', v) : '-' }, |           { prop: 'checkResult', align: 'center', label: '检测结果', format: v => v ? this.dict.getLabel('epidemicRecentTestResult', v) : '-' }, | ||||||
|           { |           { | ||||||
|             prop: 'status', |             prop: 'status', | ||||||
|             align: 'center', |             align: 'center', | ||||||
| @@ -146,7 +146,7 @@ | |||||||
|               }, row.today === '0' ? '-' : (row.status === '0' ? '异常' : '正常')) |               }, row.today === '0' ? '-' : (row.status === '0' ? '异常' : '正常')) | ||||||
|             } |             } | ||||||
|           }, |           }, | ||||||
|           { prop: 'today', align: 'center', label: '今日上报', formart: v => v === '0' ? '未上报' : '已上报' }, |           { prop: 'today', align: 'center', label: '今日上报', format: v => v === '0' ? '未上报' : '已上报' }, | ||||||
|         ], |         ], | ||||||
|         tableData: [], |         tableData: [], | ||||||
|         total: 0, |         total: 0, | ||||||
|   | |||||||
| @@ -81,7 +81,7 @@ export default { | |||||||
|         {prop: 'createTime', label: '上报时间', align: 'center'}, |         {prop: 'createTime', label: '上报时间', align: 'center'}, | ||||||
|         {prop: 'name', label: '上报居民', align: 'center'}, |         {prop: 'name', label: '上报居民', align: 'center'}, | ||||||
|         {prop: 'phone', label: '联系方式', align: 'center'}, |         {prop: 'phone', label: '联系方式', align: 'center'}, | ||||||
|         {prop: 'eventStatus', label: '处理状态', align: 'center', formart: v => this.dict.getLabel('clapEventStatus', v)}, |         {prop: 'eventStatus', label: '处理状态', align: 'center', format: v => this.dict.getLabel('clapEventStatus', v)}, | ||||||
|         {prop: 'processTime', label: '处理时长', align: 'center'}, |         {prop: 'processTime', label: '处理时长', align: 'center'}, | ||||||
|         {slot: 'options'} |         {slot: 'options'} | ||||||
|       ] |       ] | ||||||
|   | |||||||
| @@ -78,19 +78,19 @@ | |||||||
|         colConfigs: [ |         colConfigs: [ | ||||||
|           { prop: 'name', label: '姓名' }, |           { prop: 'name', label: '姓名' }, | ||||||
|           { prop: 'phone', align: 'center', label: '手机号码' }, |           { prop: 'phone', align: 'center', label: '手机号码' }, | ||||||
|           { prop: 'startTime', align: 'center', label: '出发时间', formart: v => v.substr(0, v.length - 3) }, |           { prop: 'startTime', align: 'center', label: '出发时间', format: v => v.substr(0, v.length - 3) }, | ||||||
|           { |           { | ||||||
|             prop: 'startAreaName', |             prop: 'startAreaName', | ||||||
|             align: 'center', |             align: 'center', | ||||||
|             label: '出发地区' |             label: '出发地区' | ||||||
|           }, |           }, | ||||||
|           { prop: 'arriveTime', align: 'center', label: '到达时间', formart: v => v.substr(0, v.length - 3) },  |           { prop: 'arriveTime', align: 'center', label: '到达时间', format: v => v.substr(0, v.length - 3) }, | ||||||
|           { |           { | ||||||
|             prop: 'arriveAreaName', |             prop: 'arriveAreaName', | ||||||
|             align: 'center', |             align: 'center', | ||||||
|             label: '到达地区' |             label: '到达地区' | ||||||
|           }, |           }, | ||||||
|           { prop: 'checkTime', align: 'center', label: '核酸日期', formart: v => v.split(' ')[0] }, |           { prop: 'checkTime', align: 'center', label: '核酸日期', format: v => v.split(' ')[0] }, | ||||||
|           { |           { | ||||||
|             prop: 'status', |             prop: 'status', | ||||||
|             align: 'center', |             align: 'center', | ||||||
| @@ -146,7 +146,7 @@ | |||||||
|         }).catch(() => { |         }).catch(() => { | ||||||
|           this.loading = false |           this.loading = false | ||||||
|         }) |         }) | ||||||
|          |  | ||||||
|         this.getTotalInfo() |         this.getTotalInfo() | ||||||
|       }, |       }, | ||||||
|  |  | ||||||
|   | |||||||
| @@ -102,19 +102,19 @@ | |||||||
|         colConfigs: [ |         colConfigs: [ | ||||||
|           { prop: 'name', label: '姓名' }, |           { prop: 'name', label: '姓名' }, | ||||||
|           { prop: 'phone', align: 'center', label: '手机号码' }, |           { prop: 'phone', align: 'center', label: '手机号码' }, | ||||||
|           { prop: 'startTime', align: 'center', label: '出发时间', formart: v => v.substr(0, v.length - 3) }, |           { prop: 'startTime', align: 'center', label: '出发时间', format: v => v.substr(0, v.length - 3) }, | ||||||
|           { |           { | ||||||
|             prop: 'startAreaName', |             prop: 'startAreaName', | ||||||
|             align: 'center', |             align: 'center', | ||||||
|             label: '出发地区' |             label: '出发地区' | ||||||
|           }, |           }, | ||||||
|           { prop: 'arriveTime', align: 'center', label: '到达时间', formart: v => v.substr(0, v.length - 3) }, |           { prop: 'arriveTime', align: 'center', label: '到达时间', format: v => v.substr(0, v.length - 3) }, | ||||||
|           { |           { | ||||||
|             prop: 'arriveAreaName', |             prop: 'arriveAreaName', | ||||||
|             align: 'center', |             align: 'center', | ||||||
|             label: '到达地区' |             label: '到达地区' | ||||||
|           }, |           }, | ||||||
|           { prop: 'checkTime', align: 'center', label: '核酸日期', formart: v => v.split(' ')[0] }, |           { prop: 'checkTime', align: 'center', label: '核酸日期', format: v => v.split(' ')[0] }, | ||||||
|           { |           { | ||||||
|             prop: 'status', |             prop: 'status', | ||||||
|             align: 'center', |             align: 'center', | ||||||
|   | |||||||
| @@ -77,7 +77,7 @@ | |||||||
|           { prop: 'district', label: '区级', align: 'center' }, |           { prop: 'district', label: '区级', align: 'center' }, | ||||||
|           { prop: 'town', label: '镇级', align: 'center' }, |           { prop: 'town', label: '镇级', align: 'center' }, | ||||||
|           { prop: 'village', label: '村级', align: 'center' }, |           { prop: 'village', label: '村级', align: 'center' }, | ||||||
|           { prop: 'level', label: '等级', align: 'center', formart: v => this.dict.getLabel('epidemicDangerousAreaLevel', v) }, |           { prop: 'level', label: '等级', align: 'center', format: v => this.dict.getLabel('epidemicDangerousAreaLevel', v) }, | ||||||
|           { prop: 'createTime', label: '设置时间', align: 'center' }, |           { prop: 'createTime', label: '设置时间', align: 'center' }, | ||||||
|           { prop: 'createUserName', label: '添加人', align: 'center' }, |           { prop: 'createUserName', label: '添加人', align: 'center' }, | ||||||
|           { slot: 'options', label: '操作', align: 'center' } |           { slot: 'options', label: '操作', align: 'center' } | ||||||
|   | |||||||
| @@ -144,7 +144,7 @@ | |||||||
|         total: 0, |         total: 0, | ||||||
|         colConfigs: [ |         colConfigs: [ | ||||||
|           { prop: 'name',  label: '姓名', align: 'left' }, |           { prop: 'name',  label: '姓名', align: 'left' }, | ||||||
|           { prop: 'gender', label: '性别', align: 'center', formart: v => this.dict.getLabel('sex', v) }, |           { prop: 'gender', label: '性别', align: 'center', format: v => this.dict.getLabel('sex', v) }, | ||||||
|           { prop: 'num1', label: '报名次数', align: 'center' }, |           { prop: 'num1', label: '报名次数', align: 'center' }, | ||||||
|           { prop: 'num2', label: '发布动态条数', align: 'center' } |           { prop: 'num2', label: '发布动态条数', align: 'center' } | ||||||
|         ], |         ], | ||||||
|   | |||||||
| @@ -113,7 +113,7 @@ | |||||||
|           {prop: 'content', label: '发言内容', align: 'center'}, |           {prop: 'content', label: '发言内容', align: 'center'}, | ||||||
|           {prop: 'suport', label: '获赞次数', align: 'center'}, |           {prop: 'suport', label: '获赞次数', align: 'center'}, | ||||||
|           {prop: 'createTime', label: '发言时间', align: 'center'}, |           {prop: 'createTime', label: '发言时间', align: 'center'}, | ||||||
|           {prop: 'createUserId', label: '发言身份', align: 'center', formart: v => v === this.info.createUserId ? '话事人' : '居民'} |           {prop: 'createUserId', label: '发言身份', align: 'center', format: v => v === this.info.createUserId ? '话事人' : '居民'} | ||||||
|         ], |         ], | ||||||
|         type: '', |         type: '', | ||||||
|         statistic: {}, |         statistic: {}, | ||||||
|   | |||||||
| @@ -77,11 +77,11 @@ | |||||||
|         total: 10, |         total: 10, | ||||||
|         colConfigs: [ |         colConfigs: [ | ||||||
|           { prop: 'content',  label: '议事主题', align: 'left', width: '200px' }, |           { prop: 'content',  label: '议事主题', align: 'left', width: '200px' }, | ||||||
|           { prop: 'type', label: '议事类型', align: 'center', formart: v => this.dict.getLabel('discussType', v) }, |           { prop: 'type', label: '议事类型', align: 'center', format: v => this.dict.getLabel('discussType', v) }, | ||||||
|           { prop: 'createUserName', label: '话事人', align: 'center' }, |           { prop: 'createUserName', label: '话事人', align: 'center' }, | ||||||
|           { prop: 'msgCountTotal', label: '观点数量', align: 'center', formart: v => v === 0 ? '-' : v }, |           { prop: 'msgCountTotal', label: '观点数量', align: 'center', format: v => v === 0 ? '-' : v }, | ||||||
|           { prop: 'voteCount', label: '投票数量', align: 'center', formart: v => v === 0 ? '-' : v }, |           { prop: 'voteCount', label: '投票数量', align: 'center', format: v => v === 0 ? '-' : v }, | ||||||
|           { prop: 'status', label: '发布状态', align: 'center', formart: v => this.dict.getLabel('discussStatus', v) }, |           { prop: 'status', label: '发布状态', align: 'center', format: v => this.dict.getLabel('discussStatus', v) }, | ||||||
|           { prop: 'createTime', label: '发布时间', align: 'center' }, |           { prop: 'createTime', label: '发布时间', align: 'center' }, | ||||||
|           { slot: 'options', label: '操作', align: 'center' } |           { slot: 'options', label: '操作', align: 'center' } | ||||||
|         ], |         ], | ||||||
|   | |||||||
| @@ -81,9 +81,9 @@ | |||||||
|           { type: 'selection' }, |           { type: 'selection' }, | ||||||
|           { prop: 'name', label: '事主姓名' }, |           { prop: 'name', label: '事主姓名' }, | ||||||
|           { prop: 'phone', align: 'center', label: '联系电话' }, |           { prop: 'phone', align: 'center', label: '联系电话' }, | ||||||
|           { prop: 'type', align: 'center', label: '类型', formart: v => this.dict.getLabel('marriageType', v) }, |           { prop: 'type', align: 'center', label: '类型', format: v => this.dict.getLabel('marriageType', v) }, | ||||||
|           { prop: 'modeType', align: 'center', label: '方式', formart: v => this.dict.getLabel('modeType', v) }, |           { prop: 'modeType', align: 'center', label: '方式', format: v => this.dict.getLabel('modeType', v) }, | ||||||
|           { prop: 'personType', align: 'center', label: '人员性质', formart: v => this.dict.getLabel('marriagePersonType', v) }, |           { prop: 'personType', align: 'center', label: '人员性质', format: v => this.dict.getLabel('marriagePersonType', v) }, | ||||||
|           { prop: 'createTime', align: 'center', label: '发布时间' } |           { prop: 'createTime', align: 'center', label: '发布时间' } | ||||||
|         ], |         ], | ||||||
|         ids: [], |         ids: [], | ||||||
|   | |||||||
| @@ -155,7 +155,7 @@ export default { | |||||||
|         { |         { | ||||||
|           prop: "validRangeType", |           prop: "validRangeType", | ||||||
|           label: "有效范围", |           label: "有效范围", | ||||||
|           formart: (v) => (v == 0 ? "全局" : "指定网格"), |           format: (v) => (v == 0 ? "全局" : "指定网格"), | ||||||
|         }, |         }, | ||||||
|         { |         { | ||||||
|           prop: "status", |           prop: "status", | ||||||
|   | |||||||
| @@ -114,8 +114,8 @@ | |||||||
|           { prop: 'residentName', label: '申请人' }, |           { prop: 'residentName', label: '申请人' }, | ||||||
|           { prop: 'residentPhone', align: 'center', label: '联系电话' }, |           { prop: 'residentPhone', align: 'center', label: '联系电话' }, | ||||||
|           { prop: 'createTime', align: 'center', label: '申请时间' }, |           { prop: 'createTime', align: 'center', label: '申请时间' }, | ||||||
|           { prop: 'applyIntegralType', align: 'center', label: '积分类型', formart: v => this.dict.getLabel('atWillReportType', v) }, |           { prop: 'applyIntegralType', align: 'center', label: '积分类型', format: v => this.dict.getLabel('atWillReportType', v) }, | ||||||
|           { prop: 'auditStatus', align: 'center', label: '状态', formart: v => v ? this.dict.getLabel('auditStatus', v) : '-' }, |           { prop: 'auditStatus', align: 'center', label: '状态', format: v => v ? this.dict.getLabel('auditStatus', v) : '-' }, | ||||||
|           { prop: 'auditUserName', align: 'center', label: '审批人' }, |           { prop: 'auditUserName', align: 'center', label: '审批人' }, | ||||||
|           { prop: 'auditTime', align: 'center', label: '审批时间' } |           { prop: 'auditTime', align: 'center', label: '审批时间' } | ||||||
|         ], |         ], | ||||||
|   | |||||||
| @@ -219,7 +219,7 @@ export default { | |||||||
|           prop: 'residentType', |           prop: 'residentType', | ||||||
|           align: 'center', |           align: 'center', | ||||||
|           label: '类型', |           label: '类型', | ||||||
|           formart: v => this.dict.getLabel('residentType', v) |           format: v => this.dict.getLabel('residentType', v) | ||||||
|         }, |         }, | ||||||
|         { |         { | ||||||
|           prop: 'name', |           prop: 'name', | ||||||
|   | |||||||
| @@ -191,7 +191,7 @@ export default { | |||||||
|           prop: 'residentType', |           prop: 'residentType', | ||||||
|           align: 'center', |           align: 'center', | ||||||
|           label: '类型', |           label: '类型', | ||||||
|           formart: v => this.dict.getLabel('residentType', v) |           format: v => this.dict.getLabel('residentType', v) | ||||||
|         }, |         }, | ||||||
|         { |         { | ||||||
|           prop: 'householdAreaName', |           prop: 'householdAreaName', | ||||||
| @@ -212,7 +212,7 @@ export default { | |||||||
|           prop: 'householdName', |           prop: 'householdName', | ||||||
|           align: 'center', |           align: 'center', | ||||||
|           label: '是否户主', |           label: '是否户主', | ||||||
|           formart: v => v === '1' ? '是' : '否' |           format: v => v === '1' ? '是' : '否' | ||||||
|         } |         } | ||||||
|       ] |       ] | ||||||
|     }, |     }, | ||||||
| @@ -238,7 +238,7 @@ export default { | |||||||
|           prop: 'residentType', |           prop: 'residentType', | ||||||
|           align: 'center', |           align: 'center', | ||||||
|           label: '类型', |           label: '类型', | ||||||
|           formart: v => this.dict.getLabel('residentType', v) |           format: v => this.dict.getLabel('residentType', v) | ||||||
|         }, |         }, | ||||||
|         { |         { | ||||||
|           prop: 'name', |           prop: 'name', | ||||||
|   | |||||||
| @@ -128,10 +128,10 @@ | |||||||
|               return h('span', {}, this.getIdInfo(row.idNumber, 3)) |               return h('span', {}, this.getIdInfo(row.idNumber, 3)) | ||||||
|             } |             } | ||||||
|           }, |           }, | ||||||
|           { prop: 'sex', align: 'center', label: '性别', formart: v => v === '1' ? '男' : '女' }, |           { prop: 'sex', align: 'center', label: '性别', format: v => v === '1' ? '男' : '女' }, | ||||||
|           { prop: 'phone', align: 'center', label: '联系方式' }, |           { prop: 'phone', align: 'center', label: '联系方式' }, | ||||||
|           { prop: 'areaName', align: 'center', label: '所属地区' }, |           { prop: 'areaName', align: 'center', label: '所属地区' }, | ||||||
|           { prop: 'type', align: 'center', label: '预警类型', formart: v => this.dict.getLabel('intelligentGuardianshipItem3', v) }, |           { prop: 'type', align: 'center', label: '预警类型', format: v => this.dict.getLabel('intelligentGuardianshipItem3', v) }, | ||||||
|           { prop: 'itemValue', align: 'center', label: '预警值' }, |           { prop: 'itemValue', align: 'center', label: '预警值' }, | ||||||
|           { prop: 'gpsDesc', align: 'center', width: 150, label: '预警地点' }, |           { prop: 'gpsDesc', align: 'center', width: 150, label: '预警地点' }, | ||||||
|           { prop: 'createTime', align: 'center', label: '预警时间' } |           { prop: 'createTime', align: 'center', label: '预警时间' } | ||||||
|   | |||||||
| @@ -86,7 +86,7 @@ | |||||||
|               return h('span', {}, this.getIdInfo(row.idNumber, 3)) |               return h('span', {}, this.getIdInfo(row.idNumber, 3)) | ||||||
|             } |             } | ||||||
|           }, |           }, | ||||||
|           { prop: 'sex', align: 'center', label: '性别', formart: v => v === '1' ? '男' : '女' }, |           { prop: 'sex', align: 'center', label: '性别', format: v => v === '1' ? '男' : '女' }, | ||||||
|           { prop: 'phone', align: 'center', label: '联系方式' }, |           { prop: 'phone', align: 'center', label: '联系方式' }, | ||||||
|           { prop: 'areaName', align: 'center', label: '所属地区' }, |           { prop: 'areaName', align: 'center', label: '所属地区' }, | ||||||
|           { prop: 'type', align: 'center', label: '预警类型' }, |           { prop: 'type', align: 'center', label: '预警类型' }, | ||||||
|   | |||||||
| @@ -120,11 +120,11 @@ | |||||||
|               return h('span', {}, this.getIdInfo(row.idNumber, 3)) |               return h('span', {}, this.getIdInfo(row.idNumber, 3)) | ||||||
|             } |             } | ||||||
|           }, |           }, | ||||||
|           { prop: 'sex', align: 'center', label: '性别', formart: v => v === '1' ? '男' : '女' }, |           { prop: 'sex', align: 'center', label: '性别', format: v => v === '1' ? '男' : '女' }, | ||||||
|           { prop: 'phone', align: 'center', label: '联系方式', width: 120 }, |           { prop: 'phone', align: 'center', label: '联系方式', width: 120 }, | ||||||
|           { prop: 'guardianCount', align: 'center', label: '监护人数' }, |           { prop: 'guardianCount', align: 'center', label: '监护人数' }, | ||||||
|           { prop: 'areaName', align: 'center', label: '所属地区' }, |           { prop: 'areaName', align: 'center', label: '所属地区' }, | ||||||
|           { prop: 'electricQuantity', align: 'center', label: '电量', formart: v => v ? `${v}%` : '-' }, |           { prop: 'electricQuantity', align: 'center', label: '电量', format: v => v ? `${v}%` : '-' }, | ||||||
|           { prop: 'lastUpdateTime', align: 'center', width: 150, label: '最后更新时间' }, |           { prop: 'lastUpdateTime', align: 'center', width: 150, label: '最后更新时间' }, | ||||||
|           { prop: 'temperature', align: 'center', label: '体温' }, |           { prop: 'temperature', align: 'center', label: '体温' }, | ||||||
|           { |           { | ||||||
|   | |||||||
| @@ -235,7 +235,7 @@ export default { | |||||||
|         {prop: 'departmentNames', label: '部门'}, |         {prop: 'departmentNames', label: '部门'}, | ||||||
|         {prop: 'mobile', label: '手机号'}, |         {prop: 'mobile', label: '手机号'}, | ||||||
|         {slot: 'tags', label: '标签'}, |         {slot: 'tags', label: '标签'}, | ||||||
|         {prop: 'status', label: '账号状态', align: 'center', formart: v => v == 1 ? '已激活' : '未激活'} |         {prop: 'status', label: '账号状态', align: 'center', format: v => v == 1 ? '已激活' : '未激活'} | ||||||
|       ], |       ], | ||||||
|       defaultProps: { |       defaultProps: { | ||||||
|         children: 'children', |         children: 'children', | ||||||
|   | |||||||
| @@ -111,7 +111,7 @@ | |||||||
|         colConfigs: [ |         colConfigs: [ | ||||||
|           { prop: 'name', label: '专题名称' }, |           { prop: 'name', label: '专题名称' }, | ||||||
|           { slot: 'img', align: 'center' }, |           { slot: 'img', align: 'center' }, | ||||||
|           { prop: 'type', align: 'center', label: '类型', formart: v => v === '0' ? '小程序' : '链接' }, |           { prop: 'type', align: 'center', label: '类型', format: v => v === '0' ? '小程序' : '链接' }, | ||||||
|           { prop: 'url', align: 'center', label: '链接' }, |           { prop: 'url', align: 'center', label: '链接' }, | ||||||
|           { prop: 'appId', align: 'center', label: '小程序appid' }, |           { prop: 'appId', align: 'center', label: '小程序appid' }, | ||||||
|           { prop: 'createTime', align: 'center', label: '创建时间' } |           { prop: 'createTime', align: 'center', label: '创建时间' } | ||||||
|   | |||||||
| @@ -187,7 +187,7 @@ export default { | |||||||
|       gridInfo: {}, |       gridInfo: {}, | ||||||
|       gridMemberColConfigs: [ |       gridMemberColConfigs: [ | ||||||
|         {prop: "name"}, |         {prop: "name"}, | ||||||
|         {prop: "checkType", formart: v => v === '1' ? '网格员' : '网格长'} |         {prop: "checkType", format: v => v === '1' ? '网格员' : '网格长'} | ||||||
|       ] |       ] | ||||||
|     }; |     }; | ||||||
|   }, |   }, | ||||||
|   | |||||||
| @@ -856,7 +856,7 @@ export default { | |||||||
|           prop: "starTime", |           prop: "starTime", | ||||||
|           label: "评定时间", |           label: "评定时间", | ||||||
|           align: "center", |           align: "center", | ||||||
|           formart: (v) => (v ? v.split(" ")[0] : "-"), |           format: (v) => (v ? v.split(" ")[0] : "-"), | ||||||
|         }, |         }, | ||||||
|         {slot: "level"}, |         {slot: "level"}, | ||||||
|       ], |       ], | ||||||
| @@ -870,7 +870,7 @@ export default { | |||||||
|           prop: "starTime", |           prop: "starTime", | ||||||
|           label: "时间", |           label: "时间", | ||||||
|           align: "center", |           align: "center", | ||||||
|           formart: (v) => (v ? v.split(" ")[0] : "-"), |           format: (v) => (v ? v.split(" ")[0] : "-"), | ||||||
|         }, |         }, | ||||||
|         {prop: "disciplinaryInfo", label: "违纪原因", align: "center"}, |         {prop: "disciplinaryInfo", label: "违纪原因", align: "center"}, | ||||||
|         {prop: "result", label: "处理结果", align: "center"}, |         {prop: "result", label: "处理结果", align: "center"}, | ||||||
|   | |||||||
| @@ -291,7 +291,7 @@ export default { | |||||||
|       activeName: '五星党员', |       activeName: '五星党员', | ||||||
|       textlist: ['一星党员', '二星党员', '三星党员', '四星党员', '五星党员'], |       textlist: ['一星党员', '二星党员', '三星党员', '四星党员', '五星党员'], | ||||||
|       colConfigs1: [ |       colConfigs1: [ | ||||||
|         {prop: 'starTime', label: '评定时间', align: 'center', formart: v => v ? v.split(' ')[0] : '-'}, |         {prop: 'starTime', label: '评定时间', align: 'center', format: v => v ? v.split(' ')[0] : '-'}, | ||||||
|         {slot: 'level'} |         {slot: 'level'} | ||||||
|       ], |       ], | ||||||
|       colConfigs2: [ |       colConfigs2: [ | ||||||
| @@ -300,7 +300,7 @@ export default { | |||||||
|         {prop: 'position', label: '职务', align: 'center'} |         {prop: 'position', label: '职务', align: 'center'} | ||||||
|       ], |       ], | ||||||
|       colConfigs3: [ |       colConfigs3: [ | ||||||
|         {prop: 'starTime', label: '时间', align: 'center', formart: v => v ? v.split(' ')[0] : '-'}, |         {prop: 'starTime', label: '时间', align: 'center', format: v => v ? v.split(' ')[0] : '-'}, | ||||||
|         {prop: 'disciplinaryInfo', label: '违纪原因', align: 'center'}, |         {prop: 'disciplinaryInfo', label: '违纪原因', align: 'center'}, | ||||||
|         {prop: 'result', label: '处理结果', align: 'center'} |         {prop: 'result', label: '处理结果', align: 'center'} | ||||||
|       ] |       ] | ||||||
|   | |||||||
| @@ -113,10 +113,10 @@ | |||||||
|         colConfigs: [ |         colConfigs: [ | ||||||
|           { prop: 'name', label: '申请人', align: 'left' }, |           { prop: 'name', label: '申请人', align: 'left' }, | ||||||
|           { prop: 'createTime', label: '申请时间', align: 'center' }, |           { prop: 'createTime', label: '申请时间', align: 'center' }, | ||||||
|           { prop: 'sex', label: '性别', align: 'center', formart: v => this.dict.getLabel('sex', v) }, |           { prop: 'sex', label: '性别', align: 'center', format: v => this.dict.getLabel('sex', v) }, | ||||||
|           { prop: 'idNumber', label: '身份证号', align: 'center', formart: v => v.substring(0, 10) + '****' + v.substring(14, 18) }, |           { prop: 'idNumber', label: '身份证号', align: 'center', format: v => v.substring(0, 10) + '****' + v.substring(14, 18) }, | ||||||
|           { prop: 'age', label: '年龄', align: 'center' }, |           { prop: 'age', label: '年龄', align: 'center' }, | ||||||
|           { prop: 'auditStatus', label: '审批结果', align: 'center', formart: v => this.dict.getLabel('auditStatus', v) }, |           { prop: 'auditStatus', label: '审批结果', align: 'center', format: v => this.dict.getLabel('auditStatus', v) }, | ||||||
|           { prop: 'auditUserName', label: '审批人', align: 'center' }, |           { prop: 'auditUserName', label: '审批人', align: 'center' }, | ||||||
|           { prop: 'auditTime', label: '审批时间', align: 'center' } |           { prop: 'auditTime', label: '审批时间', align: 'center' } | ||||||
|         ], |         ], | ||||||
|   | |||||||
| @@ -272,7 +272,7 @@ export default { | |||||||
|     voteConfigs() { |     voteConfigs() { | ||||||
|       return [ |       return [ | ||||||
|         {label: "人员姓名", prop: "userName", align: 'center'}, |         {label: "人员姓名", prop: "userName", align: 'center'}, | ||||||
|         {label: "投票选项", prop: "myVote", formart: v => v ? (v === '1' ? '同意' : '不同意') : '-' }, |         {label: "投票选项", prop: "myVote", format: v => v ? (v === '1' ? '同意' : '不同意') : '-' }, | ||||||
|         {label: "投票时间", prop: "voteTime"}, |         {label: "投票时间", prop: "voteTime"}, | ||||||
|       ] |       ] | ||||||
|     }, |     }, | ||||||
|   | |||||||
| @@ -99,7 +99,7 @@ | |||||||
|         colConfigs: [ |         colConfigs: [ | ||||||
|           { prop: 'title',  label: '标题', align: 'left', width: '200px' }, |           { prop: 'title',  label: '标题', align: 'left', width: '200px' }, | ||||||
|           { prop: 'areaName', label: '地区', align: 'left' }, |           { prop: 'areaName', label: '地区', align: 'left' }, | ||||||
|           { prop: 'examineStatus', label: '状态', align: 'center', formart: v => this.dict.getLabel('auditStatus', v) }, |           { prop: 'examineStatus', label: '状态', align: 'center', format: v => this.dict.getLabel('auditStatus', v) }, | ||||||
|           { prop: 'examineOpinion', label: '审核意见', align: 'center' }, |           { prop: 'examineOpinion', label: '审核意见', align: 'center' }, | ||||||
|           { prop: 'createUserName', label: '发布人', align: 'center' }, |           { prop: 'createUserName', label: '发布人', align: 'center' }, | ||||||
|           { prop: 'createTime', label: '发布时间', align: 'center' }, |           { prop: 'createTime', label: '发布时间', align: 'center' }, | ||||||
| @@ -166,7 +166,7 @@ | |||||||
|           } |           } | ||||||
|         }) |         }) | ||||||
|       }, |       }, | ||||||
|        |  | ||||||
|       audit (id) { |       audit (id) { | ||||||
|         this.id = id |         this.id = id | ||||||
|         this.isShow = true |         this.isShow = true | ||||||
|   | |||||||
| @@ -76,7 +76,7 @@ | |||||||
|         colConfigs: [ |         colConfigs: [ | ||||||
|           { prop: 'title',  label: '标题', align: 'left', width: '200px' }, |           { prop: 'title',  label: '标题', align: 'left', width: '200px' }, | ||||||
|           { prop: 'areaName', label: '地区', align: 'left' }, |           { prop: 'areaName', label: '地区', align: 'left' }, | ||||||
|           { prop: 'examineStatus', label: '状态', align: 'center', formart: v => this.dict.getLabel('auditStatus', v) }, |           { prop: 'examineStatus', label: '状态', align: 'center', format: v => this.dict.getLabel('auditStatus', v) }, | ||||||
|           { prop: 'examineOpinion', label: '审核意见', align: 'center' }, |           { prop: 'examineOpinion', label: '审核意见', align: 'center' }, | ||||||
|           { prop: 'viewCount', label: '浏览次数', align: 'center' }, |           { prop: 'viewCount', label: '浏览次数', align: 'center' }, | ||||||
|           { prop: 'createUserName', label: '发布人', align: 'center' }, |           { prop: 'createUserName', label: '发布人', align: 'center' }, | ||||||
|   | |||||||
| @@ -152,7 +152,7 @@ | |||||||
|           { type: 'selection', align: 'center'}, |           { type: 'selection', align: 'center'}, | ||||||
|           { prop: 'title',  label: this.activeName == 'ruralProdect' ? '产品名称' : '标题', align: 'left', width: '200px' }, |           { prop: 'title',  label: this.activeName == 'ruralProdect' ? '产品名称' : '标题', align: 'left', width: '200px' }, | ||||||
|           { prop: 'areaName', label: '地区', align: 'center' }, |           { prop: 'areaName', label: '地区', align: 'center' }, | ||||||
|           { prop: 'status', label: '发布状态', align: 'center', formart: v => v === '1' ? '已发布' : '未发布' }, |           { prop: 'status', label: '发布状态', align: 'center', format: v => v === '1' ? '已发布' : '未发布' }, | ||||||
|           { prop: 'createDate', label: '发布时间', align: 'center' }, |           { prop: 'createDate', label: '发布时间', align: 'center' }, | ||||||
|           { prop: 'createUnitName', label: '发布单位', align: 'center' }, |           { prop: 'createUnitName', label: '发布单位', align: 'center' }, | ||||||
|           { prop: 'createUserName', label: '发布人', align: 'center' }, |           { prop: 'createUserName', label: '发布人', align: 'center' }, | ||||||
|   | |||||||
| @@ -71,7 +71,7 @@ | |||||||
|         return [ |         return [ | ||||||
|           { type: 'selection' }, |           { type: 'selection' }, | ||||||
|           { prop: 'title', label: '标题' }, |           { prop: 'title', label: '标题' }, | ||||||
|           { prop: 'type', align: 'center', label: '类型', formart: v => this.dict.getLabel('agriculturalType', v) }, |           { prop: 'type', align: 'center', label: '类型', format: v => this.dict.getLabel('agriculturalType', v) }, | ||||||
|           { prop: 'phone', align: 'center', label: '联系电话' }, |           { prop: 'phone', align: 'center', label: '联系电话' }, | ||||||
|           { prop: 'contactPerson', align: 'center', label: '发布人' }, |           { prop: 'contactPerson', align: 'center', label: '发布人' }, | ||||||
|           { prop: 'createTime', align: 'center', label: '发布时间' } |           { prop: 'createTime', align: 'center', label: '发布时间' } | ||||||
|   | |||||||
| @@ -81,9 +81,9 @@ | |||||||
|       ...mapState(['user']), |       ...mapState(['user']), | ||||||
|       colConfigs() { |       colConfigs() { | ||||||
|         return [ |         return [ | ||||||
|           { prop: 'type', label: '类型', formart: v => this.dict.getLabel('villInfoType', v) }, |           { prop: 'type', label: '类型', format: v => this.dict.getLabel('villInfoType', v) }, | ||||||
|           { prop: 'title', label: '标题', align: 'left' }, |           { prop: 'title', label: '标题', align: 'left' }, | ||||||
|           { prop: 'status', label: '发布状态', align: 'center', formart: v => this.dict.getLabel('villInfoStatus', v) }, |           { prop: 'status', label: '发布状态', align: 'center', format: v => this.dict.getLabel('villInfoStatus', v) }, | ||||||
|           { prop: 'createDate', label: '发布时间', dateFormat: 'YYYY-MM-DD', align: 'center' }, |           { prop: 'createDate', label: '发布时间', dateFormat: 'YYYY-MM-DD', align: 'center' }, | ||||||
|           { prop: 'createUser', label: '发布人', align: 'center' }, |           { prop: 'createUser', label: '发布人', align: 'center' }, | ||||||
|           { prop: 'areaName', label: '来源地区', align: 'center' }, |           { prop: 'areaName', label: '来源地区', align: 'center' }, | ||||||
|   | |||||||
| @@ -74,7 +74,7 @@ | |||||||
|         colConfigs: [ |         colConfigs: [ | ||||||
|           { prop: 'title',  label: '标题', align: 'left', width: '200px' }, |           { prop: 'title',  label: '标题', align: 'left', width: '200px' }, | ||||||
|           { prop: 'areaName', label: '地区', align: 'center' }, |           { prop: 'areaName', label: '地区', align: 'center' }, | ||||||
|           { prop: 'status', label: '发布状态', align: 'center', formart: v => v === '1' ? '已发布' : '未发布' }, |           { prop: 'status', label: '发布状态', align: 'center', format: v => v === '1' ? '已发布' : '未发布' }, | ||||||
|           { prop: 'createUserName', label: '发布人', align: 'center' }, |           { prop: 'createUserName', label: '发布人', align: 'center' }, | ||||||
|           { prop: 'createDate', label: '发布时间', align: 'center' }, |           { prop: 'createDate', label: '发布时间', align: 'center' }, | ||||||
|           { slot: 'options', label: '操作', align: 'center' } |           { slot: 'options', label: '操作', align: 'center' } | ||||||
|   | |||||||
| @@ -76,7 +76,7 @@ export default { | |||||||
|       colConfigs: [ |       colConfigs: [ | ||||||
|         {prop: 'title', label: '标题', align: 'left', width: '200px'}, |         {prop: 'title', label: '标题', align: 'left', width: '200px'}, | ||||||
|         {prop: 'areaName', label: '地区', align: 'center'}, |         {prop: 'areaName', label: '地区', align: 'center'}, | ||||||
|         {prop: 'status', label: '发布状态', align: 'center', formart: v => v === '1' ? '已发布' : '未发布'}, |         {prop: 'status', label: '发布状态', align: 'center', format: v => v === '1' ? '已发布' : '未发布'}, | ||||||
|         {prop: 'createUserName', label: '发布人', align: 'center'}, |         {prop: 'createUserName', label: '发布人', align: 'center'}, | ||||||
|         {prop: 'createDate', label: '发布时间', align: 'center'}, |         {prop: 'createDate', label: '发布时间', align: 'center'}, | ||||||
|         {slot: 'options', label: '操作', align: 'center'} |         {slot: 'options', label: '操作', align: 'center'} | ||||||
|   | |||||||
| @@ -249,7 +249,7 @@ export default { | |||||||
|           label: '微信类型', |           label: '微信类型', | ||||||
|           align: 'center', |           align: 'center', | ||||||
|           width: '100px', |           width: '100px', | ||||||
|           formart: v => this.dict.getLabel('wxUserType', v) |           format: v => this.dict.getLabel('wxUserType', v) | ||||||
|         }, |         }, | ||||||
|         {prop: 'wxUserNames', label: '所属员工', align: 'center', width: '100px'}, |         {prop: 'wxUserNames', label: '所属员工', align: 'center', width: '100px'}, | ||||||
|         {slot: 'tags', label: '标签', align: 'center', width: '268px'}, |         {slot: 'tags', label: '标签', align: 'center', width: '268px'}, | ||||||
|   | |||||||
| @@ -84,7 +84,7 @@ | |||||||
|           { prop: 'povertyNumber', label: '监测家庭数量', align: 'center' }, |           { prop: 'povertyNumber', label: '监测家庭数量', align: 'center' }, | ||||||
|           { prop: 'logNumber', label: '开展走访次数', align: 'center' }, |           { prop: 'logNumber', label: '开展走访次数', align: 'center' }, | ||||||
|           // { prop: 'povertyHouseholdNumber', label: '已走访家庭数量', align: 'center' }, |           // { prop: 'povertyHouseholdNumber', label: '已走访家庭数量', align: 'center' }, | ||||||
|           { prop: 'finishRate', label: '走访进度', align: 'center', formart: v => (v * 100).toFixed(1) + '%' } |           { prop: 'finishRate', label: '走访进度', align: 'center', format: v => (v * 100).toFixed(1) + '%' } | ||||||
|         ] |         ] | ||||||
|       } |       } | ||||||
|     }, |     }, | ||||||
|   | |||||||
| @@ -182,11 +182,11 @@ | |||||||
|       colConfigs () { |       colConfigs () { | ||||||
|         return [ |         return [ | ||||||
|           { prop: 'name', label: '户主姓名', align: 'left' }, |           { prop: 'name', label: '户主姓名', align: 'left' }, | ||||||
|           { prop: 'sex', label: '性别', align: 'center', formart: v => this.dict.getLabel('sex', v) }, |           { prop: 'sex', label: '性别', align: 'center', format: v => this.dict.getLabel('sex', v) }, | ||||||
|           { prop: 'idNumber', label: '身份证号', align: 'center' }, |           { prop: 'idNumber', label: '身份证号', align: 'center' }, | ||||||
|           { prop: 'householdPhone', label: '户主联系方式', align: 'center' }, |           { prop: 'householdPhone', label: '户主联系方式', align: 'center' }, | ||||||
|           { prop: 'address', label: '家庭住址', align: 'center' }, |           { prop: 'address', label: '家庭住址', align: 'center' }, | ||||||
|           { prop: 'status', label: '状态', align: 'center', formart: v => this.dict.getLabel('fpPrtpStatus', v) }, |           { prop: 'status', label: '状态', align: 'center', format: v => this.dict.getLabel('fpPrtpStatus', v) }, | ||||||
|           { prop: 'girdMemberName', label: '网格员', align: 'center' }, |           { prop: 'girdMemberName', label: '网格员', align: 'center' }, | ||||||
|           { prop: 'girdMemberPhone', label: '网格员电话', align: 'center' }, |           { prop: 'girdMemberPhone', label: '网格员电话', align: 'center' }, | ||||||
|           { prop: 'visitCount', label: '走访次数', align: 'center' } |           { prop: 'visitCount', label: '走访次数', align: 'center' } | ||||||
|   | |||||||
| @@ -201,7 +201,7 @@ export default { | |||||||
|         { |         { | ||||||
|           slot: 'joinStatus', |           slot: 'joinStatus', | ||||||
|         }, |         }, | ||||||
|         {prop: 'signInStatus', align: 'center', label: '签到', formart: v => v === '1' ? '已签到' : '未签到'}, |         {prop: 'signInStatus', align: 'center', label: '签到', format: v => v === '1' ? '已签到' : '未签到'}, | ||||||
|         { |         { | ||||||
|           slot: 'option', |           slot: 'option', | ||||||
|         } |         } | ||||||
|   | |||||||
| @@ -143,7 +143,7 @@ export default { | |||||||
|           label: "公文类型", |           label: "公文类型", | ||||||
|           width: 120, |           width: 120, | ||||||
|           align: "center", |           align: "center", | ||||||
|           formart: (documentType) => |           format: (documentType) => | ||||||
|               this.$dict.getLabel("officialDocumentName", documentType), |               this.$dict.getLabel("officialDocumentName", documentType), | ||||||
|         }, |         }, | ||||||
|         { |         { | ||||||
| @@ -151,7 +151,7 @@ export default { | |||||||
|           label: "阅示类型", |           label: "阅示类型", | ||||||
|           width: 120, |           width: 120, | ||||||
|           align: "center", |           align: "center", | ||||||
|           formart: (readType) => |           format: (readType) => | ||||||
|               this.$dict.getLabel("officialDocumentReadType", readType), |               this.$dict.getLabel("officialDocumentReadType", readType), | ||||||
|         }, |         }, | ||||||
|         { |         { | ||||||
| @@ -159,7 +159,7 @@ export default { | |||||||
|           label: "保密等级", |           label: "保密等级", | ||||||
|           width: 120, |           width: 120, | ||||||
|           align: "center", |           align: "center", | ||||||
|           formart: (confidentialityLevel) => |           format: (confidentialityLevel) => | ||||||
|               this.$dict.getLabel("officialDocumentConfidentialityLevel", confidentialityLevel), |               this.$dict.getLabel("officialDocumentConfidentialityLevel", confidentialityLevel), | ||||||
|         }, |         }, | ||||||
|         { |         { | ||||||
|   | |||||||
| @@ -123,7 +123,7 @@ export default { | |||||||
|           label: "申报方式", |           label: "申报方式", | ||||||
|           width: 120, |           width: 120, | ||||||
|           align: "center", |           align: "center", | ||||||
|           formart: (declareType) => |           format: (declareType) => | ||||||
|               this.$dict.getLabel("helpDeclarationType", declareType), |               this.$dict.getLabel("helpDeclarationType", declareType), | ||||||
|         }, |         }, | ||||||
|         { |         { | ||||||
|   | |||||||
| @@ -91,7 +91,7 @@ | |||||||
|           { type: 'selection' }, |           { type: 'selection' }, | ||||||
|           {prop: 'name', label: '姓名', align: 'left'}, |           {prop: 'name', label: '姓名', align: 'left'}, | ||||||
|           {prop: 'phone', label: '联系方式', align: 'center' }, |           {prop: 'phone', label: '联系方式', align: 'center' }, | ||||||
|           {prop: 'riskType', label: '风险类型', align: 'center', formart: v => this.dict.getLabel('fpRiskType', v) }, |           {prop: 'riskType', label: '风险类型', align: 'center', format: v => this.dict.getLabel('fpRiskType', v) }, | ||||||
|           {prop: 'areaName', label: '所属区域', align: 'center' }, |           {prop: 'areaName', label: '所属区域', align: 'center' }, | ||||||
|           {prop: 'remarks', label: '备注说明', align: 'center' }, |           {prop: 'remarks', label: '备注说明', align: 'center' }, | ||||||
|           {prop: 'createTime', label: '操作时间', align: 'center'}, |           {prop: 'createTime', label: '操作时间', align: 'center'}, | ||||||
|   | |||||||
| @@ -89,10 +89,10 @@ | |||||||
|           { type: 'selection' }, |           { type: 'selection' }, | ||||||
|           { prop: 'name', label: '姓名', align: 'left'}, |           { prop: 'name', label: '姓名', align: 'left'}, | ||||||
|           { prop: 'phone', label: '联系方式', align: 'center' }, |           { prop: 'phone', label: '联系方式', align: 'center' }, | ||||||
|           { prop: 'riskType', label: '风险类型', align: 'center', formart: v => this.dict.getLabel('fpRiskType', v) }, |           { prop: 'riskType', label: '风险类型', align: 'center', format: v => this.dict.getLabel('fpRiskType', v) }, | ||||||
|           { prop: 'areaName', label: '所属区域', align: 'center' }, |           { prop: 'areaName', label: '所属区域', align: 'center' }, | ||||||
|           { prop: 'remarks', label: '备注说明', align: 'center' }, |           { prop: 'remarks', label: '备注说明', align: 'center' }, | ||||||
|           { prop: 'status', label: '状态', align: 'center', formart: v => this.dict.getLabel('fpRiskPersonStatus', v) }, |           { prop: 'status', label: '状态', align: 'center', format: v => this.dict.getLabel('fpRiskPersonStatus', v) }, | ||||||
|           { prop: 'createTime', label: '处理时间', align: 'center' }, |           { prop: 'createTime', label: '处理时间', align: 'center' }, | ||||||
|           { prop: 'createUserName', label: '处理人', align: 'center' } |           { prop: 'createUserName', label: '处理人', align: 'center' } | ||||||
|         ] |         ] | ||||||
|   | |||||||
| @@ -80,7 +80,7 @@ | |||||||
|           { prop: 'visitTime', align: 'center', label: '走访时间' }, |           { prop: 'visitTime', align: 'center', label: '走访时间' }, | ||||||
|           { prop: 'name', align: 'center', label: '慰问对象' }, |           { prop: 'name', align: 'center', label: '慰问对象' }, | ||||||
|           { prop: 'menuLevel3Name', align: 'center', label: '对象类型' }, |           { prop: 'menuLevel3Name', align: 'center', label: '对象类型' }, | ||||||
|           { prop: 'reality', align: 'center', label: '现实状态', formart: v => v ? this.dict.getLabel('visitCondolenceReality', v) : '-' }, |           { prop: 'reality', align: 'center', label: '现实状态', format: v => v ? this.dict.getLabel('visitCondolenceReality', v) : '-' }, | ||||||
|           { prop: 'createUserName', align: 'center', label: '走访人' } |           { prop: 'createUserName', align: 'center', label: '走访人' } | ||||||
|         ], |         ], | ||||||
|         tableData: [], |         tableData: [], | ||||||
|   | |||||||
| @@ -152,7 +152,7 @@ | |||||||
|               }, this.dict.getLabel('mstStatus', row.status)) |               }, this.dict.getLabel('mstStatus', row.status)) | ||||||
|             } |             } | ||||||
|           }, |           }, | ||||||
|           { prop: 'completionRate', label: '任务完成率', align: 'center', formart: v => v ? v === '0.0' ? '0%' : `${v}%` : '-' } |           { prop: 'completionRate', label: '任务完成率', align: 'center', format: v => v ? v === '0.0' ? '0%' : `${v}%` : '-' } | ||||||
|         ] |         ] | ||||||
|       } |       } | ||||||
|     }, |     }, | ||||||
|   | |||||||
| @@ -128,7 +128,7 @@ | |||||||
|               }, this.dict.getLabel('mstStatus', row.status)) |               }, this.dict.getLabel('mstStatus', row.status)) | ||||||
|             } |             } | ||||||
|           }, |           }, | ||||||
|           { prop: 'completionRate', label: '任务完成率', align: 'center', formart: v => v ? v === '0.0' ? '0%' : `${v}%` : '-' } |           { prop: 'completionRate', label: '任务完成率', align: 'center', format: v => v ? v === '0.0' ? '0%' : `${v}%` : '-' } | ||||||
|         ] |         ] | ||||||
|       } |       } | ||||||
|     }, |     }, | ||||||
|   | |||||||
| @@ -127,7 +127,7 @@ | |||||||
|               }, this.dict.getLabel('mstStatus', row.status)) |               }, this.dict.getLabel('mstStatus', row.status)) | ||||||
|             } |             } | ||||||
|           }, |           }, | ||||||
|           { prop: 'completionRate', label: '任务完成率', align: 'center', formart: v => v ? v === '0.0' ? '0%' : `${v}%` : '-' } |           { prop: 'completionRate', label: '任务完成率', align: 'center', format: v => v ? v === '0.0' ? '0%' : `${v}%` : '-' } | ||||||
|         ] |         ] | ||||||
|       } |       } | ||||||
|     }, |     }, | ||||||
|   | |||||||
| @@ -103,7 +103,7 @@ | |||||||
|             } |             } | ||||||
|           }, |           }, | ||||||
|           { slot: 'type' }, |           { slot: 'type' }, | ||||||
|           { prop: 'users', label: '使用成员', align: 'left', formart: v => v.join(';') }, |           { prop: 'users', label: '使用成员', align: 'left', format: v => v.join(';') }, | ||||||
|           { prop: 'createUser', label: '创建人' }, |           { prop: 'createUser', label: '创建人' }, | ||||||
|           { prop: 'createTime', label: '编辑时间' }, |           { prop: 'createTime', label: '编辑时间' }, | ||||||
|           { slot: 'options', label: '操作' } |           { slot: 'options', label: '操作' } | ||||||
|   | |||||||
| @@ -77,11 +77,11 @@ export default { | |||||||
|         file: "附件" |         file: "附件" | ||||||
|       } |       } | ||||||
|       return [ |       return [ | ||||||
|         // { prop: "fileList", label: '消息类型', align: "center", width: "250px", formart: v => v?.map(e=> conType[e.contentType]).toString() }, |         // { prop: "fileList", label: '消息类型', align: "center", width: "250px", format: v => v?.map(e=> conType[e.contentType]).toString() }, | ||||||
|         { prop: "fileList", label: '消息内容', align: "center", width: "250px", formart: v => v?.filter(e=> e.contentType == 'text')[0].content }, |         { prop: "fileList", label: '消息内容', align: "center", width: "250px", format: v => v?.filter(e=> e.contentType == 'text')[0].content }, | ||||||
|         // { prop: "fileList", label: '消息内容', align: "center", width: "250px", formart: v => v?.filter(e => e.contentType == 'text')[0].content}, |         // { prop: "fileList", label: '消息内容', align: "center", width: "250px", format: v => v?.filter(e => e.contentType == 'text')[0].content}, | ||||||
|         // { slot: 'type' }, |         // { slot: 'type' }, | ||||||
|         { prop: "messageSource", label: '消息类型', align: "center", formart: v => v==1? '居民': '居民群'}, |         { prop: "messageSource", label: '消息类型', align: "center", format: v => v==1? '居民': '居民群'}, | ||||||
|         { prop: "createTime", label: '创建时间', align: "center", width: "250px"}, |         { prop: "createTime", label: '创建时间', align: "center", width: "250px"}, | ||||||
|         { prop: "userName", label: '创建人', align: "center", width: "250px", }, |         { prop: "userName", label: '创建人', align: "center", width: "250px", }, | ||||||
|         { slot: "options" ,}, |         { slot: "options" ,}, | ||||||
|   | |||||||
| @@ -132,7 +132,7 @@ | |||||||
|         logList: [], |         logList: [], | ||||||
|         colConfigs: [ |         colConfigs: [ | ||||||
|           {slot: 'userinfo'}, |           {slot: 'userinfo'}, | ||||||
|           {prop: 'addWay', label: '客户来源', align: 'center', formart: v => this.dict.getLabel('wxCustomerAddWay', v)}, |           {prop: 'addWay', label: '客户来源', align: 'center', format: v => this.dict.getLabel('wxCustomerAddWay', v)}, | ||||||
|           {prop: 'createTime', label: '添加时间', align: 'center'} |           {prop: 'createTime', label: '添加时间', align: 'center'} | ||||||
|         ], |         ], | ||||||
|         groupColConfigs: [ |         groupColConfigs: [ | ||||||
|   | |||||||
| @@ -157,7 +157,7 @@ | |||||||
|           { slot: 'userinfo' }, |           { slot: 'userinfo' }, | ||||||
|           { prop: 'realName', label: '真实姓名', align: 'center' }, |           { prop: 'realName', label: '真实姓名', align: 'center' }, | ||||||
|           { |           { | ||||||
|             prop: 'identityNumber', label: '是否实名', align: 'center',  |             prop: 'identityNumber', label: '是否实名', align: 'center', | ||||||
|             render: (h, params) => { |             render: (h, params) => { | ||||||
|               return h('span', { |               return h('span', { | ||||||
|               }, params.row.realName ? '是' : '否') |               }, params.row.realName ? '是' : '否') | ||||||
| @@ -166,7 +166,7 @@ | |||||||
|           { prop: 'wxUserNames', label: '所属员工', align: 'center' }, |           { prop: 'wxUserNames', label: '所属员工', align: 'center' }, | ||||||
|           { slot: 'tags' }, |           { slot: 'tags' }, | ||||||
|           { prop: 'createTime', label: '添加时间', align: 'left' }, |           { prop: 'createTime', label: '添加时间', align: 'left' }, | ||||||
|           { prop: 'addWay', label: '添加渠道', align: 'center', formart: v => this.dict.getLabel('wxCustomerAddWay', v) }, |           { prop: 'addWay', label: '添加渠道', align: 'center', format: v => this.dict.getLabel('wxCustomerAddWay', v) }, | ||||||
|           { slot: 'options', label: '操作', align: 'center' } |           { slot: 'options', label: '操作', align: 'center' } | ||||||
|         ], |         ], | ||||||
|         tableData: [], |         tableData: [], | ||||||
| @@ -223,7 +223,7 @@ | |||||||
|  |  | ||||||
|           this.btnLoading = false |           this.btnLoading = false | ||||||
|         }).catch(() => { |         }).catch(() => { | ||||||
|            |  | ||||||
|           this.btnLoading = false |           this.btnLoading = false | ||||||
|         }) |         }) | ||||||
|       }, |       }, | ||||||
| @@ -260,7 +260,7 @@ | |||||||
|             this.isLoading = false |             this.isLoading = false | ||||||
|           } |           } | ||||||
|         }).catch(() => { |         }).catch(() => { | ||||||
|           this.isLoading = false   |           this.isLoading = false | ||||||
|         }) |         }) | ||||||
|       }, |       }, | ||||||
|  |  | ||||||
|   | |||||||
| @@ -109,7 +109,7 @@ | |||||||
|         total: 10, |         total: 10, | ||||||
|         colConfigs: [ |         colConfigs: [ | ||||||
|           {prop: 'codeName', label: '名称', align: 'left'}, |           {prop: 'codeName', label: '名称', align: 'left'}, | ||||||
|           {prop: 'type', label: '二维码类型', align: 'left', formart: v => v === '0' ? '群二维码' : '个人二维码'}, |           {prop: 'type', label: '二维码类型', align: 'left', format: v => v === '0' ? '群二维码' : '个人二维码'}, | ||||||
|           {prop: 'createUserName', label: '创建人'}, |           {prop: 'createUserName', label: '创建人'}, | ||||||
|           {prop: 'createTime', label: '创建时间'}, |           {prop: 'createTime', label: '创建时间'}, | ||||||
|           {slot: 'options', label: '操作'} |           {slot: 'options', label: '操作'} | ||||||
|   | |||||||
| @@ -157,12 +157,12 @@ | |||||||
|         total: 0, |         total: 0, | ||||||
|         colConfigs: [ |         colConfigs: [ | ||||||
|           { prop: 'fileName', label: '名称' }, |           { prop: 'fileName', label: '名称' }, | ||||||
|           { prop: 'ctime', label: '文件创建时间', formart: v => v ? this.$moment(v * 1000).format('YYYY-MM-DD HH:mm:ss') : '-' }, |           { prop: 'ctime', label: '文件创建时间', format: v => v ? this.$moment(v * 1000).format('YYYY-MM-DD HH:mm:ss') : '-' }, | ||||||
|           // { prop: 'departmentNames', label: '创建人' } |           // { prop: 'departmentNames', label: '创建人' } | ||||||
|         ], |         ], | ||||||
|         authColConfigs: [ |         authColConfigs: [ | ||||||
|           { prop: 'name', label: '姓名' }, |           { prop: 'name', label: '姓名' }, | ||||||
|           { prop: 'auth', label: '权限', align: 'center', formart: v => v === 7 ? '管理员' : '成员' } |           { prop: 'auth', label: '权限', align: 'center', format: v => v === 7 ? '管理员' : '成员' } | ||||||
|         ], |         ], | ||||||
|         defaultProps: { |         defaultProps: { | ||||||
|           children: 'children', |           children: 'children', | ||||||
|   | |||||||
| @@ -128,7 +128,7 @@ | |||||||
|               }, this.dict.getLabel('mstStatus', row.status)) |               }, this.dict.getLabel('mstStatus', row.status)) | ||||||
|             } |             } | ||||||
|           }, |           }, | ||||||
|           { prop: 'completionRate', label: '任务完成率', align: 'center', formart: v => v ? v === '0.0' ? '0%' : `${v}%` : '-' } |           { prop: 'completionRate', label: '任务完成率', align: 'center', format: v => v ? v === '0.0' ? '0%' : `${v}%` : '-' } | ||||||
|         ] |         ] | ||||||
|       } |       } | ||||||
|     }, |     }, | ||||||
|   | |||||||
| @@ -106,7 +106,7 @@ export default { | |||||||
|     ...mapState(['user']), |     ...mapState(['user']), | ||||||
|     colConfigs() { |     colConfigs() { | ||||||
|       return [ |       return [ | ||||||
|         {prop: 'type', label: '类型', formart: v => this.dict.getLabel('villInfoType', v)}, |         {prop: 'type', label: '类型', format: v => this.dict.getLabel('villInfoType', v)}, | ||||||
|         {prop: 'title', label: '标题', align: 'left'}, |         {prop: 'title', label: '标题', align: 'left'}, | ||||||
|         {prop: 'createDate', label: '创建时间', dateFormat: 'YYYY-MM-DD', align: 'center'}, |         {prop: 'createDate', label: '创建时间', dateFormat: 'YYYY-MM-DD', align: 'center'}, | ||||||
|         {prop: 'createUser', label: '发布人', align: 'center'}, |         {prop: 'createUser', label: '发布人', align: 'center'}, | ||||||
|   | |||||||
| @@ -109,7 +109,7 @@ | |||||||
|             prop: 'visibleRange', |             prop: 'visibleRange', | ||||||
|             align: 'center', |             align: 'center', | ||||||
|             label: '可见范围', |             label: '可见范围', | ||||||
|             formart: v => v === '0' ? '不限' : '指定网格' |             format: v => v === '0' ? '不限' : '指定网格' | ||||||
|           }, |           }, | ||||||
|           { |           { | ||||||
|             prop: 'launchTime', |             prop: 'launchTime', | ||||||
| @@ -120,7 +120,7 @@ | |||||||
|             prop: 'status', |             prop: 'status', | ||||||
|             align: 'center', |             align: 'center', | ||||||
|             label: '状态', |             label: '状态', | ||||||
|             formart: v => this.mapStatus(v) |             format: v => this.mapStatus(v) | ||||||
|           } |           } | ||||||
|         ], |         ], | ||||||
|         ids: [], |         ids: [], | ||||||
|   | |||||||
| @@ -104,7 +104,7 @@ | |||||||
|             prop: 'status', |             prop: 'status', | ||||||
|             align: 'center', |             align: 'center', | ||||||
|             label: '状态', |             label: '状态', | ||||||
|             formart: v => this.dict.getLabel('integralDeclareStatus', v) |             format: v => this.dict.getLabel('integralDeclareStatus', v) | ||||||
|           } |           } | ||||||
|         ], |         ], | ||||||
|         tableData: [], |         tableData: [], | ||||||
| @@ -160,7 +160,7 @@ | |||||||
|             this.getList() |             this.getList() | ||||||
|           } |           } | ||||||
|         }) |         }) | ||||||
|       }  |       } | ||||||
|     } |     } | ||||||
|   } |   } | ||||||
| </script> | </script> | ||||||
|   | |||||||
| @@ -182,7 +182,7 @@ export default { | |||||||
|         { |         { | ||||||
|           prop: "validRangeType", |           prop: "validRangeType", | ||||||
|           label: "有效范围", |           label: "有效范围", | ||||||
|           formart: (v) => (v == 0 ? "全局" : "指定网格"), |           format: (v) => (v == 0 ? "全局" : "指定网格"), | ||||||
|         }, |         }, | ||||||
|         { |         { | ||||||
|           prop: "status", |           prop: "status", | ||||||
|   | |||||||
| @@ -159,7 +159,7 @@ | |||||||
|             prop: 'orderStatus', |             prop: 'orderStatus', | ||||||
|             align: 'center', |             align: 'center', | ||||||
|             label: '状态', |             label: '状态', | ||||||
|             formart: v => this.dict.getLabel('merchandiseOrderStatus', v) |             format: v => this.dict.getLabel('merchandiseOrderStatus', v) | ||||||
|           } |           } | ||||||
|         ], |         ], | ||||||
|         ids: [], |         ids: [], | ||||||
|   | |||||||
| @@ -125,10 +125,10 @@ | |||||||
|             prop: 'riskLevel', |             prop: 'riskLevel', | ||||||
|             align: 'center', |             align: 'center', | ||||||
|             label: '风险等级', |             label: '风险等级', | ||||||
|             formart: v => this.dict.getLabel('EP_riskLevel', v) |             format: v => this.dict.getLabel('EP_riskLevel', v) | ||||||
|           }, |           }, | ||||||
|           { prop: 'gatewayName', align: 'center', label: '登记卡口' }, |           { prop: 'gatewayName', align: 'center', label: '登记卡口' }, | ||||||
|           { prop: 'handleType', align: 'center', label: '处理意见', formart: v => this.dict.getLabel('EP_handleType', v) } |           { prop: 'handleType', align: 'center', label: '处理意见', format: v => this.dict.getLabel('EP_handleType', v) } | ||||||
|         ], |         ], | ||||||
|         ids: [], |         ids: [], | ||||||
|         tableData: [], |         tableData: [], | ||||||
|   | |||||||
| @@ -76,7 +76,7 @@ export default { | |||||||
|       colConfigs: [ |       colConfigs: [ | ||||||
|         {prop: 'title', label: '标题', align: 'left', width: '200px'}, |         {prop: 'title', label: '标题', align: 'left', width: '200px'}, | ||||||
|         {prop: 'areaName', label: '地区', align: 'center'}, |         {prop: 'areaName', label: '地区', align: 'center'}, | ||||||
|         {prop: 'status', label: '发布状态', align: 'center', formart: v => v === '1' ? '已发布' : '未发布'}, |         {prop: 'status', label: '发布状态', align: 'center', format: v => v === '1' ? '已发布' : '未发布'}, | ||||||
|         {prop: 'createUserName', label: '发布人', align: 'center'}, |         {prop: 'createUserName', label: '发布人', align: 'center'}, | ||||||
|         {prop: 'createDate', label: '发布时间', align: 'center'}, |         {prop: 'createDate', label: '发布时间', align: 'center'}, | ||||||
|         {slot: 'options', label: '操作', align: 'center'} |         {slot: 'options', label: '操作', align: 'center'} | ||||||
|   | |||||||
| @@ -121,13 +121,13 @@ | |||||||
|           { prop: 'phone', label: '手机号', align: 'center' }, |           { prop: 'phone', label: '手机号', align: 'center' }, | ||||||
|           { prop: 'idNumber',  label: '身份证号', align: 'center' }, |           { prop: 'idNumber',  label: '身份证号', align: 'center' }, | ||||||
|           { prop: 'createTime', label: '抵平时间', align: 'center' }, |           { prop: 'createTime', label: '抵平时间', align: 'center' }, | ||||||
|           { prop: 'registerInfo', label: '抵平卡口', align: 'center', formart: v => v.gatewayName }, |           { prop: 'registerInfo', label: '抵平卡口', align: 'center', format: v => v.gatewayName }, | ||||||
|           { prop: 'registerInfo', label: '处置意见', align: 'center', formart: v => v.handleType !== '7' ? this.dict.getLabel('EP_handleType', v.handleType) : '-' }, |           { prop: 'registerInfo', label: '处置意见', align: 'center', format: v => v.handleType !== '7' ? this.dict.getLabel('EP_handleType', v.handleType) : '-' }, | ||||||
|           { prop: 'areaName',  label: '所属地区', align: 'center' }, |           { prop: 'areaName',  label: '所属地区', align: 'center' }, | ||||||
|           { prop: 'arriveAddress',  label: '目的地详址', align: 'center' }, |           { prop: 'arriveAddress',  label: '目的地详址', align: 'center' }, | ||||||
|           { prop: 'status', label: '管理状态', align: 'center', formart: v => this.dict.getLabel('EP_CM_status', v) }, |           { prop: 'status', label: '管理状态', align: 'center', format: v => this.dict.getLabel('EP_CM_status', v) }, | ||||||
|           { prop: 'controllerUserName',  label: '管控人', align: 'center' }, |           { prop: 'controllerUserName',  label: '管控人', align: 'center' }, | ||||||
|           { prop: 'nucleicAcidSamplingCount',  label: '核酸状态', align: 'center', formart: v => v > 0 ? `核酸采集${v}次` : '待采' } |           { prop: 'nucleicAcidSamplingCount',  label: '核酸状态', align: 'center', format: v => v > 0 ? `核酸采集${v}次` : '待采' } | ||||||
|         ], |         ], | ||||||
|         tableData: [] |         tableData: [] | ||||||
|       } |       } | ||||||
|   | |||||||
| @@ -115,13 +115,13 @@ | |||||||
|             prop: 'createTime', |             prop: 'createTime', | ||||||
|             align: 'center', |             align: 'center', | ||||||
|             label: '导入时间', |             label: '导入时间', | ||||||
|             formart: v => this.dict.getLabel('EP_riskStatus', v) |             format: v => this.dict.getLabel('EP_riskStatus', v) | ||||||
|           }, |           }, | ||||||
|           { |           { | ||||||
|             prop: 'status', |             prop: 'status', | ||||||
|             align: 'center', |             align: 'center', | ||||||
|             label: '数据状态', |             label: '数据状态', | ||||||
|             formart: v => this.dict.getLabel('EP_datacContrastStatis', v) |             format: v => this.dict.getLabel('EP_datacContrastStatis', v) | ||||||
|           } |           } | ||||||
|         ], |         ], | ||||||
|         tableData: [], |         tableData: [], | ||||||
|   | |||||||
| @@ -162,7 +162,7 @@ | |||||||
|               ) |               ) | ||||||
|             } |             } | ||||||
|           }, |           }, | ||||||
|           { prop: 'todayReport', align: 'center', label: '今日上报', formart: v => v ? '已上报' : '未上报' } |           { prop: 'todayReport', align: 'center', label: '今日上报', format: v => v ? '已上报' : '未上报' } | ||||||
|         ], |         ], | ||||||
|         tableData: [], |         tableData: [], | ||||||
|         total: 0, |         total: 0, | ||||||
|   | |||||||
| @@ -140,12 +140,12 @@ | |||||||
|           { prop: 'source', |           { prop: 'source', | ||||||
|             align: 'center', |             align: 'center', | ||||||
|             label: '数据来源', |             label: '数据来源', | ||||||
|             formart: v => this.dict.getLabel('EP_source', v) }, |             format: v => this.dict.getLabel('EP_source', v) }, | ||||||
|           { |           { | ||||||
|             prop: 'riskStatus', |             prop: 'riskStatus', | ||||||
|             align: 'center', |             align: 'center', | ||||||
|             label: '风险状态', |             label: '风险状态', | ||||||
|             formart: v => this.dict.getLabel('EP_riskStatus', v) |             format: v => this.dict.getLabel('EP_riskStatus', v) | ||||||
|           } |           } | ||||||
|         ], |         ], | ||||||
|         ids: [], |         ids: [], | ||||||
|   | |||||||
| @@ -856,7 +856,7 @@ export default { | |||||||
|           prop: "starTime", |           prop: "starTime", | ||||||
|           label: "评定时间", |           label: "评定时间", | ||||||
|           align: "center", |           align: "center", | ||||||
|           formart: (v) => (v ? v.split(" ")[0] : "-"), |           format: (v) => (v ? v.split(" ")[0] : "-"), | ||||||
|         }, |         }, | ||||||
|         {slot: "level"}, |         {slot: "level"}, | ||||||
|       ], |       ], | ||||||
| @@ -870,7 +870,7 @@ export default { | |||||||
|           prop: "starTime", |           prop: "starTime", | ||||||
|           label: "时间", |           label: "时间", | ||||||
|           align: "center", |           align: "center", | ||||||
|           formart: (v) => (v ? v.split(" ")[0] : "-"), |           format: (v) => (v ? v.split(" ")[0] : "-"), | ||||||
|         }, |         }, | ||||||
|         {prop: "disciplinaryInfo", label: "违纪原因", align: "center"}, |         {prop: "disciplinaryInfo", label: "违纪原因", align: "center"}, | ||||||
|         {prop: "result", label: "处理结果", align: "center"}, |         {prop: "result", label: "处理结果", align: "center"}, | ||||||
|   | |||||||
| @@ -306,7 +306,7 @@ export default { | |||||||
|       activeName: '五星党员', |       activeName: '五星党员', | ||||||
|       textlist: ['一星党员', '二星党员', '三星党员', '四星党员', '五星党员'], |       textlist: ['一星党员', '二星党员', '三星党员', '四星党员', '五星党员'], | ||||||
|       colConfigs1: [ |       colConfigs1: [ | ||||||
|         {prop: 'starTime', label: '评定时间', align: 'center', formart: v => v ? v.split(' ')[0] : '-'}, |         {prop: 'starTime', label: '评定时间', align: 'center', format: v => v ? v.split(' ')[0] : '-'}, | ||||||
|         {slot: 'level'} |         {slot: 'level'} | ||||||
|       ], |       ], | ||||||
|       colConfigs2: [ |       colConfigs2: [ | ||||||
| @@ -315,7 +315,7 @@ export default { | |||||||
|         {prop: 'position', label: '职务', align: 'center'} |         {prop: 'position', label: '职务', align: 'center'} | ||||||
|       ], |       ], | ||||||
|       colConfigs3: [ |       colConfigs3: [ | ||||||
|         {prop: 'starTime', label: '时间', align: 'center', formart: v => v ? v.split(' ')[0] : '-'}, |         {prop: 'starTime', label: '时间', align: 'center', format: v => v ? v.split(' ')[0] : '-'}, | ||||||
|         {prop: 'disciplinaryInfo', label: '违纪原因', align: 'center'}, |         {prop: 'disciplinaryInfo', label: '违纪原因', align: 'center'}, | ||||||
|         {prop: 'result', label: '处理结果', align: 'center'} |         {prop: 'result', label: '处理结果', align: 'center'} | ||||||
|       ] |       ] | ||||||
|   | |||||||
| @@ -85,7 +85,7 @@ | |||||||
|             { prop: 'town', label: '镇街', align: 'center' }, |             { prop: 'town', label: '镇街', align: 'center' }, | ||||||
|             { prop: 'village', label: '村社区', align: 'center' }, |             { prop: 'village', label: '村社区', align: 'center' }, | ||||||
|             { prop: 'address', label: '详细地址', align: 'center' }, |             { prop: 'address', label: '详细地址', align: 'center' }, | ||||||
|             { prop: 'level', label: '等级', align: 'center', formart: v => this.dict.getLabel('epidemicDangerousAreaLevel', v) }, |             { prop: 'level', label: '等级', align: 'center', format: v => this.dict.getLabel('epidemicDangerousAreaLevel', v) }, | ||||||
|             { prop: 'createTime', label: '设置时间', align: 'center' }, |             { prop: 'createTime', label: '设置时间', align: 'center' }, | ||||||
|             { prop: 'createUserName', label: '添加人', align: 'center' }, |             { prop: 'createUserName', label: '添加人', align: 'center' }, | ||||||
|             { slot: 'options', label: '操作', align: 'center' } |             { slot: 'options', label: '操作', align: 'center' } | ||||||
|   | |||||||
| @@ -88,7 +88,7 @@ export default { | |||||||
|         {prop: 'createTime', label: '上报时间', align: 'center'}, |         {prop: 'createTime', label: '上报时间', align: 'center'}, | ||||||
|         {prop: 'name', label: '上报居民', align: 'center'}, |         {prop: 'name', label: '上报居民', align: 'center'}, | ||||||
|         {prop: 'phone', label: '联系方式', align: 'center'}, |         {prop: 'phone', label: '联系方式', align: 'center'}, | ||||||
|         {prop: 'eventStatus', label: '处理状态', align: 'center', formart: v => this.dict.getLabel('clapEventStatus', v)}, |         {prop: 'eventStatus', label: '处理状态', align: 'center', format: v => this.dict.getLabel('clapEventStatus', v)}, | ||||||
|         {prop: 'processTime', label: '处理时长', align: 'center'}, |         {prop: 'processTime', label: '处理时长', align: 'center'}, | ||||||
|         {slot: 'options'} |         {slot: 'options'} | ||||||
|       ] |       ] | ||||||
|   | |||||||
| @@ -120,7 +120,7 @@ | |||||||
|               </el-form-item> |               </el-form-item> | ||||||
|               <el-form-item label="更新说明:" prop="remarks"> |               <el-form-item label="更新说明:" prop="remarks"> | ||||||
|                 <el-input type="textarea" :rows="4" maxlength="1000" show-word-limit placeholder="请输入..." v-model="processForm.remarks"></el-input> |                 <el-input type="textarea" :rows="4" maxlength="1000" show-word-limit placeholder="请输入..." v-model="processForm.remarks"></el-input> | ||||||
|               </el-form-item>   |               </el-form-item> | ||||||
|             </el-form> |             </el-form> | ||||||
|           </div> |           </div> | ||||||
|         </ai-dialog> |         </ai-dialog> | ||||||
| @@ -170,7 +170,7 @@ export default { | |||||||
|           label: "任务状态", |           label: "任务状态", | ||||||
|           width: 120, |           width: 120, | ||||||
|           align: "center", |           align: "center", | ||||||
|           formart: (status) => |           format: (status) => | ||||||
|             this.$dict.getLabel("workTaskStatus", status), |             this.$dict.getLabel("workTaskStatus", status), | ||||||
|         }, |         }, | ||||||
|         { slot: 'percent', label: '当前进度' }, |         { slot: 'percent', label: '当前进度' }, | ||||||
| @@ -196,7 +196,7 @@ export default { | |||||||
|           label: "执行状态", |           label: "执行状态", | ||||||
|           width: 120, |           width: 120, | ||||||
|           align: "center", |           align: "center", | ||||||
|           formart: (doStatus) => |           format: (doStatus) => | ||||||
|             this.$dict.getLabel("workTaskStatus", doStatus), |             this.$dict.getLabel("workTaskStatus", doStatus), | ||||||
|         }, |         }, | ||||||
|         { prop: "finishTime", label: "完成时间", align: "center" }, |         { prop: "finishTime", label: "完成时间", align: "center" }, | ||||||
| @@ -211,7 +211,7 @@ export default { | |||||||
|     this.dict.load('workTaskType', 'workTaskStatus', 'workTaskFinishStatus').then(() => { |     this.dict.load('workTaskType', 'workTaskStatus', 'workTaskFinishStatus').then(() => { | ||||||
|       this.getDetail() |       this.getDetail() | ||||||
|     }) |     }) | ||||||
|      |  | ||||||
|   }, |   }, | ||||||
|   methods: { |   methods: { | ||||||
|     getDetail() { |     getDetail() { | ||||||
|   | |||||||
| @@ -66,7 +66,7 @@ export default { | |||||||
|           label: "任务类型", |           label: "任务类型", | ||||||
|           width: 120, |           width: 120, | ||||||
|           align: "center", |           align: "center", | ||||||
|           formart: (type) => |           format: (type) => | ||||||
|               this.$dict.getLabel("workTaskType", type), |               this.$dict.getLabel("workTaskType", type), | ||||||
|         }, |         }, | ||||||
|         {prop: 'createTime', label: '创建日期', width: 120}, |         {prop: 'createTime', label: '创建日期', width: 120}, | ||||||
| @@ -76,7 +76,7 @@ export default { | |||||||
|           label: "任务状态", |           label: "任务状态", | ||||||
|           width: 120, |           width: 120, | ||||||
|           align: "center", |           align: "center", | ||||||
|           formart: (doStatus) => |           format: (doStatus) => | ||||||
|               this.$dict.getLabel("workTaskDoStatus", doStatus), |               this.$dict.getLabel("workTaskDoStatus", doStatus), | ||||||
|         }, |         }, | ||||||
|         {slot: 'percent', label: '当前进度', align: "center"}, |         {slot: 'percent', label: '当前进度', align: "center"}, | ||||||
|   | |||||||
| @@ -64,7 +64,7 @@ export default { | |||||||
|           label: "任务类型", |           label: "任务类型", | ||||||
|           width: 120, |           width: 120, | ||||||
|           align: "center", |           align: "center", | ||||||
|           formart: (type) => |           format: (type) => | ||||||
|             this.$dict.getLabel("workTaskType", type), |             this.$dict.getLabel("workTaskType", type), | ||||||
|         }, |         }, | ||||||
|         { prop: 'createTime', label: '创建日期', width: 120}, |         { prop: 'createTime', label: '创建日期', width: 120}, | ||||||
| @@ -74,7 +74,7 @@ export default { | |||||||
|           label: "任务状态", |           label: "任务状态", | ||||||
|           width: 120, |           width: 120, | ||||||
|           align: "center", |           align: "center", | ||||||
|           formart: (status) => |           format: (status) => | ||||||
|             this.$dict.getLabel("workTaskStatus", status), |             this.$dict.getLabel("workTaskStatus", status), | ||||||
|         }, |         }, | ||||||
|         { slot: 'percent', label: '当前进度',align: "center" }, |         { slot: 'percent', label: '当前进度',align: "center" }, | ||||||
|   | |||||||
| @@ -152,7 +152,7 @@ | |||||||
|               }, this.dict.getLabel('mstStatus', row.status)) |               }, this.dict.getLabel('mstStatus', row.status)) | ||||||
|             } |             } | ||||||
|           }, |           }, | ||||||
|           { prop: 'completionRate', label: '任务完成率', align: 'center', formart: v => v ? v === '0.0' ? '0%' : `${v}%` : '-' } |           { prop: 'completionRate', label: '任务完成率', align: 'center', format: v => v ? v === '0.0' ? '0%' : `${v}%` : '-' } | ||||||
|         ] |         ] | ||||||
|       } |       } | ||||||
|     }, |     }, | ||||||
|   | |||||||
| @@ -89,7 +89,7 @@ | |||||||
|           { prop: 'partyPhone', align: 'center', label: '联系电话' }, |           { prop: 'partyPhone', align: 'center', label: '联系电话' }, | ||||||
|           { prop: 'createTime', align: 'center', label: '申请时间' }, |           { prop: 'createTime', align: 'center', label: '申请时间' }, | ||||||
|           { prop: 'integralRuleName', align: 'center', label: '事件名称'}, |           { prop: 'integralRuleName', align: 'center', label: '事件名称'}, | ||||||
|           { prop: 'auditStatus', align: 'center', label: '状态', formart: v => v ? this.dict.getLabel('integralDeclareStatus', v) : '-' }, |           { prop: 'auditStatus', align: 'center', label: '状态', format: v => v ? this.dict.getLabel('integralDeclareStatus', v) : '-' }, | ||||||
|           { prop: 'auditUserName', align: 'center', label: '审批人' }, |           { prop: 'auditUserName', align: 'center', label: '审批人' }, | ||||||
|           { prop: 'auditTime', align: 'center', label: '审批时间' } |           { prop: 'auditTime', align: 'center', label: '审批时间' } | ||||||
|         ], |         ], | ||||||
|   | |||||||
| @@ -131,7 +131,7 @@ | |||||||
|               }, this.dict.getLabel('mstStatus', row.status)) |               }, this.dict.getLabel('mstStatus', row.status)) | ||||||
|             } |             } | ||||||
|           }, |           }, | ||||||
|           { prop: 'completionRate', label: '任务完成率', align: 'center', formart: v => v ? v === '0.0' ? '0%' : `${v}%` : '-' } |           { prop: 'completionRate', label: '任务完成率', align: 'center', format: v => v ? v === '0.0' ? '0%' : `${v}%` : '-' } | ||||||
|         ] |         ] | ||||||
|       } |       } | ||||||
|     }, |     }, | ||||||
|   | |||||||
| @@ -131,7 +131,7 @@ | |||||||
|               }, this.dict.getLabel('mstStatus', row.status)) |               }, this.dict.getLabel('mstStatus', row.status)) | ||||||
|             } |             } | ||||||
|           }, |           }, | ||||||
|           { prop: 'completionRate', label: '任务完成率', align: 'center', formart: v => v ? v === '0.0' ? '0%' : `${v}%` : '-' } |           { prop: 'completionRate', label: '任务完成率', align: 'center', format: v => v ? v === '0.0' ? '0%' : `${v}%` : '-' } | ||||||
|         ] |         ] | ||||||
|       } |       } | ||||||
|     }, |     }, | ||||||
|   | |||||||
| @@ -131,7 +131,7 @@ | |||||||
|               }, this.dict.getLabel('mstStatus', row.status)) |               }, this.dict.getLabel('mstStatus', row.status)) | ||||||
|             } |             } | ||||||
|           }, |           }, | ||||||
|           { prop: 'completionRate', label: '任务完成率', align: 'center', formart: v => v ? v === '0.0' ? '0%' : `${v}%` : '-' } |           { prop: 'completionRate', label: '任务完成率', align: 'center', format: v => v ? v === '0.0' ? '0%' : `${v}%` : '-' } | ||||||
|         ] |         ] | ||||||
|       } |       } | ||||||
|     }, |     }, | ||||||
|   | |||||||
| @@ -243,7 +243,7 @@ export default { | |||||||
|         // {prop: 'departmentNames', label: '部门'}, |         // {prop: 'departmentNames', label: '部门'}, | ||||||
|         {prop: 'mobile', label: '手机号'}, |         {prop: 'mobile', label: '手机号'}, | ||||||
|         {slot: 'tags', label: '标签'}, |         {slot: 'tags', label: '标签'}, | ||||||
|         {prop: 'status', label: '账号状态', align: 'center', formart: v => v === 1 ? '已激活' : '未激活'} |         {prop: 'status', label: '账号状态', align: 'center', format: v => v === 1 ? '已激活' : '未激活'} | ||||||
|       ], |       ], | ||||||
|       defaultProps: { |       defaultProps: { | ||||||
|         children: 'children', |         children: 'children', | ||||||
|   | |||||||
| @@ -223,7 +223,7 @@ | |||||||
|         colConfigs: [ |         colConfigs: [ | ||||||
|           {slot: 'userinfo'}, |           {slot: 'userinfo'}, | ||||||
|           {prop: 'commitTime', label: '提交时间', align: 'center', width: '160px' }, |           {prop: 'commitTime', label: '提交时间', align: 'center', width: '160px' }, | ||||||
|           {prop: 'userType', label: '微信类型', align: 'center', width: '100px', formart: v => this.dict.getLabel('wxUserType', v) }, |           {prop: 'userType', label: '微信类型', align: 'center', width: '100px', format: v => this.dict.getLabel('wxUserType', v) }, | ||||||
|           {prop: 'totalScore', label: '分值', align: 'center'} |           {prop: 'totalScore', label: '分值', align: 'center'} | ||||||
|         ] |         ] | ||||||
|       } |       } | ||||||
|   | |||||||
| @@ -131,7 +131,7 @@ | |||||||
|               }, this.dict.getLabel('mstStatus', row.status)) |               }, this.dict.getLabel('mstStatus', row.status)) | ||||||
|             } |             } | ||||||
|           }, |           }, | ||||||
|           { prop: 'completionRate', label: '任务完成率', align: 'center', formart: v => v ? v === '0.0' ? '0%' : `${v}%` : '-' } |           { prop: 'completionRate', label: '任务完成率', align: 'center', format: v => v ? v === '0.0' ? '0%' : `${v}%` : '-' } | ||||||
|         ] |         ] | ||||||
|       } |       } | ||||||
|     }, |     }, | ||||||
|   | |||||||
| @@ -76,7 +76,7 @@ | |||||||
|           { prop: 'content', label: '内容描述', width: '300px' }, |           { prop: 'content', label: '内容描述', width: '300px' }, | ||||||
|           { prop: 'groupName', label: '事件类型', align: 'center' }, |           { prop: 'groupName', label: '事件类型', align: 'center' }, | ||||||
|           { prop: 'girdName', label: '所属网格', align: 'center' }, |           { prop: 'girdName', label: '所属网格', align: 'center' }, | ||||||
|           { prop: 'eventStatus', label: '事件状态', align: 'center', formart: v => this.dict.getLabel('clapEventStatus', v) }, |           { prop: 'eventStatus', label: '事件状态', align: 'center', format: v => this.dict.getLabel('clapEventStatus', v) }, | ||||||
|           { prop: 'openId', label: '上报人', align: 'center', openType: 'userName' }, |           { prop: 'openId', label: '上报人', align: 'center', openType: 'userName' }, | ||||||
|           { slot: 'options' } |           { slot: 'options' } | ||||||
|         ] |         ] | ||||||
|   | |||||||
| @@ -114,19 +114,19 @@ | |||||||
|         colConfigs: [ |         colConfigs: [ | ||||||
|           { prop: 'name', label: '姓名' }, |           { prop: 'name', label: '姓名' }, | ||||||
|           { prop: 'phone', align: 'center', label: '手机号码' }, |           { prop: 'phone', align: 'center', label: '手机号码' }, | ||||||
|           { prop: 'startTime', align: 'center', label: '出发时间', formart: v => v.substr(0, v.length - 3) }, |           { prop: 'startTime', align: 'center', label: '出发时间', format: v => v.substr(0, v.length - 3) }, | ||||||
|           { |           { | ||||||
|             prop: 'startAreaName', |             prop: 'startAreaName', | ||||||
|             align: 'center', |             align: 'center', | ||||||
|             label: '出发地区' |             label: '出发地区' | ||||||
|           }, |           }, | ||||||
|           { prop: 'arriveTime', align: 'center', label: '到达时间', formart: v => v.substr(0, v.length - 3) }, |           { prop: 'arriveTime', align: 'center', label: '到达时间', format: v => v.substr(0, v.length - 3) }, | ||||||
|           { |           { | ||||||
|             prop: 'arriveAreaName', |             prop: 'arriveAreaName', | ||||||
|             align: 'center', |             align: 'center', | ||||||
|             label: '到达地区' |             label: '到达地区' | ||||||
|           }, |           }, | ||||||
|           { prop: 'checkTime', align: 'center', label: '核酸日期', formart: v => v.split(' ')[0] }, |           { prop: 'checkTime', align: 'center', label: '核酸日期', format: v => v.split(' ')[0] }, | ||||||
|           { |           { | ||||||
|             prop: 'status', |             prop: 'status', | ||||||
|             align: 'center', |             align: 'center', | ||||||
|   | |||||||
| @@ -77,7 +77,7 @@ | |||||||
|           { prop: 'district', label: '区级', align: 'center' }, |           { prop: 'district', label: '区级', align: 'center' }, | ||||||
|           { prop: 'town', label: '镇级', align: 'center' }, |           { prop: 'town', label: '镇级', align: 'center' }, | ||||||
|           { prop: 'village', label: '村级', align: 'center' }, |           { prop: 'village', label: '村级', align: 'center' }, | ||||||
|           { prop: 'level', label: '等级', align: 'center', formart: v => this.dict.getLabel('epidemicDangerousAreaLevel', v) }, |           { prop: 'level', label: '等级', align: 'center', format: v => this.dict.getLabel('epidemicDangerousAreaLevel', v) }, | ||||||
|           { prop: 'createTime', label: '设置时间', align: 'center' }, |           { prop: 'createTime', label: '设置时间', align: 'center' }, | ||||||
|           { prop: 'createUserName', label: '添加人', align: 'center', openType: 'userName' }, |           { prop: 'createUserName', label: '添加人', align: 'center', openType: 'userName' }, | ||||||
|           { slot: 'options', label: '操作', align: 'center' } |           { slot: 'options', label: '操作', align: 'center' } | ||||||
|   | |||||||
| @@ -194,7 +194,7 @@ export default { | |||||||
|       gridInfo: {}, |       gridInfo: {}, | ||||||
|       gridMemberColConfigs: [ |       gridMemberColConfigs: [ | ||||||
|         {prop: "wxUserId", openType: 'userName'}, |         {prop: "wxUserId", openType: 'userName'}, | ||||||
|         {prop: "checkType", formart: v => v === '1' ? '网格员' : '网格长'}, |         {prop: "checkType", format: v => v === '1' ? '网格员' : '网格长'}, | ||||||
|         {slot: "tags"} |         {slot: "tags"} | ||||||
|       ] |       ] | ||||||
|     }; |     }; | ||||||
|   | |||||||
| @@ -109,7 +109,7 @@ | |||||||
|         total: 10, |         total: 10, | ||||||
|         colConfigs: [ |         colConfigs: [ | ||||||
|           {prop: 'codeName', label: '名称', align: 'left'}, |           {prop: 'codeName', label: '名称', align: 'left'}, | ||||||
|           {prop: 'type', label: '二维码类型', align: 'left', formart: v => v === '0' ? '群二维码' : '个人二维码'}, |           {prop: 'type', label: '二维码类型', align: 'left', format: v => v === '0' ? '群二维码' : '个人二维码'}, | ||||||
|           {prop: 'createUserName', label: '创建人'}, |           {prop: 'createUserName', label: '创建人'}, | ||||||
|           {prop: 'createTime', label: '创建时间'}, |           {prop: 'createTime', label: '创建时间'}, | ||||||
|           {slot: 'options', label: '操作'} |           {slot: 'options', label: '操作'} | ||||||
|   | |||||||
| @@ -76,8 +76,8 @@ | |||||||
|           { prop: 'replyUserName',  label: '发布人', align: 'left' }, |           { prop: 'replyUserName',  label: '发布人', align: 'left' }, | ||||||
|           { prop: 'createTime', label: '发布时间', align: 'center' }, |           { prop: 'createTime', label: '发布时间', align: 'center' }, | ||||||
|           { prop: 'content', label: '发布内容', align: 'center' }, |           { prop: 'content', label: '发布内容', align: 'center' }, | ||||||
|           { prop: 'villagerCircleInfo', label: '话题类型', align: 'center', formart: v =>  v ? this.dict.getLabel('villagerCircleTopic', v.topic) : '' }, |           { prop: 'villagerCircleInfo', label: '话题类型', align: 'center', format: v =>  v ? this.dict.getLabel('villagerCircleTopic', v.topic) : '' }, | ||||||
|           { prop: 'status', label: '状态', align: 'center', formart: v => this.dict.getLabel('auditStatus', v) }, |           { prop: 'status', label: '状态', align: 'center', format: v => this.dict.getLabel('auditStatus', v) }, | ||||||
|           { prop: 'auditUserName', label: '审核人', align: 'center' }, |           { prop: 'auditUserName', label: '审核人', align: 'center' }, | ||||||
|           { prop: 'auditTime', label: '审核时间', align: 'center' }, |           { prop: 'auditTime', label: '审核时间', align: 'center' }, | ||||||
|           { slot: 'options', label: '操作', align: 'center' } |           { slot: 'options', label: '操作', align: 'center' } | ||||||
|   | |||||||
| @@ -95,8 +95,8 @@ | |||||||
|           { prop: 'createUserName',  label: '发布人', align: 'left' }, |           { prop: 'createUserName',  label: '发布人', align: 'left' }, | ||||||
|           { prop: 'createTime', label: '发布时间', align: 'center' }, |           { prop: 'createTime', label: '发布时间', align: 'center' }, | ||||||
|           { prop: 'content', label: '发布内容', align: 'center' }, |           { prop: 'content', label: '发布内容', align: 'center' }, | ||||||
|           { prop: 'topic', label: '话题类型', align: 'center', formart: v => this.dict.getLabel('villagerCircleTopic', v) }, |           { prop: 'topic', label: '话题类型', align: 'center', format: v => this.dict.getLabel('villagerCircleTopic', v) }, | ||||||
|           { prop: 'status', label: '状态', align: 'center', formart: v => this.dict.getLabel('auditStatus', v) }, |           { prop: 'status', label: '状态', align: 'center', format: v => this.dict.getLabel('auditStatus', v) }, | ||||||
|           { prop: 'auditUserName', label: '审核人', align: 'center' }, |           { prop: 'auditUserName', label: '审核人', align: 'center' }, | ||||||
|           { prop: 'auditTime', label: '审核时间', align: 'center' }, |           { prop: 'auditTime', label: '审核时间', align: 'center' }, | ||||||
|           { slot: 'options', label: '操作', align: 'center' } |           { slot: 'options', label: '操作', align: 'center' } | ||||||
|   | |||||||
| @@ -125,7 +125,7 @@ export default { | |||||||
|         //   label: "途径", |         //   label: "途径", | ||||||
|         //   align: "center", |         //   align: "center", | ||||||
|         //   width: 100, |         //   width: 100, | ||||||
|         //   formart: (bizType) => |         //   format: (bizType) => | ||||||
|         //   this.dict.getLabel("integralDetailBizType", bizType) || '-', |         //   this.dict.getLabel("integralDetailBizType", bizType) || '-', | ||||||
|         // }, |         // }, | ||||||
|         {slot: "options", label: "操作", align: "center"}, |         {slot: "options", label: "操作", align: "center"}, | ||||||
|   | |||||||
| @@ -91,66 +91,24 @@ | |||||||
| import moment from 'dayjs' | import moment from 'dayjs' | ||||||
| import dict from "../../lib/js/dict" | import dict from "../../lib/js/dict" | ||||||
|  |  | ||||||
| let renderSlot = { |  | ||||||
|   functional: true, |  | ||||||
|   props: { |  | ||||||
|     row: Object, |  | ||||||
|     render: Function, |  | ||||||
|     index: Number, |  | ||||||
|     column: {type: Object, default: null}, |  | ||||||
|   }, |  | ||||||
|   render: (h, data) => { |  | ||||||
|     const params = { |  | ||||||
|       row: data.props.row, |  | ||||||
|       index: data.props.index |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     if (data.props.column) { |  | ||||||
|       params.column = data.props.column |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     return data.props.render(h, params) |  | ||||||
|   } |  | ||||||
| } |  | ||||||
|  |  | ||||||
| export default { | export default { | ||||||
|   name: 'AiTable', |   name: 'AiTable', | ||||||
|  |   model: { | ||||||
|  |     prop: "tableData", | ||||||
|  |     event: "change" | ||||||
|  |   }, | ||||||
|   props: { |   props: { | ||||||
|     colConfigs: Array, |     colConfigs: {type: Array, required: true}, | ||||||
|     tableData: Array, |     tableData: {type: Array, required: true, default: () => []}, | ||||||
|     current: { |     current: {default: 1}, | ||||||
|       type: Number, |     size: {default: 10}, | ||||||
|       default: 1 |     isShowPagination: {type: Boolean, default: true}, | ||||||
|     }, |     total: Number, | ||||||
|     size: { |     layout: {type: String, default: 'slot,->, prev, pager, next, sizes, jumper'}, | ||||||
|       type: Number, |     stripe: {type: Boolean, default: true}, | ||||||
|       default: 10 |     loading: {type: Boolean, default: false}, | ||||||
|     }, |     tooltipEffect: String, | ||||||
|     isShowPagination: { |     tableSize: String, | ||||||
|       type: Boolean, |  | ||||||
|       default: true |  | ||||||
|     }, |  | ||||||
|     total: { |  | ||||||
|       type: Number |  | ||||||
|     }, |  | ||||||
|     layout: { |  | ||||||
|       type: String, |  | ||||||
|       default: 'slot,->, prev, pager, next, sizes, jumper' |  | ||||||
|     }, |  | ||||||
|     stripe: { |  | ||||||
|       type: Boolean, |  | ||||||
|       default: true |  | ||||||
|     }, |  | ||||||
|     loading: { |  | ||||||
|       type: Boolean, |  | ||||||
|       default: false |  | ||||||
|     }, |  | ||||||
|     tooltipEffect: { |  | ||||||
|       type: String |  | ||||||
|     }, |  | ||||||
|     tableSize: { |  | ||||||
|       type: String |  | ||||||
|     }, |  | ||||||
|     tableRef: String, |     tableRef: String, | ||||||
|     dict: {default: () => dict}, |     dict: {default: () => dict}, | ||||||
|     pagerCount: {default: 5}, |     pagerCount: {default: 5}, | ||||||
| @@ -159,22 +117,37 @@ export default { | |||||||
|   data() { |   data() { | ||||||
|     return { |     return { | ||||||
|       name: '', |       name: '', | ||||||
|       chooseList: [] |       chooseList: [], | ||||||
|  |       defaultPage: {} | ||||||
|  |     } | ||||||
|  |   }, | ||||||
|  |   components: { | ||||||
|  |     renderSlot: { | ||||||
|  |       functional: true, | ||||||
|  |       props: { | ||||||
|  |         row: Object, | ||||||
|  |         render: Function, | ||||||
|  |         index: Number, | ||||||
|  |         column: {type: Object, default: null}, | ||||||
|  |       }, | ||||||
|  |       render: (h, data) => { | ||||||
|  |         const params = { | ||||||
|  |           row: data.props.row, | ||||||
|  |           index: data.props.index | ||||||
|  |         } | ||||||
|  |         if (data.props.column) { | ||||||
|  |           params.column = data.props.column | ||||||
|  |         } | ||||||
|  |         return data.props.render(h, params) | ||||||
|  |       } | ||||||
|     } |     } | ||||||
|   }, |   }, | ||||||
|   components: {renderSlot}, |  | ||||||
|   computed: { |   computed: { | ||||||
|     refName() { |     refName: v => v.tableRef || `aiTable${new Date().getTime()}`, | ||||||
|       return this.tableRef || `aiTable${new Date().getTime()}` |     isShowBorder: v => !!v.$attrs.border || v.$attrs.border === '', | ||||||
|     }, |     isHasPaginationBtnsSlot: v => v.$scopedSlots.paginationBtns, | ||||||
|     isShowBorder() { |     isIndeterminate: v => v.chooseList.length > 0 && v.chooseList.length < v.tableData.length, | ||||||
|       return !!this.$attrs.border || this.$attrs.border === '' |     checkAll: v => v.chooseList.length == v.tableData.length && v.tableData !== 0, | ||||||
|     }, |  | ||||||
|  |  | ||||||
|     isHasPaginationBtnsSlot() { |  | ||||||
|       return this.$slots.paginationBtns |  | ||||||
|     }, |  | ||||||
|  |  | ||||||
|     page() { |     page() { | ||||||
|       return { |       return { | ||||||
|         current: this.current, |         current: this.current, | ||||||
| @@ -183,17 +156,10 @@ export default { | |||||||
|         pagerCount: this.pagerCount |         pagerCount: this.pagerCount | ||||||
|       } |       } | ||||||
|     }, |     }, | ||||||
|     isIndeterminate() { |  | ||||||
|       return this.chooseList.length > 0 && this.chooseList.length < this.tableData.length |  | ||||||
|     }, |  | ||||||
|     checkAll() { |  | ||||||
|       return this.chooseList.length == this.tableData.length && this.tableData !== 0 |  | ||||||
|     } |  | ||||||
|   }, |   }, | ||||||
|   methods: { |   methods: { | ||||||
|     handleChange(e) { |     handleChange(e) { | ||||||
|       this.$emit('update:current', e) |       this.$emit('update:current', e) | ||||||
|  |  | ||||||
|       this.$nextTick(() => { |       this.$nextTick(() => { | ||||||
|         this.$emit('getList') |         this.$emit('getList') | ||||||
|       }) |       }) | ||||||
| @@ -209,22 +175,13 @@ export default { | |||||||
|       this.$emit('handleSelectionChange', e) |       this.$emit('handleSelectionChange', e) | ||||||
|     }, |     }, | ||||||
|     getValue(colConfig, row) { |     getValue(colConfig, row) { | ||||||
|       if (this.isFunction(colConfig.formart)) { |       if (this.isFunction(colConfig.format)) { | ||||||
|         return colConfig.formart.call(this, row[colConfig.prop]) |         return colConfig.format.call(this, row[colConfig.prop]) | ||||||
|       } |       } | ||||||
|  |  | ||||||
|       if (colConfig.dateFormat) { |       if (colConfig.dateFormat) { | ||||||
|         return moment(row[colConfig.prop]).format(colConfig.dateFormat) |         return moment(row[colConfig.prop]).format(colConfig.dateFormat) | ||||||
|       } |       } | ||||||
|  |       return row[colConfig.prop]|| "-" | ||||||
|       return this.isInvalidValue(row[colConfig.prop]) |  | ||||||
|     }, |  | ||||||
|     isInvalidValue(value) { |  | ||||||
|       if (value === null || value === undefined || value === '') { |  | ||||||
|         return '-' |  | ||||||
|       } |  | ||||||
|  |  | ||||||
|       return value |  | ||||||
|     }, |     }, | ||||||
|     isFunction(fun) { |     isFunction(fun) { | ||||||
|       return typeof fun === 'function' |       return typeof fun === 'function' | ||||||
| @@ -269,18 +226,18 @@ export default { | |||||||
|     color: $primaryColor; |     color: $primaryColor; | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   :deep( .ai-header__border .ai-table__header ){ |   :deep( .ai-header__border .ai-table__header ) { | ||||||
|     border-bottom: 1px solid $borderColor !important; |     border-bottom: 1px solid $borderColor !important; | ||||||
|     border-right: 1px solid $borderColor !important; |     border-right: 1px solid $borderColor !important; | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   :deep( .el-table--border ){ |   :deep( .el-table--border ) { | ||||||
|     border: 1px solid $borderColor; |     border: 1px solid $borderColor; | ||||||
|     border-right: none; |     border-right: none; | ||||||
|     border-bottom: none; |     border-bottom: none; | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   :deep( .el-table ){ |   :deep( .el-table ) { | ||||||
|     color: #222; |     color: #222; | ||||||
|  |  | ||||||
|     .caret-wrapper { |     .caret-wrapper { | ||||||
| @@ -300,11 +257,11 @@ export default { | |||||||
|     } |     } | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   :deep( .cell ){ |   :deep( .cell ) { | ||||||
|     line-height: 24px; |     line-height: 24px; | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   :deep( .el-table__header ){ |   :deep( .el-table__header ) { | ||||||
|     th { |     th { | ||||||
|       padding: 8px 0; |       padding: 8px 0; | ||||||
|     } |     } | ||||||
| @@ -322,13 +279,13 @@ export default { | |||||||
|     } |     } | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   :deep( .el-table__body ){ |   :deep( .el-table__body ) { | ||||||
|     tr td:first-child .cell { |     tr td:first-child .cell { | ||||||
|       padding-left: 40px !important; |       padding-left: 40px !important; | ||||||
|     } |     } | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   :deep( .el-table__fixed-right ){ |   :deep( .el-table__fixed-right ) { | ||||||
|     .el-table__body { |     .el-table__body { | ||||||
|       tr td:first-child .cell { |       tr td:first-child .cell { | ||||||
|         padding-left: 0 !important; |         padding-left: 0 !important; | ||||||
| @@ -337,12 +294,12 @@ export default { | |||||||
|     } |     } | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   :deep( .ai-table__header ){ |   :deep( .ai-table__header ) { | ||||||
|     border-bottom: none; |     border-bottom: none; | ||||||
|     background: #F3F4F5; |     background: #F3F4F5; | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   :deep(.el-pager ){ |   :deep(.el-pager ) { | ||||||
|     li.active + li { |     li.active + li { | ||||||
|       border-left: 1px solid $borderColor; |       border-left: 1px solid $borderColor; | ||||||
|     } |     } | ||||||
| @@ -374,7 +331,7 @@ export default { | |||||||
|         gap: 8px; |         gap: 8px; | ||||||
|         color: $primaryColor !important; |         color: $primaryColor !important; | ||||||
|  |  | ||||||
|         :deep( span), :deep( div ){ |         :deep( span), :deep( div ) { | ||||||
|           font-size: 12px; |           font-size: 12px; | ||||||
|           cursor: pointer; |           cursor: pointer; | ||||||
|           color: $primaryColor !important; |           color: $primaryColor !important; | ||||||
| @@ -403,7 +360,7 @@ export default { | |||||||
|         line-height: 1 !important; |         line-height: 1 !important; | ||||||
|       } |       } | ||||||
|  |  | ||||||
|       :deep(.el-checkbox ){ |       :deep(.el-checkbox ) { | ||||||
|         display: flex; |         display: flex; | ||||||
|         align-items: center; |         align-items: center; | ||||||
|  |  | ||||||
| @@ -427,7 +384,7 @@ export default { | |||||||
| } | } | ||||||
|  |  | ||||||
| .ai-table__noborder { | .ai-table__noborder { | ||||||
|   :deep( .el-table td), :deep( .el-table th.is-center ){ |   :deep( .el-table td), :deep( .el-table th.is-center ) { | ||||||
|     border: none; |     border: none; | ||||||
|   } |   } | ||||||
|  |  | ||||||
| @@ -435,11 +392,11 @@ export default { | |||||||
|     display: none; |     display: none; | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   :deep( .el-table--striped .el-table__body tr.el-table__row--striped td ){ |   :deep( .el-table--striped .el-table__body tr.el-table__row--striped td ) { | ||||||
|     background: #F5F6F9; |     background: #F5F6F9; | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   :deep( .el-table__fixed-right::before), :deep( .el-table__fixed::before ){ |   :deep( .el-table__fixed-right::before), :deep( .el-table__fixed::before ) { | ||||||
|     display: none; |     display: none; | ||||||
|   } |   } | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user