mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-14 05:16:45 +08:00
-- bug 项目
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
@@ -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%"
|
||||||
|
|||||||
@@ -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%"
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
@@ -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%"
|
||||||
|
|||||||
Reference in New Issue
Block a user