flat: 暂存

This commit is contained in:
Apcallover
2024-04-17 17:37:24 +08:00
parent 458c0a6bbf
commit 7a85b657b6
3 changed files with 133 additions and 60 deletions

View File

@@ -95,7 +95,7 @@
</el-button>
<el-button type="warning" size="small" plain :disabled="!selectionList.length" icon="el-icon-sort"
@click="handleTransfer"
v-show="vaildData(permission.tenant_main_talents_latent_index_tansfergroup, false)">转移分组
v-show="vaildData(permission.tenant_main_talents_latent_index_tansfergroup, false)">转移推送
</el-button>
<el-button type="danger" size="small" icon="el-icon-delete" @click="handleDelete"
:disabled="!selectionList.length" plain
@@ -147,6 +147,7 @@ import {
getDept,
removeDept,
upload,
getDeptMyTree
} from "@/api/tenant/talents";
import {getWorkTypes, getLabelList} from "@/api/tenant/common";
import {mapGetters} from "vuex";
@@ -195,7 +196,8 @@ export default {
tempWorkType: [],
worktypeDic: {},
arr: [],//////
depTree: [],
deptId: '',
excelBox: false,
data: [],
obj: {},
@@ -394,11 +396,27 @@ export default {
};
},
excelOption() {
const url = this.tenantId ? `${upload()}&id=${this.tenantId}` : upload()
const baseUrl = upload() + `&deptId=${this.deptId}`
const url = this.tenantId ? `${baseUrl}&id=${this.tenantId}` : baseUrl
return {
submitBtn: false,
emptyBtn: false,
column: [
{
label: "所属机构",
prop: "deptId",
type: "tree",
multiple: false,
dicData: this.depTree,
props: {
label: "title",
},
checkStrictly: true,
slot: true,
span: 20,
change: this.deptChange
},
{
label: "文件上传",
prop: "excelFile",
@@ -469,8 +487,24 @@ export default {
this.initDept();
// this.getWorkTypes();
this.getLabelList();
this.getDept()
},
methods: {
deptChange({value, column}) {
this.deptId = value
console.log(value)
},
async getDept() {
let params = {
tenantId: '000000'
}
let resData = await getDeptMyTree(params)
if (resData.data.code === 200) {
this.depTree = resData.data.data
console.log(this.depTree)
}
},
getWorkTypes() {
getWorkTypes().then((res) => {