flat: 被驳回也可以修改
This commit is contained in:
@@ -1,33 +1,33 @@
|
|||||||
<template>
|
<template>
|
||||||
<basic-container>
|
<basic-container>
|
||||||
<avue-crud
|
<avue-crud
|
||||||
ref="crud"
|
ref="crud"
|
||||||
:table-loading="loading"
|
:table-loading="loading"
|
||||||
@date-change="dateChange"
|
@date-change="dateChange"
|
||||||
@current-change="currentChange"
|
@current-change="currentChange"
|
||||||
@size-change="sizeChange"
|
@size-change="sizeChange"
|
||||||
@on-load="onLoad"
|
@on-load="onLoad"
|
||||||
:option="option"
|
:option="option"
|
||||||
:data="inviteCodeList"
|
:data="inviteCodeList"
|
||||||
:page.sync="page"
|
:page.sync="page"
|
||||||
@row-del="rowDel"
|
@row-del="rowDel"
|
||||||
@search-change="searchChange"
|
@search-change="searchChange"
|
||||||
@refresh-change="refreshChange"
|
@refresh-change="refreshChange"
|
||||||
@search-reset="searchReset"
|
@search-reset="searchReset"
|
||||||
@selection-change="selectionChange"
|
@selection-change="selectionChange"
|
||||||
>
|
>
|
||||||
<template slot="menuLeft">
|
<template slot="menuLeft">
|
||||||
<el-button
|
<el-button
|
||||||
size="small"
|
size="small"
|
||||||
@click.stop="distributionCodeDialog = true; isEdit = false; inviteCodeForm = {}"
|
@click.stop="distributionCodeDialog = true; isEdit = false; inviteCodeForm = {}"
|
||||||
type="primary"
|
type="primary"
|
||||||
v-show="vaildData(permission.manage_station_inviteCode_edituser, false)"
|
v-show="vaildData(permission.manage_station_inviteCode_edituser, false)"
|
||||||
>新增用户
|
>新增用户
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
size="small"
|
size="small"
|
||||||
@click.stop="handleCheck"
|
@click.stop="handleCheck"
|
||||||
type="primary"
|
type="primary"
|
||||||
>审核
|
>审核
|
||||||
</el-button>
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
@@ -37,21 +37,21 @@
|
|||||||
</template>
|
</template>
|
||||||
<template slot="isEnabled" slot-scope="{ row }">
|
<template slot="isEnabled" slot-scope="{ row }">
|
||||||
<el-switch
|
<el-switch
|
||||||
:value="row.isEnabled"
|
:value="row.isEnabled"
|
||||||
:active-value="1"
|
:active-value="1"
|
||||||
:inactive-value="0"
|
:inactive-value="0"
|
||||||
active-color="#13ce66"
|
active-color="#13ce66"
|
||||||
inactive-color="#ff4949"
|
inactive-color="#ff4949"
|
||||||
@change="changeEnabled(row)">
|
@change="changeEnabled(row)">
|
||||||
</el-switch>
|
</el-switch>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
</avue-crud>
|
</avue-crud>
|
||||||
<el-drawer
|
<el-drawer
|
||||||
title="新增用户"
|
title="新增用户"
|
||||||
:visible.sync="distributionCodeDialog"
|
:visible.sync="distributionCodeDialog"
|
||||||
append-to-body
|
append-to-body
|
||||||
width="40%"
|
width="40%"
|
||||||
>
|
>
|
||||||
<div class="drawer_content">
|
<div class="drawer_content">
|
||||||
<el-form :model="inviteCodeForm" :rules="inviteCodeRules" filterable ref="inviteCode" label-width="100px"
|
<el-form :model="inviteCodeForm" :rules="inviteCodeRules" filterable ref="inviteCode" label-width="100px"
|
||||||
@@ -60,10 +60,10 @@
|
|||||||
<el-select v-model="inviteCodeForm.inviteCompanyId" :disabled="isEdit" filterable placeholder="请选择企业"
|
<el-select v-model="inviteCodeForm.inviteCompanyId" :disabled="isEdit" filterable placeholder="请选择企业"
|
||||||
style="width: 260px">
|
style="width: 260px">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in enterpriseList"
|
v-for="item in enterpriseList"
|
||||||
:key="item.id"
|
:key="item.id"
|
||||||
:label="item.comname"
|
:label="item.comname"
|
||||||
:value="item.id">
|
:value="item.id">
|
||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@@ -206,11 +206,11 @@ const page = {
|
|||||||
total: 0,
|
total: 0,
|
||||||
}
|
}
|
||||||
const message = lodash.throttle(
|
const message = lodash.throttle(
|
||||||
function (options) {
|
function (options) {
|
||||||
Message(options);
|
Message(options);
|
||||||
},
|
},
|
||||||
3000,
|
3000,
|
||||||
{trailing: false}
|
{trailing: false}
|
||||||
);
|
);
|
||||||
export default {
|
export default {
|
||||||
name: "manage_station_inviteCode",
|
name: "manage_station_inviteCode",
|
||||||
@@ -245,12 +245,10 @@ export default {
|
|||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
let idList = this.selectionList.filter((item) => item.reviewStatus === 0).map((v) => v.id)
|
let idList = this.selectionList.map((v) => v.id)
|
||||||
if (idList.length == 0) {
|
|
||||||
this.$message.error("只能提交【审核中】的任务");
|
let h = this.$createElement;
|
||||||
} else {
|
this.$prompt(
|
||||||
let h = this.$createElement;
|
|
||||||
this.$prompt(
|
|
||||||
h("p", {style: "color: #F56C6C"}, "一旦驳回无法进行后续操作"),
|
h("p", {style: "color: #F56C6C"}, "一旦驳回无法进行后续操作"),
|
||||||
"请核对企业信息后再进行审核通过",
|
"请核对企业信息后再进行审核通过",
|
||||||
{
|
{
|
||||||
@@ -277,8 +275,7 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
}
|
|
||||||
},
|
},
|
||||||
handelFetchAuditing(idList, reviewState, msg, message) {
|
handelFetchAuditing(idList, reviewState, msg, message) {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
@@ -315,30 +312,30 @@ export default {
|
|||||||
rowDel(row) {
|
rowDel(row) {
|
||||||
const h = this.$createElement;
|
const h = this.$createElement;
|
||||||
this.$confirm(
|
this.$confirm(
|
||||||
h("div", null, [
|
h("div", null, [
|
||||||
h("p", {style: "font-size: 16px"}, "您确定要删除此消息吗? "),
|
h("p", {style: "font-size: 16px"}, "您确定要删除此消息吗? "),
|
||||||
h("p", {style: "color: red"}, "一旦删除则无法找回"),
|
h("p", {style: "color: red"}, "一旦删除则无法找回"),
|
||||||
]),
|
]),
|
||||||
{
|
{
|
||||||
type: "warning",
|
type: "warning",
|
||||||
showClose: false,
|
showClose: false,
|
||||||
showCancelButton: true,
|
showCancelButton: true,
|
||||||
confirmButtonText: "确定",
|
confirmButtonText: "确定",
|
||||||
cancelButtonText: "取消",
|
cancelButtonText: "取消",
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
return getInvitationStatusUpdate({id: row.id, isDeleted: 1});
|
return getInvitationStatusUpdate({id: row.id, isDeleted: 1});
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
this.$message({
|
this.$message({
|
||||||
type: "success",
|
type: "success",
|
||||||
message: "操作成功!",
|
message: "操作成功!",
|
||||||
|
});
|
||||||
|
this.refreshChange();
|
||||||
|
})
|
||||||
|
.catch(() => {
|
||||||
});
|
});
|
||||||
this.refreshChange();
|
|
||||||
})
|
|
||||||
.catch(() => {
|
|
||||||
});
|
|
||||||
},
|
},
|
||||||
selectionChange(list) {
|
selectionChange(list) {
|
||||||
this.selectionList = list;
|
this.selectionList = list;
|
||||||
|
|||||||
Reference in New Issue
Block a user