mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-12 12:26:47 +08:00
-- 项目创建修改
This commit is contained in:
@@ -33,6 +33,13 @@ export default {
|
|||||||
options: [],
|
options: [],
|
||||||
id: props.modelValue
|
id: props.modelValue
|
||||||
});
|
});
|
||||||
|
|
||||||
|
watch(props, () => {
|
||||||
|
if (props.modelValue !== state.id) {
|
||||||
|
state.id = props.modelValue
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
watch(state.id,()=>{
|
watch(state.id,()=>{
|
||||||
ctx.emit('update:modelValue',state.id)
|
ctx.emit('update:modelValue',state.id)
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -33,6 +33,14 @@ export default {
|
|||||||
watch(state.id, () => {
|
watch(state.id, () => {
|
||||||
ctx.emit('update:modelValue', state.id)
|
ctx.emit('update:modelValue', state.id)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
watch(props, () => {
|
||||||
|
if (props.modelValue !== state.id) {
|
||||||
|
state.id = props.modelValue
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
state.options = store.state.projectSys.map(e => ({value: parseInt(e.dictCode), label: e.dictName}))
|
state.options = store.state.projectSys.map(e => ({value: parseInt(e.dictCode), label: e.dictName}))
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user