chore: clean branch module
This commit is contained in:
parent
a4afc54f2e
commit
f62a252f5c
2 changed files with 40 additions and 186 deletions
|
|
@ -15,7 +15,6 @@ import {
|
|||
Branch,
|
||||
BankBook,
|
||||
} from 'stores/branch/types';
|
||||
import { Status } from 'stores/types';
|
||||
|
||||
import useUtilsStore, { dialog, baseUrl } from 'stores/utils';
|
||||
import EmptyAddButton from 'components/AddButton.vue';
|
||||
|
|
@ -90,7 +89,6 @@ const columns = [
|
|||
const modal = ref<boolean>(false);
|
||||
const hideStat = ref(false);
|
||||
const currentId = ref<string>('');
|
||||
const currentStatus = ref<Status | 'All'>('All');
|
||||
const expandedTree = ref<string[]>([]);
|
||||
const formMenuIcon = ref<{ icon: string; color: string; bgColor: string }[]>([
|
||||
{
|
||||
|
|
@ -224,7 +222,6 @@ const beforeBranch = ref<{ id: string; code: string }>({
|
|||
});
|
||||
|
||||
const inputSearch = ref<string>('');
|
||||
const fieldBranch = ref(['all', 'branchHQLabel', 'branchLabel']);
|
||||
const fieldDisplay = ref<
|
||||
(
|
||||
| 'branchLabelName'
|
||||
|
|
@ -638,24 +635,12 @@ function changeTitle(
|
|||
|
||||
function handleHold(node: BranchWithChildren) {
|
||||
if ($q.screen.gt.xs) return;
|
||||
return function (props: unknown) {
|
||||
return function () {
|
||||
holdDialog.value = true;
|
||||
currentNode.value = node;
|
||||
};
|
||||
}
|
||||
|
||||
async function handleImageUpload(file: File | null, url: string | null) {
|
||||
if (formType.value === 'view') {
|
||||
formType.value = 'edit';
|
||||
await onSubmit();
|
||||
formType.value = 'view';
|
||||
}
|
||||
if (formType.value === 'edit') {
|
||||
await onSubmit();
|
||||
}
|
||||
imageDialog.value = false;
|
||||
}
|
||||
|
||||
watch(
|
||||
() => profileFileImg.value,
|
||||
() => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue