From 2339b8bf02f75c9d20227e049cabe12a239bd39b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B0=B4=E6=99=B6=E5=9C=9F=E8=B1=86?= <水晶土豆@devide> Date: Tue, 21 Nov 2023 11:11:00 +0800 Subject: [PATCH] Tue Nov 21 11:11:00 CST 2023 inscode --- src/App.vue | 2 +- src/component/humanResources/emp.vue | 249 +++++++++++++----- .../humanResources/empSelectForm.vue | 74 ++++++ src/storage/tableStroage.js | 90 +++++++ 4 files changed, 354 insertions(+), 61 deletions(-) create mode 100644 src/component/humanResources/empSelectForm.vue create mode 100644 src/storage/tableStroage.js diff --git a/src/App.vue b/src/App.vue index 877a6ec..cb6ad49 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 0974fd4..314814d 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 0000000..0633ecb --- /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 0000000..3f7ca70 --- /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 -- GitLab