From afa3ab977f05ab6c46dc5206774f1dabde525b7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=8A=B2=E9=BE=99?= <2860996570@qq.com> Date: Mon, 6 Jan 2025 18:54:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=90=9C=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/permission.js | 1 + src/views/auditPages/taskManagement/index.vue | 15 ++++ src/views/auditPages/taskManagement/info.vue | 43 ++++++++++-- src/views/components/renwuType/index_v1.vue | 21 ++++-- src/views/components/renwuType/index_v2.vue | 27 ++++++-- src/views/components/renwuType/index_v3.vue | 23 +++++-- src/views/components/renwuType/index_v4.vue | 24 +++++-- src/views/components/renwuType/webType1.vue | 17 ++++- src/views/components/renwuType/webType2DW.vue | 37 ++++++---- src/views/unitPages/myTask/index.vue | 47 ++++++++----- src/views/unitPages/myTask/info.vue | 68 +++++++++++++++---- 11 files changed, 251 insertions(+), 72 deletions(-) diff --git a/src/permission.js b/src/permission.js index c568979..2cc30e1 100644 --- a/src/permission.js +++ b/src/permission.js @@ -11,6 +11,7 @@ NProgress.configure({ showSpinner: false }) const whiteList = ['/login', '/register'] router.beforeEach((to, from, next) => { + NProgress.start() if (getToken()) { to.meta.title && store.dispatch('settings/setTitle', to.meta.title) diff --git a/src/views/auditPages/taskManagement/index.vue b/src/views/auditPages/taskManagement/index.vue index da0d593..34abcf5 100644 --- a/src/views/auditPages/taskManagement/index.vue +++ b/src/views/auditPages/taskManagement/index.vue @@ -268,10 +268,21 @@ export default { } }, mounted() { + + if (localStorage.getItem('ismypagination')) { + if (JSON.parse(localStorage.getItem('ismypagination')).isfanhui) { + this.formInline = JSON.parse(localStorage.getItem('ismypagination')) + this.handleQuery() + } else { + localStorage.removeItem("ismypagination") + } + } + localStorage.removeItem("ismypaginationTow") localStorage.removeItem("activeName") this.getInfo(); this.cancalDebounce(); window.addEventListener('resize', this.cancalDebounce); + }, destroyed() { window.removeEventListener('resize', this.cancalDebounce); @@ -386,6 +397,7 @@ export default { current: 1, size: 10, } + localStorage.removeItem("ismypagination") this.getInfo(); }, //打开列表 @@ -433,6 +445,9 @@ export default { this.formInline.endTime = this.formInline.time[1] } this.pagination = { ...this.pagination, ...this.formInline }; + + this.formInline.isfanhui = false + localStorage.setItem("ismypagination", JSON.stringify(this.formInline)) this.getInfo(); }, // 页码获取 diff --git a/src/views/auditPages/taskManagement/info.vue b/src/views/auditPages/taskManagement/info.vue index 70bd782..f4990a7 100644 --- a/src/views/auditPages/taskManagement/info.vue +++ b/src/views/auditPages/taskManagement/info.vue @@ -3,6 +3,7 @@
@@ -447,7 +455,14 @@ export default { } }, methods: { - + sendBack() { + if (localStorage.getItem('ismypaginationTow')) { + let formInline = JSON.parse(localStorage.getItem('ismypaginationTow')) + formInline.isfanhuiTow = true + localStorage.setItem("ismypaginationTow", JSON.stringify(formInline)) + } + this.$router.go(-1); + }, getInfo(id) { let obj = { taskId: this.$route.query.taskId, @@ -455,7 +470,7 @@ export default { } assetTaskofficetaskSh(obj).then(res => { this.ruleForm = res.data; - if(!this.ruleForm.ptlx) { + if (!this.ruleForm.ptlx) { this.ruleForm.ptlx = '1' } setTimeout(() => { @@ -557,9 +572,7 @@ export default { } }, - sendBack() { - this.$router.go(-1); - }, + }, } \ No newline at end of file diff --git a/src/views/components/renwuType/index_v3.vue b/src/views/components/renwuType/index_v3.vue index 0862a53..e5acd14 100644 --- a/src/views/components/renwuType/index_v3.vue +++ b/src/views/components/renwuType/index_v3.vue @@ -170,7 +170,9 @@ 关停 取消 暂存 - 提交 + 提交 + 返回 + @@ -178,7 +180,12 @@ 不通过 - 通过 + 通过 + 返回 + + + 返回 @@ -281,6 +288,14 @@ export default { } }, methods: { + sendBack() { + if (localStorage.getItem('ismypaginationTow')) { + let formInline = JSON.parse(localStorage.getItem('ismypaginationTow')) + formInline.isfanhuiTow = true + localStorage.setItem("ismypaginationTow", JSON.stringify(formInline)) + } + this.$router.go(-1); + }, getInfo(id) { let obj = { taskId: this.$route.query.taskId, @@ -387,9 +402,7 @@ export default { } }, - sendBack() { - this.$router.go(-1); - }, + }, } \ No newline at end of file diff --git a/src/views/components/renwuType/index_v4.vue b/src/views/components/renwuType/index_v4.vue index cdeb8cd..150057c 100644 --- a/src/views/components/renwuType/index_v4.vue +++ b/src/views/components/renwuType/index_v4.vue @@ -157,7 +157,9 @@ 关停 取消 暂存 - 提交 + 提交 + 返回 + @@ -165,7 +167,13 @@ 不通过 - 通过 + 通过 + 返回 + + + + 返回 @@ -270,6 +278,14 @@ export default { } }, methods: { + sendBack() { + if (localStorage.getItem('ismypaginationTow')) { + let formInline = JSON.parse(localStorage.getItem('ismypaginationTow')) + formInline.isfanhuiTow = true + localStorage.setItem("ismypaginationTow", JSON.stringify(formInline)) + } + this.$router.go(-1); + }, getInfo(id) { let obj = { taskId: this.$route.query.taskId, @@ -376,9 +392,7 @@ export default { } }, - sendBack() { - this.$router.go(-1); - }, + }, } \ No newline at end of file diff --git a/src/views/components/renwuType/webType1.vue b/src/views/components/renwuType/webType1.vue index cbc376d..0d91a85 100644 --- a/src/views/components/renwuType/webType1.vue +++ b/src/views/components/renwuType/webType1.vue @@ -2484,8 +2484,15 @@ 不通过 - 通过 + 通过 + 返回 + + 返回 + + + @@ -2739,6 +2746,14 @@ export default { } }, methods: { + sendBack() { + if (localStorage.getItem('ismypaginationTow')) { + let formInline = JSON.parse(localStorage.getItem('ismypaginationTow')) + formInline.isfanhuiTow = true + localStorage.setItem("ismypaginationTow", JSON.stringify(formInline)) + } + this.$router.go(-1); + }, importClose() { }, // 关闭新增弹窗 resetForm() { diff --git a/src/views/components/renwuType/webType2DW.vue b/src/views/components/renwuType/webType2DW.vue index 01460e8..331b84e 100644 --- a/src/views/components/renwuType/webType2DW.vue +++ b/src/views/components/renwuType/webType2DW.vue @@ -105,7 +105,7 @@ - + @@ -131,7 +131,7 @@ - + @@ -172,7 +172,7 @@ - + @@ -2543,12 +2543,8 @@ }"> - + @@ -2739,15 +2735,20 @@
{{ ruleForm.bfyy }}
- + + 关停 取消 暂存 - 提交 + 提交 + 返回 - - + + 返回 + @@ -3035,6 +3036,14 @@ export default { } }, methods: { + sendBack() { + if (localStorage.getItem('ismypaginationTow')) { + let formInline = JSON.parse(localStorage.getItem('ismypaginationTow')) + formInline.isfanhuiTow = true + localStorage.setItem("ismypaginationTow", JSON.stringify(formInline)) + } + this.$router.go(-1); + }, importClose() { }, // 关闭新增弹窗 resetForm() { @@ -3307,7 +3316,7 @@ export default { if (type == 3) { this.loading = true console.log(this.ruleForm); - + //提交 this.$refs['ruleForm'].validate((valid) => { if (valid) { diff --git a/src/views/unitPages/myTask/index.vue b/src/views/unitPages/myTask/index.vue index b1584f2..f98f727 100644 --- a/src/views/unitPages/myTask/index.vue +++ b/src/views/unitPages/myTask/index.vue @@ -39,7 +39,7 @@
- +
@@ -81,14 +81,13 @@
- 查看 + 查看
-
+
- 开始核查 + 开始核查
@@ -185,9 +184,16 @@ export default { }, mounted() { localStorage.removeItem("activeName") - console.log(this.$store.state.user); - console.log(this.$store.state.user.roles[0]); - + if (localStorage.getItem('ismypagination')) { + + if (JSON.parse(localStorage.getItem('ismypagination')).isfanhui) { + this.formInline = JSON.parse(localStorage.getItem('ismypagination')) + this.handleQuery() + } else { + localStorage.removeItem("ismypagination") + } + } + localStorage.removeItem("ismypaginationTow") this.getInfo(); this.cancalDebounce(); window.addEventListener('resize', this.cancalDebounce); @@ -239,9 +245,9 @@ export default { // 获取列表 getInfo() { this.loading = true; - if(this.$store.state.user.roles.includes("unit")){ - this.pagination.dwmc=this.$store.state.user.useer.nickName - } + if (this.$store.state.user.roles.includes("unit")) { + this.pagination.dwmc = this.$store.state.user.useer.nickName + } getassetTask(this.pagination).then(res => { this.loading = false; this.total = res.data.total; @@ -261,6 +267,8 @@ export default { current: 1, size: 10, } + localStorage.removeItem("ismypagination") + this.getInfo(); }, //打开列表 @@ -288,6 +296,9 @@ export default { this.formInline.endTime = this.formInline.time[1] } this.pagination = { ...this.pagination, ...this.formInline }; + + this.formInline.isfanhui = false + localStorage.setItem("ismypagination", JSON.stringify(this.formInline)) this.getInfo(); }, // 页码获取 @@ -314,20 +325,20 @@ export default { this.$router.push({ name: 'mytaskInfo', query: { pageType: "look", - id:row.id, - dwmc:row.dwmc + id: row.id, + dwmc: row.dwmc } }) }, delInfo(row) { //taskAudit console.log(row); - + this.$router.push({ name: 'mytaskInfo', query: { pageType: "info", - id:row.id, - dwmc:row.dwmc + id: row.id, + dwmc: row.dwmc } }) }, @@ -335,7 +346,7 @@ export default { edit() { }, // 审核 - + // 修改table背景色 tableRowClassName({ row, rowIndex }) { if (rowIndex % 2 !== 0) { diff --git a/src/views/unitPages/myTask/info.vue b/src/views/unitPages/myTask/info.vue index 50c4bf4..a516b79 100644 --- a/src/views/unitPages/myTask/info.vue +++ b/src/views/unitPages/myTask/info.vue @@ -5,6 +5,8 @@