fix : 修复征集公司选择
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<el-dialog custom-class="custom-dialog" class="border" :border="false" closeFree width="1000px" style="height: 676px"
|
<el-dialog custom-class="custom-dialog" class="border" :border="false" width="1000px" style="height: 676px"
|
||||||
:title="title" :visible.sync="visible" v-model="visible" append-to-body :close-on-click-modal="true"
|
:title="title" :show-close="false" :visible.sync="visible" v-model="visible" append-to-body :close-on-click-modal="true" >
|
||||||
:destroy-on-close="true">
|
|
||||||
<div class="picker">
|
<div class="picker">
|
||||||
<div class="candidate" v-loading="loading">
|
<div class="candidate" v-loading="loading">
|
||||||
<el-input v-model="filterText" @change="getList()"
|
<el-input v-model="filterText" @change="getList()"
|
||||||
@@ -10,7 +9,6 @@
|
|||||||
<el-button @click="getList()">搜索</el-button>
|
<el-button @click="getList()">搜索</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-input>
|
</el-input>
|
||||||
|
|
||||||
<fvCheckbox style="margin-left: 10px" :options="checkOptions" v-model="checkList" @change="checkBoxChange"/>
|
<fvCheckbox style="margin-left: 10px" :options="checkOptions" v-model="checkList" @change="checkBoxChange"/>
|
||||||
<!-- 人员选择 -->
|
<!-- 人员选择 -->
|
||||||
<el-empty :image-size="100" description="似乎没有数据" v-show="dataList.length === 0"/>
|
<el-empty :image-size="100" description="似乎没有数据" v-show="dataList.length === 0"/>
|
||||||
@@ -68,10 +66,10 @@ const checkOptions = ref([
|
|||||||
label: isExpand.value,
|
label: isExpand.value,
|
||||||
value: '1'
|
value: '1'
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
label: '父子联动',
|
// label: '父子联动',
|
||||||
value: '2'
|
// value: '2'
|
||||||
},
|
// },
|
||||||
])
|
])
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
value: {
|
value: {
|
||||||
@@ -107,13 +105,13 @@ const defaultProps = {
|
|||||||
children: "children",
|
children: "children",
|
||||||
disabled: "disabled",
|
disabled: "disabled",
|
||||||
};
|
};
|
||||||
const emit = defineEmits();
|
const emit = defineEmits(['update:modelValue'])
|
||||||
const _value = computed({
|
const _value = computed({
|
||||||
get() {
|
get() {
|
||||||
return props.value;
|
return props.value;
|
||||||
},
|
},
|
||||||
set(val) {
|
set(value) {
|
||||||
emit("input", val);
|
emit('update:modelValue', value)
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -157,14 +155,8 @@ const filterNode = (value, data) => {
|
|||||||
const show = () => {
|
const show = () => {
|
||||||
//用于弹开部门选择
|
//用于弹开部门选择
|
||||||
visible.value = true;
|
visible.value = true;
|
||||||
// console.log('_value.value', _value.value, selectList.value)
|
|
||||||
// if(selectList.value.length==0){
|
|
||||||
// selectList.value=[]
|
|
||||||
// defaultChecked.value =[]
|
|
||||||
// }else {
|
|
||||||
selectList.value = _value.value
|
selectList.value = _value.value
|
||||||
defaultChecked.value = _value.value.map(item => item.value)
|
defaultChecked.value = _value.value.map(item => item.value)
|
||||||
// }
|
|
||||||
getList()
|
getList()
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user