From 47670068db2f8afa289eb838aa066daff9d11d68 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Thu, 1 Apr 2021 16:19:07 +0800 Subject: [PATCH] =?UTF-8?q?recorddo=20=E9=A1=B5=E9=9D=A2=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/views/supervision/record.vue | 2 +- client/src/views/supervision/recorddo.vue | 222 +++++++++++----------- 2 files changed, 111 insertions(+), 113 deletions(-) diff --git a/client/src/views/supervision/record.vue b/client/src/views/supervision/record.vue index f66aaec..fb326af 100644 --- a/client/src/views/supervision/record.vue +++ b/client/src/views/supervision/record.vue @@ -260,7 +260,7 @@ @pagination="getList" /> - +
上报记录
-
- 材料内容 - {{ record.content_name }} -
-
- 材料详情 - {{ record.content_desc }} -
-
- 上报状态 - {{ record.state }} - 主动上报 -
-
- 所属任务 - {{ record.task_.name }} -
-
- 任务过期 - {{ record.task_.end_date }} -
-
- 报送要求/备注 - {{ record.note }} - + + {{ record.content_name }} + + + {{ record.content_desc }} + + + {{ record.state }} + 主动上报 + + + {{ record.task_.name }}/{{ record.task_.end_date }} + + + {{ + record.note + }} + + + + + {{ record.belong_dept_.name }} + + + {{ record.up_user_.name }}/{{ record.up_date }} + + + {{ record.noteb }} + + + + + + + + {{record.opinion}} + + + + + 上传文件 + + 可上传pdf,word,ppt,excel,图片文件,大小不超过50M + + + +
- -
-
- 执行组织 - {{ record.belong_dept_.name }} -
-
- 上报人 - {{ record.up_user_.name }}/{{ record.up_date }} -
-
- 上报说明 - {{ record.noteb }} - - -
-
- 是否适用 - -
-
- 修改意见 - {{ record.opinion }} - - -
-
- 已上传文件 -
-
- - {{ item.name }} -
-
- - 上传文件 - - -
+ + {{ + item.name + }} +
+
.ma { margin-bottom: 10px; + font-size: 20px; } -.term { +.el-form-item { + margin-bottom: 0px; +} +/* .term { color: rgba(0, 0, 0, 0.85); font-weight: bold; font-size: 16px; @@ -126,7 +118,7 @@ color: rgba(0, 0, 0, 0.65); font-weight: bold; font-size: 16px; -} +} */ .litem { margin-left: 2px; cursor: pointer; @@ -140,7 +132,7 @@ import { upRecord, rejectRecord, confirmRecord, - deleteRecord + deleteRecord, } from "@/api/record"; export default { name: "recorddo", @@ -161,7 +153,7 @@ export default { }, methods: { initRecord() { - this.record = Object.assign({}, this.data.record); + this.record = Object.assign({}, this.data.record); }, initList() { for (var i = 0; i < this.record.files_.length; i++) { @@ -178,7 +170,7 @@ export default { name: res.data.name, path: res.data.path, }); - this.handleRemove(file) + this.handleRemove(file); }, handleRemove(file) { // 实现删除文件 @@ -195,10 +187,17 @@ export default { } return isLt2M; }, - deleteFile(index){ - this.$confirm('确定删除该文件, 是否继续?', {type:'error'}).then(() => { - this.fileList.splice(index, 1) - }).catch(e=>{}) + deleteFile(index) { + this.$confirm("确定删除该文件, 是否继续?", { type: "error" }) + .then(() => { + this.fileList.splice(index, 1); + }) + .catch((e) => {}); + }, + yeschange(val) { + if (!val) { + this.fileList = []; + } }, confirm() { if (this.data.action == "update") { @@ -235,18 +234,17 @@ export default { this.$emit("handleDo"); } else if (this.data.action == "delete") { this.$confirm("确认删除?", "警告", { - type: "error", - }) - .then(async () => { - await deleteRecord(this.record.id); - this.$message.success("成功"); - this.$emit("handleDo"); + type: "error", }) - .catch((err) => { - console.error(err); - }); + .then(async () => { + await deleteRecord(this.record.id); + this.$message.success("成功"); + this.$emit("handleDo"); + }) + .catch((err) => { + console.error(err); + }); } - }, }, };