-- bug 项目

This commit is contained in:
yuping
2022-12-03 19:57:41 +08:00
parent 3c657d0b25
commit fc6478dd28
5 changed files with 35 additions and 7 deletions

View File

@@ -1,5 +1,10 @@
<template> <template>
<a-tree-select <a-tree-select
:getPopupContainer="
(triggerNode) => {
return triggerNode.parentNode || document.body;
}
"
v-model:value="id" v-model:value="id"
style="width: 100%" style="width: 100%"
:dropdown-style="{ maxHeight: '400px', overflow: 'auto' }" :dropdown-style="{ maxHeight: '400px', overflow: 'auto' }"
@@ -11,7 +16,7 @@
label: 'name', label: 'name',
value: 'id', value: 'id',
}" }"
:disabled="viewDetail ? true : false" :disabled="disabled"
@change="change" @change="change"
dropdownClassName="treeDropdown" dropdownClassName="treeDropdown"
> >
@@ -25,7 +30,7 @@ export default {
name: "OrgClass", name: "OrgClass",
props: { props: {
modelValue: { value: {
type: Number, type: Number,
}, },
name: { name: {
@@ -43,20 +48,23 @@ export default {
options: [], options: [],
id: props.value id: props.value
}); });
watch(state.id, () => {
ctx.emit('update:modelValue', state.id)
})
watch(props, () => { watch(props, () => {
if (props.modelValue !== state.id) { console.log('props', state)
state.id = props.modelValue console.log('props', props)
if (props.value !== state.id) {
state.id = props.value
} }
}) })
onMounted(() => { onMounted(() => {
state.options = [...store.state.orgtreeList] state.options = [...store.state.orgtreeList]
console.log(state.options)
}) })
function change(key, obj) { function change(key, obj) {
console.log(state)
ctx.emit('update:name', obj[0]) ctx.emit('update:name', obj[0])
ctx.emit('update:value', key)
} }
return { return {

View File

@@ -1,6 +1,11 @@
<!-- 评估管理-创建评估页面 --> <!-- 评估管理-创建评估页面 -->
<template> <template>
<a-select <a-select
:getPopupContainer="
(triggerNode) => {
return triggerNode.parentNode || document.body;
}
"
v-model:value="id" v-model:value="id"
placeholder="请选择分类" placeholder="请选择分类"
style="width: 100%" style="width: 100%"

View File

@@ -1,5 +1,10 @@
<template> <template>
<a-select <a-select
:getPopupContainer="
(triggerNode) => {
return triggerNode.parentNode || document.body;
}
"
v-model:value="id" v-model:value="id"
:options="options" :options="options"
style="width: 100%" style="width: 100%"

View File

@@ -1,5 +1,10 @@
<template> <template>
<a-select <a-select
:getPopupContainer="
(triggerNode) => {
return triggerNode.parentNode || document.body;
}
"
v-model:value="managerArray" v-model:value="managerArray"
:placeholder="placeholder" :placeholder="placeholder"
:filterOption="false" :filterOption="false"

View File

@@ -1,5 +1,10 @@
<template> <template>
<a-select <a-select
:getPopupContainer="
(triggerNode) => {
return triggerNode.parentNode || document.body;
}
"
v-model:value="id" v-model:value="id"
:options="options" :options="options"
style="width: 100%" style="width: 100%"