src/components.d.ts | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/views/fysp/evaluation/EvalutationRecord.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/components.d.ts
@@ -18,7 +18,6 @@ ElBreadcrumb: typeof import('element-plus/es')['ElBreadcrumb'] ElBreadcrumbItem: typeof import('element-plus/es')['ElBreadcrumbItem'] ElButton: typeof import('element-plus/es')['ElButton'] ElButtonGroup: typeof import('element-plus/es')['ElButtonGroup'] ElCard: typeof import('element-plus/es')['ElCard'] ElCascader: typeof import('element-plus/es')['ElCascader'] ElCheckbox: typeof import('element-plus/es')['ElCheckbox'] @@ -31,9 +30,6 @@ ElDialog: typeof import('element-plus/es')['ElDialog'] ElDivider: typeof import('element-plus/es')['ElDivider'] ElDrawer: typeof import('element-plus/es')['ElDrawer'] ElDropdown: typeof import('element-plus/es')['ElDropdown'] ElDropdownItem: typeof import('element-plus/es')['ElDropdownItem'] ElDropdownMenu: typeof import('element-plus/es')['ElDropdownMenu'] ElEmpty: typeof import('element-plus/es')['ElEmpty'] ElForm: typeof import('element-plus/es')['ElForm'] ElFormItem: typeof import('element-plus/es')['ElFormItem'] @@ -63,11 +59,12 @@ ElSwitch: typeof import('element-plus/es')['ElSwitch'] ElTable: typeof import('element-plus/es')['ElTable'] ElTableColumn: typeof import('element-plus/es')['ElTableColumn'] ElTabPane: typeof import('element-plus/es')['ElTabPane'] ElTabs: typeof import('element-plus/es')['ElTabs'] ElTag: typeof import('element-plus/es')['ElTag'] ElText: typeof import('element-plus/es')['ElText'] ElTooltip: typeof import('element-plus/es')['ElTooltip'] ElTree: typeof import('element-plus/es')['ElTree'] ElUpload: typeof import('element-plus/es')['ElUpload'] Footer: typeof import('./components/core/Footer.vue')['default'] FormCol: typeof import('./components/layout/FormCol.vue')['default'] FYBgTaskCard: typeof import('./components/bg-task/FYBgTaskCard.vue')['default'] src/views/fysp/evaluation/EvalutationRecord.vue
@@ -104,7 +104,12 @@ @click="scoreShow = true" >监测数据得分</el-button > <el-button v-show="scoreShow" size="small" type="primary" @click="updateMultipleScore" <el-button v-show="scoreShow" size="small" type="primary" @click="updateMultipleScore" :loading="updateLoading" >上传</el-button > <el-button v-show="scoreShow" size="small" type="error" @click="scoreShow = false" @@ -161,7 +166,8 @@ name: '监测数据月均值超区域月均值20%以上或数据明显异常' } }, scoreShow: false scoreShow: false, updateLoading: false }; }, computed: { @@ -208,8 +214,21 @@ evaluateApi.fetchAutoEvaluation(this.area).then((res) => { if (res.data) { this.tableData = res.data; this.tableData.forEach((v) => { // 将原始的得分展示到表格中 if (v.itemEvaluations) { for (const key in this.ruleName) { const value = this.ruleName[key]; const itemEva = v.itemEvaluations.find((ie) => { return ie.esrguid == value.id && ie.extension1 == 'true'; }); if (itemEva) { v[key] = itemEva.value; } } } }); this.orginData = useCloned(this.tableData).cloned; console.log(this.orginData); this.getFilters(res.data); if (typeof func === 'function') { func({ data: this.tableData }); @@ -245,29 +264,35 @@ }, // 批量更新监测数据得分 updateMultipleScore() { this.updateLoading = true; useMessageBoxTip({ confirmMsg: '是否上传监测数据得分', confirmTitle: '上传监测数据得分', onConfirm: () => { onConfirm: async () => { if (this.evaluationRule) { const param = this.tableData.map((v) => { const subTaskEvaList = this.tableData.map((v) => { const subRule = []; for (const key in this.ruleName) { const value = this.ruleName[key]; subRule.push({ first: value.id, second: v[key].trim() != '' id: value.id, selected: v[key] && (v[key] + '').trim() != '' }); } return { ...this.area, subTaskId: v.subTaskId, ruleId: this.evaluationRule.guid, subRule }; }); const param = { ...this.area, subTaskEvaList }; evaluateApi.updateMultipleScore(param); return await evaluateApi .updateMultipleScore(param) .finally(() => (this.updateLoading = false)); } } });