fixing code workflow & get assign
This commit is contained in:
parent
2bcbbe8c9f
commit
082debf2e5
7 changed files with 11 additions and 33 deletions
|
|
@ -53,8 +53,8 @@ const typeSelectPerson = ref<string>("");
|
|||
//รายการระบบที่ต้องการ disable step 3 หรือรองสุดท้าย
|
||||
const displayArray = <string[]>[
|
||||
"REGISTRY_PROFILE",
|
||||
"RETIREMENT_RESIFNATION",
|
||||
"LEAVE_LIST",
|
||||
"SYS_RETIREMENT",
|
||||
"SYS_LEAVE_LIST",
|
||||
];
|
||||
|
||||
async function fetchCheckState() {
|
||||
|
|
|
|||
|
|
@ -30,7 +30,6 @@ import DialogCreateCommandORG from "@/modules/18_command/components/DialogCreate
|
|||
const $q = useQuasar();
|
||||
const { showLoader, hideLoader, messageError, date2Thai } = useCounterMixin();
|
||||
const store = useOrganizational();
|
||||
const keycloakSystem = ref<string>("ORG_COMMAND");
|
||||
|
||||
/** ตัวแปร*/
|
||||
const modalNewStructure = ref<boolean>(false); // เพิ่มโครงสร้าง
|
||||
|
|
@ -130,7 +129,7 @@ function onClickHistory(id: string, name: string) {
|
|||
async function workflowSystem() {
|
||||
showLoader();
|
||||
http
|
||||
.get(config.API.workflowKeycloakSystem(keycloakSystem.value))
|
||||
.get(config.API.workflowKeycloakSystem("SYS_ORG"))
|
||||
.then((res) => {
|
||||
const data = res.data.result;
|
||||
store.isOfficer = data.isOfficer;
|
||||
|
|
|
|||
|
|
@ -32,12 +32,8 @@ const {
|
|||
success,
|
||||
} = mixin;
|
||||
|
||||
const isOfficer = ref<boolean | null>(null);
|
||||
const isStaff = ref<boolean | null>(null);
|
||||
|
||||
const paramsId = route.params.id;
|
||||
const myForm = ref<QForm | null>(null);
|
||||
const roleAdmin = ref<boolean>(false);
|
||||
const dataProfile = ref<DataProfile>(); //ข้อมุลส่วนตัว
|
||||
const edit = ref<boolean>(false);
|
||||
const status = ref<string>("");
|
||||
|
|
@ -143,27 +139,7 @@ const getClass = (val: boolean) => {
|
|||
};
|
||||
};
|
||||
|
||||
async function getWorkFlow() {
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.workflowKeycloakSystem("ORG_COMMAND"))
|
||||
.then(async (res) => {
|
||||
const data = await res.data.result;
|
||||
isOfficer.value = data.isOfficer;
|
||||
isStaff.value = data.isStaff;
|
||||
roleAdmin.value = data.isOfficer;
|
||||
hideLoader();
|
||||
})
|
||||
.catch((e) => {
|
||||
messageError($q, e);
|
||||
hideLoader();
|
||||
})
|
||||
.finally(() => {});
|
||||
}
|
||||
|
||||
onMounted(async () => {
|
||||
getWorkFlow();
|
||||
|
||||
fetchData();
|
||||
});
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -836,7 +836,7 @@ onMounted(async () => {
|
|||
ref="workflowRef"
|
||||
v-model:is-check-data="isCheckData"
|
||||
:id="id"
|
||||
sys-name="RETIREMENT_RESIFNATION"
|
||||
sys-name="SYS_RETIREMENT"
|
||||
/>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
|
|
@ -808,7 +808,7 @@ onMounted(async () => {
|
|||
ref="workflowRef"
|
||||
:id="paramsId"
|
||||
v-model:is-check-data="isCheckData"
|
||||
sys-name="LEAVE_LIST"
|
||||
sys-name="SYS_LEAVE_LIST"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -709,7 +709,11 @@ async function onClickDownloadFile(id: string, fileName: string, type: string) {
|
|||
|
||||
<!-- Workflow -->
|
||||
<div class="col-xs-12 col-sm-12">
|
||||
<WorkFlow ref="workflowRef" :id="paramsId" sys-name="LEAVE_LIST" />
|
||||
<WorkFlow
|
||||
ref="workflowRef"
|
||||
:id="paramsId"
|
||||
sys-name="SYS_LEAVE_LIST"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -29,7 +29,6 @@ const { showLoader, hideLoader, messageError, dialogRemove } =
|
|||
useCounterMixin();
|
||||
|
||||
/** โครงสร้าง*/
|
||||
const keycloakSystem = ref<string>("ORG_COMMAND");
|
||||
const expanded = ref<Array<string>>([]);
|
||||
const filter = ref<string>("");
|
||||
const nodeTree = ref<DataTree[]>([]);
|
||||
|
|
@ -261,7 +260,7 @@ function onDelete(id: string) {
|
|||
function getWorkFlow() {
|
||||
showLoader();
|
||||
http
|
||||
.get(config.API.workflowKeycloakSystem(keycloakSystem.value))
|
||||
.get(config.API.workflowKeycloakSystem("SYS_ACTING"))
|
||||
.then((res) => {
|
||||
const data = res.data.result;
|
||||
storeActing.isOfficer = data.isOfficer;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue