Merge branch 'nice' into develop
This commit is contained in:
commit
ae3d690966
4 changed files with 12 additions and 8 deletions
|
|
@ -125,7 +125,7 @@ onMounted(() => {
|
|||
|
||||
<div class="q-gutter-md" v-else>
|
||||
<div class="flex justify-center items-center q-my-md q-gutter-md">
|
||||
ยังไม่ได้รับการแบบประเมินผล
|
||||
ยังไม่ได้ดำเนินการแบบประเมินผล
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -83,7 +83,7 @@ onMounted(() => {
|
|||
|
||||
<div class="q-gutter-md" v-else>
|
||||
<div class="flex justify-center items-center q-my-md q-gutter-md">
|
||||
ยังไม่ได้รับการแบบประเมินผล
|
||||
ยังไม่ได้ดำเนินการแบบประเมินผล
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -167,6 +167,7 @@ interface DataTree {
|
|||
totalRootPositionNextUse: number | null;
|
||||
totalRootPositionNextVacant: number | null;
|
||||
children: DataTree;
|
||||
orgTreeDnaId: string;
|
||||
}
|
||||
|
||||
interface ResHistory {
|
||||
|
|
@ -221,5 +222,5 @@ export type {
|
|||
ResHistory,
|
||||
ResPrefix,
|
||||
ResRisk,
|
||||
PositionsType
|
||||
PositionsType,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -205,8 +205,8 @@ function onSubmit() {
|
|||
http
|
||||
.post(config.API.developmentMain, formProject)
|
||||
.then(async (res) => {
|
||||
await closeDialog();
|
||||
await router.push(`/development/${res.data.result}`);
|
||||
closeDialog();
|
||||
router.push(`/development/${res.data.result}`);
|
||||
})
|
||||
.catch((e) => {
|
||||
messageError($q, e);
|
||||
|
|
@ -242,12 +242,15 @@ function updateSelected(data: DataTree) {
|
|||
* function เลือกหน่วยงานที่จะค้นหาโครงกา
|
||||
*/
|
||||
function updateSelectedTreeMain(data: DataTree) {
|
||||
if (formQuery.node === data.orgLevel && formQuery.nodeId === data.orgTreeId) {
|
||||
if (
|
||||
formQuery.node === data.orgLevel &&
|
||||
formQuery.nodeId === data.orgTreeDnaId
|
||||
) {
|
||||
formQuery.node = null;
|
||||
formQuery.nodeId = null;
|
||||
} else {
|
||||
formQuery.node = data.orgLevel;
|
||||
formQuery.nodeId = data.orgTreeId;
|
||||
formQuery.nodeId = data.orgTreeDnaId;
|
||||
}
|
||||
fetchListProjectNew(); // fetch โครงการ
|
||||
}
|
||||
|
|
@ -325,7 +328,7 @@ onMounted(() => {
|
|||
<q-item
|
||||
clickable
|
||||
@click.stop="updateSelectedTreeMain(prop.node)"
|
||||
:active="formQuery.nodeId === prop.node.orgTreeId"
|
||||
:active="formQuery.nodeId === prop.node.orgTreeDnaId"
|
||||
active-class="my-list-link text-primary text-weight-medium"
|
||||
class="row col-12 items-center text-dark q-py-xs q-pl-sm rounded-borders my-list"
|
||||
>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue