From d90edb70bbc17c8c433710c9261f30c6a8200981 Mon Sep 17 00:00:00 2001 From: xy <271556543@qq.com> Date: Fri, 5 May 2023 13:14:22 +0800 Subject: [PATCH] 2023-5-5 --- src/api/dashboard/notice.js | 9 + .../achievements/components/addEvaluate.vue | 8 + src/views/budget/components/addUpload.vue | 9 + src/views/budget/upload.vue | 12 +- src/views/contract/contractList.vue | 3 + src/views/system/workerComponents/toDo.vue | 227 ++++++++++++------ 6 files changed, 188 insertions(+), 80 deletions(-) diff --git a/src/api/dashboard/notice.js b/src/api/dashboard/notice.js index 9983bd0..545357a 100644 --- a/src/api/dashboard/notice.js +++ b/src/api/dashboard/notice.js @@ -9,6 +9,15 @@ export function getNotice(params,noLoading = false){ }) } +export function getNotice2(params,noLoading = false){ + return request({ + method:'get', + url:'/api/admin/notice/index-v2', + params, + noLoading + }) +} + export function readNotice(params){ return request({ method:'get', diff --git a/src/views/achievements/components/addEvaluate.vue b/src/views/achievements/components/addEvaluate.vue index a8c912d..46f05dd 100644 --- a/src/views/achievements/components/addEvaluate.vue +++ b/src/views/achievements/components/addEvaluate.vue @@ -203,6 +203,13 @@ export default { async getDetail() { const res = await show({ id: this.id }); this.$integrateData(this.form, res); + this.fileList = res.files.map(i => { + return { + url: i.url, + name: i.original_name, + response: i + } + }) }, submit() { @@ -219,6 +226,7 @@ export default { writable: true, }); } + this.form.file_ids = this.fileList.map(i => i.response?.id) save(this.form).then((res) => { this.$message({ type: "success", diff --git a/src/views/budget/components/addUpload.vue b/src/views/budget/components/addUpload.vue index b9c6cf5..516e2e6 100644 --- a/src/views/budget/components/addUpload.vue +++ b/src/views/budget/components/addUpload.vue @@ -199,7 +199,15 @@ export default { async getDetail() { const res = await show({ id: this.id }); + res.year = res.year.toString(); this.$integrateData(this.form, res); + this.fileList = res.files.map(i => { + return { + url: i.url, + name: i.original_name, + response: i + } + }) }, submit() { @@ -216,6 +224,7 @@ export default { writable: true, }); } + this.form.file_ids = this.fileList.map(i => i.response?.id); save(this.form).then((res) => { this.$message({ type: "success", diff --git a/src/views/budget/upload.vue b/src/views/budget/upload.vue index 3645f53..ff24346 100644 --- a/src/views/budget/upload.vue +++ b/src/views/budget/upload.vue @@ -25,7 +25,7 @@ :table-item="table" @editor="row => { $refs['addUpload'].id = row.id; - $refs['addUpload'].type = 'edit'; + $refs['addUpload'].type = 'editor'; $refs['addUpload'].show(); }" @delete=""> @@ -56,6 +56,10 @@ export default { }, total: 0, table: [ + { + type: "index", + width: 60 + }, { label: "项目所属年份", prop: "year", @@ -64,7 +68,13 @@ export default { { label: "备注", prop: "remark", + align: "left", minWidth: 200 + }, + { + label: "上传时间", + prop: "created_at", + width: 200 } ], list: [] diff --git a/src/views/contract/contractList.vue b/src/views/contract/contractList.vue index c4c113b..fbfe786 100644 --- a/src/views/contract/contractList.vue +++ b/src/views/contract/contractList.vue @@ -1859,6 +1859,7 @@ export default { supply:this.form.supply, money:this.form?.money, status:this.form?.is_simple ? 2 : 1, + is_framework:this.form?.is_framework }).then(res => { this.isShowAdd = false Message({ @@ -1995,10 +1996,12 @@ export default { } }, created() { + this.select.keyword = this.$route.query.keyword iframe = document.createElement('iframe'); iframe.src = `${process.env.VUE_APP_OUT_OLD}/login/oss_login?id=${this.$store.state.user.userId}&username=${this.$store.state.user.username}` iframe.style.display = 'none' document.body.appendChild(iframe); + }, destroyed() { window.onfocus = null diff --git a/src/views/system/workerComponents/toDo.vue b/src/views/system/workerComponents/toDo.vue index 53a9d9f..56d9734 100644 --- a/src/views/system/workerComponents/toDo.vue +++ b/src/views/system/workerComponents/toDo.vue @@ -8,25 +8,38 @@
-
+
-
- +
+