diff --git a/src/App.vue b/src/App.vue index 877a6ec80d7a4732d7005536ce06e1fda88cbec7..cb6ad49a7d8c6296639c2634c4f7af9032fa9da1 100644 --- a/src/App.vue +++ b/src/App.vue @@ -14,7 +14,7 @@ import empss from './component/humanResources/emp.vue'; --> - + 后台管理平台 diff --git a/src/component/humanResources/emp.vue b/src/component/humanResources/emp.vue index 0974fd4a8597ff81067ac99f1ea28dbeb3c6632e..314814de9f0c7d51afd44d64d84f21bbceaa3306 100644 --- a/src/component/humanResources/emp.vue +++ b/src/component/humanResources/emp.vue @@ -1,84 +1,213 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/component/humanResources/empSelectForm.vue b/src/component/humanResources/empSelectForm.vue new file mode 100644 index 0000000000000000000000000000000000000000..0633ecb98e96cf80c24d564e002fd5ed81e97f31 --- /dev/null +++ b/src/component/humanResources/empSelectForm.vue @@ -0,0 +1,74 @@ + + + + + \ No newline at end of file diff --git a/src/storage/tableStroage.js b/src/storage/tableStroage.js new file mode 100644 index 0000000000000000000000000000000000000000..3f7ca70402b10a728c7aed2aa3cc02f096555733 --- /dev/null +++ b/src/storage/tableStroage.js @@ -0,0 +1,90 @@ +import { defineStore } from "pinia"; + +export const useTableStore = defineStore('table', { + state() { + return { + addDialog: null, + addSubcategoriesDialog: null, + addMainDialog: null, + disabledDialog: null, + detailsDialog: null, + editDialog: null, + deleteDialog: null, + row: null, + }; + }, + actions: { + initAddDialog() { + this.addDialog = false; + }, + getAddDialog(){ + return this.addDialog; + }, + setAddDialog(val){ + this.addDialog = val; + }, + initAddSubcategoriesDialog() { + this.addSubcategoriesDialog = false; + }, + getAddSubcategoriesDialog() { + return this.addSubcategoriesDialog; + }, + setAddSubcategoriesDialog(val){ + this.addSubcategoriesDialog = val; + }, + initAddMainDialog() { + this.addMainDialog = false; + }, + getAddMainDialog() { + return this.addMainDialog; + }, + setAddMainDialog(val) { + this.addMainDialog = val; + }, + initDisabledDialog() { + this.disabledDialog = false; + }, + setDisabledDialog(val) { + this.disabledDialog = val; + }, + getDisabledDialog() { + return this.disabledDialog; + }, + initDetailsDialog() { + this.detailsDialog = false; + }, + getDetailsDialog() { + return this.detailsDialog; + }, + setDetailsDialog(val) { + this.detailsDialog = val; + }, + initEditDialog() { + this.editDialog = false; + }, + getEditDialog() { + return this.editDialog ; + }, + setEditDialog(val) { + this.editDialog = val; + }, + initDeleteDialog() { + this.deleteDialog = false; + }, + setDeleteDialog(val) { + this.deleteDialog = val; + }, + getDeleteDialog() { + return this.deleteDialog ; + }, + initRow() { + this.row = {}; + }, + getRow() { + return this.row; + }, + setRow(val) { + this.row = val; + }, + } +}); \ No newline at end of file