flat: test

This commit is contained in:
Apcallover
2024-07-03 14:29:05 +08:00
parent 704d0c9ea7
commit 9fc23371ed
4 changed files with 189 additions and 88 deletions

View File

@@ -185,18 +185,18 @@
@onCancel="diaLogCancel"
@onConfirm="diaLogConfirm"
>
<template v-slot:header>
<div class="input_box" style="margin-top: 20px">
<el-select style="width: 100%" clearable v-model="GroupValue" placeholder="请选择分组 (驳回不用选择此项)">
<el-option
v-for="item in selecTreeData"
:key="item.id"
:label="item.groupName"
:value="item.id">
</el-option>
</el-select>
</div>
</template>
<!-- <template v-slot:header>-->
<!-- <div class="input_box" style="margin-top: 20px">-->
<!-- <el-select style="width: 100%" clearable v-model="GroupValue" placeholder="请选择分组 (驳回不用选择此项)">-->
<!-- <el-option-->
<!-- v-for="item in selecTreeData"-->
<!-- :key="item.id"-->
<!-- :label="item.groupName"-->
<!-- :value="item.id">-->
<!-- </el-option>-->
<!-- </el-select>-->
<!-- </div>-->
<!-- </template>-->
</PromptDialog>
</basic-container>
@@ -768,32 +768,32 @@ export default {
}
},
diaLogConfirm(value) {
if (this.GroupValue) {
let params = {
idNumber: this.dialogInfo.idNumber,
id: this.dialogInfo.id,
name: this.dialogInfo.name,
approvalStatus: 0,
content: value,
groupId: this.GroupValue
}
this.$confirm("确定通过?", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
})
.then(() => {
return talentsApproval(params);
})
.then(() => {
this.initDept();
this.onLoad(this.page, this.query);
this.dialogFlag = false
this.$message.success('操作成功');
});
} else {
this.$message.error("请选择分组");
// if (this.GroupValue) {
let params = {
idNumber: this.dialogInfo.idNumber,
id: this.dialogInfo.id,
name: this.dialogInfo.name,
approvalStatus: 0,
content: value,
// groupId: this.GroupValue
}
this.$confirm("确定通过?", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
})
.then(() => {
return talentsApproval(params);
})
.then(() => {
this.initDept();
this.onLoad(this.page, this.query);
this.dialogFlag = false
this.$message.success('操作成功');
});
// } else {
// this.$message.error("请选择分组");
// }
},
handleExport() {
this.downloadButton = true