From 62237a82451bddbff1a1909d13d5a8107dcfca3b Mon Sep 17 00:00:00 2001 From: Apcallover <1503963513@qq.com> Date: Fri, 19 Apr 2024 17:21:50 +0800 Subject: [PATCH] =?UTF-8?q?flat:=20=E8=A2=AB=E9=A9=B3=E5=9B=9E=E4=B9=9F?= =?UTF-8?q?=E5=8F=AF=E4=BB=A5=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/manage/station/inviteCode.vue | 137 ++++++++++++------------ 1 file changed, 67 insertions(+), 70 deletions(-) diff --git a/src/views/manage/station/inviteCode.vue b/src/views/manage/station/inviteCode.vue index 1600008..17d6866 100644 --- a/src/views/manage/station/inviteCode.vue +++ b/src/views/manage/station/inviteCode.vue @@ -1,33 +1,33 @@
+ v-for="item in enterpriseList" + :key="item.id" + :label="item.comname" + :value="item.id"> @@ -206,11 +206,11 @@ const page = { total: 0, } const message = lodash.throttle( - function (options) { - Message(options); - }, - 3000, - {trailing: false} + function (options) { + Message(options); + }, + 3000, + {trailing: false} ); export default { name: "manage_station_inviteCode", @@ -245,12 +245,10 @@ export default { }); return; } - let idList = this.selectionList.filter((item) => item.reviewStatus === 0).map((v) => v.id) - if (idList.length == 0) { - this.$message.error("只能提交【审核中】的任务"); - } else { - let h = this.$createElement; - this.$prompt( + let idList = this.selectionList.map((v) => v.id) + + let h = this.$createElement; + this.$prompt( h("p", {style: "color: #F56C6C"}, "一旦驳回无法进行后续操作"), "请核对企业信息后再进行审核通过", { @@ -277,8 +275,7 @@ export default { } } } - ) - } + ) }, handelFetchAuditing(idList, reviewState, msg, message) { return new Promise((resolve, reject) => { @@ -315,30 +312,30 @@ export default { rowDel(row) { const h = this.$createElement; this.$confirm( - h("div", null, [ - h("p", {style: "font-size: 16px"}, "您确定要删除此消息吗? "), - h("p", {style: "color: red"}, "一旦删除则无法找回"), - ]), - { - type: "warning", - showClose: false, - showCancelButton: true, - confirmButtonText: "确定", - cancelButtonText: "取消", - } + h("div", null, [ + h("p", {style: "font-size: 16px"}, "您确定要删除此消息吗? "), + h("p", {style: "color: red"}, "一旦删除则无法找回"), + ]), + { + type: "warning", + showClose: false, + showCancelButton: true, + confirmButtonText: "确定", + cancelButtonText: "取消", + } ) - .then(() => { - return getInvitationStatusUpdate({id: row.id, isDeleted: 1}); - }) - .then(() => { - this.$message({ - type: "success", - message: "操作成功!", + .then(() => { + return getInvitationStatusUpdate({id: row.id, isDeleted: 1}); + }) + .then(() => { + this.$message({ + type: "success", + message: "操作成功!", + }); + this.refreshChange(); + }) + .catch(() => { }); - this.refreshChange(); - }) - .catch(() => { - }); }, selectionChange(list) { this.selectionList = list;