+ 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;