diff --git a/src/components/Index.vue b/src/components/Index.vue
index 25ea144..ec63536 100644
--- a/src/components/Index.vue
+++ b/src/components/Index.vue
@@ -109,9 +109,9 @@ const checkProcess = () => {
if(percent >= 100) {
clearInterval(checkProcessInterval);
checkProcessInterval = null;
- // isKpiUpdatProgressModalShow.value = false;
+ isKpiUpdatProgressModalShow.value = false;
} else {
- // isKpiUpdatProgressModalShow.value = true;
+ isKpiUpdatProgressModalShow.value = true;
}
}).catch((resp) => {
console.error(resp)
@@ -126,7 +126,7 @@ const onUpdateConfirm = () => {
isKpiUpdateModalShow.value = false;
dialog.warning({
title: "警告",
- content: "确定更新吗?时间较长,请耐心等待...",
+ content: "更新后,之前人工输入的分值也会清空,需要重新输入并保存,确定更新吗?更新时间较长,请耐心等待...",
positiveText: "确定",
negativeText: "取消",
onPositiveClick: () => {
diff --git a/src/components/table/Ddy.vue b/src/components/table/Ddy.vue
index 00e14d0..c41c388 100644
--- a/src/components/table/Ddy.vue
+++ b/src/components/table/Ddy.vue
@@ -11,11 +11,11 @@
+ :options="search.select.year.options" />
+ :options="search.select.month.options" />
diff --git a/src/components/table/Wgz.vue b/src/components/table/Wgz.vue
index b006bb2..548bef0 100644
--- a/src/components/table/Wgz.vue
+++ b/src/components/table/Wgz.vue
@@ -19,11 +19,11 @@
+ :options="search.select.year.options"/>
+ :options="search.select.month.options" />
@@ -493,6 +493,8 @@ export default {
},
getQuery() {
return {
+ areaId: this.search.select.area.value,
+ communityId: this.search.select.community.value,
khYear: this.search.select.year.value,
khMonth: this.search.select.month.value,
keywords: this.search.input.keywords
diff --git a/src/components/table/ZfGa.vue b/src/components/table/ZfGa.vue
index 8c5d233..2f20d29 100644
--- a/src/components/table/ZfGa.vue
+++ b/src/components/table/ZfGa.vue
@@ -15,11 +15,11 @@
+ :options="search.select.year.options" />
+ :options="search.select.month.options" />
diff --git a/src/components/table/Znbm.vue b/src/components/table/Znbm.vue
index 1ac0f10..bdcf9f5 100644
--- a/src/components/table/Znbm.vue
+++ b/src/components/table/Znbm.vue
@@ -7,23 +7,19 @@
-
-
-
-
+
+ :options="search.select.year.options" />
+ :options="search.select.month.options" />
@@ -95,13 +91,7 @@ export default {
userId: null,
userName: null,
select: {
- street: {
- value: null,
- options: [
- { label: '稀土路街道', value: 'xtl' }
- ]
- },
- community: {
+ department: {
value: null,
options: [
{ label: '社区', value: 'sq' }
@@ -346,7 +336,7 @@ export default {
onUnBackErrorClick(row, index) {
let unBackError = row.H;
this.modal.scoring.show = true;
- this.modal.scoring.rowKey = 'J';
+ this.modal.scoring.rowKey = 'H';
this.modal.scoring.rowIndex = index;
this.modal.scoring.score = unBackError;
this.modal.scoring.reason = row.reasonH;
@@ -395,13 +385,29 @@ export default {
this.modal.scoring.title = '督察案件';
},
computeN(row) {
- return row.G - row.H - row.J - row.K + row.L + row.M;
+ return Math.max(row.G - row.H - row.J - row.K + row.L + row.M, 0);
},
resize() {
let body = document.body;
this.table.minHeight = body.clientHeight - 378;
this.table.maxHeight = body.clientHeight - 378;
- this.table.scrollX = body.clientWidth;
+ // this.table.scrollX = body.clientWidth;
+ },
+ listZnbm() {
+ let vueSelf = this;
+ vueSelf.$axios.get(`api/kpi/list-znbm`, {
+ }).then(({ data }) => {
+ let optionArray = [];
+ data.forEach((item, index) => {
+ optionArray.push({
+ label: item.departmentName,
+ value: item.departmentId
+ })
+ })
+ vueSelf.search.select.department.options = optionArray;
+ }).catch(resp => {
+ vueSelf.message.error(resp.data.msg);
+ })
},
onSearchClick() {
this.listData();
@@ -410,8 +416,8 @@ export default {
let vueSelf = this;
let tableDatas = [];
vueSelf.table.data.forEach(item => {
- item.AE = vueSelf.computeAE(item);
- item.AG = (item.AE * item.AF / 100).toFixed(2);
+ item.N = vueSelf.computeN(item);
+ item.P = (item.N * item.O / 100).toFixed(2);
tableDatas.push({...item});
})
vueSelf.dialog.warning({
@@ -421,7 +427,7 @@ export default {
negativeText: "取消",
onPositiveClick: () => {
vueSelf.dataLoading = true;
- vueSelf.$axios.put(`api/kpi/khxz/update-wgy/${vueSelf.search.select.wgy.value}`, {
+ vueSelf.$axios.put(`api/kpi/khxz/update-znbm`, {
datas: tableDatas
}).then( resp => {
vueSelf.message.info('保存成功');
@@ -439,12 +445,13 @@ export default {
onExportClick() {
let vueSelf = this;
vueSelf.btnExportDisabled = true;
- download(vueSelf.$axios, `api/kpi/khxz/export-wgy`, vueSelf.getQuery(), () => {
+ download(vueSelf.$axios, `api/kpi/khxz/export-znbm`, vueSelf.getQuery(), () => {
vueSelf.btnExportDisabled = false;
});
},
getQuery() {
return {
+ departmentId: this.search.select.department.value,
khYear: this.search.select.year.value,
khMonth: this.search.select.month.value,
keywords: this.search.input.keywords
@@ -456,6 +463,9 @@ export default {
vueSelf.$axios.get(`api/kpi/khxz/list-znbm`, {
params: vueSelf.getQuery()
}).then(({ data }) => {
+ data.forEach((item, index) => {
+ item.A = index + 1;
+ });
this.table.data = data;
}).catch(({ data }) => {
vueSelf.message.error(data.msg);
@@ -468,6 +478,7 @@ export default {
this.search.select.year.value = getCurrentYear();
this.search.select.month.options = listMonth();
this.search.select.month.value = getCurrentMonth();
+ this.listZnbm();
this.listData();
}
},