fixing bug
This commit is contained in:
parent
4c0c0551f8
commit
50d4d8e351
1 changed files with 8 additions and 2 deletions
|
|
@ -219,8 +219,8 @@ watch(
|
|||
() => {
|
||||
if (props.modal === true) {
|
||||
if (actionType.value === "ADD") {
|
||||
console.log(props.dataNode);
|
||||
console.log(level.value);
|
||||
// console.log(props.dataNode);
|
||||
// console.log(level.value);
|
||||
|
||||
if (props.dataNode) {
|
||||
formData.orgCode =
|
||||
|
|
@ -276,6 +276,12 @@ const tittleName = computed(() => {
|
|||
function selectOrgLevele(val: string, status: boolean = true) {
|
||||
formData.orgLevelSub = status ? "" : formData.orgLevelSub;
|
||||
switch (val) {
|
||||
case "DEPARTMENT":
|
||||
orgLevelSubOptionMain.value = [
|
||||
{ name: "สำนัก/สำนักงาน", id: "OFFICER" },
|
||||
{ name: "สำนักงานเขต", id: "DISTRICT" },
|
||||
];
|
||||
break;
|
||||
case "OFFICE":
|
||||
orgLevelSubOptionMain.value = [
|
||||
{ name: "กอง", id: "DIVISION" },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue