From a7689afd3cd1fe4bbbd907e9aa2931a940ae8e5b Mon Sep 17 00:00:00 2001
From: linwei <872216696@qq.com>
Date: Fri, 05 Jan 2024 18:15:18 +0800
Subject: [PATCH] bug 修复
---
src/views/article/publicSignUp.vue | 108 ++++++-----------------------------------------------
1 files changed, 13 insertions(+), 95 deletions(-)
diff --git a/src/views/article/publicSignUp.vue b/src/views/article/publicSignUp.vue
index 5db84af..100e00c 100644
--- a/src/views/article/publicSignUp.vue
+++ b/src/views/article/publicSignUp.vue
@@ -13,6 +13,9 @@
<el-button icon="el-icon-circle-plus-outline" :size="size" :type="type" @click.stop="openDilog(row,0)">
公益报名
</el-button>
+ <el-button icon="el-icon-user" :size="size" :type="type" @click.stop="openUserPopup(row, 1)">
+ 参与用户
+ </el-button>
<el-button v-if="row.publish == '1'" icon="el-icon-close" :size="size" :type="type" @click.stop="updateFb(row)">
撤销
</el-button>
@@ -40,11 +43,11 @@
<span slot="title" class="dialog-footer">
{{discussForm.ontitle}}
</span>
- <div id="" v-if="discussForm.eventType == 1">
+ <!-- <div id="" v-if="discussForm.eventType == 1">
<avue-form @submit="handleSubmit" :option="optionDiscuss" v-model="discussForm"></avue-form>
- </div>
+ </div> -->
- <div id="" v-else>
+ <div id="">
<avue-form @submit="handleSubmit" :option="optionEnroll" v-model="discussForm">
</avue-form>
</div>
@@ -133,7 +136,7 @@
border: false,
//stripe:true,
index: true,
- viewBtn: true,
+ viewBtn: false,
selection: true,
excelBtn: true,
dialogClickModal: false,
@@ -165,18 +168,6 @@
// hide: true,
span: 24,
},
- // {
- // label: "资讯来源",
- // prop: "sourceName",
- // search: true,
- // searchSpan: 4,
- // span: 24,
- // rules: [{
- // required: true,
- // message: "请输入资讯类型",
- // trigger: "blur",
- // }, ],
- // },
{
label: "资讯范围",
prop: "articleList",
@@ -202,7 +193,7 @@
prop: "type",
searchSpan: 3,
width: 80,
- value: 2,
+ value: 3,
slot: true,
search: true,
type: "select",
@@ -282,30 +273,12 @@
}
],
},
-
- // {
- // label: "视频",
- // prop: "videoUrl",
- // type: "upload",
- // accept: "video/mp4",
- // display: false,
- // hide: true,
- // span: 24,
- // listType: "picture-img",
- // action: "/api/depl/put-depl",
- // propsHttp: {
- // url: "data",
- // },
- // },
{
label: "资讯内容",
prop: "content",
component: "AvueUeditor",
options: {
action: "/api/blade-resource/oss/endpoint/put-file",
- // customConfig: {
- // lineHeights: ['1', '1.15', '1.6', '2', '2.5', '3']
- // },//wangEditor编辑的配置
props: {
res: "data",
url: "link",
@@ -383,59 +356,6 @@
message: "请选截止时间",
trigger: "blur",
}, ],
- },
- ]
- },
- optionDiscuss: {
- column: [{
- label: "",
- type: 'title',
- prop: "title",
- span: 24,
- row: true,
- offset: 2,
- styles: {
- fontSize: '24px'
- }
- }, {
- labelWidth: 100,
- label: '开启投票',
- prop: 'openFlag',
- type: 'radio',
- button: true,
- row: true,
- offset: 6,
- dicData: [{
- label: '开启',
- value: 0
- }, {
- label: '不开启',
- value: 1
- }]
- }, {
- labelWidth: 100,
- label: '开启签名',
- prop: 'signatureFlag',
- type: 'radio',
- button: true,
- row: true,
- offset: 6,
- dicData: [{
- label: '开启',
- value: 0
- }, {
- label: '不开启',
- value: 1
- }]
- },
- {
- label: "截止时间",
- row: true,
- offset: 6,
- prop: "endTime",
- type: "datetime",
- format: "yyyy-MM-dd hh:mm:ss",
- valueFormat: "timestamp",
},
]
},
@@ -525,9 +445,9 @@
// .catch(_ => {});
},
rowSave(row, done, loading) {
- if (row.videoUrl.length == 0) {
- row.videoUrl = "";
- }
+ // if (row.videoUrl.length == 0) {
+ // row.videoUrl = "";
+ // }
row.userid = this.userInfo.user_id;
row.articleRange = JSON.stringify(row.articleList)
if (row.url.length > 0) {
@@ -641,7 +561,6 @@
if (["edit", "view"].includes(type)) {
getNotice(this.form.id).then((res) => {
let data = res.data.data
- // data.forEach(item=>{
if (data.url.length > 0) {
var urls = []
var names = data.url.split(",");
@@ -650,11 +569,10 @@
})
data.url = urls.join(",")
}
- // })
+ data.articleList = JSON.parse(data.articleRange)
this.form = data;
});
}
- // con
done();
},
currentChange(currentPage) {
@@ -790,4 +708,4 @@
.avue-upload__icon {
line-height: 6;
}
-</style>
\ No newline at end of file
+</style>
--
Gitblit v1.9.3