mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-13 04:46:46 +08:00
-- 项目创建修改
This commit is contained in:
@@ -52,6 +52,7 @@ export default {
|
|||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
console.log('onMounted')
|
console.log('onMounted')
|
||||||
|
init()
|
||||||
})
|
})
|
||||||
|
|
||||||
function getMember() {
|
function getMember() {
|
||||||
@@ -81,17 +82,17 @@ export default {
|
|||||||
};
|
};
|
||||||
|
|
||||||
function init() {
|
function init() {
|
||||||
if (props.value && props.name) {
|
if (!props.value) {
|
||||||
|
state.managerArray = []
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (props.value !== state.managerArray.join(',')) {
|
||||||
const arrManager = props.name.split(',')
|
const arrManager = props.name.split(',')
|
||||||
const arrManagerId = props.value.split(',')
|
const arrManagerId = props.value.split(',')
|
||||||
state.managerArray = arrManagerId
|
state.managerArray = arrManagerId
|
||||||
state.options = arrManager.map((e, i) => ({label: e, value: arrManagerId[i]}))
|
state.options = arrManager.map((e, i) => ({label: e, value: arrManagerId[i]}))
|
||||||
state.init = true
|
getMember()
|
||||||
} else {
|
|
||||||
state.managerArray = []
|
|
||||||
state.options = []
|
|
||||||
}
|
}
|
||||||
getMember()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function change(e, l) {
|
function change(e, l) {
|
||||||
|
|||||||
Reference in New Issue
Block a user