forked from integrated_whb/integrated_whb_vue
init
parent
62798bee5f
commit
440a1bd252
|
@ -24,7 +24,7 @@ import { ref, watch, watchEffect } from "vue";
|
||||||
import { layoutFnGetElectronicFenceTree } from "@/assets/js/data_dictionary.js";
|
import { layoutFnGetElectronicFenceTree } from "@/assets/js/data_dictionary.js";
|
||||||
|
|
||||||
defineOptions({
|
defineOptions({
|
||||||
name: "LayoutDepartmentTree",
|
name: "LayoutElectronicFenceTree",
|
||||||
});
|
});
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
refresh: {
|
refresh: {
|
||||||
|
|
|
@ -106,7 +106,12 @@
|
||||||
:type="data.addOrEditDialog.type"
|
:type="data.addOrEditDialog.type"
|
||||||
:parent-name="DEPARTMENT_NAME"
|
:parent-name="DEPARTMENT_NAME"
|
||||||
:parent-id="DEPARTMENT_ID"
|
:parent-id="DEPARTMENT_ID"
|
||||||
@get-data="fnResetPaginationTransfer"
|
@get-data="
|
||||||
|
() => {
|
||||||
|
fnResetPaginationTransfer();
|
||||||
|
data.refreshTreeData = true;
|
||||||
|
}
|
||||||
|
"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -117,7 +117,12 @@
|
||||||
:type="data.addOrEditDialog.type"
|
:type="data.addOrEditDialog.type"
|
||||||
:parent-name="ELECTRONIC_FENCE_AREA_NAME"
|
:parent-name="ELECTRONIC_FENCE_AREA_NAME"
|
||||||
:parent-id="ELECTRONIC_FENCE_AREA_ID"
|
:parent-id="ELECTRONIC_FENCE_AREA_ID"
|
||||||
@get-data="fnResetPaginationTransfer"
|
@get-data="
|
||||||
|
() => {
|
||||||
|
fnResetPaginationTransfer();
|
||||||
|
data.refreshTreeData = true;
|
||||||
|
}
|
||||||
|
"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -143,7 +148,7 @@ import useButtonJurisdiction from "@/assets/js/useButtonJurisdiction.js";
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
const parentIdDefault = "0";
|
const parentIdDefault = "0";
|
||||||
const parentNameDefault = "(无)此项为顶级部门";
|
const parentNameDefault = "(无)此项为顶级电子围栏";
|
||||||
const ELECTRONIC_FENCE_AREA_ID = ref(
|
const ELECTRONIC_FENCE_AREA_ID = ref(
|
||||||
route.query.ELECTRONIC_FENCE_AREA_ID || parentIdDefault
|
route.query.ELECTRONIC_FENCE_AREA_ID || parentIdDefault
|
||||||
);
|
);
|
||||||
|
@ -178,13 +183,11 @@ const data = reactive({
|
||||||
});
|
});
|
||||||
const buttonJurisdiction = await useButtonJurisdiction("department");
|
const buttonJurisdiction = await useButtonJurisdiction("department");
|
||||||
const fnGetDataTransfer = () => {
|
const fnGetDataTransfer = () => {
|
||||||
data.refreshTreeData = true;
|
|
||||||
fnGetData({
|
fnGetData({
|
||||||
ELECTRONIC_FENCE_AREA_ID: ELECTRONIC_FENCE_AREA_ID.value,
|
ELECTRONIC_FENCE_AREA_ID: ELECTRONIC_FENCE_AREA_ID.value,
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
const fnResetPaginationTransfer = () => {
|
const fnResetPaginationTransfer = () => {
|
||||||
data.refreshTreeData = true;
|
|
||||||
fnResetPagination({
|
fnResetPagination({
|
||||||
ELECTRONIC_FENCE_AREA_ID: ELECTRONIC_FENCE_AREA_ID.value,
|
ELECTRONIC_FENCE_AREA_ID: ELECTRONIC_FENCE_AREA_ID.value,
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue