| | |
| | | <template #header> |
| | | <div><el-text tag="b" size="large">数据源检查</el-text></div> |
| | | <el-text size="small" type="info">检查评估所需数据源是否完整</el-text> |
| | | <el-text size="small" type="info">检查评估所需数据源是否完整</el-text> |
| | | </template> |
| | | <FormCol> |
| | | <template v-for="(v, i) in checkResults" :key="i"> |
| | |
| | | async fetch() { |
| | | this.loading = true; |
| | | setTimeout(async () => { |
| | | const res = await _fetch(); |
| | | this.pass = res ? res.pass : undefined; |
| | | this.des = res ? res.des : undefined; |
| | | this.loading = false; |
| | | if (_fetch != undefined) { |
| | | _fetch() |
| | | .then((res) => { |
| | | this.pass = res ? res.pass : undefined; |
| | | this.des = res ? res.des : undefined; |
| | | }) |
| | | .catch(() => { |
| | | this.pass = false; |
| | | this.des = '网络链接错误'; |
| | | }) |
| | | .finally(() => { |
| | | this.loading = false; |
| | | }); |
| | | } else { |
| | | this.pass = undefined; |
| | | this.des = undefined; |
| | | this.loading = false; |
| | | } |
| | | }, 1000); |
| | | } |
| | | }; |
| | |
| | | // 步骤下标 |
| | | modelValue: Number |
| | | }, |
| | | emits: ['update:modelValue'], |
| | | emits: ['update:modelValue', 'change'], |
| | | data() { |
| | | return { |
| | | areaInfo: {}, |
| | |
| | | }); |
| | | }), |
| | | // 区域范围内的监测数据是否存在、数据时间跨度是否完整、数据的初步分析是否完成 |
| | | baseCheckItem('现场监测数据', '', () => {}), |
| | | baseCheckItem('现场监测数据', ''), |
| | | // 区域范围内的每个监管点位与监测仪器的匹配记录是否存在,缺失情况等 |
| | | baseCheckItem('监管点位与监测点匹配', '', () => { |
| | | return userMapApi.fetchDeviceMap(this.areaInfo).then((res) => { |
| | |
| | | return { pass, des }; |
| | | }); |
| | | }), |
| | | // complaintApi.fetchComplaints(); |
| | | // 区域范围内的信访投诉记录是否存在,可随时补充 |
| | | baseCheckItem('信访投诉', '', () => { |
| | | // complaintApi.fetchComplaints(); |
| | | }), |
| | | baseCheckItem('信访投诉', ''), |
| | | // complaintApi.fetchPunishment(); |
| | | // 区域范围内的行政处罚记录是否存在,可随时补充 |
| | | baseCheckItem('行政处罚', '', () => { |
| | | // complaintApi.fetchPunishment(); |
| | | }) |
| | | baseCheckItem('行政处罚', '') |
| | | ] |
| | | }; |
| | | }, |
| | |
| | | methods: { |
| | | // 跳转下一步 |
| | | nextStep() { |
| | | this.$emit('change', this.checkResults); |
| | | this.$emit('update:modelValue', this.modelValue + 1); |
| | | }, |
| | | // 跳转上一步 |
| | |
| | | // online: true, |
| | | // sourceType: v.sourceType |
| | | // }; |
| | | this.areaInfo = value |
| | | this.areaInfo = value; |
| | | |
| | | this.checkResults.forEach((e) => { |
| | | e.fetch(); |