แก้ล้างข้อมูล
This commit is contained in:
parent
ebee37a888
commit
96d6e470f8
2 changed files with 1 additions and 7 deletions
|
|
@ -203,6 +203,7 @@ watch(
|
||||||
watch(
|
watch(
|
||||||
() => store.typeOrganizational,
|
() => store.typeOrganizational,
|
||||||
() => {
|
() => {
|
||||||
|
nodeTree.value = [];
|
||||||
const id =
|
const id =
|
||||||
store.typeOrganizational === "current" ? store.activeId : store.draftId;
|
store.typeOrganizational === "current" ? store.activeId : store.draftId;
|
||||||
id && store.typeOrganizational !== "old" && fetchDataTree(id);
|
id && store.typeOrganizational !== "old" && fetchDataTree(id);
|
||||||
|
|
|
||||||
|
|
@ -126,11 +126,6 @@ function onClickHistory(id: string, name: string) {
|
||||||
count.value++;
|
count.value++;
|
||||||
}
|
}
|
||||||
|
|
||||||
function oldCloseSelect(){
|
|
||||||
if(!store.historyId){
|
|
||||||
store.typeOrganizational = 'current'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
async function workflowSystem() {
|
async function workflowSystem() {
|
||||||
showLoader();
|
showLoader();
|
||||||
http
|
http
|
||||||
|
|
@ -285,8 +280,6 @@ onMounted(async () => {
|
||||||
:label="labelHistory"
|
:label="labelHistory"
|
||||||
@click="store.typeOrganizational = 'old'"
|
@click="store.typeOrganizational = 'old'"
|
||||||
:outline="store.typeOrganizational === 'old' ? false : true"
|
:outline="store.typeOrganizational === 'old' ? false : true"
|
||||||
@hide="oldCloseSelect()"
|
|
||||||
|
|
||||||
>
|
>
|
||||||
<q-list>
|
<q-list>
|
||||||
<q-item
|
<q-item
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue