From 9d6c86a9ddfbecd710b4358a72c82bb3d21e3f3a Mon Sep 17 00:00:00 2001 From: TiaStars Date: Tue, 17 Oct 2023 17:05:50 +0800 Subject: [PATCH] 17:05 --- .env.development | 8 ---- src/views/tcZz/netManage/gzdt/index.vue | 39 ++++++++++++++----- src/views/tcZz/netManage/jbmap/index.vue | 5 ++- src/views/tcZz/netManage/jbsjndfltj/index.vue | 30 +++++++++++--- src/views/tcZz/netManage/ytlc/index.vue | 39 ++++++++++++++----- src/views/tcZz/netManage/zdgzxm/index.vue | 10 ++++- src/views/tcZz/netWorkYq/yqbg/index.vue | 39 ++++++++++++++----- src/views/tcZz/netWorkYq/yqxxltj/index.vue | 5 ++- src/views/tcZz/netWorkYq/yqyj/index.vue | 5 ++- 9 files changed, 129 insertions(+), 51 deletions(-) diff --git a/.env.development b/.env.development index 69c5e64..017f1d3 100644 --- a/.env.development +++ b/.env.development @@ -1,11 +1,3 @@ -### - # @Descripttion: - # @version: - # @Author: JC9527 - # @Date: 2023-10-12 11:15:34 - # @LastEditors: JC9527 - # @LastEditTime: 2023-10-13 10:50:13 -### # 页面标题 VUE_APP_TITLE = 若依管理系统 diff --git a/src/views/tcZz/netManage/gzdt/index.vue b/src/views/tcZz/netManage/gzdt/index.vue index 5232d2a..3b43e89 100644 --- a/src/views/tcZz/netManage/gzdt/index.vue +++ b/src/views/tcZz/netManage/gzdt/index.vue @@ -238,7 +238,7 @@ --> - + @@ -352,7 +352,8 @@ form: {}, // 表单校验 rules: { - } + }, + fileNameS:[] }; }, created() { @@ -445,15 +446,27 @@ /** 新增按钮操作 */ handleAdd() { this.reset(); + this.fileNameS = []; this.open = true; this.title = "添加工作动态"; }, /** 修改按钮操作 */ handleUpdate(row) { this.reset(); + this.fileNameS = [] const id = row.id || this.ids getGzdt(id).then(response => { this.form = response.data; + if (response.data.fileName && response.data.fileUrl) { + let arr1 = response.data.fileName.split(","); + let arr2 = response.data.fileUrl.split(","); + arr1.forEach((value, index) => { + this.fileNameS.push({ + name: value, + url: arr2[index], + }); + }); + } this.open = true; this.title = "修改工作动态"; }); @@ -471,16 +484,22 @@ }, /** 提交按钮 */ submitForm() { + let arr1 = []; + let arr2 = []; + console.log(this.fileNameS) + if (this.fileNameS.length > 0) { + this.fileNameS.forEach((value) => { + arr1.push(value.name); + arr2.push(value.url); + }); + this.form.fileName = arr1.join(","); + this.form.fileUrl = arr2.join(","); + } else { + this.form.fileName = ""; + this.form.fileUrl = ""; + } this.$refs["form"].validate(valid => { if (valid) { - let arr = []; - let arr2 = [] - this.form.fileUrl.map((item)=>{ - arr.push(item.name); - arr2.push(item.url); - }) - this.form.fileName = arr.join(','); - this.form.fileUrl = arr2.join(','); if (this.form.id != null) { updateGzdt(this.form).then(response => { this.$modal.msgSuccess("修改成功"); diff --git a/src/views/tcZz/netManage/jbmap/index.vue b/src/views/tcZz/netManage/jbmap/index.vue index aaf86ea..f18d863 100644 --- a/src/views/tcZz/netManage/jbmap/index.vue +++ b/src/views/tcZz/netManage/jbmap/index.vue @@ -298,7 +298,8 @@ - + + @@ -350,7 +351,7 @@ {{ form.address }} -
+ {{ form.content }} {{ selectDictLabel(dict.type.tc_czstate,form.state) }} diff --git a/src/views/tcZz/netManage/jbsjndfltj/index.vue b/src/views/tcZz/netManage/jbsjndfltj/index.vue index b1435fa..33187eb 100644 --- a/src/views/tcZz/netManage/jbsjndfltj/index.vue +++ b/src/views/tcZz/netManage/jbsjndfltj/index.vue @@ -12,13 +12,21 @@ />
--> - + /> --> + + + - + + + @@ -161,7 +173,14 @@
{{ title }}
- + + + @@ -188,7 +207,7 @@
{{ infoTitle }}
- {{ form.type }} + {{ selectDictLabel(dict.type.tc_jbsjtype,form.type) }} {{ form.count }} @@ -205,6 +224,7 @@ export default { name: "Jbsjndfltj", //注释字典 + dicts: ['tc_jbsjtype'], data() { return { tableHeigth: 0, diff --git a/src/views/tcZz/netManage/ytlc/index.vue b/src/views/tcZz/netManage/ytlc/index.vue index 0275306..ab7610d 100644 --- a/src/views/tcZz/netManage/ytlc/index.vue +++ b/src/views/tcZz/netManage/ytlc/index.vue @@ -168,7 +168,7 @@
--> - + @@ -269,7 +269,8 @@ form: {}, // 表单校验 rules: { - } + }, + fileNameS:[] }; }, created() { @@ -356,31 +357,49 @@ /** 新增按钮操作 */ handleAdd() { this.reset(); + this.fileNameS = []; this.open = true; this.title = "添加约谈流程"; }, /** 修改按钮操作 */ handleUpdate(row) { this.reset(); + this.fileNameS = [] const id = row.id || this.ids getYtlc(id).then(response => { this.form = response.data; + if (response.data.fileName && response.data.fileUrl) { + let arr1 = response.data.fileName.split(","); + let arr2 = response.data.fileUrl.split(","); + arr1.forEach((value, index) => { + this.fileNameS.push({ + name: value, + url: arr2[index], + }); + }); + } this.open = true; this.title = "修改约谈流程"; }); }, /** 提交按钮 */ submitForm() { + let arr1 = []; + let arr2 = []; + console.log(this.fileNameS) + if (this.fileNameS.length > 0) { + this.fileNameS.forEach((value) => { + arr1.push(value.name); + arr2.push(value.url); + }); + this.form.fileName = arr1.join(","); + this.form.fileUrl = arr2.join(","); + } else { + this.form.fileName = ""; + this.form.fileUrl = ""; + } this.$refs["form"].validate(valid => { if (valid) { - let arr = []; - let arr2 = [] - this.form.fileUrl.map((item)=>{ - arr.push(item.name); - arr2.push(item.url); - }) - this.form.fileName = arr.join(','); - this.form.fileUrl = arr2.join(','); if (this.form.id != null) { console.log(this.form) updateYtlc(this.form).then(response => { diff --git a/src/views/tcZz/netManage/zdgzxm/index.vue b/src/views/tcZz/netManage/zdgzxm/index.vue index 03a16e1..c77fc4c 100644 --- a/src/views/tcZz/netManage/zdgzxm/index.vue +++ b/src/views/tcZz/netManage/zdgzxm/index.vue @@ -245,7 +245,8 @@ - + + @@ -283,7 +284,7 @@ {{ form.itemName }} -
+ {{ form.itemContent }}
@@ -540,3 +541,8 @@ } + diff --git a/src/views/tcZz/netWorkYq/yqbg/index.vue b/src/views/tcZz/netWorkYq/yqbg/index.vue index c8a3317..f272940 100644 --- a/src/views/tcZz/netWorkYq/yqbg/index.vue +++ b/src/views/tcZz/netWorkYq/yqbg/index.vue @@ -223,7 +223,7 @@
--> - + @@ -337,7 +337,8 @@ form: {}, // 表单校验 rules: { - } + }, + fileNameS:[] }; }, created() { @@ -430,15 +431,27 @@ /** 新增按钮操作 */ handleAdd() { this.reset(); + this.fileNameS = []; this.open = true; this.title = "添加舆情报告"; }, /** 修改按钮操作 */ handleUpdate(row) { this.reset(); + this.fileNameS = [] const id = row.id || this.ids getYqbg(id).then(response => { this.form = response.data; + if (response.data.fileName && response.data.fileUrl) { + let arr1 = response.data.fileName.split(","); + let arr2 = response.data.fileUrl.split(","); + arr1.forEach((value, index) => { + this.fileNameS.push({ + name: value, + url: arr2[index], + }); + }); + } this.open = true; this.title = "修改舆情报告"; }); @@ -456,16 +469,22 @@ }, /** 提交按钮 */ submitForm() { + let arr1 = []; + let arr2 = []; + console.log(this.fileNameS) + if (this.fileNameS.length > 0) { + this.fileNameS.forEach((value) => { + arr1.push(value.name); + arr2.push(value.url); + }); + this.form.fileName = arr1.join(","); + this.form.fileUrl = arr2.join(","); + } else { + this.form.fileName = ""; + this.form.fileUrl = ""; + } this.$refs["form"].validate(valid => { if (valid) { - let arr = []; - let arr2 = [] - this.form.fileUrl.map((item)=>{ - arr.push(item.name); - arr2.push(item.url); - }) - this.form.fileName = arr.join(','); - this.form.fileUrl = arr2.join(','); if (this.form.id != null) { updateYqbg(this.form).then(response => { this.$modal.msgSuccess("修改成功"); diff --git a/src/views/tcZz/netWorkYq/yqxxltj/index.vue b/src/views/tcZz/netWorkYq/yqxxltj/index.vue index 4500e5b..5d68523 100644 --- a/src/views/tcZz/netWorkYq/yqxxltj/index.vue +++ b/src/views/tcZz/netWorkYq/yqxxltj/index.vue @@ -275,7 +275,8 @@ - + + @@ -311,7 +312,7 @@ {{ form.dateTime }} -
+ {{ form.content }} {{ form.remark }} diff --git a/src/views/tcZz/netWorkYq/yqyj/index.vue b/src/views/tcZz/netWorkYq/yqyj/index.vue index 1c3d73e..1a0f6d8 100644 --- a/src/views/tcZz/netWorkYq/yqyj/index.vue +++ b/src/views/tcZz/netWorkYq/yqyj/index.vue @@ -250,7 +250,8 @@
- + + @@ -284,7 +285,7 @@ {{ form.dateTime }} -
+ {{ form.content }} {{ form.remark }}