โครงสร้างอัตรากำลัง => fix bug
This commit is contained in:
parent
15d174a98c
commit
03dfcf6b9f
2 changed files with 6 additions and 3 deletions
|
|
@ -219,6 +219,7 @@ watch(
|
||||||
if (props.modal === true) {
|
if (props.modal === true) {
|
||||||
if (actionType.value === "ADD") {
|
if (actionType.value === "ADD") {
|
||||||
console.log(props.dataNode);
|
console.log(props.dataNode);
|
||||||
|
console.log(level.value);
|
||||||
|
|
||||||
if (props.dataNode) {
|
if (props.dataNode) {
|
||||||
formData.orgCode =
|
formData.orgCode =
|
||||||
|
|
@ -351,7 +352,9 @@ function selectOrgLevele(val: string, status: boolean = true) {
|
||||||
<div class="col-2">
|
<div class="col-2">
|
||||||
<q-input
|
<q-input
|
||||||
:readonly="
|
:readonly="
|
||||||
(actionType === 'ADD' && props?.dataNode?.orgLevel !== 0) ||
|
(actionType === 'ADD' &&
|
||||||
|
props?.dataNode?.orgLevel !== 0 &&
|
||||||
|
level !== 0) ||
|
||||||
(actionType === 'EDIT' && props?.dataNode?.orgLevel > 1)
|
(actionType === 'EDIT' && props?.dataNode?.orgLevel > 1)
|
||||||
"
|
"
|
||||||
mask="##"
|
mask="##"
|
||||||
|
|
|
||||||
|
|
@ -524,7 +524,6 @@ watch(
|
||||||
() => {
|
() => {
|
||||||
if (props.modal === true) {
|
if (props.modal === true) {
|
||||||
fetchType();
|
fetchType();
|
||||||
// fetchLevel();
|
|
||||||
fetchExecutive();
|
fetchExecutive();
|
||||||
|
|
||||||
if (props.actionType === "ADD") {
|
if (props.actionType === "ADD") {
|
||||||
|
|
@ -535,6 +534,7 @@ watch(
|
||||||
formData.prefixNo = "";
|
formData.prefixNo = "";
|
||||||
formData.positionNo = "";
|
formData.positionNo = "";
|
||||||
formData.suffixNo = "";
|
formData.suffixNo = "";
|
||||||
|
formData.reason = "";
|
||||||
} else {
|
} else {
|
||||||
props.rowId && fetchPosition(props.rowId);
|
props.rowId && fetchPosition(props.rowId);
|
||||||
}
|
}
|
||||||
|
|
@ -557,7 +557,6 @@ async function addPosition(data: RowDetailPositions) {
|
||||||
|
|
||||||
if (!isIdExist) {
|
if (!isIdExist) {
|
||||||
rows.value = [...rows.value, data];
|
rows.value = [...rows.value, data];
|
||||||
// rows.value.push(data);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -603,6 +602,7 @@ async function clearFormPositionSelect() {
|
||||||
|
|
||||||
function close() {
|
function close() {
|
||||||
props.close?.();
|
props.close?.();
|
||||||
|
clearFormPositionSelect();
|
||||||
isPosition.value = false;
|
isPosition.value = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue