更新页面
This commit is contained in:
@ -6,6 +6,7 @@
|
||||
:show-all-levels="false"
|
||||
clearable
|
||||
filterable
|
||||
:disabled="props.disabled"
|
||||
:placeholder="modelValue ? placeholder : '请选择部门'"
|
||||
:options="tableData"
|
||||
v-model="oldmodelValue"
|
||||
@ -46,7 +47,11 @@ const props = defineProps({
|
||||
isAll:{
|
||||
default: false,
|
||||
type: Boolean
|
||||
}
|
||||
},
|
||||
disabled:{
|
||||
default: false,
|
||||
type: Boolean
|
||||
},
|
||||
});
|
||||
const firstLoad = ref(true)
|
||||
const oldmodelValue = ref([]);
|
||||
|
||||
@ -152,6 +152,8 @@ import {
|
||||
reactive,
|
||||
watchEffect,
|
||||
getCurrentInstance,
|
||||
watch,
|
||||
computed
|
||||
} from "vue";
|
||||
import * as MOSTY from "@/components/MyComponents/index";
|
||||
const { proxy } = getCurrentInstance();
|
||||
@ -233,7 +235,7 @@ const props = defineProps({
|
||||
backgroundColor: {
|
||||
type: String,
|
||||
default: "rgb(255, 255, 255, 1)"
|
||||
}
|
||||
},
|
||||
});
|
||||
let loadingPage = ref(false);
|
||||
const emit = defineEmits(["submit", "reset"]);
|
||||
@ -388,7 +390,7 @@ let defaultCascader = {
|
||||
placeholder: "请选择",
|
||||
checkStrictly: true, // 控制是否父子联动(是否可以选择任意节点)
|
||||
showAllLevels: false, // 是否显示完整路径
|
||||
lazy: true, // 是否懒加载 当设置为false时就要传入options
|
||||
lazy: false, // 是否懒加载 当设置为false时就要传入options
|
||||
portUrl: "", // 这里必须写 接口地址
|
||||
props: {
|
||||
label: "label",
|
||||
@ -401,7 +403,7 @@ let defaultCascader = {
|
||||
const cascaderLazyProps = reactive({
|
||||
value: "value",
|
||||
label: "label",
|
||||
lazy: true,
|
||||
lazy: false,
|
||||
lazyLoad(node, resolve) {
|
||||
// 这里要根据实际情况修改
|
||||
const { level } = node;
|
||||
|
||||
Reference in New Issue
Block a user