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(() => {
|
||||
console.log('onMounted')
|
||||
init()
|
||||
})
|
||||
|
||||
function getMember() {
|
||||
@@ -81,18 +82,18 @@ export default {
|
||||
};
|
||||
|
||||
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 arrManagerId = props.value.split(',')
|
||||
state.managerArray = arrManagerId
|
||||
state.options = arrManager.map((e, i) => ({label: e, value: arrManagerId[i]}))
|
||||
state.init = true
|
||||
} else {
|
||||
state.managerArray = []
|
||||
state.options = []
|
||||
}
|
||||
getMember()
|
||||
}
|
||||
}
|
||||
|
||||
function change(e, l) {
|
||||
console.log('change')
|
||||
|
||||
Reference in New Issue
Block a user