From 12bf2d64efe9c62a33fc10b1acdca9ecfcd10fce Mon Sep 17 00:00:00 2001
From: lin <sbla5888@163.com>
Date: Mon, 11 Mar 2024 11:20:41 +0800
Subject: [PATCH] 邮件信息优化
---
src/views/article/components/discussionManageChild.vue | 73 +++++++++++++++++++++++++-----------
1 files changed, 51 insertions(+), 22 deletions(-)
diff --git a/src/views/article/components/discussionManageChild.vue b/src/views/article/components/discussionManageChild.vue
index ff314b1..ec2efbf 100644
--- a/src/views/article/components/discussionManageChild.vue
+++ b/src/views/article/components/discussionManageChild.vue
@@ -198,7 +198,13 @@
]
},
// 表单列表
- froms: {},
+ froms: {
+ openFlag: 0,
+ voteRestrictions: 1,
+ signatureFlag: 1,
+ appointUser: 0,
+
+ },
dialogVisibles: false,
articleId: '',
discussion: {},
@@ -249,16 +255,15 @@
},
handleSubmit(form, done) {
- console.log("**********" + JSON.stringify(form))
form.articleId = this.articleId
form.eventType = 1
form.userIds = JSON.stringify(form.userIds)
if (form.appointUser == 0) {
form.userIds = ''
}
- console.log("===>", JSON.stringify(this.froms))
- form.id = this.id;
- console.log("formData====>", JSON.stringify(formData))
+
+ form.id = this.id
+
addPd(form).then(
() => {
// this.onLoad(this.discussion)
@@ -268,7 +273,13 @@
})
done()
this.$refs.DisCussFrom && this.$refs.DisCussFrom.resetForm()
- this.froms = {}
+ this.froms = {
+ openFlag: 0,
+ voteRestrictions: 1,
+ signatureFlag: 1,
+ appointUser: 0,
+
+ }
this.dialogVisibles = false
},
(error) => {
@@ -277,49 +288,67 @@
)
},
init(data) {
- // console.log("====>", data);
+ console.log("===init===", data)
this.$refs.DisCussFrom && this.$refs.DisCussFrom.resetForm()
this.dialogVisibles = true
- this.froms = {}
+ this.froms = {
+ openFlag: 0,
+ voteRestrictions: 1,
+ signatureFlag: 1,
+ appointUser: 0,
+ }
this.discussion = data
this.articleId = data.id
this.onLoad(data)
},
handleClose() {
- console.log("**********************************************************************************")
+ console.log("******handleClose*******")
this.dialogVisibles = false
this.$refs.DisCussFrom && this.$refs.DisCussFrom.resetForm()
- this.froms = {};
- console.log("^^^^^", this.froms)
- console.log(this.$refs, 90999)
+ this.froms = {
+ openFlag: 0,
+ voteRestrictions: 1,
+ signatureFlag: 1,
+ appointUser: 0,
+ }
},
opens() {
- console.log("***************************************opens*******************************************")
+ console.log("******opens*******")
// this.dialogVisibles = false
this.$refs.DisCussFrom && this.$refs.DisCussFrom.resetForm()
- this.froms = {};
- console.log("^^^^^", this.froms)
- console.log(this.$refs, 90999)
+ this.froms = {
+ openFlag: 0,
+ voteRestrictions: 1,
+ signatureFlag: 1,
+ appointUser: 0,
+ }
},
onLoad(row, params = {
eventType: 1,
articleId: row.id
}) {
- this.loading = true
+ // this.loading = true
getListPd(1, 10, Object.assign(params, this.query)).then(res => {
const data = res.data.data
this.$refs.DisCussFrom && this.$refs.DisCussFrom.resetForm()
if (data.records.length <= 0) {
- console.log("----------------------------------")
- this.froms = {}
+ console.log("--------onLoad------------")
+ this.id = ''
+ this.froms = {
+ openFlag: 0,
+ voteRestrictions: 1,
+ signatureFlag: 1,
+ appointUser: 0,
+ }
} else {
- console.log(">>>>>", data.records[0])
+ console.log(">>>>>onLoad", data.records[0])
this.froms = data.records[0]
- this.id = data.records[0].id;
- formData = data.records[0];
+
+ this.id = data.records[0].id
+ formData = data.records[0]
if (this.froms && this.froms.userIds) {
this.froms.userIds = JSON.parse(this.froms.userIds)
}
--
Gitblit v1.9.3