mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-16 22:36:45 +08:00
-- 修改
This commit is contained in:
@@ -29,7 +29,11 @@ import {useStore} from "vuex";
|
|||||||
const store = useStore();
|
const store = useStore();
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
value: String
|
value: String,
|
||||||
|
disabled: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false
|
||||||
|
}
|
||||||
})
|
})
|
||||||
const emit = defineEmits({})
|
const emit = defineEmits({})
|
||||||
|
|
||||||
@@ -38,8 +42,9 @@ const options = computed(() => store.state.orgtreeList)
|
|||||||
const id = computed(() => {
|
const id = computed(() => {
|
||||||
return props.value
|
return props.value
|
||||||
})
|
})
|
||||||
|
|
||||||
function change(key, obj) {
|
function change(key, obj) {
|
||||||
console.log(obj[0],key,props.value);
|
console.log(obj[0], key, props.value);
|
||||||
emit('update:name', obj[0])
|
emit('update:name', obj[0])
|
||||||
emit('update:value', key)
|
emit('update:value', key)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user