From afe51cbcc9096d53593eb24a2ec1a8e0eeb16d70 Mon Sep 17 00:00:00 2001
From: shilixia <2309368887@qq.com>
Date: Wed, 17 Mar 2021 13:58:04 +0800
Subject: [PATCH] ziliaoshangbao
---
client/src/views/supervision/report.vue | 63 ++++++++++++++++++++-----
1 file changed, 52 insertions(+), 11 deletions(-)
diff --git a/client/src/views/supervision/report.vue b/client/src/views/supervision/report.vue
index aad5598..553bb88 100644
--- a/client/src/views/supervision/report.vue
+++ b/client/src/views/supervision/report.vue
@@ -3,25 +3,28 @@
-
-
+
+
+
-
+
-
+
-
+
-
-
-
+
+
-
+
{{
- scope.row.belong_dept_.name
+ scope.row.task_.name
+ }}
+
+
+ {{
+ scope.row.content_.name
}}
@@ -86,6 +94,8 @@
+
+
{
+ getRecordList({state:this.state}).then((res) => {
this.listLoading = false;
this.recordList = res.data.results;
});
},
+ handleClick(tab, event) {
+ switch (tab.name) {
+ case "first":
+ this.state="待上报";
+ this.getRecordList();
+ break;
+ case "second":
+ this.state="已上报";
+ this.getRecordList();
+ break;
+ case "third":
+ this.state="待整改";
+ this.getRecordList();
+ break;
+ case "forth":
+ this.state="已确认";
+ this.getRecordList();
+ break;
+ }
+ },
+
handleUpdate(scope) {
this.data = {
action: "update",
record: scope.row,
};
this.drawer = true;
+ },
+ chooseComplete(data) {
+ this.dialogVisible = false;
+ const rLoading = this.openLoading("正在初始化任务,请稍等...");
+ inittask(this.task.id, data).then((res) => {
+ rLoading.close();
+ this.$message.success("成功");
+ this.$router.go(0);
+ });
},
handleUp(scope) {
this.data = {