diff --git a/src/components.d.ts b/src/components.d.ts index 5a09663..fcb5b4a 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -13,14 +13,14 @@ ApproverDrawer: typeof import('./components/drawer/approverDrawer.vue')['default'] Auth: typeof import('./components/Auth/index.vue')['default'] AuthAll: typeof import('./components/AuthAll/index.vue')['default'] + BarChartHorizontal: typeof import('./components/Echart/BarChartHorizontal.vue')['default'] + BarChartVertical: typeof import('./components/Echart/BarChartVertical.vue')['default'] BatchActionBar: typeof import('./components/BatchActionBar/index.vue')['default'] - Benchcol: typeof import('./components/benchcol/index.vue')['default'] BenchCol: typeof import('./components/benchCol/index.vue')['default'] ConditionDrawer: typeof import('./components/drawer/conditionDrawer.vue')['default'] CopyerDrawer: typeof import('./components/drawer/copyerDrawer.vue')['default'] Copyright: typeof import('./components/Copyright/index.vue')['default'] DeptSelect: typeof import('./components/DeptSelect/index.vue')['default'] - Echarts: typeof import('./components/echarts/index.vue')['default'] Editor: typeof import('./components/Editor/index.vue')['default'] EmployeesDialog: typeof import('./components/dialog/employeesDialog.vue')['default'] EmployeesRoleDialog: typeof import('./components/dialog/employeesRoleDialog.vue')['default'] @@ -30,13 +30,14 @@ ImagePreview: typeof import('./components/ImagePreview/index.vue')['default'] ImagesUpload: typeof import('./components/ImagesUpload/index.vue')['default'] ImageUpload: typeof import('./components/ImageUpload/index.vue')['default'] + LineChart: typeof import('./components/Echart/LineChart.vue')['default'] NodeWrap: typeof import('./components/workFlow/nodeWrap.vue')['default'] NodeWrapBan: typeof import('./components/workFlow/nodeWrapBan.vue')['default'] NormalTable: typeof import('./components/NormalTable/index.vue')['default'] PageHeader: typeof import('./components/PageHeader/index.vue')['default'] PageMain: typeof import('./components/PageMain/index.vue')['default'] PcasCascader: typeof import('./components/PcasCascader/index.vue')['default'] - Pie: typeof import('./components/echarts/pie.vue')['default'] + PieChart: typeof import('./components/Echart/PieChart.vue')['default'] PromoterDrawer: typeof import('./components/drawer/promoterDrawer.vue')['default'] RoleDialog: typeof import('./components/dialog/roleDialog.vue')['default'] RouterLink: typeof import('vue-router')['RouterLink'] diff --git a/src/components.d.ts b/src/components.d.ts index 5a09663..fcb5b4a 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -13,14 +13,14 @@ ApproverDrawer: typeof import('./components/drawer/approverDrawer.vue')['default'] Auth: typeof import('./components/Auth/index.vue')['default'] AuthAll: typeof import('./components/AuthAll/index.vue')['default'] + BarChartHorizontal: typeof import('./components/Echart/BarChartHorizontal.vue')['default'] + BarChartVertical: typeof import('./components/Echart/BarChartVertical.vue')['default'] BatchActionBar: typeof import('./components/BatchActionBar/index.vue')['default'] - Benchcol: typeof import('./components/benchcol/index.vue')['default'] BenchCol: typeof import('./components/benchCol/index.vue')['default'] ConditionDrawer: typeof import('./components/drawer/conditionDrawer.vue')['default'] CopyerDrawer: typeof import('./components/drawer/copyerDrawer.vue')['default'] Copyright: typeof import('./components/Copyright/index.vue')['default'] DeptSelect: typeof import('./components/DeptSelect/index.vue')['default'] - Echarts: typeof import('./components/echarts/index.vue')['default'] Editor: typeof import('./components/Editor/index.vue')['default'] EmployeesDialog: typeof import('./components/dialog/employeesDialog.vue')['default'] EmployeesRoleDialog: typeof import('./components/dialog/employeesRoleDialog.vue')['default'] @@ -30,13 +30,14 @@ ImagePreview: typeof import('./components/ImagePreview/index.vue')['default'] ImagesUpload: typeof import('./components/ImagesUpload/index.vue')['default'] ImageUpload: typeof import('./components/ImageUpload/index.vue')['default'] + LineChart: typeof import('./components/Echart/LineChart.vue')['default'] NodeWrap: typeof import('./components/workFlow/nodeWrap.vue')['default'] NodeWrapBan: typeof import('./components/workFlow/nodeWrapBan.vue')['default'] NormalTable: typeof import('./components/NormalTable/index.vue')['default'] PageHeader: typeof import('./components/PageHeader/index.vue')['default'] PageMain: typeof import('./components/PageMain/index.vue')['default'] PcasCascader: typeof import('./components/PcasCascader/index.vue')['default'] - Pie: typeof import('./components/echarts/pie.vue')['default'] + PieChart: typeof import('./components/Echart/PieChart.vue')['default'] PromoterDrawer: typeof import('./components/drawer/promoterDrawer.vue')['default'] RoleDialog: typeof import('./components/dialog/roleDialog.vue')['default'] RouterLink: typeof import('vue-router')['RouterLink'] diff --git a/src/views/device/stateManage/components/approvalActionDialog.vue b/src/views/device/stateManage/components/approvalActionDialog.vue index cdc9b25..56417d6 100644 --- a/src/views/device/stateManage/components/approvalActionDialog.vue +++ b/src/views/device/stateManage/components/approvalActionDialog.vue @@ -1,10 +1,13 @@ + + diff --git a/src/components.d.ts b/src/components.d.ts index 5a09663..fcb5b4a 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -13,14 +13,14 @@ ApproverDrawer: typeof import('./components/drawer/approverDrawer.vue')['default'] Auth: typeof import('./components/Auth/index.vue')['default'] AuthAll: typeof import('./components/AuthAll/index.vue')['default'] + BarChartHorizontal: typeof import('./components/Echart/BarChartHorizontal.vue')['default'] + BarChartVertical: typeof import('./components/Echart/BarChartVertical.vue')['default'] BatchActionBar: typeof import('./components/BatchActionBar/index.vue')['default'] - Benchcol: typeof import('./components/benchcol/index.vue')['default'] BenchCol: typeof import('./components/benchCol/index.vue')['default'] ConditionDrawer: typeof import('./components/drawer/conditionDrawer.vue')['default'] CopyerDrawer: typeof import('./components/drawer/copyerDrawer.vue')['default'] Copyright: typeof import('./components/Copyright/index.vue')['default'] DeptSelect: typeof import('./components/DeptSelect/index.vue')['default'] - Echarts: typeof import('./components/echarts/index.vue')['default'] Editor: typeof import('./components/Editor/index.vue')['default'] EmployeesDialog: typeof import('./components/dialog/employeesDialog.vue')['default'] EmployeesRoleDialog: typeof import('./components/dialog/employeesRoleDialog.vue')['default'] @@ -30,13 +30,14 @@ ImagePreview: typeof import('./components/ImagePreview/index.vue')['default'] ImagesUpload: typeof import('./components/ImagesUpload/index.vue')['default'] ImageUpload: typeof import('./components/ImageUpload/index.vue')['default'] + LineChart: typeof import('./components/Echart/LineChart.vue')['default'] NodeWrap: typeof import('./components/workFlow/nodeWrap.vue')['default'] NodeWrapBan: typeof import('./components/workFlow/nodeWrapBan.vue')['default'] NormalTable: typeof import('./components/NormalTable/index.vue')['default'] PageHeader: typeof import('./components/PageHeader/index.vue')['default'] PageMain: typeof import('./components/PageMain/index.vue')['default'] PcasCascader: typeof import('./components/PcasCascader/index.vue')['default'] - Pie: typeof import('./components/echarts/pie.vue')['default'] + PieChart: typeof import('./components/Echart/PieChart.vue')['default'] PromoterDrawer: typeof import('./components/drawer/promoterDrawer.vue')['default'] RoleDialog: typeof import('./components/dialog/roleDialog.vue')['default'] RouterLink: typeof import('vue-router')['RouterLink'] diff --git a/src/views/device/stateManage/components/approvalActionDialog.vue b/src/views/device/stateManage/components/approvalActionDialog.vue index cdc9b25..56417d6 100644 --- a/src/views/device/stateManage/components/approvalActionDialog.vue +++ b/src/views/device/stateManage/components/approvalActionDialog.vue @@ -1,10 +1,13 @@ + + diff --git a/src/views/device/stateManage/components/status/cancel.vue b/src/views/device/stateManage/components/status/cancel.vue new file mode 100644 index 0000000..ecb2d0c --- /dev/null +++ b/src/views/device/stateManage/components/status/cancel.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/components.d.ts b/src/components.d.ts index 5a09663..fcb5b4a 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -13,14 +13,14 @@ ApproverDrawer: typeof import('./components/drawer/approverDrawer.vue')['default'] Auth: typeof import('./components/Auth/index.vue')['default'] AuthAll: typeof import('./components/AuthAll/index.vue')['default'] + BarChartHorizontal: typeof import('./components/Echart/BarChartHorizontal.vue')['default'] + BarChartVertical: typeof import('./components/Echart/BarChartVertical.vue')['default'] BatchActionBar: typeof import('./components/BatchActionBar/index.vue')['default'] - Benchcol: typeof import('./components/benchcol/index.vue')['default'] BenchCol: typeof import('./components/benchCol/index.vue')['default'] ConditionDrawer: typeof import('./components/drawer/conditionDrawer.vue')['default'] CopyerDrawer: typeof import('./components/drawer/copyerDrawer.vue')['default'] Copyright: typeof import('./components/Copyright/index.vue')['default'] DeptSelect: typeof import('./components/DeptSelect/index.vue')['default'] - Echarts: typeof import('./components/echarts/index.vue')['default'] Editor: typeof import('./components/Editor/index.vue')['default'] EmployeesDialog: typeof import('./components/dialog/employeesDialog.vue')['default'] EmployeesRoleDialog: typeof import('./components/dialog/employeesRoleDialog.vue')['default'] @@ -30,13 +30,14 @@ ImagePreview: typeof import('./components/ImagePreview/index.vue')['default'] ImagesUpload: typeof import('./components/ImagesUpload/index.vue')['default'] ImageUpload: typeof import('./components/ImageUpload/index.vue')['default'] + LineChart: typeof import('./components/Echart/LineChart.vue')['default'] NodeWrap: typeof import('./components/workFlow/nodeWrap.vue')['default'] NodeWrapBan: typeof import('./components/workFlow/nodeWrapBan.vue')['default'] NormalTable: typeof import('./components/NormalTable/index.vue')['default'] PageHeader: typeof import('./components/PageHeader/index.vue')['default'] PageMain: typeof import('./components/PageMain/index.vue')['default'] PcasCascader: typeof import('./components/PcasCascader/index.vue')['default'] - Pie: typeof import('./components/echarts/pie.vue')['default'] + PieChart: typeof import('./components/Echart/PieChart.vue')['default'] PromoterDrawer: typeof import('./components/drawer/promoterDrawer.vue')['default'] RoleDialog: typeof import('./components/dialog/roleDialog.vue')['default'] RouterLink: typeof import('vue-router')['RouterLink'] diff --git a/src/views/device/stateManage/components/approvalActionDialog.vue b/src/views/device/stateManage/components/approvalActionDialog.vue index cdc9b25..56417d6 100644 --- a/src/views/device/stateManage/components/approvalActionDialog.vue +++ b/src/views/device/stateManage/components/approvalActionDialog.vue @@ -1,10 +1,13 @@ + + diff --git a/src/views/device/stateManage/components/status/cancel.vue b/src/views/device/stateManage/components/status/cancel.vue new file mode 100644 index 0000000..ecb2d0c --- /dev/null +++ b/src/views/device/stateManage/components/status/cancel.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/status/drafts.vue b/src/views/device/stateManage/components/status/drafts.vue new file mode 100644 index 0000000..226ba21 --- /dev/null +++ b/src/views/device/stateManage/components/status/drafts.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/components.d.ts b/src/components.d.ts index 5a09663..fcb5b4a 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -13,14 +13,14 @@ ApproverDrawer: typeof import('./components/drawer/approverDrawer.vue')['default'] Auth: typeof import('./components/Auth/index.vue')['default'] AuthAll: typeof import('./components/AuthAll/index.vue')['default'] + BarChartHorizontal: typeof import('./components/Echart/BarChartHorizontal.vue')['default'] + BarChartVertical: typeof import('./components/Echart/BarChartVertical.vue')['default'] BatchActionBar: typeof import('./components/BatchActionBar/index.vue')['default'] - Benchcol: typeof import('./components/benchcol/index.vue')['default'] BenchCol: typeof import('./components/benchCol/index.vue')['default'] ConditionDrawer: typeof import('./components/drawer/conditionDrawer.vue')['default'] CopyerDrawer: typeof import('./components/drawer/copyerDrawer.vue')['default'] Copyright: typeof import('./components/Copyright/index.vue')['default'] DeptSelect: typeof import('./components/DeptSelect/index.vue')['default'] - Echarts: typeof import('./components/echarts/index.vue')['default'] Editor: typeof import('./components/Editor/index.vue')['default'] EmployeesDialog: typeof import('./components/dialog/employeesDialog.vue')['default'] EmployeesRoleDialog: typeof import('./components/dialog/employeesRoleDialog.vue')['default'] @@ -30,13 +30,14 @@ ImagePreview: typeof import('./components/ImagePreview/index.vue')['default'] ImagesUpload: typeof import('./components/ImagesUpload/index.vue')['default'] ImageUpload: typeof import('./components/ImageUpload/index.vue')['default'] + LineChart: typeof import('./components/Echart/LineChart.vue')['default'] NodeWrap: typeof import('./components/workFlow/nodeWrap.vue')['default'] NodeWrapBan: typeof import('./components/workFlow/nodeWrapBan.vue')['default'] NormalTable: typeof import('./components/NormalTable/index.vue')['default'] PageHeader: typeof import('./components/PageHeader/index.vue')['default'] PageMain: typeof import('./components/PageMain/index.vue')['default'] PcasCascader: typeof import('./components/PcasCascader/index.vue')['default'] - Pie: typeof import('./components/echarts/pie.vue')['default'] + PieChart: typeof import('./components/Echart/PieChart.vue')['default'] PromoterDrawer: typeof import('./components/drawer/promoterDrawer.vue')['default'] RoleDialog: typeof import('./components/dialog/roleDialog.vue')['default'] RouterLink: typeof import('vue-router')['RouterLink'] diff --git a/src/views/device/stateManage/components/approvalActionDialog.vue b/src/views/device/stateManage/components/approvalActionDialog.vue index cdc9b25..56417d6 100644 --- a/src/views/device/stateManage/components/approvalActionDialog.vue +++ b/src/views/device/stateManage/components/approvalActionDialog.vue @@ -1,10 +1,13 @@ + + diff --git a/src/views/device/stateManage/components/status/cancel.vue b/src/views/device/stateManage/components/status/cancel.vue new file mode 100644 index 0000000..ecb2d0c --- /dev/null +++ b/src/views/device/stateManage/components/status/cancel.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/status/drafts.vue b/src/views/device/stateManage/components/status/drafts.vue new file mode 100644 index 0000000..226ba21 --- /dev/null +++ b/src/views/device/stateManage/components/status/drafts.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/status/inApproval.vue b/src/views/device/stateManage/components/status/inApproval.vue new file mode 100644 index 0000000..4988595 --- /dev/null +++ b/src/views/device/stateManage/components/status/inApproval.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/components.d.ts b/src/components.d.ts index 5a09663..fcb5b4a 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -13,14 +13,14 @@ ApproverDrawer: typeof import('./components/drawer/approverDrawer.vue')['default'] Auth: typeof import('./components/Auth/index.vue')['default'] AuthAll: typeof import('./components/AuthAll/index.vue')['default'] + BarChartHorizontal: typeof import('./components/Echart/BarChartHorizontal.vue')['default'] + BarChartVertical: typeof import('./components/Echart/BarChartVertical.vue')['default'] BatchActionBar: typeof import('./components/BatchActionBar/index.vue')['default'] - Benchcol: typeof import('./components/benchcol/index.vue')['default'] BenchCol: typeof import('./components/benchCol/index.vue')['default'] ConditionDrawer: typeof import('./components/drawer/conditionDrawer.vue')['default'] CopyerDrawer: typeof import('./components/drawer/copyerDrawer.vue')['default'] Copyright: typeof import('./components/Copyright/index.vue')['default'] DeptSelect: typeof import('./components/DeptSelect/index.vue')['default'] - Echarts: typeof import('./components/echarts/index.vue')['default'] Editor: typeof import('./components/Editor/index.vue')['default'] EmployeesDialog: typeof import('./components/dialog/employeesDialog.vue')['default'] EmployeesRoleDialog: typeof import('./components/dialog/employeesRoleDialog.vue')['default'] @@ -30,13 +30,14 @@ ImagePreview: typeof import('./components/ImagePreview/index.vue')['default'] ImagesUpload: typeof import('./components/ImagesUpload/index.vue')['default'] ImageUpload: typeof import('./components/ImageUpload/index.vue')['default'] + LineChart: typeof import('./components/Echart/LineChart.vue')['default'] NodeWrap: typeof import('./components/workFlow/nodeWrap.vue')['default'] NodeWrapBan: typeof import('./components/workFlow/nodeWrapBan.vue')['default'] NormalTable: typeof import('./components/NormalTable/index.vue')['default'] PageHeader: typeof import('./components/PageHeader/index.vue')['default'] PageMain: typeof import('./components/PageMain/index.vue')['default'] PcasCascader: typeof import('./components/PcasCascader/index.vue')['default'] - Pie: typeof import('./components/echarts/pie.vue')['default'] + PieChart: typeof import('./components/Echart/PieChart.vue')['default'] PromoterDrawer: typeof import('./components/drawer/promoterDrawer.vue')['default'] RoleDialog: typeof import('./components/dialog/roleDialog.vue')['default'] RouterLink: typeof import('vue-router')['RouterLink'] diff --git a/src/views/device/stateManage/components/approvalActionDialog.vue b/src/views/device/stateManage/components/approvalActionDialog.vue index cdc9b25..56417d6 100644 --- a/src/views/device/stateManage/components/approvalActionDialog.vue +++ b/src/views/device/stateManage/components/approvalActionDialog.vue @@ -1,10 +1,13 @@ + + diff --git a/src/views/device/stateManage/components/status/cancel.vue b/src/views/device/stateManage/components/status/cancel.vue new file mode 100644 index 0000000..ecb2d0c --- /dev/null +++ b/src/views/device/stateManage/components/status/cancel.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/status/drafts.vue b/src/views/device/stateManage/components/status/drafts.vue new file mode 100644 index 0000000..226ba21 --- /dev/null +++ b/src/views/device/stateManage/components/status/drafts.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/status/inApproval.vue b/src/views/device/stateManage/components/status/inApproval.vue new file mode 100644 index 0000000..4988595 --- /dev/null +++ b/src/views/device/stateManage/components/status/inApproval.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/status/passed.vue b/src/views/device/stateManage/components/status/passed.vue new file mode 100644 index 0000000..ab87daf --- /dev/null +++ b/src/views/device/stateManage/components/status/passed.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/components.d.ts b/src/components.d.ts index 5a09663..fcb5b4a 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -13,14 +13,14 @@ ApproverDrawer: typeof import('./components/drawer/approverDrawer.vue')['default'] Auth: typeof import('./components/Auth/index.vue')['default'] AuthAll: typeof import('./components/AuthAll/index.vue')['default'] + BarChartHorizontal: typeof import('./components/Echart/BarChartHorizontal.vue')['default'] + BarChartVertical: typeof import('./components/Echart/BarChartVertical.vue')['default'] BatchActionBar: typeof import('./components/BatchActionBar/index.vue')['default'] - Benchcol: typeof import('./components/benchcol/index.vue')['default'] BenchCol: typeof import('./components/benchCol/index.vue')['default'] ConditionDrawer: typeof import('./components/drawer/conditionDrawer.vue')['default'] CopyerDrawer: typeof import('./components/drawer/copyerDrawer.vue')['default'] Copyright: typeof import('./components/Copyright/index.vue')['default'] DeptSelect: typeof import('./components/DeptSelect/index.vue')['default'] - Echarts: typeof import('./components/echarts/index.vue')['default'] Editor: typeof import('./components/Editor/index.vue')['default'] EmployeesDialog: typeof import('./components/dialog/employeesDialog.vue')['default'] EmployeesRoleDialog: typeof import('./components/dialog/employeesRoleDialog.vue')['default'] @@ -30,13 +30,14 @@ ImagePreview: typeof import('./components/ImagePreview/index.vue')['default'] ImagesUpload: typeof import('./components/ImagesUpload/index.vue')['default'] ImageUpload: typeof import('./components/ImageUpload/index.vue')['default'] + LineChart: typeof import('./components/Echart/LineChart.vue')['default'] NodeWrap: typeof import('./components/workFlow/nodeWrap.vue')['default'] NodeWrapBan: typeof import('./components/workFlow/nodeWrapBan.vue')['default'] NormalTable: typeof import('./components/NormalTable/index.vue')['default'] PageHeader: typeof import('./components/PageHeader/index.vue')['default'] PageMain: typeof import('./components/PageMain/index.vue')['default'] PcasCascader: typeof import('./components/PcasCascader/index.vue')['default'] - Pie: typeof import('./components/echarts/pie.vue')['default'] + PieChart: typeof import('./components/Echart/PieChart.vue')['default'] PromoterDrawer: typeof import('./components/drawer/promoterDrawer.vue')['default'] RoleDialog: typeof import('./components/dialog/roleDialog.vue')['default'] RouterLink: typeof import('vue-router')['RouterLink'] diff --git a/src/views/device/stateManage/components/approvalActionDialog.vue b/src/views/device/stateManage/components/approvalActionDialog.vue index cdc9b25..56417d6 100644 --- a/src/views/device/stateManage/components/approvalActionDialog.vue +++ b/src/views/device/stateManage/components/approvalActionDialog.vue @@ -1,10 +1,13 @@ + + diff --git a/src/views/device/stateManage/components/status/cancel.vue b/src/views/device/stateManage/components/status/cancel.vue new file mode 100644 index 0000000..ecb2d0c --- /dev/null +++ b/src/views/device/stateManage/components/status/cancel.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/status/drafts.vue b/src/views/device/stateManage/components/status/drafts.vue new file mode 100644 index 0000000..226ba21 --- /dev/null +++ b/src/views/device/stateManage/components/status/drafts.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/status/inApproval.vue b/src/views/device/stateManage/components/status/inApproval.vue new file mode 100644 index 0000000..4988595 --- /dev/null +++ b/src/views/device/stateManage/components/status/inApproval.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/status/passed.vue b/src/views/device/stateManage/components/status/passed.vue new file mode 100644 index 0000000..ab87daf --- /dev/null +++ b/src/views/device/stateManage/components/status/passed.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/status/pending.vue b/src/views/device/stateManage/components/status/pending.vue new file mode 100644 index 0000000..3e0b315 --- /dev/null +++ b/src/views/device/stateManage/components/status/pending.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/components.d.ts b/src/components.d.ts index 5a09663..fcb5b4a 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -13,14 +13,14 @@ ApproverDrawer: typeof import('./components/drawer/approverDrawer.vue')['default'] Auth: typeof import('./components/Auth/index.vue')['default'] AuthAll: typeof import('./components/AuthAll/index.vue')['default'] + BarChartHorizontal: typeof import('./components/Echart/BarChartHorizontal.vue')['default'] + BarChartVertical: typeof import('./components/Echart/BarChartVertical.vue')['default'] BatchActionBar: typeof import('./components/BatchActionBar/index.vue')['default'] - Benchcol: typeof import('./components/benchcol/index.vue')['default'] BenchCol: typeof import('./components/benchCol/index.vue')['default'] ConditionDrawer: typeof import('./components/drawer/conditionDrawer.vue')['default'] CopyerDrawer: typeof import('./components/drawer/copyerDrawer.vue')['default'] Copyright: typeof import('./components/Copyright/index.vue')['default'] DeptSelect: typeof import('./components/DeptSelect/index.vue')['default'] - Echarts: typeof import('./components/echarts/index.vue')['default'] Editor: typeof import('./components/Editor/index.vue')['default'] EmployeesDialog: typeof import('./components/dialog/employeesDialog.vue')['default'] EmployeesRoleDialog: typeof import('./components/dialog/employeesRoleDialog.vue')['default'] @@ -30,13 +30,14 @@ ImagePreview: typeof import('./components/ImagePreview/index.vue')['default'] ImagesUpload: typeof import('./components/ImagesUpload/index.vue')['default'] ImageUpload: typeof import('./components/ImageUpload/index.vue')['default'] + LineChart: typeof import('./components/Echart/LineChart.vue')['default'] NodeWrap: typeof import('./components/workFlow/nodeWrap.vue')['default'] NodeWrapBan: typeof import('./components/workFlow/nodeWrapBan.vue')['default'] NormalTable: typeof import('./components/NormalTable/index.vue')['default'] PageHeader: typeof import('./components/PageHeader/index.vue')['default'] PageMain: typeof import('./components/PageMain/index.vue')['default'] PcasCascader: typeof import('./components/PcasCascader/index.vue')['default'] - Pie: typeof import('./components/echarts/pie.vue')['default'] + PieChart: typeof import('./components/Echart/PieChart.vue')['default'] PromoterDrawer: typeof import('./components/drawer/promoterDrawer.vue')['default'] RoleDialog: typeof import('./components/dialog/roleDialog.vue')['default'] RouterLink: typeof import('vue-router')['RouterLink'] diff --git a/src/views/device/stateManage/components/approvalActionDialog.vue b/src/views/device/stateManage/components/approvalActionDialog.vue index cdc9b25..56417d6 100644 --- a/src/views/device/stateManage/components/approvalActionDialog.vue +++ b/src/views/device/stateManage/components/approvalActionDialog.vue @@ -1,10 +1,13 @@ + + diff --git a/src/views/device/stateManage/components/status/cancel.vue b/src/views/device/stateManage/components/status/cancel.vue new file mode 100644 index 0000000..ecb2d0c --- /dev/null +++ b/src/views/device/stateManage/components/status/cancel.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/status/drafts.vue b/src/views/device/stateManage/components/status/drafts.vue new file mode 100644 index 0000000..226ba21 --- /dev/null +++ b/src/views/device/stateManage/components/status/drafts.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/status/inApproval.vue b/src/views/device/stateManage/components/status/inApproval.vue new file mode 100644 index 0000000..4988595 --- /dev/null +++ b/src/views/device/stateManage/components/status/inApproval.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/status/passed.vue b/src/views/device/stateManage/components/status/passed.vue new file mode 100644 index 0000000..ab87daf --- /dev/null +++ b/src/views/device/stateManage/components/status/passed.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/status/pending.vue b/src/views/device/stateManage/components/status/pending.vue new file mode 100644 index 0000000..3e0b315 --- /dev/null +++ b/src/views/device/stateManage/components/status/pending.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/status/unPassed.vue b/src/views/device/stateManage/components/status/unPassed.vue new file mode 100644 index 0000000..8de700e --- /dev/null +++ b/src/views/device/stateManage/components/status/unPassed.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/components.d.ts b/src/components.d.ts index 5a09663..fcb5b4a 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -13,14 +13,14 @@ ApproverDrawer: typeof import('./components/drawer/approverDrawer.vue')['default'] Auth: typeof import('./components/Auth/index.vue')['default'] AuthAll: typeof import('./components/AuthAll/index.vue')['default'] + BarChartHorizontal: typeof import('./components/Echart/BarChartHorizontal.vue')['default'] + BarChartVertical: typeof import('./components/Echart/BarChartVertical.vue')['default'] BatchActionBar: typeof import('./components/BatchActionBar/index.vue')['default'] - Benchcol: typeof import('./components/benchcol/index.vue')['default'] BenchCol: typeof import('./components/benchCol/index.vue')['default'] ConditionDrawer: typeof import('./components/drawer/conditionDrawer.vue')['default'] CopyerDrawer: typeof import('./components/drawer/copyerDrawer.vue')['default'] Copyright: typeof import('./components/Copyright/index.vue')['default'] DeptSelect: typeof import('./components/DeptSelect/index.vue')['default'] - Echarts: typeof import('./components/echarts/index.vue')['default'] Editor: typeof import('./components/Editor/index.vue')['default'] EmployeesDialog: typeof import('./components/dialog/employeesDialog.vue')['default'] EmployeesRoleDialog: typeof import('./components/dialog/employeesRoleDialog.vue')['default'] @@ -30,13 +30,14 @@ ImagePreview: typeof import('./components/ImagePreview/index.vue')['default'] ImagesUpload: typeof import('./components/ImagesUpload/index.vue')['default'] ImageUpload: typeof import('./components/ImageUpload/index.vue')['default'] + LineChart: typeof import('./components/Echart/LineChart.vue')['default'] NodeWrap: typeof import('./components/workFlow/nodeWrap.vue')['default'] NodeWrapBan: typeof import('./components/workFlow/nodeWrapBan.vue')['default'] NormalTable: typeof import('./components/NormalTable/index.vue')['default'] PageHeader: typeof import('./components/PageHeader/index.vue')['default'] PageMain: typeof import('./components/PageMain/index.vue')['default'] PcasCascader: typeof import('./components/PcasCascader/index.vue')['default'] - Pie: typeof import('./components/echarts/pie.vue')['default'] + PieChart: typeof import('./components/Echart/PieChart.vue')['default'] PromoterDrawer: typeof import('./components/drawer/promoterDrawer.vue')['default'] RoleDialog: typeof import('./components/dialog/roleDialog.vue')['default'] RouterLink: typeof import('vue-router')['RouterLink'] diff --git a/src/views/device/stateManage/components/approvalActionDialog.vue b/src/views/device/stateManage/components/approvalActionDialog.vue index cdc9b25..56417d6 100644 --- a/src/views/device/stateManage/components/approvalActionDialog.vue +++ b/src/views/device/stateManage/components/approvalActionDialog.vue @@ -1,10 +1,13 @@ + + diff --git a/src/views/device/stateManage/components/status/cancel.vue b/src/views/device/stateManage/components/status/cancel.vue new file mode 100644 index 0000000..ecb2d0c --- /dev/null +++ b/src/views/device/stateManage/components/status/cancel.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/status/drafts.vue b/src/views/device/stateManage/components/status/drafts.vue new file mode 100644 index 0000000..226ba21 --- /dev/null +++ b/src/views/device/stateManage/components/status/drafts.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/status/inApproval.vue b/src/views/device/stateManage/components/status/inApproval.vue new file mode 100644 index 0000000..4988595 --- /dev/null +++ b/src/views/device/stateManage/components/status/inApproval.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/status/passed.vue b/src/views/device/stateManage/components/status/passed.vue new file mode 100644 index 0000000..ab87daf --- /dev/null +++ b/src/views/device/stateManage/components/status/passed.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/status/pending.vue b/src/views/device/stateManage/components/status/pending.vue new file mode 100644 index 0000000..3e0b315 --- /dev/null +++ b/src/views/device/stateManage/components/status/pending.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/status/unPassed.vue b/src/views/device/stateManage/components/status/unPassed.vue new file mode 100644 index 0000000..8de700e --- /dev/null +++ b/src/views/device/stateManage/components/status/unPassed.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/templateAdd.vue b/src/views/device/stateManage/components/templateAdd.vue index 9c4da0f..fc364c8 100644 --- a/src/views/device/stateManage/components/templateAdd.vue +++ b/src/views/device/stateManage/components/templateAdd.vue @@ -381,10 +381,10 @@ - + diff --git a/src/components.d.ts b/src/components.d.ts index 5a09663..fcb5b4a 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -13,14 +13,14 @@ ApproverDrawer: typeof import('./components/drawer/approverDrawer.vue')['default'] Auth: typeof import('./components/Auth/index.vue')['default'] AuthAll: typeof import('./components/AuthAll/index.vue')['default'] + BarChartHorizontal: typeof import('./components/Echart/BarChartHorizontal.vue')['default'] + BarChartVertical: typeof import('./components/Echart/BarChartVertical.vue')['default'] BatchActionBar: typeof import('./components/BatchActionBar/index.vue')['default'] - Benchcol: typeof import('./components/benchcol/index.vue')['default'] BenchCol: typeof import('./components/benchCol/index.vue')['default'] ConditionDrawer: typeof import('./components/drawer/conditionDrawer.vue')['default'] CopyerDrawer: typeof import('./components/drawer/copyerDrawer.vue')['default'] Copyright: typeof import('./components/Copyright/index.vue')['default'] DeptSelect: typeof import('./components/DeptSelect/index.vue')['default'] - Echarts: typeof import('./components/echarts/index.vue')['default'] Editor: typeof import('./components/Editor/index.vue')['default'] EmployeesDialog: typeof import('./components/dialog/employeesDialog.vue')['default'] EmployeesRoleDialog: typeof import('./components/dialog/employeesRoleDialog.vue')['default'] @@ -30,13 +30,14 @@ ImagePreview: typeof import('./components/ImagePreview/index.vue')['default'] ImagesUpload: typeof import('./components/ImagesUpload/index.vue')['default'] ImageUpload: typeof import('./components/ImageUpload/index.vue')['default'] + LineChart: typeof import('./components/Echart/LineChart.vue')['default'] NodeWrap: typeof import('./components/workFlow/nodeWrap.vue')['default'] NodeWrapBan: typeof import('./components/workFlow/nodeWrapBan.vue')['default'] NormalTable: typeof import('./components/NormalTable/index.vue')['default'] PageHeader: typeof import('./components/PageHeader/index.vue')['default'] PageMain: typeof import('./components/PageMain/index.vue')['default'] PcasCascader: typeof import('./components/PcasCascader/index.vue')['default'] - Pie: typeof import('./components/echarts/pie.vue')['default'] + PieChart: typeof import('./components/Echart/PieChart.vue')['default'] PromoterDrawer: typeof import('./components/drawer/promoterDrawer.vue')['default'] RoleDialog: typeof import('./components/dialog/roleDialog.vue')['default'] RouterLink: typeof import('vue-router')['RouterLink'] diff --git a/src/views/device/stateManage/components/approvalActionDialog.vue b/src/views/device/stateManage/components/approvalActionDialog.vue index cdc9b25..56417d6 100644 --- a/src/views/device/stateManage/components/approvalActionDialog.vue +++ b/src/views/device/stateManage/components/approvalActionDialog.vue @@ -1,10 +1,13 @@ + + diff --git a/src/views/device/stateManage/components/status/cancel.vue b/src/views/device/stateManage/components/status/cancel.vue new file mode 100644 index 0000000..ecb2d0c --- /dev/null +++ b/src/views/device/stateManage/components/status/cancel.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/status/drafts.vue b/src/views/device/stateManage/components/status/drafts.vue new file mode 100644 index 0000000..226ba21 --- /dev/null +++ b/src/views/device/stateManage/components/status/drafts.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/status/inApproval.vue b/src/views/device/stateManage/components/status/inApproval.vue new file mode 100644 index 0000000..4988595 --- /dev/null +++ b/src/views/device/stateManage/components/status/inApproval.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/status/passed.vue b/src/views/device/stateManage/components/status/passed.vue new file mode 100644 index 0000000..ab87daf --- /dev/null +++ b/src/views/device/stateManage/components/status/passed.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/status/pending.vue b/src/views/device/stateManage/components/status/pending.vue new file mode 100644 index 0000000..3e0b315 --- /dev/null +++ b/src/views/device/stateManage/components/status/pending.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/status/unPassed.vue b/src/views/device/stateManage/components/status/unPassed.vue new file mode 100644 index 0000000..8de700e --- /dev/null +++ b/src/views/device/stateManage/components/status/unPassed.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/templateAdd.vue b/src/views/device/stateManage/components/templateAdd.vue index 9c4da0f..fc364c8 100644 --- a/src/views/device/stateManage/components/templateAdd.vue +++ b/src/views/device/stateManage/components/templateAdd.vue @@ -381,10 +381,10 @@ - + diff --git a/src/views/device/stateManage/components/templateList.vue b/src/views/device/stateManage/components/templateList.vue index 6ee2e8c..aa3963f 100644 --- a/src/views/device/stateManage/components/templateList.vue +++ b/src/views/device/stateManage/components/templateList.vue @@ -8,6 +8,10 @@ type: String, default: '', }, + title: { + type: String, + default: '', + }, }) // import { exportFile } from '@/utils/exportUtils' // const { proxy } = getCurrentInstance() as any @@ -179,15 +183,23 @@ // 同意 const agree = (row) => { console.log(approveRef.value) - approveRef.value.initDialog() + approveRef.value.initDialog({ + radio: '1', + }) } // 驳回 const reject = (row) => { - approveRef.value.initDialog() + approveRef.value.initDialog({ + radio: '3', + }) } // 拒绝 const refuse = (row) => { - approveRef.value.initDialog() + approveRef.value.initDialog( + { + radio: '2', + }, + ) } // 取消 const cancel = (row) => { diff --git a/src/components.d.ts b/src/components.d.ts index 5a09663..fcb5b4a 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -13,14 +13,14 @@ ApproverDrawer: typeof import('./components/drawer/approverDrawer.vue')['default'] Auth: typeof import('./components/Auth/index.vue')['default'] AuthAll: typeof import('./components/AuthAll/index.vue')['default'] + BarChartHorizontal: typeof import('./components/Echart/BarChartHorizontal.vue')['default'] + BarChartVertical: typeof import('./components/Echart/BarChartVertical.vue')['default'] BatchActionBar: typeof import('./components/BatchActionBar/index.vue')['default'] - Benchcol: typeof import('./components/benchcol/index.vue')['default'] BenchCol: typeof import('./components/benchCol/index.vue')['default'] ConditionDrawer: typeof import('./components/drawer/conditionDrawer.vue')['default'] CopyerDrawer: typeof import('./components/drawer/copyerDrawer.vue')['default'] Copyright: typeof import('./components/Copyright/index.vue')['default'] DeptSelect: typeof import('./components/DeptSelect/index.vue')['default'] - Echarts: typeof import('./components/echarts/index.vue')['default'] Editor: typeof import('./components/Editor/index.vue')['default'] EmployeesDialog: typeof import('./components/dialog/employeesDialog.vue')['default'] EmployeesRoleDialog: typeof import('./components/dialog/employeesRoleDialog.vue')['default'] @@ -30,13 +30,14 @@ ImagePreview: typeof import('./components/ImagePreview/index.vue')['default'] ImagesUpload: typeof import('./components/ImagesUpload/index.vue')['default'] ImageUpload: typeof import('./components/ImageUpload/index.vue')['default'] + LineChart: typeof import('./components/Echart/LineChart.vue')['default'] NodeWrap: typeof import('./components/workFlow/nodeWrap.vue')['default'] NodeWrapBan: typeof import('./components/workFlow/nodeWrapBan.vue')['default'] NormalTable: typeof import('./components/NormalTable/index.vue')['default'] PageHeader: typeof import('./components/PageHeader/index.vue')['default'] PageMain: typeof import('./components/PageMain/index.vue')['default'] PcasCascader: typeof import('./components/PcasCascader/index.vue')['default'] - Pie: typeof import('./components/echarts/pie.vue')['default'] + PieChart: typeof import('./components/Echart/PieChart.vue')['default'] PromoterDrawer: typeof import('./components/drawer/promoterDrawer.vue')['default'] RoleDialog: typeof import('./components/dialog/roleDialog.vue')['default'] RouterLink: typeof import('vue-router')['RouterLink'] diff --git a/src/views/device/stateManage/components/approvalActionDialog.vue b/src/views/device/stateManage/components/approvalActionDialog.vue index cdc9b25..56417d6 100644 --- a/src/views/device/stateManage/components/approvalActionDialog.vue +++ b/src/views/device/stateManage/components/approvalActionDialog.vue @@ -1,10 +1,13 @@ + + diff --git a/src/views/device/stateManage/components/status/cancel.vue b/src/views/device/stateManage/components/status/cancel.vue new file mode 100644 index 0000000..ecb2d0c --- /dev/null +++ b/src/views/device/stateManage/components/status/cancel.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/status/drafts.vue b/src/views/device/stateManage/components/status/drafts.vue new file mode 100644 index 0000000..226ba21 --- /dev/null +++ b/src/views/device/stateManage/components/status/drafts.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/status/inApproval.vue b/src/views/device/stateManage/components/status/inApproval.vue new file mode 100644 index 0000000..4988595 --- /dev/null +++ b/src/views/device/stateManage/components/status/inApproval.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/status/passed.vue b/src/views/device/stateManage/components/status/passed.vue new file mode 100644 index 0000000..ab87daf --- /dev/null +++ b/src/views/device/stateManage/components/status/passed.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/status/pending.vue b/src/views/device/stateManage/components/status/pending.vue new file mode 100644 index 0000000..3e0b315 --- /dev/null +++ b/src/views/device/stateManage/components/status/pending.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/status/unPassed.vue b/src/views/device/stateManage/components/status/unPassed.vue new file mode 100644 index 0000000..8de700e --- /dev/null +++ b/src/views/device/stateManage/components/status/unPassed.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/templateAdd.vue b/src/views/device/stateManage/components/templateAdd.vue index 9c4da0f..fc364c8 100644 --- a/src/views/device/stateManage/components/templateAdd.vue +++ b/src/views/device/stateManage/components/templateAdd.vue @@ -381,10 +381,10 @@ - + diff --git a/src/views/device/stateManage/components/templateList.vue b/src/views/device/stateManage/components/templateList.vue index 6ee2e8c..aa3963f 100644 --- a/src/views/device/stateManage/components/templateList.vue +++ b/src/views/device/stateManage/components/templateList.vue @@ -8,6 +8,10 @@ type: String, default: '', }, + title: { + type: String, + default: '', + }, }) // import { exportFile } from '@/utils/exportUtils' // const { proxy } = getCurrentInstance() as any @@ -179,15 +183,23 @@ // 同意 const agree = (row) => { console.log(approveRef.value) - approveRef.value.initDialog() + approveRef.value.initDialog({ + radio: '1', + }) } // 驳回 const reject = (row) => { - approveRef.value.initDialog() + approveRef.value.initDialog({ + radio: '3', + }) } // 拒绝 const refuse = (row) => { - approveRef.value.initDialog() + approveRef.value.initDialog( + { + radio: '2', + }, + ) } // 取消 const cancel = (row) => { diff --git a/src/views/device/stateManage/components/templatePage.vue b/src/views/device/stateManage/components/templatePage.vue index 5fb0163..fce7685 100644 --- a/src/views/device/stateManage/components/templatePage.vue +++ b/src/views/device/stateManage/components/templatePage.vue @@ -1,6 +1,12 @@ + + diff --git a/src/views/device/stateManage/components/status/cancel.vue b/src/views/device/stateManage/components/status/cancel.vue new file mode 100644 index 0000000..ecb2d0c --- /dev/null +++ b/src/views/device/stateManage/components/status/cancel.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/status/drafts.vue b/src/views/device/stateManage/components/status/drafts.vue new file mode 100644 index 0000000..226ba21 --- /dev/null +++ b/src/views/device/stateManage/components/status/drafts.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/status/inApproval.vue b/src/views/device/stateManage/components/status/inApproval.vue new file mode 100644 index 0000000..4988595 --- /dev/null +++ b/src/views/device/stateManage/components/status/inApproval.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/status/passed.vue b/src/views/device/stateManage/components/status/passed.vue new file mode 100644 index 0000000..ab87daf --- /dev/null +++ b/src/views/device/stateManage/components/status/passed.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/status/pending.vue b/src/views/device/stateManage/components/status/pending.vue new file mode 100644 index 0000000..3e0b315 --- /dev/null +++ b/src/views/device/stateManage/components/status/pending.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/status/unPassed.vue b/src/views/device/stateManage/components/status/unPassed.vue new file mode 100644 index 0000000..8de700e --- /dev/null +++ b/src/views/device/stateManage/components/status/unPassed.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/templateAdd.vue b/src/views/device/stateManage/components/templateAdd.vue index 9c4da0f..fc364c8 100644 --- a/src/views/device/stateManage/components/templateAdd.vue +++ b/src/views/device/stateManage/components/templateAdd.vue @@ -381,10 +381,10 @@ - + diff --git a/src/views/device/stateManage/components/templateList.vue b/src/views/device/stateManage/components/templateList.vue index 6ee2e8c..aa3963f 100644 --- a/src/views/device/stateManage/components/templateList.vue +++ b/src/views/device/stateManage/components/templateList.vue @@ -8,6 +8,10 @@ type: String, default: '', }, + title: { + type: String, + default: '', + }, }) // import { exportFile } from '@/utils/exportUtils' // const { proxy } = getCurrentInstance() as any @@ -179,15 +183,23 @@ // 同意 const agree = (row) => { console.log(approveRef.value) - approveRef.value.initDialog() + approveRef.value.initDialog({ + radio: '1', + }) } // 驳回 const reject = (row) => { - approveRef.value.initDialog() + approveRef.value.initDialog({ + radio: '3', + }) } // 拒绝 const refuse = (row) => { - approveRef.value.initDialog() + approveRef.value.initDialog( + { + radio: '2', + }, + ) } // 取消 const cancel = (row) => { diff --git a/src/views/device/stateManage/components/templatePage.vue b/src/views/device/stateManage/components/templatePage.vue index 5fb0163..fce7685 100644 --- a/src/views/device/stateManage/components/templatePage.vue +++ b/src/views/device/stateManage/components/templatePage.vue @@ -1,6 +1,12 @@ diff --git a/src/components.d.ts b/src/components.d.ts index 5a09663..fcb5b4a 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -13,14 +13,14 @@ ApproverDrawer: typeof import('./components/drawer/approverDrawer.vue')['default'] Auth: typeof import('./components/Auth/index.vue')['default'] AuthAll: typeof import('./components/AuthAll/index.vue')['default'] + BarChartHorizontal: typeof import('./components/Echart/BarChartHorizontal.vue')['default'] + BarChartVertical: typeof import('./components/Echart/BarChartVertical.vue')['default'] BatchActionBar: typeof import('./components/BatchActionBar/index.vue')['default'] - Benchcol: typeof import('./components/benchcol/index.vue')['default'] BenchCol: typeof import('./components/benchCol/index.vue')['default'] ConditionDrawer: typeof import('./components/drawer/conditionDrawer.vue')['default'] CopyerDrawer: typeof import('./components/drawer/copyerDrawer.vue')['default'] Copyright: typeof import('./components/Copyright/index.vue')['default'] DeptSelect: typeof import('./components/DeptSelect/index.vue')['default'] - Echarts: typeof import('./components/echarts/index.vue')['default'] Editor: typeof import('./components/Editor/index.vue')['default'] EmployeesDialog: typeof import('./components/dialog/employeesDialog.vue')['default'] EmployeesRoleDialog: typeof import('./components/dialog/employeesRoleDialog.vue')['default'] @@ -30,13 +30,14 @@ ImagePreview: typeof import('./components/ImagePreview/index.vue')['default'] ImagesUpload: typeof import('./components/ImagesUpload/index.vue')['default'] ImageUpload: typeof import('./components/ImageUpload/index.vue')['default'] + LineChart: typeof import('./components/Echart/LineChart.vue')['default'] NodeWrap: typeof import('./components/workFlow/nodeWrap.vue')['default'] NodeWrapBan: typeof import('./components/workFlow/nodeWrapBan.vue')['default'] NormalTable: typeof import('./components/NormalTable/index.vue')['default'] PageHeader: typeof import('./components/PageHeader/index.vue')['default'] PageMain: typeof import('./components/PageMain/index.vue')['default'] PcasCascader: typeof import('./components/PcasCascader/index.vue')['default'] - Pie: typeof import('./components/echarts/pie.vue')['default'] + PieChart: typeof import('./components/Echart/PieChart.vue')['default'] PromoterDrawer: typeof import('./components/drawer/promoterDrawer.vue')['default'] RoleDialog: typeof import('./components/dialog/roleDialog.vue')['default'] RouterLink: typeof import('vue-router')['RouterLink'] diff --git a/src/views/device/stateManage/components/approvalActionDialog.vue b/src/views/device/stateManage/components/approvalActionDialog.vue index cdc9b25..56417d6 100644 --- a/src/views/device/stateManage/components/approvalActionDialog.vue +++ b/src/views/device/stateManage/components/approvalActionDialog.vue @@ -1,10 +1,13 @@ + + diff --git a/src/views/device/stateManage/components/status/cancel.vue b/src/views/device/stateManage/components/status/cancel.vue new file mode 100644 index 0000000..ecb2d0c --- /dev/null +++ b/src/views/device/stateManage/components/status/cancel.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/status/drafts.vue b/src/views/device/stateManage/components/status/drafts.vue new file mode 100644 index 0000000..226ba21 --- /dev/null +++ b/src/views/device/stateManage/components/status/drafts.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/status/inApproval.vue b/src/views/device/stateManage/components/status/inApproval.vue new file mode 100644 index 0000000..4988595 --- /dev/null +++ b/src/views/device/stateManage/components/status/inApproval.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/status/passed.vue b/src/views/device/stateManage/components/status/passed.vue new file mode 100644 index 0000000..ab87daf --- /dev/null +++ b/src/views/device/stateManage/components/status/passed.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/status/pending.vue b/src/views/device/stateManage/components/status/pending.vue new file mode 100644 index 0000000..3e0b315 --- /dev/null +++ b/src/views/device/stateManage/components/status/pending.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/status/unPassed.vue b/src/views/device/stateManage/components/status/unPassed.vue new file mode 100644 index 0000000..8de700e --- /dev/null +++ b/src/views/device/stateManage/components/status/unPassed.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/templateAdd.vue b/src/views/device/stateManage/components/templateAdd.vue index 9c4da0f..fc364c8 100644 --- a/src/views/device/stateManage/components/templateAdd.vue +++ b/src/views/device/stateManage/components/templateAdd.vue @@ -381,10 +381,10 @@ - + diff --git a/src/views/device/stateManage/components/templateList.vue b/src/views/device/stateManage/components/templateList.vue index 6ee2e8c..aa3963f 100644 --- a/src/views/device/stateManage/components/templateList.vue +++ b/src/views/device/stateManage/components/templateList.vue @@ -8,6 +8,10 @@ type: String, default: '', }, + title: { + type: String, + default: '', + }, }) // import { exportFile } from '@/utils/exportUtils' // const { proxy } = getCurrentInstance() as any @@ -179,15 +183,23 @@ // 同意 const agree = (row) => { console.log(approveRef.value) - approveRef.value.initDialog() + approveRef.value.initDialog({ + radio: '1', + }) } // 驳回 const reject = (row) => { - approveRef.value.initDialog() + approveRef.value.initDialog({ + radio: '3', + }) } // 拒绝 const refuse = (row) => { - approveRef.value.initDialog() + approveRef.value.initDialog( + { + radio: '2', + }, + ) } // 取消 const cancel = (row) => { diff --git a/src/views/device/stateManage/components/templatePage.vue b/src/views/device/stateManage/components/templatePage.vue index 5fb0163..fce7685 100644 --- a/src/views/device/stateManage/components/templatePage.vue +++ b/src/views/device/stateManage/components/templatePage.vue @@ -1,6 +1,12 @@ diff --git a/src/views/device/stateManage/openApply.vue b/src/views/device/stateManage/openApply.vue index 3c43781..35c2af6 100644 --- a/src/views/device/stateManage/openApply.vue +++ b/src/views/device/stateManage/openApply.vue @@ -1,13 +1,14 @@ + diff --git a/src/components.d.ts b/src/components.d.ts index 5a09663..fcb5b4a 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -13,14 +13,14 @@ ApproverDrawer: typeof import('./components/drawer/approverDrawer.vue')['default'] Auth: typeof import('./components/Auth/index.vue')['default'] AuthAll: typeof import('./components/AuthAll/index.vue')['default'] + BarChartHorizontal: typeof import('./components/Echart/BarChartHorizontal.vue')['default'] + BarChartVertical: typeof import('./components/Echart/BarChartVertical.vue')['default'] BatchActionBar: typeof import('./components/BatchActionBar/index.vue')['default'] - Benchcol: typeof import('./components/benchcol/index.vue')['default'] BenchCol: typeof import('./components/benchCol/index.vue')['default'] ConditionDrawer: typeof import('./components/drawer/conditionDrawer.vue')['default'] CopyerDrawer: typeof import('./components/drawer/copyerDrawer.vue')['default'] Copyright: typeof import('./components/Copyright/index.vue')['default'] DeptSelect: typeof import('./components/DeptSelect/index.vue')['default'] - Echarts: typeof import('./components/echarts/index.vue')['default'] Editor: typeof import('./components/Editor/index.vue')['default'] EmployeesDialog: typeof import('./components/dialog/employeesDialog.vue')['default'] EmployeesRoleDialog: typeof import('./components/dialog/employeesRoleDialog.vue')['default'] @@ -30,13 +30,14 @@ ImagePreview: typeof import('./components/ImagePreview/index.vue')['default'] ImagesUpload: typeof import('./components/ImagesUpload/index.vue')['default'] ImageUpload: typeof import('./components/ImageUpload/index.vue')['default'] + LineChart: typeof import('./components/Echart/LineChart.vue')['default'] NodeWrap: typeof import('./components/workFlow/nodeWrap.vue')['default'] NodeWrapBan: typeof import('./components/workFlow/nodeWrapBan.vue')['default'] NormalTable: typeof import('./components/NormalTable/index.vue')['default'] PageHeader: typeof import('./components/PageHeader/index.vue')['default'] PageMain: typeof import('./components/PageMain/index.vue')['default'] PcasCascader: typeof import('./components/PcasCascader/index.vue')['default'] - Pie: typeof import('./components/echarts/pie.vue')['default'] + PieChart: typeof import('./components/Echart/PieChart.vue')['default'] PromoterDrawer: typeof import('./components/drawer/promoterDrawer.vue')['default'] RoleDialog: typeof import('./components/dialog/roleDialog.vue')['default'] RouterLink: typeof import('vue-router')['RouterLink'] diff --git a/src/views/device/stateManage/components/approvalActionDialog.vue b/src/views/device/stateManage/components/approvalActionDialog.vue index cdc9b25..56417d6 100644 --- a/src/views/device/stateManage/components/approvalActionDialog.vue +++ b/src/views/device/stateManage/components/approvalActionDialog.vue @@ -1,10 +1,13 @@ + + diff --git a/src/views/device/stateManage/components/status/cancel.vue b/src/views/device/stateManage/components/status/cancel.vue new file mode 100644 index 0000000..ecb2d0c --- /dev/null +++ b/src/views/device/stateManage/components/status/cancel.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/status/drafts.vue b/src/views/device/stateManage/components/status/drafts.vue new file mode 100644 index 0000000..226ba21 --- /dev/null +++ b/src/views/device/stateManage/components/status/drafts.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/status/inApproval.vue b/src/views/device/stateManage/components/status/inApproval.vue new file mode 100644 index 0000000..4988595 --- /dev/null +++ b/src/views/device/stateManage/components/status/inApproval.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/status/passed.vue b/src/views/device/stateManage/components/status/passed.vue new file mode 100644 index 0000000..ab87daf --- /dev/null +++ b/src/views/device/stateManage/components/status/passed.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/status/pending.vue b/src/views/device/stateManage/components/status/pending.vue new file mode 100644 index 0000000..3e0b315 --- /dev/null +++ b/src/views/device/stateManage/components/status/pending.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/status/unPassed.vue b/src/views/device/stateManage/components/status/unPassed.vue new file mode 100644 index 0000000..8de700e --- /dev/null +++ b/src/views/device/stateManage/components/status/unPassed.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/templateAdd.vue b/src/views/device/stateManage/components/templateAdd.vue index 9c4da0f..fc364c8 100644 --- a/src/views/device/stateManage/components/templateAdd.vue +++ b/src/views/device/stateManage/components/templateAdd.vue @@ -381,10 +381,10 @@ - + diff --git a/src/views/device/stateManage/components/templateList.vue b/src/views/device/stateManage/components/templateList.vue index 6ee2e8c..aa3963f 100644 --- a/src/views/device/stateManage/components/templateList.vue +++ b/src/views/device/stateManage/components/templateList.vue @@ -8,6 +8,10 @@ type: String, default: '', }, + title: { + type: String, + default: '', + }, }) // import { exportFile } from '@/utils/exportUtils' // const { proxy } = getCurrentInstance() as any @@ -179,15 +183,23 @@ // 同意 const agree = (row) => { console.log(approveRef.value) - approveRef.value.initDialog() + approveRef.value.initDialog({ + radio: '1', + }) } // 驳回 const reject = (row) => { - approveRef.value.initDialog() + approveRef.value.initDialog({ + radio: '3', + }) } // 拒绝 const refuse = (row) => { - approveRef.value.initDialog() + approveRef.value.initDialog( + { + radio: '2', + }, + ) } // 取消 const cancel = (row) => { diff --git a/src/views/device/stateManage/components/templatePage.vue b/src/views/device/stateManage/components/templatePage.vue index 5fb0163..fce7685 100644 --- a/src/views/device/stateManage/components/templatePage.vue +++ b/src/views/device/stateManage/components/templatePage.vue @@ -1,6 +1,12 @@ diff --git a/src/views/device/stateManage/openApply.vue b/src/views/device/stateManage/openApply.vue index 3c43781..35c2af6 100644 --- a/src/views/device/stateManage/openApply.vue +++ b/src/views/device/stateManage/openApply.vue @@ -1,13 +1,14 @@ + diff --git a/src/views/device/stateManage/scrapApply.vue b/src/views/device/stateManage/scrapApply.vue index 7bd1a98..282ecd8 100644 --- a/src/views/device/stateManage/scrapApply.vue +++ b/src/views/device/stateManage/scrapApply.vue @@ -1,10 +1,10 @@ diff --git a/src/components.d.ts b/src/components.d.ts index 5a09663..fcb5b4a 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -13,14 +13,14 @@ ApproverDrawer: typeof import('./components/drawer/approverDrawer.vue')['default'] Auth: typeof import('./components/Auth/index.vue')['default'] AuthAll: typeof import('./components/AuthAll/index.vue')['default'] + BarChartHorizontal: typeof import('./components/Echart/BarChartHorizontal.vue')['default'] + BarChartVertical: typeof import('./components/Echart/BarChartVertical.vue')['default'] BatchActionBar: typeof import('./components/BatchActionBar/index.vue')['default'] - Benchcol: typeof import('./components/benchcol/index.vue')['default'] BenchCol: typeof import('./components/benchCol/index.vue')['default'] ConditionDrawer: typeof import('./components/drawer/conditionDrawer.vue')['default'] CopyerDrawer: typeof import('./components/drawer/copyerDrawer.vue')['default'] Copyright: typeof import('./components/Copyright/index.vue')['default'] DeptSelect: typeof import('./components/DeptSelect/index.vue')['default'] - Echarts: typeof import('./components/echarts/index.vue')['default'] Editor: typeof import('./components/Editor/index.vue')['default'] EmployeesDialog: typeof import('./components/dialog/employeesDialog.vue')['default'] EmployeesRoleDialog: typeof import('./components/dialog/employeesRoleDialog.vue')['default'] @@ -30,13 +30,14 @@ ImagePreview: typeof import('./components/ImagePreview/index.vue')['default'] ImagesUpload: typeof import('./components/ImagesUpload/index.vue')['default'] ImageUpload: typeof import('./components/ImageUpload/index.vue')['default'] + LineChart: typeof import('./components/Echart/LineChart.vue')['default'] NodeWrap: typeof import('./components/workFlow/nodeWrap.vue')['default'] NodeWrapBan: typeof import('./components/workFlow/nodeWrapBan.vue')['default'] NormalTable: typeof import('./components/NormalTable/index.vue')['default'] PageHeader: typeof import('./components/PageHeader/index.vue')['default'] PageMain: typeof import('./components/PageMain/index.vue')['default'] PcasCascader: typeof import('./components/PcasCascader/index.vue')['default'] - Pie: typeof import('./components/echarts/pie.vue')['default'] + PieChart: typeof import('./components/Echart/PieChart.vue')['default'] PromoterDrawer: typeof import('./components/drawer/promoterDrawer.vue')['default'] RoleDialog: typeof import('./components/dialog/roleDialog.vue')['default'] RouterLink: typeof import('vue-router')['RouterLink'] diff --git a/src/views/device/stateManage/components/approvalActionDialog.vue b/src/views/device/stateManage/components/approvalActionDialog.vue index cdc9b25..56417d6 100644 --- a/src/views/device/stateManage/components/approvalActionDialog.vue +++ b/src/views/device/stateManage/components/approvalActionDialog.vue @@ -1,10 +1,13 @@ + + diff --git a/src/views/device/stateManage/components/status/cancel.vue b/src/views/device/stateManage/components/status/cancel.vue new file mode 100644 index 0000000..ecb2d0c --- /dev/null +++ b/src/views/device/stateManage/components/status/cancel.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/status/drafts.vue b/src/views/device/stateManage/components/status/drafts.vue new file mode 100644 index 0000000..226ba21 --- /dev/null +++ b/src/views/device/stateManage/components/status/drafts.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/status/inApproval.vue b/src/views/device/stateManage/components/status/inApproval.vue new file mode 100644 index 0000000..4988595 --- /dev/null +++ b/src/views/device/stateManage/components/status/inApproval.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/status/passed.vue b/src/views/device/stateManage/components/status/passed.vue new file mode 100644 index 0000000..ab87daf --- /dev/null +++ b/src/views/device/stateManage/components/status/passed.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/status/pending.vue b/src/views/device/stateManage/components/status/pending.vue new file mode 100644 index 0000000..3e0b315 --- /dev/null +++ b/src/views/device/stateManage/components/status/pending.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/status/unPassed.vue b/src/views/device/stateManage/components/status/unPassed.vue new file mode 100644 index 0000000..8de700e --- /dev/null +++ b/src/views/device/stateManage/components/status/unPassed.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/templateAdd.vue b/src/views/device/stateManage/components/templateAdd.vue index 9c4da0f..fc364c8 100644 --- a/src/views/device/stateManage/components/templateAdd.vue +++ b/src/views/device/stateManage/components/templateAdd.vue @@ -381,10 +381,10 @@ - + diff --git a/src/views/device/stateManage/components/templateList.vue b/src/views/device/stateManage/components/templateList.vue index 6ee2e8c..aa3963f 100644 --- a/src/views/device/stateManage/components/templateList.vue +++ b/src/views/device/stateManage/components/templateList.vue @@ -8,6 +8,10 @@ type: String, default: '', }, + title: { + type: String, + default: '', + }, }) // import { exportFile } from '@/utils/exportUtils' // const { proxy } = getCurrentInstance() as any @@ -179,15 +183,23 @@ // 同意 const agree = (row) => { console.log(approveRef.value) - approveRef.value.initDialog() + approveRef.value.initDialog({ + radio: '1', + }) } // 驳回 const reject = (row) => { - approveRef.value.initDialog() + approveRef.value.initDialog({ + radio: '3', + }) } // 拒绝 const refuse = (row) => { - approveRef.value.initDialog() + approveRef.value.initDialog( + { + radio: '2', + }, + ) } // 取消 const cancel = (row) => { diff --git a/src/views/device/stateManage/components/templatePage.vue b/src/views/device/stateManage/components/templatePage.vue index 5fb0163..fce7685 100644 --- a/src/views/device/stateManage/components/templatePage.vue +++ b/src/views/device/stateManage/components/templatePage.vue @@ -1,6 +1,12 @@ diff --git a/src/views/device/stateManage/openApply.vue b/src/views/device/stateManage/openApply.vue index 3c43781..35c2af6 100644 --- a/src/views/device/stateManage/openApply.vue +++ b/src/views/device/stateManage/openApply.vue @@ -1,13 +1,14 @@ + diff --git a/src/views/device/stateManage/scrapApply.vue b/src/views/device/stateManage/scrapApply.vue index 7bd1a98..282ecd8 100644 --- a/src/views/device/stateManage/scrapApply.vue +++ b/src/views/device/stateManage/scrapApply.vue @@ -1,10 +1,10 @@ diff --git a/src/views/device/stateManage/sealupApply.vue b/src/views/device/stateManage/sealupApply.vue index ec6320b..1c8544d 100644 --- a/src/views/device/stateManage/sealupApply.vue +++ b/src/views/device/stateManage/sealupApply.vue @@ -1,10 +1,10 @@ diff --git a/src/components.d.ts b/src/components.d.ts index 5a09663..fcb5b4a 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -13,14 +13,14 @@ ApproverDrawer: typeof import('./components/drawer/approverDrawer.vue')['default'] Auth: typeof import('./components/Auth/index.vue')['default'] AuthAll: typeof import('./components/AuthAll/index.vue')['default'] + BarChartHorizontal: typeof import('./components/Echart/BarChartHorizontal.vue')['default'] + BarChartVertical: typeof import('./components/Echart/BarChartVertical.vue')['default'] BatchActionBar: typeof import('./components/BatchActionBar/index.vue')['default'] - Benchcol: typeof import('./components/benchcol/index.vue')['default'] BenchCol: typeof import('./components/benchCol/index.vue')['default'] ConditionDrawer: typeof import('./components/drawer/conditionDrawer.vue')['default'] CopyerDrawer: typeof import('./components/drawer/copyerDrawer.vue')['default'] Copyright: typeof import('./components/Copyright/index.vue')['default'] DeptSelect: typeof import('./components/DeptSelect/index.vue')['default'] - Echarts: typeof import('./components/echarts/index.vue')['default'] Editor: typeof import('./components/Editor/index.vue')['default'] EmployeesDialog: typeof import('./components/dialog/employeesDialog.vue')['default'] EmployeesRoleDialog: typeof import('./components/dialog/employeesRoleDialog.vue')['default'] @@ -30,13 +30,14 @@ ImagePreview: typeof import('./components/ImagePreview/index.vue')['default'] ImagesUpload: typeof import('./components/ImagesUpload/index.vue')['default'] ImageUpload: typeof import('./components/ImageUpload/index.vue')['default'] + LineChart: typeof import('./components/Echart/LineChart.vue')['default'] NodeWrap: typeof import('./components/workFlow/nodeWrap.vue')['default'] NodeWrapBan: typeof import('./components/workFlow/nodeWrapBan.vue')['default'] NormalTable: typeof import('./components/NormalTable/index.vue')['default'] PageHeader: typeof import('./components/PageHeader/index.vue')['default'] PageMain: typeof import('./components/PageMain/index.vue')['default'] PcasCascader: typeof import('./components/PcasCascader/index.vue')['default'] - Pie: typeof import('./components/echarts/pie.vue')['default'] + PieChart: typeof import('./components/Echart/PieChart.vue')['default'] PromoterDrawer: typeof import('./components/drawer/promoterDrawer.vue')['default'] RoleDialog: typeof import('./components/dialog/roleDialog.vue')['default'] RouterLink: typeof import('vue-router')['RouterLink'] diff --git a/src/views/device/stateManage/components/approvalActionDialog.vue b/src/views/device/stateManage/components/approvalActionDialog.vue index cdc9b25..56417d6 100644 --- a/src/views/device/stateManage/components/approvalActionDialog.vue +++ b/src/views/device/stateManage/components/approvalActionDialog.vue @@ -1,10 +1,13 @@ + + diff --git a/src/views/device/stateManage/components/status/cancel.vue b/src/views/device/stateManage/components/status/cancel.vue new file mode 100644 index 0000000..ecb2d0c --- /dev/null +++ b/src/views/device/stateManage/components/status/cancel.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/status/drafts.vue b/src/views/device/stateManage/components/status/drafts.vue new file mode 100644 index 0000000..226ba21 --- /dev/null +++ b/src/views/device/stateManage/components/status/drafts.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/status/inApproval.vue b/src/views/device/stateManage/components/status/inApproval.vue new file mode 100644 index 0000000..4988595 --- /dev/null +++ b/src/views/device/stateManage/components/status/inApproval.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/status/passed.vue b/src/views/device/stateManage/components/status/passed.vue new file mode 100644 index 0000000..ab87daf --- /dev/null +++ b/src/views/device/stateManage/components/status/passed.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/status/pending.vue b/src/views/device/stateManage/components/status/pending.vue new file mode 100644 index 0000000..3e0b315 --- /dev/null +++ b/src/views/device/stateManage/components/status/pending.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/status/unPassed.vue b/src/views/device/stateManage/components/status/unPassed.vue new file mode 100644 index 0000000..8de700e --- /dev/null +++ b/src/views/device/stateManage/components/status/unPassed.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/templateAdd.vue b/src/views/device/stateManage/components/templateAdd.vue index 9c4da0f..fc364c8 100644 --- a/src/views/device/stateManage/components/templateAdd.vue +++ b/src/views/device/stateManage/components/templateAdd.vue @@ -381,10 +381,10 @@ - + diff --git a/src/views/device/stateManage/components/templateList.vue b/src/views/device/stateManage/components/templateList.vue index 6ee2e8c..aa3963f 100644 --- a/src/views/device/stateManage/components/templateList.vue +++ b/src/views/device/stateManage/components/templateList.vue @@ -8,6 +8,10 @@ type: String, default: '', }, + title: { + type: String, + default: '', + }, }) // import { exportFile } from '@/utils/exportUtils' // const { proxy } = getCurrentInstance() as any @@ -179,15 +183,23 @@ // 同意 const agree = (row) => { console.log(approveRef.value) - approveRef.value.initDialog() + approveRef.value.initDialog({ + radio: '1', + }) } // 驳回 const reject = (row) => { - approveRef.value.initDialog() + approveRef.value.initDialog({ + radio: '3', + }) } // 拒绝 const refuse = (row) => { - approveRef.value.initDialog() + approveRef.value.initDialog( + { + radio: '2', + }, + ) } // 取消 const cancel = (row) => { diff --git a/src/views/device/stateManage/components/templatePage.vue b/src/views/device/stateManage/components/templatePage.vue index 5fb0163..fce7685 100644 --- a/src/views/device/stateManage/components/templatePage.vue +++ b/src/views/device/stateManage/components/templatePage.vue @@ -1,6 +1,12 @@ diff --git a/src/views/device/stateManage/openApply.vue b/src/views/device/stateManage/openApply.vue index 3c43781..35c2af6 100644 --- a/src/views/device/stateManage/openApply.vue +++ b/src/views/device/stateManage/openApply.vue @@ -1,13 +1,14 @@ + diff --git a/src/views/device/stateManage/scrapApply.vue b/src/views/device/stateManage/scrapApply.vue index 7bd1a98..282ecd8 100644 --- a/src/views/device/stateManage/scrapApply.vue +++ b/src/views/device/stateManage/scrapApply.vue @@ -1,10 +1,10 @@ diff --git a/src/views/device/stateManage/sealupApply.vue b/src/views/device/stateManage/sealupApply.vue index ec6320b..1c8544d 100644 --- a/src/views/device/stateManage/sealupApply.vue +++ b/src/views/device/stateManage/sealupApply.vue @@ -1,10 +1,10 @@ diff --git a/src/views/measure/file/components/addDialog.vue b/src/views/measure/file/components/addDialog.vue index a1464aa..66ec7ee 100644 --- a/src/views/measure/file/components/addDialog.vue +++ b/src/views/measure/file/components/addDialog.vue @@ -4,8 +4,10 @@ import { ElMessage, ElMessageBox } from 'element-plus' import dayjs from 'dayjs' import type { deptType } from '../file-interface' +import comTreeSelect from '@/views/system/user/selecTree.vue' import { getUserList } from '@/api/system/user' import useUserStore from '@/store/modules/user' +import { toTreeList } from '@/utils/structure' import { getDeptTreeList } from '@/api/system/dept' import { UploadFile, addApi } from '@/api/measure/file' import type { userType } from '@/views/system/user/user-interface' @@ -51,11 +53,16 @@ userList.value = res.data.rows }) } // 获取创建人列表 +const deptProps = reactive({ + parent: 'pid', value: 'id', label: 'name', children: 'children', +}) const PubList = ref([]) +const PubListTree = ref([]) // 获取发布单位列表 const getPubList = () => { getDeptTreeList().then((res) => { PubList.value = res.data + PubListTree.value = toTreeList(res.data, '0', true) }) } // 弹窗初始化 @@ -73,7 +80,8 @@ if (row.title === '新增') { // 默认发布人和发布单位 ruleForm.createUserId = userInfo.$state.id - ruleForm.publisher = userInfo.$state.deptId + ruleForm.publisher = '' + ruleForm.publishTime = dayjs().format('YYYY-MM-DD HH:mm:ss') // 判断有无存储 console.log(sessionStorage.getItem(fileTypeName.value), 'sess') if (sessionStorage.getItem(fileTypeName.value)) { @@ -207,11 +215,12 @@ // { name: '已废止', id: '1595030083114450945', value: '3' }, // ]) watch(() => ruleForm.effectiveTime, (newVal) => { - const diffDat = dayjs(newVal).diff(dayjs().format('YYYY-MM-DD HH:mm:ss'), 'day') + const diffDat = dayjs(newVal).diff(dayjs().format('YYYY-MM-DD HH:mm:ss'), 'hour') + console.log(diffDat) if (diffDat < 0) { // ruleForm.effectiveStatusName = '已废止' - effectiveStatusName.value = '已废止' - ruleForm.effectiveStatus = '3' + effectiveStatusName.value = '在使用' + ruleForm.effectiveStatus = '1' } else if (diffDat == 0) { // ruleForm.effectiveStatusName = '在使用' @@ -271,15 +280,20 @@ - + + @@ -295,7 +309,7 @@ diff --git a/src/components.d.ts b/src/components.d.ts index 5a09663..fcb5b4a 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -13,14 +13,14 @@ ApproverDrawer: typeof import('./components/drawer/approverDrawer.vue')['default'] Auth: typeof import('./components/Auth/index.vue')['default'] AuthAll: typeof import('./components/AuthAll/index.vue')['default'] + BarChartHorizontal: typeof import('./components/Echart/BarChartHorizontal.vue')['default'] + BarChartVertical: typeof import('./components/Echart/BarChartVertical.vue')['default'] BatchActionBar: typeof import('./components/BatchActionBar/index.vue')['default'] - Benchcol: typeof import('./components/benchcol/index.vue')['default'] BenchCol: typeof import('./components/benchCol/index.vue')['default'] ConditionDrawer: typeof import('./components/drawer/conditionDrawer.vue')['default'] CopyerDrawer: typeof import('./components/drawer/copyerDrawer.vue')['default'] Copyright: typeof import('./components/Copyright/index.vue')['default'] DeptSelect: typeof import('./components/DeptSelect/index.vue')['default'] - Echarts: typeof import('./components/echarts/index.vue')['default'] Editor: typeof import('./components/Editor/index.vue')['default'] EmployeesDialog: typeof import('./components/dialog/employeesDialog.vue')['default'] EmployeesRoleDialog: typeof import('./components/dialog/employeesRoleDialog.vue')['default'] @@ -30,13 +30,14 @@ ImagePreview: typeof import('./components/ImagePreview/index.vue')['default'] ImagesUpload: typeof import('./components/ImagesUpload/index.vue')['default'] ImageUpload: typeof import('./components/ImageUpload/index.vue')['default'] + LineChart: typeof import('./components/Echart/LineChart.vue')['default'] NodeWrap: typeof import('./components/workFlow/nodeWrap.vue')['default'] NodeWrapBan: typeof import('./components/workFlow/nodeWrapBan.vue')['default'] NormalTable: typeof import('./components/NormalTable/index.vue')['default'] PageHeader: typeof import('./components/PageHeader/index.vue')['default'] PageMain: typeof import('./components/PageMain/index.vue')['default'] PcasCascader: typeof import('./components/PcasCascader/index.vue')['default'] - Pie: typeof import('./components/echarts/pie.vue')['default'] + PieChart: typeof import('./components/Echart/PieChart.vue')['default'] PromoterDrawer: typeof import('./components/drawer/promoterDrawer.vue')['default'] RoleDialog: typeof import('./components/dialog/roleDialog.vue')['default'] RouterLink: typeof import('vue-router')['RouterLink'] diff --git a/src/views/device/stateManage/components/approvalActionDialog.vue b/src/views/device/stateManage/components/approvalActionDialog.vue index cdc9b25..56417d6 100644 --- a/src/views/device/stateManage/components/approvalActionDialog.vue +++ b/src/views/device/stateManage/components/approvalActionDialog.vue @@ -1,10 +1,13 @@ + + diff --git a/src/views/device/stateManage/components/status/cancel.vue b/src/views/device/stateManage/components/status/cancel.vue new file mode 100644 index 0000000..ecb2d0c --- /dev/null +++ b/src/views/device/stateManage/components/status/cancel.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/status/drafts.vue b/src/views/device/stateManage/components/status/drafts.vue new file mode 100644 index 0000000..226ba21 --- /dev/null +++ b/src/views/device/stateManage/components/status/drafts.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/status/inApproval.vue b/src/views/device/stateManage/components/status/inApproval.vue new file mode 100644 index 0000000..4988595 --- /dev/null +++ b/src/views/device/stateManage/components/status/inApproval.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/status/passed.vue b/src/views/device/stateManage/components/status/passed.vue new file mode 100644 index 0000000..ab87daf --- /dev/null +++ b/src/views/device/stateManage/components/status/passed.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/status/pending.vue b/src/views/device/stateManage/components/status/pending.vue new file mode 100644 index 0000000..3e0b315 --- /dev/null +++ b/src/views/device/stateManage/components/status/pending.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/status/unPassed.vue b/src/views/device/stateManage/components/status/unPassed.vue new file mode 100644 index 0000000..8de700e --- /dev/null +++ b/src/views/device/stateManage/components/status/unPassed.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/templateAdd.vue b/src/views/device/stateManage/components/templateAdd.vue index 9c4da0f..fc364c8 100644 --- a/src/views/device/stateManage/components/templateAdd.vue +++ b/src/views/device/stateManage/components/templateAdd.vue @@ -381,10 +381,10 @@ - + diff --git a/src/views/device/stateManage/components/templateList.vue b/src/views/device/stateManage/components/templateList.vue index 6ee2e8c..aa3963f 100644 --- a/src/views/device/stateManage/components/templateList.vue +++ b/src/views/device/stateManage/components/templateList.vue @@ -8,6 +8,10 @@ type: String, default: '', }, + title: { + type: String, + default: '', + }, }) // import { exportFile } from '@/utils/exportUtils' // const { proxy } = getCurrentInstance() as any @@ -179,15 +183,23 @@ // 同意 const agree = (row) => { console.log(approveRef.value) - approveRef.value.initDialog() + approveRef.value.initDialog({ + radio: '1', + }) } // 驳回 const reject = (row) => { - approveRef.value.initDialog() + approveRef.value.initDialog({ + radio: '3', + }) } // 拒绝 const refuse = (row) => { - approveRef.value.initDialog() + approveRef.value.initDialog( + { + radio: '2', + }, + ) } // 取消 const cancel = (row) => { diff --git a/src/views/device/stateManage/components/templatePage.vue b/src/views/device/stateManage/components/templatePage.vue index 5fb0163..fce7685 100644 --- a/src/views/device/stateManage/components/templatePage.vue +++ b/src/views/device/stateManage/components/templatePage.vue @@ -1,6 +1,12 @@ diff --git a/src/views/device/stateManage/openApply.vue b/src/views/device/stateManage/openApply.vue index 3c43781..35c2af6 100644 --- a/src/views/device/stateManage/openApply.vue +++ b/src/views/device/stateManage/openApply.vue @@ -1,13 +1,14 @@ + diff --git a/src/views/device/stateManage/scrapApply.vue b/src/views/device/stateManage/scrapApply.vue index 7bd1a98..282ecd8 100644 --- a/src/views/device/stateManage/scrapApply.vue +++ b/src/views/device/stateManage/scrapApply.vue @@ -1,10 +1,10 @@ diff --git a/src/views/device/stateManage/sealupApply.vue b/src/views/device/stateManage/sealupApply.vue index ec6320b..1c8544d 100644 --- a/src/views/device/stateManage/sealupApply.vue +++ b/src/views/device/stateManage/sealupApply.vue @@ -1,10 +1,10 @@ diff --git a/src/views/measure/file/components/addDialog.vue b/src/views/measure/file/components/addDialog.vue index a1464aa..66ec7ee 100644 --- a/src/views/measure/file/components/addDialog.vue +++ b/src/views/measure/file/components/addDialog.vue @@ -4,8 +4,10 @@ import { ElMessage, ElMessageBox } from 'element-plus' import dayjs from 'dayjs' import type { deptType } from '../file-interface' +import comTreeSelect from '@/views/system/user/selecTree.vue' import { getUserList } from '@/api/system/user' import useUserStore from '@/store/modules/user' +import { toTreeList } from '@/utils/structure' import { getDeptTreeList } from '@/api/system/dept' import { UploadFile, addApi } from '@/api/measure/file' import type { userType } from '@/views/system/user/user-interface' @@ -51,11 +53,16 @@ userList.value = res.data.rows }) } // 获取创建人列表 +const deptProps = reactive({ + parent: 'pid', value: 'id', label: 'name', children: 'children', +}) const PubList = ref([]) +const PubListTree = ref([]) // 获取发布单位列表 const getPubList = () => { getDeptTreeList().then((res) => { PubList.value = res.data + PubListTree.value = toTreeList(res.data, '0', true) }) } // 弹窗初始化 @@ -73,7 +80,8 @@ if (row.title === '新增') { // 默认发布人和发布单位 ruleForm.createUserId = userInfo.$state.id - ruleForm.publisher = userInfo.$state.deptId + ruleForm.publisher = '' + ruleForm.publishTime = dayjs().format('YYYY-MM-DD HH:mm:ss') // 判断有无存储 console.log(sessionStorage.getItem(fileTypeName.value), 'sess') if (sessionStorage.getItem(fileTypeName.value)) { @@ -207,11 +215,12 @@ // { name: '已废止', id: '1595030083114450945', value: '3' }, // ]) watch(() => ruleForm.effectiveTime, (newVal) => { - const diffDat = dayjs(newVal).diff(dayjs().format('YYYY-MM-DD HH:mm:ss'), 'day') + const diffDat = dayjs(newVal).diff(dayjs().format('YYYY-MM-DD HH:mm:ss'), 'hour') + console.log(diffDat) if (diffDat < 0) { // ruleForm.effectiveStatusName = '已废止' - effectiveStatusName.value = '已废止' - ruleForm.effectiveStatus = '3' + effectiveStatusName.value = '在使用' + ruleForm.effectiveStatus = '1' } else if (diffDat == 0) { // ruleForm.effectiveStatusName = '在使用' @@ -271,15 +280,20 @@ - + + @@ -295,7 +309,7 @@ diff --git a/src/views/measure/person/certificateLog.vue b/src/views/measure/person/certificateLog.vue index ca26b00..2e3322a 100644 --- a/src/views/measure/person/certificateLog.vue +++ b/src/views/measure/person/certificateLog.vue @@ -32,13 +32,13 @@ const loadingTable = ref(false) // 表格loading const total = ref(0) // 数据总条数 const columns = ref([ - { text: '人员编号', value: 'staffNo', align: 'center', width: '150' }, + { text: '人员编号', value: 'staffNo', align: 'center', width: '180' }, { text: '姓名', value: 'name', align: 'center', width: '80' }, { text: '性别', value: 'sex', align: 'center', width: '55' }, { text: '工作部门', value: 'deptId', align: 'center', width: '140' }, { text: '技术职务', value: 'technologyJob', align: 'center', width: '120' }, { text: '行政职务', value: 'administrationJob', align: 'center', width: '90' }, - { text: '证书号', value: 'certificateNo', align: 'center', width: '150' }, + { text: '证书号', value: 'certificateNo', align: 'center' }, { text: '发证单位', value: 'certificateCompany', align: 'center', width: '90' }, { text: '发证日期', value: 'certificateDate', align: 'center', width: '200' }, { text: '证书有效日期', value: 'certificateDate', align: 'center', width: '200' }, diff --git a/src/components.d.ts b/src/components.d.ts index 5a09663..fcb5b4a 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -13,14 +13,14 @@ ApproverDrawer: typeof import('./components/drawer/approverDrawer.vue')['default'] Auth: typeof import('./components/Auth/index.vue')['default'] AuthAll: typeof import('./components/AuthAll/index.vue')['default'] + BarChartHorizontal: typeof import('./components/Echart/BarChartHorizontal.vue')['default'] + BarChartVertical: typeof import('./components/Echart/BarChartVertical.vue')['default'] BatchActionBar: typeof import('./components/BatchActionBar/index.vue')['default'] - Benchcol: typeof import('./components/benchcol/index.vue')['default'] BenchCol: typeof import('./components/benchCol/index.vue')['default'] ConditionDrawer: typeof import('./components/drawer/conditionDrawer.vue')['default'] CopyerDrawer: typeof import('./components/drawer/copyerDrawer.vue')['default'] Copyright: typeof import('./components/Copyright/index.vue')['default'] DeptSelect: typeof import('./components/DeptSelect/index.vue')['default'] - Echarts: typeof import('./components/echarts/index.vue')['default'] Editor: typeof import('./components/Editor/index.vue')['default'] EmployeesDialog: typeof import('./components/dialog/employeesDialog.vue')['default'] EmployeesRoleDialog: typeof import('./components/dialog/employeesRoleDialog.vue')['default'] @@ -30,13 +30,14 @@ ImagePreview: typeof import('./components/ImagePreview/index.vue')['default'] ImagesUpload: typeof import('./components/ImagesUpload/index.vue')['default'] ImageUpload: typeof import('./components/ImageUpload/index.vue')['default'] + LineChart: typeof import('./components/Echart/LineChart.vue')['default'] NodeWrap: typeof import('./components/workFlow/nodeWrap.vue')['default'] NodeWrapBan: typeof import('./components/workFlow/nodeWrapBan.vue')['default'] NormalTable: typeof import('./components/NormalTable/index.vue')['default'] PageHeader: typeof import('./components/PageHeader/index.vue')['default'] PageMain: typeof import('./components/PageMain/index.vue')['default'] PcasCascader: typeof import('./components/PcasCascader/index.vue')['default'] - Pie: typeof import('./components/echarts/pie.vue')['default'] + PieChart: typeof import('./components/Echart/PieChart.vue')['default'] PromoterDrawer: typeof import('./components/drawer/promoterDrawer.vue')['default'] RoleDialog: typeof import('./components/dialog/roleDialog.vue')['default'] RouterLink: typeof import('vue-router')['RouterLink'] diff --git a/src/views/device/stateManage/components/approvalActionDialog.vue b/src/views/device/stateManage/components/approvalActionDialog.vue index cdc9b25..56417d6 100644 --- a/src/views/device/stateManage/components/approvalActionDialog.vue +++ b/src/views/device/stateManage/components/approvalActionDialog.vue @@ -1,10 +1,13 @@ + + diff --git a/src/views/device/stateManage/components/status/cancel.vue b/src/views/device/stateManage/components/status/cancel.vue new file mode 100644 index 0000000..ecb2d0c --- /dev/null +++ b/src/views/device/stateManage/components/status/cancel.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/status/drafts.vue b/src/views/device/stateManage/components/status/drafts.vue new file mode 100644 index 0000000..226ba21 --- /dev/null +++ b/src/views/device/stateManage/components/status/drafts.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/status/inApproval.vue b/src/views/device/stateManage/components/status/inApproval.vue new file mode 100644 index 0000000..4988595 --- /dev/null +++ b/src/views/device/stateManage/components/status/inApproval.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/status/passed.vue b/src/views/device/stateManage/components/status/passed.vue new file mode 100644 index 0000000..ab87daf --- /dev/null +++ b/src/views/device/stateManage/components/status/passed.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/status/pending.vue b/src/views/device/stateManage/components/status/pending.vue new file mode 100644 index 0000000..3e0b315 --- /dev/null +++ b/src/views/device/stateManage/components/status/pending.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/status/unPassed.vue b/src/views/device/stateManage/components/status/unPassed.vue new file mode 100644 index 0000000..8de700e --- /dev/null +++ b/src/views/device/stateManage/components/status/unPassed.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/templateAdd.vue b/src/views/device/stateManage/components/templateAdd.vue index 9c4da0f..fc364c8 100644 --- a/src/views/device/stateManage/components/templateAdd.vue +++ b/src/views/device/stateManage/components/templateAdd.vue @@ -381,10 +381,10 @@ - + diff --git a/src/views/device/stateManage/components/templateList.vue b/src/views/device/stateManage/components/templateList.vue index 6ee2e8c..aa3963f 100644 --- a/src/views/device/stateManage/components/templateList.vue +++ b/src/views/device/stateManage/components/templateList.vue @@ -8,6 +8,10 @@ type: String, default: '', }, + title: { + type: String, + default: '', + }, }) // import { exportFile } from '@/utils/exportUtils' // const { proxy } = getCurrentInstance() as any @@ -179,15 +183,23 @@ // 同意 const agree = (row) => { console.log(approveRef.value) - approveRef.value.initDialog() + approveRef.value.initDialog({ + radio: '1', + }) } // 驳回 const reject = (row) => { - approveRef.value.initDialog() + approveRef.value.initDialog({ + radio: '3', + }) } // 拒绝 const refuse = (row) => { - approveRef.value.initDialog() + approveRef.value.initDialog( + { + radio: '2', + }, + ) } // 取消 const cancel = (row) => { diff --git a/src/views/device/stateManage/components/templatePage.vue b/src/views/device/stateManage/components/templatePage.vue index 5fb0163..fce7685 100644 --- a/src/views/device/stateManage/components/templatePage.vue +++ b/src/views/device/stateManage/components/templatePage.vue @@ -1,6 +1,12 @@ diff --git a/src/views/device/stateManage/openApply.vue b/src/views/device/stateManage/openApply.vue index 3c43781..35c2af6 100644 --- a/src/views/device/stateManage/openApply.vue +++ b/src/views/device/stateManage/openApply.vue @@ -1,13 +1,14 @@ + diff --git a/src/views/device/stateManage/scrapApply.vue b/src/views/device/stateManage/scrapApply.vue index 7bd1a98..282ecd8 100644 --- a/src/views/device/stateManage/scrapApply.vue +++ b/src/views/device/stateManage/scrapApply.vue @@ -1,10 +1,10 @@ diff --git a/src/views/device/stateManage/sealupApply.vue b/src/views/device/stateManage/sealupApply.vue index ec6320b..1c8544d 100644 --- a/src/views/device/stateManage/sealupApply.vue +++ b/src/views/device/stateManage/sealupApply.vue @@ -1,10 +1,10 @@ diff --git a/src/views/measure/file/components/addDialog.vue b/src/views/measure/file/components/addDialog.vue index a1464aa..66ec7ee 100644 --- a/src/views/measure/file/components/addDialog.vue +++ b/src/views/measure/file/components/addDialog.vue @@ -4,8 +4,10 @@ import { ElMessage, ElMessageBox } from 'element-plus' import dayjs from 'dayjs' import type { deptType } from '../file-interface' +import comTreeSelect from '@/views/system/user/selecTree.vue' import { getUserList } from '@/api/system/user' import useUserStore from '@/store/modules/user' +import { toTreeList } from '@/utils/structure' import { getDeptTreeList } from '@/api/system/dept' import { UploadFile, addApi } from '@/api/measure/file' import type { userType } from '@/views/system/user/user-interface' @@ -51,11 +53,16 @@ userList.value = res.data.rows }) } // 获取创建人列表 +const deptProps = reactive({ + parent: 'pid', value: 'id', label: 'name', children: 'children', +}) const PubList = ref([]) +const PubListTree = ref([]) // 获取发布单位列表 const getPubList = () => { getDeptTreeList().then((res) => { PubList.value = res.data + PubListTree.value = toTreeList(res.data, '0', true) }) } // 弹窗初始化 @@ -73,7 +80,8 @@ if (row.title === '新增') { // 默认发布人和发布单位 ruleForm.createUserId = userInfo.$state.id - ruleForm.publisher = userInfo.$state.deptId + ruleForm.publisher = '' + ruleForm.publishTime = dayjs().format('YYYY-MM-DD HH:mm:ss') // 判断有无存储 console.log(sessionStorage.getItem(fileTypeName.value), 'sess') if (sessionStorage.getItem(fileTypeName.value)) { @@ -207,11 +215,12 @@ // { name: '已废止', id: '1595030083114450945', value: '3' }, // ]) watch(() => ruleForm.effectiveTime, (newVal) => { - const diffDat = dayjs(newVal).diff(dayjs().format('YYYY-MM-DD HH:mm:ss'), 'day') + const diffDat = dayjs(newVal).diff(dayjs().format('YYYY-MM-DD HH:mm:ss'), 'hour') + console.log(diffDat) if (diffDat < 0) { // ruleForm.effectiveStatusName = '已废止' - effectiveStatusName.value = '已废止' - ruleForm.effectiveStatus = '3' + effectiveStatusName.value = '在使用' + ruleForm.effectiveStatus = '1' } else if (diffDat == 0) { // ruleForm.effectiveStatusName = '在使用' @@ -271,15 +280,20 @@ - + + @@ -295,7 +309,7 @@ diff --git a/src/views/measure/person/certificateLog.vue b/src/views/measure/person/certificateLog.vue index ca26b00..2e3322a 100644 --- a/src/views/measure/person/certificateLog.vue +++ b/src/views/measure/person/certificateLog.vue @@ -32,13 +32,13 @@ const loadingTable = ref(false) // 表格loading const total = ref(0) // 数据总条数 const columns = ref([ - { text: '人员编号', value: 'staffNo', align: 'center', width: '150' }, + { text: '人员编号', value: 'staffNo', align: 'center', width: '180' }, { text: '姓名', value: 'name', align: 'center', width: '80' }, { text: '性别', value: 'sex', align: 'center', width: '55' }, { text: '工作部门', value: 'deptId', align: 'center', width: '140' }, { text: '技术职务', value: 'technologyJob', align: 'center', width: '120' }, { text: '行政职务', value: 'administrationJob', align: 'center', width: '90' }, - { text: '证书号', value: 'certificateNo', align: 'center', width: '150' }, + { text: '证书号', value: 'certificateNo', align: 'center' }, { text: '发证单位', value: 'certificateCompany', align: 'center', width: '90' }, { text: '发证日期', value: 'certificateDate', align: 'center', width: '200' }, { text: '证书有效日期', value: 'certificateDate', align: 'center', width: '200' }, diff --git a/src/views/measure/person/components/addPerson.vue b/src/views/measure/person/components/addPerson.vue index 9252393..4dc1b17 100644 --- a/src/views/measure/person/components/addPerson.vue +++ b/src/views/measure/person/components/addPerson.vue @@ -10,7 +10,7 @@ import { getDeptTreeList } from '@/api/system/dept' import { UploadFile } from '@/api/measure/file' import { toTreeList } from '@/utils/structure' -import type { userType } from '@/views/system/user/user-interface' +import type { TreeStructure, userType } from '@/views/system/user/user-interface' import { getDictByCode } from '@/api/system/dict' import comTreeSelect from '@/views/system/user/selecTree.vue' import { getStaffAdd, getStaffDetail, getStaffupdate } from '@/api/measure/person' @@ -67,7 +67,7 @@ ruleFormRef.value?.validateField('idCard').then((res) => { // 获取生日 const IdCard = ruleForm.value.idCard - const birthday = `${IdCard.substring(6, 10)}-${IdCard.substring(10, 12)}-${IdCard.substring(12, 14)}` + const birthday = `${IdCard.substring(6, 10)}-${IdCard.substring(10, 12)}` ruleForm.value.birthday = birthday console.log(ruleForm.value) }) @@ -86,12 +86,14 @@ const deptProps = reactive({ parent: 'pid', value: 'id', label: 'name', children: 'children', }) -const PubList = ref([]) +const PubList = ref([]) +const PubListTree = ref([]) // 获取组织列表 const getPubList = () => { getDeptTreeList().then((res) => { // 转成树结构 - PubList.value = toTreeList(res.data, '0', true) + PubList.value = res.data + PubListTree.value = toTreeList(res.data, '0', true) }) } const sexList = ref<{ id: string; value: string; name: string }[]>() @@ -343,7 +345,7 @@ getTechnologyJobList() getAdministrationJob() if (row.title === '新建') { - console.log() + // ruleForm.value.deptId = '' } else { getStaffDetail({ ...row }).then((res) => { @@ -371,7 +373,7 @@
- {{ title }}计量人员 + 计量人员-{{ title }}
@@ -384,14 +386,13 @@
- - + + @@ -404,20 +405,36 @@ - + + + - - - - + - - - + + + + + + + + + + + + @@ -425,82 +442,52 @@ - + - - - + + + - - - - - - - - - - - - - - - - - - - - - - + - - - - - - - - - - - - - - - - - - - + - - - - + + + + + + + + + + + + + + + + + + + + - @@ -551,6 +538,7 @@ border-radius: 8px; padding-top: 10px; margin-top: 10px; + padding-right: 10px; } .header { @@ -578,6 +566,20 @@ display: none; } + :deep(.el-icon.avatar-uploader-icon) { + font-size: 28px; + color: #8c939d; + width: 190px; + height: 250px; + text-align: center; + } + + :deep(.avatar-uploader .avatar) { + width: 190px; + height: 250px; + display: block; + } + .isDetail { ::v-deep { .el-form-item.is-required:not(.is-no-asterisk) .el-form-item__label-wrap > .el-form-item__label::before, @@ -591,12 +593,16 @@ .marg { margin-top: 20px; } + +.marg-item { + margin-top: 20px; +} @@ -618,8 +624,8 @@ .el-icon.avatar-uploader-icon { font-size: 28px; color: #8c939d; - width: 178px; - height: 178px; + width: 220px; + height: 320px; text-align: center; } diff --git a/src/components.d.ts b/src/components.d.ts index 5a09663..fcb5b4a 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -13,14 +13,14 @@ ApproverDrawer: typeof import('./components/drawer/approverDrawer.vue')['default'] Auth: typeof import('./components/Auth/index.vue')['default'] AuthAll: typeof import('./components/AuthAll/index.vue')['default'] + BarChartHorizontal: typeof import('./components/Echart/BarChartHorizontal.vue')['default'] + BarChartVertical: typeof import('./components/Echart/BarChartVertical.vue')['default'] BatchActionBar: typeof import('./components/BatchActionBar/index.vue')['default'] - Benchcol: typeof import('./components/benchcol/index.vue')['default'] BenchCol: typeof import('./components/benchCol/index.vue')['default'] ConditionDrawer: typeof import('./components/drawer/conditionDrawer.vue')['default'] CopyerDrawer: typeof import('./components/drawer/copyerDrawer.vue')['default'] Copyright: typeof import('./components/Copyright/index.vue')['default'] DeptSelect: typeof import('./components/DeptSelect/index.vue')['default'] - Echarts: typeof import('./components/echarts/index.vue')['default'] Editor: typeof import('./components/Editor/index.vue')['default'] EmployeesDialog: typeof import('./components/dialog/employeesDialog.vue')['default'] EmployeesRoleDialog: typeof import('./components/dialog/employeesRoleDialog.vue')['default'] @@ -30,13 +30,14 @@ ImagePreview: typeof import('./components/ImagePreview/index.vue')['default'] ImagesUpload: typeof import('./components/ImagesUpload/index.vue')['default'] ImageUpload: typeof import('./components/ImageUpload/index.vue')['default'] + LineChart: typeof import('./components/Echart/LineChart.vue')['default'] NodeWrap: typeof import('./components/workFlow/nodeWrap.vue')['default'] NodeWrapBan: typeof import('./components/workFlow/nodeWrapBan.vue')['default'] NormalTable: typeof import('./components/NormalTable/index.vue')['default'] PageHeader: typeof import('./components/PageHeader/index.vue')['default'] PageMain: typeof import('./components/PageMain/index.vue')['default'] PcasCascader: typeof import('./components/PcasCascader/index.vue')['default'] - Pie: typeof import('./components/echarts/pie.vue')['default'] + PieChart: typeof import('./components/Echart/PieChart.vue')['default'] PromoterDrawer: typeof import('./components/drawer/promoterDrawer.vue')['default'] RoleDialog: typeof import('./components/dialog/roleDialog.vue')['default'] RouterLink: typeof import('vue-router')['RouterLink'] diff --git a/src/views/device/stateManage/components/approvalActionDialog.vue b/src/views/device/stateManage/components/approvalActionDialog.vue index cdc9b25..56417d6 100644 --- a/src/views/device/stateManage/components/approvalActionDialog.vue +++ b/src/views/device/stateManage/components/approvalActionDialog.vue @@ -1,10 +1,13 @@ + + diff --git a/src/views/device/stateManage/components/status/cancel.vue b/src/views/device/stateManage/components/status/cancel.vue new file mode 100644 index 0000000..ecb2d0c --- /dev/null +++ b/src/views/device/stateManage/components/status/cancel.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/status/drafts.vue b/src/views/device/stateManage/components/status/drafts.vue new file mode 100644 index 0000000..226ba21 --- /dev/null +++ b/src/views/device/stateManage/components/status/drafts.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/status/inApproval.vue b/src/views/device/stateManage/components/status/inApproval.vue new file mode 100644 index 0000000..4988595 --- /dev/null +++ b/src/views/device/stateManage/components/status/inApproval.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/status/passed.vue b/src/views/device/stateManage/components/status/passed.vue new file mode 100644 index 0000000..ab87daf --- /dev/null +++ b/src/views/device/stateManage/components/status/passed.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/status/pending.vue b/src/views/device/stateManage/components/status/pending.vue new file mode 100644 index 0000000..3e0b315 --- /dev/null +++ b/src/views/device/stateManage/components/status/pending.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/status/unPassed.vue b/src/views/device/stateManage/components/status/unPassed.vue new file mode 100644 index 0000000..8de700e --- /dev/null +++ b/src/views/device/stateManage/components/status/unPassed.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/templateAdd.vue b/src/views/device/stateManage/components/templateAdd.vue index 9c4da0f..fc364c8 100644 --- a/src/views/device/stateManage/components/templateAdd.vue +++ b/src/views/device/stateManage/components/templateAdd.vue @@ -381,10 +381,10 @@ - + diff --git a/src/views/device/stateManage/components/templateList.vue b/src/views/device/stateManage/components/templateList.vue index 6ee2e8c..aa3963f 100644 --- a/src/views/device/stateManage/components/templateList.vue +++ b/src/views/device/stateManage/components/templateList.vue @@ -8,6 +8,10 @@ type: String, default: '', }, + title: { + type: String, + default: '', + }, }) // import { exportFile } from '@/utils/exportUtils' // const { proxy } = getCurrentInstance() as any @@ -179,15 +183,23 @@ // 同意 const agree = (row) => { console.log(approveRef.value) - approveRef.value.initDialog() + approveRef.value.initDialog({ + radio: '1', + }) } // 驳回 const reject = (row) => { - approveRef.value.initDialog() + approveRef.value.initDialog({ + radio: '3', + }) } // 拒绝 const refuse = (row) => { - approveRef.value.initDialog() + approveRef.value.initDialog( + { + radio: '2', + }, + ) } // 取消 const cancel = (row) => { diff --git a/src/views/device/stateManage/components/templatePage.vue b/src/views/device/stateManage/components/templatePage.vue index 5fb0163..fce7685 100644 --- a/src/views/device/stateManage/components/templatePage.vue +++ b/src/views/device/stateManage/components/templatePage.vue @@ -1,6 +1,12 @@ diff --git a/src/views/device/stateManage/openApply.vue b/src/views/device/stateManage/openApply.vue index 3c43781..35c2af6 100644 --- a/src/views/device/stateManage/openApply.vue +++ b/src/views/device/stateManage/openApply.vue @@ -1,13 +1,14 @@ + diff --git a/src/views/device/stateManage/scrapApply.vue b/src/views/device/stateManage/scrapApply.vue index 7bd1a98..282ecd8 100644 --- a/src/views/device/stateManage/scrapApply.vue +++ b/src/views/device/stateManage/scrapApply.vue @@ -1,10 +1,10 @@ diff --git a/src/views/device/stateManage/sealupApply.vue b/src/views/device/stateManage/sealupApply.vue index ec6320b..1c8544d 100644 --- a/src/views/device/stateManage/sealupApply.vue +++ b/src/views/device/stateManage/sealupApply.vue @@ -1,10 +1,10 @@ diff --git a/src/views/measure/file/components/addDialog.vue b/src/views/measure/file/components/addDialog.vue index a1464aa..66ec7ee 100644 --- a/src/views/measure/file/components/addDialog.vue +++ b/src/views/measure/file/components/addDialog.vue @@ -4,8 +4,10 @@ import { ElMessage, ElMessageBox } from 'element-plus' import dayjs from 'dayjs' import type { deptType } from '../file-interface' +import comTreeSelect from '@/views/system/user/selecTree.vue' import { getUserList } from '@/api/system/user' import useUserStore from '@/store/modules/user' +import { toTreeList } from '@/utils/structure' import { getDeptTreeList } from '@/api/system/dept' import { UploadFile, addApi } from '@/api/measure/file' import type { userType } from '@/views/system/user/user-interface' @@ -51,11 +53,16 @@ userList.value = res.data.rows }) } // 获取创建人列表 +const deptProps = reactive({ + parent: 'pid', value: 'id', label: 'name', children: 'children', +}) const PubList = ref([]) +const PubListTree = ref([]) // 获取发布单位列表 const getPubList = () => { getDeptTreeList().then((res) => { PubList.value = res.data + PubListTree.value = toTreeList(res.data, '0', true) }) } // 弹窗初始化 @@ -73,7 +80,8 @@ if (row.title === '新增') { // 默认发布人和发布单位 ruleForm.createUserId = userInfo.$state.id - ruleForm.publisher = userInfo.$state.deptId + ruleForm.publisher = '' + ruleForm.publishTime = dayjs().format('YYYY-MM-DD HH:mm:ss') // 判断有无存储 console.log(sessionStorage.getItem(fileTypeName.value), 'sess') if (sessionStorage.getItem(fileTypeName.value)) { @@ -207,11 +215,12 @@ // { name: '已废止', id: '1595030083114450945', value: '3' }, // ]) watch(() => ruleForm.effectiveTime, (newVal) => { - const diffDat = dayjs(newVal).diff(dayjs().format('YYYY-MM-DD HH:mm:ss'), 'day') + const diffDat = dayjs(newVal).diff(dayjs().format('YYYY-MM-DD HH:mm:ss'), 'hour') + console.log(diffDat) if (diffDat < 0) { // ruleForm.effectiveStatusName = '已废止' - effectiveStatusName.value = '已废止' - ruleForm.effectiveStatus = '3' + effectiveStatusName.value = '在使用' + ruleForm.effectiveStatus = '1' } else if (diffDat == 0) { // ruleForm.effectiveStatusName = '在使用' @@ -271,15 +280,20 @@ - + + @@ -295,7 +309,7 @@ diff --git a/src/views/measure/person/certificateLog.vue b/src/views/measure/person/certificateLog.vue index ca26b00..2e3322a 100644 --- a/src/views/measure/person/certificateLog.vue +++ b/src/views/measure/person/certificateLog.vue @@ -32,13 +32,13 @@ const loadingTable = ref(false) // 表格loading const total = ref(0) // 数据总条数 const columns = ref([ - { text: '人员编号', value: 'staffNo', align: 'center', width: '150' }, + { text: '人员编号', value: 'staffNo', align: 'center', width: '180' }, { text: '姓名', value: 'name', align: 'center', width: '80' }, { text: '性别', value: 'sex', align: 'center', width: '55' }, { text: '工作部门', value: 'deptId', align: 'center', width: '140' }, { text: '技术职务', value: 'technologyJob', align: 'center', width: '120' }, { text: '行政职务', value: 'administrationJob', align: 'center', width: '90' }, - { text: '证书号', value: 'certificateNo', align: 'center', width: '150' }, + { text: '证书号', value: 'certificateNo', align: 'center' }, { text: '发证单位', value: 'certificateCompany', align: 'center', width: '90' }, { text: '发证日期', value: 'certificateDate', align: 'center', width: '200' }, { text: '证书有效日期', value: 'certificateDate', align: 'center', width: '200' }, diff --git a/src/views/measure/person/components/addPerson.vue b/src/views/measure/person/components/addPerson.vue index 9252393..4dc1b17 100644 --- a/src/views/measure/person/components/addPerson.vue +++ b/src/views/measure/person/components/addPerson.vue @@ -10,7 +10,7 @@ import { getDeptTreeList } from '@/api/system/dept' import { UploadFile } from '@/api/measure/file' import { toTreeList } from '@/utils/structure' -import type { userType } from '@/views/system/user/user-interface' +import type { TreeStructure, userType } from '@/views/system/user/user-interface' import { getDictByCode } from '@/api/system/dict' import comTreeSelect from '@/views/system/user/selecTree.vue' import { getStaffAdd, getStaffDetail, getStaffupdate } from '@/api/measure/person' @@ -67,7 +67,7 @@ ruleFormRef.value?.validateField('idCard').then((res) => { // 获取生日 const IdCard = ruleForm.value.idCard - const birthday = `${IdCard.substring(6, 10)}-${IdCard.substring(10, 12)}-${IdCard.substring(12, 14)}` + const birthday = `${IdCard.substring(6, 10)}-${IdCard.substring(10, 12)}` ruleForm.value.birthday = birthday console.log(ruleForm.value) }) @@ -86,12 +86,14 @@ const deptProps = reactive({ parent: 'pid', value: 'id', label: 'name', children: 'children', }) -const PubList = ref([]) +const PubList = ref([]) +const PubListTree = ref([]) // 获取组织列表 const getPubList = () => { getDeptTreeList().then((res) => { // 转成树结构 - PubList.value = toTreeList(res.data, '0', true) + PubList.value = res.data + PubListTree.value = toTreeList(res.data, '0', true) }) } const sexList = ref<{ id: string; value: string; name: string }[]>() @@ -343,7 +345,7 @@ getTechnologyJobList() getAdministrationJob() if (row.title === '新建') { - console.log() + // ruleForm.value.deptId = '' } else { getStaffDetail({ ...row }).then((res) => { @@ -371,7 +373,7 @@
- {{ title }}计量人员 + 计量人员-{{ title }}
@@ -384,14 +386,13 @@
- - + + @@ -404,20 +405,36 @@ - + + + - - - - + - - - + + + + + + + + + + + + @@ -425,82 +442,52 @@ - + - - - + + + - - - - - - - - - - - - - - - - - - - - - - + - - - - - - - - - - - - - - - - - - - + - - - - + + + + + + + + + + + + + + + + + + + + - @@ -551,6 +538,7 @@ border-radius: 8px; padding-top: 10px; margin-top: 10px; + padding-right: 10px; } .header { @@ -578,6 +566,20 @@ display: none; } + :deep(.el-icon.avatar-uploader-icon) { + font-size: 28px; + color: #8c939d; + width: 190px; + height: 250px; + text-align: center; + } + + :deep(.avatar-uploader .avatar) { + width: 190px; + height: 250px; + display: block; + } + .isDetail { ::v-deep { .el-form-item.is-required:not(.is-no-asterisk) .el-form-item__label-wrap > .el-form-item__label::before, @@ -591,12 +593,16 @@ .marg { margin-top: 20px; } + +.marg-item { + margin-top: 20px; +} @@ -618,8 +624,8 @@ .el-icon.avatar-uploader-icon { font-size: 28px; color: #8c939d; - width: 178px; - height: 178px; + width: 220px; + height: 320px; text-align: center; } diff --git a/src/views/measure/person/components/addRecord.vue b/src/views/measure/person/components/addRecord.vue index 2928870..ae48f11 100644 --- a/src/views/measure/person/components/addRecord.vue +++ b/src/views/measure/person/components/addRecord.vue @@ -9,7 +9,7 @@ import { getUserList } from '@/api/system/user' import { getDeptTreeList } from '@/api/system/dept' import { toTreeList } from '@/utils/structure' -import type { userType } from '@/views/system/user/user-interface' +import type { TreeStructure, userType } from '@/views/system/user/user-interface' import { getDictByCode } from '@/api/system/dict' import comTreeSelect from '@/views/system/user/selecTree.vue' import { addCertificateList, getCertificateDetail, getCertificateUpdate } from '@/api/measure/person' @@ -59,12 +59,14 @@ const deptProps = reactive({ parent: 'pid', value: 'id', label: 'name', children: 'children', }) -const PubList = ref([]) +const PubList = ref([]) +const PubListTree = ref([]) // 获取组织列表 const getPubList = () => { getDeptTreeList().then((res) => { // 转成树结构 - PubList.value = toTreeList(res.data, '0', true) + PubList.value = res.data + PubListTree.value = toTreeList(res.data, '0', true) }) } const sexList = ref<{ id: string; value: string; name: string }[]>() @@ -330,7 +332,13 @@ - + + + @@ -377,10 +385,12 @@ - + + + diff --git a/src/components.d.ts b/src/components.d.ts index 5a09663..fcb5b4a 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -13,14 +13,14 @@ ApproverDrawer: typeof import('./components/drawer/approverDrawer.vue')['default'] Auth: typeof import('./components/Auth/index.vue')['default'] AuthAll: typeof import('./components/AuthAll/index.vue')['default'] + BarChartHorizontal: typeof import('./components/Echart/BarChartHorizontal.vue')['default'] + BarChartVertical: typeof import('./components/Echart/BarChartVertical.vue')['default'] BatchActionBar: typeof import('./components/BatchActionBar/index.vue')['default'] - Benchcol: typeof import('./components/benchcol/index.vue')['default'] BenchCol: typeof import('./components/benchCol/index.vue')['default'] ConditionDrawer: typeof import('./components/drawer/conditionDrawer.vue')['default'] CopyerDrawer: typeof import('./components/drawer/copyerDrawer.vue')['default'] Copyright: typeof import('./components/Copyright/index.vue')['default'] DeptSelect: typeof import('./components/DeptSelect/index.vue')['default'] - Echarts: typeof import('./components/echarts/index.vue')['default'] Editor: typeof import('./components/Editor/index.vue')['default'] EmployeesDialog: typeof import('./components/dialog/employeesDialog.vue')['default'] EmployeesRoleDialog: typeof import('./components/dialog/employeesRoleDialog.vue')['default'] @@ -30,13 +30,14 @@ ImagePreview: typeof import('./components/ImagePreview/index.vue')['default'] ImagesUpload: typeof import('./components/ImagesUpload/index.vue')['default'] ImageUpload: typeof import('./components/ImageUpload/index.vue')['default'] + LineChart: typeof import('./components/Echart/LineChart.vue')['default'] NodeWrap: typeof import('./components/workFlow/nodeWrap.vue')['default'] NodeWrapBan: typeof import('./components/workFlow/nodeWrapBan.vue')['default'] NormalTable: typeof import('./components/NormalTable/index.vue')['default'] PageHeader: typeof import('./components/PageHeader/index.vue')['default'] PageMain: typeof import('./components/PageMain/index.vue')['default'] PcasCascader: typeof import('./components/PcasCascader/index.vue')['default'] - Pie: typeof import('./components/echarts/pie.vue')['default'] + PieChart: typeof import('./components/Echart/PieChart.vue')['default'] PromoterDrawer: typeof import('./components/drawer/promoterDrawer.vue')['default'] RoleDialog: typeof import('./components/dialog/roleDialog.vue')['default'] RouterLink: typeof import('vue-router')['RouterLink'] diff --git a/src/views/device/stateManage/components/approvalActionDialog.vue b/src/views/device/stateManage/components/approvalActionDialog.vue index cdc9b25..56417d6 100644 --- a/src/views/device/stateManage/components/approvalActionDialog.vue +++ b/src/views/device/stateManage/components/approvalActionDialog.vue @@ -1,10 +1,13 @@ + + diff --git a/src/views/device/stateManage/components/status/cancel.vue b/src/views/device/stateManage/components/status/cancel.vue new file mode 100644 index 0000000..ecb2d0c --- /dev/null +++ b/src/views/device/stateManage/components/status/cancel.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/status/drafts.vue b/src/views/device/stateManage/components/status/drafts.vue new file mode 100644 index 0000000..226ba21 --- /dev/null +++ b/src/views/device/stateManage/components/status/drafts.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/status/inApproval.vue b/src/views/device/stateManage/components/status/inApproval.vue new file mode 100644 index 0000000..4988595 --- /dev/null +++ b/src/views/device/stateManage/components/status/inApproval.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/status/passed.vue b/src/views/device/stateManage/components/status/passed.vue new file mode 100644 index 0000000..ab87daf --- /dev/null +++ b/src/views/device/stateManage/components/status/passed.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/status/pending.vue b/src/views/device/stateManage/components/status/pending.vue new file mode 100644 index 0000000..3e0b315 --- /dev/null +++ b/src/views/device/stateManage/components/status/pending.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/status/unPassed.vue b/src/views/device/stateManage/components/status/unPassed.vue new file mode 100644 index 0000000..8de700e --- /dev/null +++ b/src/views/device/stateManage/components/status/unPassed.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/templateAdd.vue b/src/views/device/stateManage/components/templateAdd.vue index 9c4da0f..fc364c8 100644 --- a/src/views/device/stateManage/components/templateAdd.vue +++ b/src/views/device/stateManage/components/templateAdd.vue @@ -381,10 +381,10 @@ - + diff --git a/src/views/device/stateManage/components/templateList.vue b/src/views/device/stateManage/components/templateList.vue index 6ee2e8c..aa3963f 100644 --- a/src/views/device/stateManage/components/templateList.vue +++ b/src/views/device/stateManage/components/templateList.vue @@ -8,6 +8,10 @@ type: String, default: '', }, + title: { + type: String, + default: '', + }, }) // import { exportFile } from '@/utils/exportUtils' // const { proxy } = getCurrentInstance() as any @@ -179,15 +183,23 @@ // 同意 const agree = (row) => { console.log(approveRef.value) - approveRef.value.initDialog() + approveRef.value.initDialog({ + radio: '1', + }) } // 驳回 const reject = (row) => { - approveRef.value.initDialog() + approveRef.value.initDialog({ + radio: '3', + }) } // 拒绝 const refuse = (row) => { - approveRef.value.initDialog() + approveRef.value.initDialog( + { + radio: '2', + }, + ) } // 取消 const cancel = (row) => { diff --git a/src/views/device/stateManage/components/templatePage.vue b/src/views/device/stateManage/components/templatePage.vue index 5fb0163..fce7685 100644 --- a/src/views/device/stateManage/components/templatePage.vue +++ b/src/views/device/stateManage/components/templatePage.vue @@ -1,6 +1,12 @@ diff --git a/src/views/device/stateManage/openApply.vue b/src/views/device/stateManage/openApply.vue index 3c43781..35c2af6 100644 --- a/src/views/device/stateManage/openApply.vue +++ b/src/views/device/stateManage/openApply.vue @@ -1,13 +1,14 @@ + diff --git a/src/views/device/stateManage/scrapApply.vue b/src/views/device/stateManage/scrapApply.vue index 7bd1a98..282ecd8 100644 --- a/src/views/device/stateManage/scrapApply.vue +++ b/src/views/device/stateManage/scrapApply.vue @@ -1,10 +1,10 @@ diff --git a/src/views/device/stateManage/sealupApply.vue b/src/views/device/stateManage/sealupApply.vue index ec6320b..1c8544d 100644 --- a/src/views/device/stateManage/sealupApply.vue +++ b/src/views/device/stateManage/sealupApply.vue @@ -1,10 +1,10 @@ diff --git a/src/views/measure/file/components/addDialog.vue b/src/views/measure/file/components/addDialog.vue index a1464aa..66ec7ee 100644 --- a/src/views/measure/file/components/addDialog.vue +++ b/src/views/measure/file/components/addDialog.vue @@ -4,8 +4,10 @@ import { ElMessage, ElMessageBox } from 'element-plus' import dayjs from 'dayjs' import type { deptType } from '../file-interface' +import comTreeSelect from '@/views/system/user/selecTree.vue' import { getUserList } from '@/api/system/user' import useUserStore from '@/store/modules/user' +import { toTreeList } from '@/utils/structure' import { getDeptTreeList } from '@/api/system/dept' import { UploadFile, addApi } from '@/api/measure/file' import type { userType } from '@/views/system/user/user-interface' @@ -51,11 +53,16 @@ userList.value = res.data.rows }) } // 获取创建人列表 +const deptProps = reactive({ + parent: 'pid', value: 'id', label: 'name', children: 'children', +}) const PubList = ref([]) +const PubListTree = ref([]) // 获取发布单位列表 const getPubList = () => { getDeptTreeList().then((res) => { PubList.value = res.data + PubListTree.value = toTreeList(res.data, '0', true) }) } // 弹窗初始化 @@ -73,7 +80,8 @@ if (row.title === '新增') { // 默认发布人和发布单位 ruleForm.createUserId = userInfo.$state.id - ruleForm.publisher = userInfo.$state.deptId + ruleForm.publisher = '' + ruleForm.publishTime = dayjs().format('YYYY-MM-DD HH:mm:ss') // 判断有无存储 console.log(sessionStorage.getItem(fileTypeName.value), 'sess') if (sessionStorage.getItem(fileTypeName.value)) { @@ -207,11 +215,12 @@ // { name: '已废止', id: '1595030083114450945', value: '3' }, // ]) watch(() => ruleForm.effectiveTime, (newVal) => { - const diffDat = dayjs(newVal).diff(dayjs().format('YYYY-MM-DD HH:mm:ss'), 'day') + const diffDat = dayjs(newVal).diff(dayjs().format('YYYY-MM-DD HH:mm:ss'), 'hour') + console.log(diffDat) if (diffDat < 0) { // ruleForm.effectiveStatusName = '已废止' - effectiveStatusName.value = '已废止' - ruleForm.effectiveStatus = '3' + effectiveStatusName.value = '在使用' + ruleForm.effectiveStatus = '1' } else if (diffDat == 0) { // ruleForm.effectiveStatusName = '在使用' @@ -271,15 +280,20 @@ - + + @@ -295,7 +309,7 @@ diff --git a/src/views/measure/person/certificateLog.vue b/src/views/measure/person/certificateLog.vue index ca26b00..2e3322a 100644 --- a/src/views/measure/person/certificateLog.vue +++ b/src/views/measure/person/certificateLog.vue @@ -32,13 +32,13 @@ const loadingTable = ref(false) // 表格loading const total = ref(0) // 数据总条数 const columns = ref([ - { text: '人员编号', value: 'staffNo', align: 'center', width: '150' }, + { text: '人员编号', value: 'staffNo', align: 'center', width: '180' }, { text: '姓名', value: 'name', align: 'center', width: '80' }, { text: '性别', value: 'sex', align: 'center', width: '55' }, { text: '工作部门', value: 'deptId', align: 'center', width: '140' }, { text: '技术职务', value: 'technologyJob', align: 'center', width: '120' }, { text: '行政职务', value: 'administrationJob', align: 'center', width: '90' }, - { text: '证书号', value: 'certificateNo', align: 'center', width: '150' }, + { text: '证书号', value: 'certificateNo', align: 'center' }, { text: '发证单位', value: 'certificateCompany', align: 'center', width: '90' }, { text: '发证日期', value: 'certificateDate', align: 'center', width: '200' }, { text: '证书有效日期', value: 'certificateDate', align: 'center', width: '200' }, diff --git a/src/views/measure/person/components/addPerson.vue b/src/views/measure/person/components/addPerson.vue index 9252393..4dc1b17 100644 --- a/src/views/measure/person/components/addPerson.vue +++ b/src/views/measure/person/components/addPerson.vue @@ -10,7 +10,7 @@ import { getDeptTreeList } from '@/api/system/dept' import { UploadFile } from '@/api/measure/file' import { toTreeList } from '@/utils/structure' -import type { userType } from '@/views/system/user/user-interface' +import type { TreeStructure, userType } from '@/views/system/user/user-interface' import { getDictByCode } from '@/api/system/dict' import comTreeSelect from '@/views/system/user/selecTree.vue' import { getStaffAdd, getStaffDetail, getStaffupdate } from '@/api/measure/person' @@ -67,7 +67,7 @@ ruleFormRef.value?.validateField('idCard').then((res) => { // 获取生日 const IdCard = ruleForm.value.idCard - const birthday = `${IdCard.substring(6, 10)}-${IdCard.substring(10, 12)}-${IdCard.substring(12, 14)}` + const birthday = `${IdCard.substring(6, 10)}-${IdCard.substring(10, 12)}` ruleForm.value.birthday = birthday console.log(ruleForm.value) }) @@ -86,12 +86,14 @@ const deptProps = reactive({ parent: 'pid', value: 'id', label: 'name', children: 'children', }) -const PubList = ref([]) +const PubList = ref([]) +const PubListTree = ref([]) // 获取组织列表 const getPubList = () => { getDeptTreeList().then((res) => { // 转成树结构 - PubList.value = toTreeList(res.data, '0', true) + PubList.value = res.data + PubListTree.value = toTreeList(res.data, '0', true) }) } const sexList = ref<{ id: string; value: string; name: string }[]>() @@ -343,7 +345,7 @@ getTechnologyJobList() getAdministrationJob() if (row.title === '新建') { - console.log() + // ruleForm.value.deptId = '' } else { getStaffDetail({ ...row }).then((res) => { @@ -371,7 +373,7 @@
- {{ title }}计量人员 + 计量人员-{{ title }}
@@ -384,14 +386,13 @@
- - + + @@ -404,20 +405,36 @@ - + + + - - - - + - - - + + + + + + + + + + + + @@ -425,82 +442,52 @@ - + - - - + + + - - - - - - - - - - - - - - - - - - - - - - + - - - - - - - - - - - - - - - - - - - + - - - - + + + + + + + + + + + + + + + + + + + + - @@ -551,6 +538,7 @@ border-radius: 8px; padding-top: 10px; margin-top: 10px; + padding-right: 10px; } .header { @@ -578,6 +566,20 @@ display: none; } + :deep(.el-icon.avatar-uploader-icon) { + font-size: 28px; + color: #8c939d; + width: 190px; + height: 250px; + text-align: center; + } + + :deep(.avatar-uploader .avatar) { + width: 190px; + height: 250px; + display: block; + } + .isDetail { ::v-deep { .el-form-item.is-required:not(.is-no-asterisk) .el-form-item__label-wrap > .el-form-item__label::before, @@ -591,12 +593,16 @@ .marg { margin-top: 20px; } + +.marg-item { + margin-top: 20px; +} @@ -618,8 +624,8 @@ .el-icon.avatar-uploader-icon { font-size: 28px; color: #8c939d; - width: 178px; - height: 178px; + width: 220px; + height: 320px; text-align: center; } diff --git a/src/views/measure/person/components/addRecord.vue b/src/views/measure/person/components/addRecord.vue index 2928870..ae48f11 100644 --- a/src/views/measure/person/components/addRecord.vue +++ b/src/views/measure/person/components/addRecord.vue @@ -9,7 +9,7 @@ import { getUserList } from '@/api/system/user' import { getDeptTreeList } from '@/api/system/dept' import { toTreeList } from '@/utils/structure' -import type { userType } from '@/views/system/user/user-interface' +import type { TreeStructure, userType } from '@/views/system/user/user-interface' import { getDictByCode } from '@/api/system/dict' import comTreeSelect from '@/views/system/user/selecTree.vue' import { addCertificateList, getCertificateDetail, getCertificateUpdate } from '@/api/measure/person' @@ -59,12 +59,14 @@ const deptProps = reactive({ parent: 'pid', value: 'id', label: 'name', children: 'children', }) -const PubList = ref([]) +const PubList = ref([]) +const PubListTree = ref([]) // 获取组织列表 const getPubList = () => { getDeptTreeList().then((res) => { // 转成树结构 - PubList.value = toTreeList(res.data, '0', true) + PubList.value = res.data + PubListTree.value = toTreeList(res.data, '0', true) }) } const sexList = ref<{ id: string; value: string; name: string }[]>() @@ -330,7 +332,13 @@ - + + + @@ -377,10 +385,12 @@ - + + + diff --git a/src/views/measure/person/components/personListDialog.vue b/src/views/measure/person/components/personListDialog.vue index 952da9d..5e20d1b 100644 --- a/src/views/measure/person/components/personListDialog.vue +++ b/src/views/measure/person/components/personListDialog.vue @@ -1,6 +1,6 @@ + + diff --git a/src/views/device/stateManage/components/status/cancel.vue b/src/views/device/stateManage/components/status/cancel.vue new file mode 100644 index 0000000..ecb2d0c --- /dev/null +++ b/src/views/device/stateManage/components/status/cancel.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/status/drafts.vue b/src/views/device/stateManage/components/status/drafts.vue new file mode 100644 index 0000000..226ba21 --- /dev/null +++ b/src/views/device/stateManage/components/status/drafts.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/status/inApproval.vue b/src/views/device/stateManage/components/status/inApproval.vue new file mode 100644 index 0000000..4988595 --- /dev/null +++ b/src/views/device/stateManage/components/status/inApproval.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/status/passed.vue b/src/views/device/stateManage/components/status/passed.vue new file mode 100644 index 0000000..ab87daf --- /dev/null +++ b/src/views/device/stateManage/components/status/passed.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/status/pending.vue b/src/views/device/stateManage/components/status/pending.vue new file mode 100644 index 0000000..3e0b315 --- /dev/null +++ b/src/views/device/stateManage/components/status/pending.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/status/unPassed.vue b/src/views/device/stateManage/components/status/unPassed.vue new file mode 100644 index 0000000..8de700e --- /dev/null +++ b/src/views/device/stateManage/components/status/unPassed.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/templateAdd.vue b/src/views/device/stateManage/components/templateAdd.vue index 9c4da0f..fc364c8 100644 --- a/src/views/device/stateManage/components/templateAdd.vue +++ b/src/views/device/stateManage/components/templateAdd.vue @@ -381,10 +381,10 @@ - + diff --git a/src/views/device/stateManage/components/templateList.vue b/src/views/device/stateManage/components/templateList.vue index 6ee2e8c..aa3963f 100644 --- a/src/views/device/stateManage/components/templateList.vue +++ b/src/views/device/stateManage/components/templateList.vue @@ -8,6 +8,10 @@ type: String, default: '', }, + title: { + type: String, + default: '', + }, }) // import { exportFile } from '@/utils/exportUtils' // const { proxy } = getCurrentInstance() as any @@ -179,15 +183,23 @@ // 同意 const agree = (row) => { console.log(approveRef.value) - approveRef.value.initDialog() + approveRef.value.initDialog({ + radio: '1', + }) } // 驳回 const reject = (row) => { - approveRef.value.initDialog() + approveRef.value.initDialog({ + radio: '3', + }) } // 拒绝 const refuse = (row) => { - approveRef.value.initDialog() + approveRef.value.initDialog( + { + radio: '2', + }, + ) } // 取消 const cancel = (row) => { diff --git a/src/views/device/stateManage/components/templatePage.vue b/src/views/device/stateManage/components/templatePage.vue index 5fb0163..fce7685 100644 --- a/src/views/device/stateManage/components/templatePage.vue +++ b/src/views/device/stateManage/components/templatePage.vue @@ -1,6 +1,12 @@ diff --git a/src/views/device/stateManage/openApply.vue b/src/views/device/stateManage/openApply.vue index 3c43781..35c2af6 100644 --- a/src/views/device/stateManage/openApply.vue +++ b/src/views/device/stateManage/openApply.vue @@ -1,13 +1,14 @@ + diff --git a/src/views/device/stateManage/scrapApply.vue b/src/views/device/stateManage/scrapApply.vue index 7bd1a98..282ecd8 100644 --- a/src/views/device/stateManage/scrapApply.vue +++ b/src/views/device/stateManage/scrapApply.vue @@ -1,10 +1,10 @@ diff --git a/src/views/device/stateManage/sealupApply.vue b/src/views/device/stateManage/sealupApply.vue index ec6320b..1c8544d 100644 --- a/src/views/device/stateManage/sealupApply.vue +++ b/src/views/device/stateManage/sealupApply.vue @@ -1,10 +1,10 @@ diff --git a/src/views/measure/file/components/addDialog.vue b/src/views/measure/file/components/addDialog.vue index a1464aa..66ec7ee 100644 --- a/src/views/measure/file/components/addDialog.vue +++ b/src/views/measure/file/components/addDialog.vue @@ -4,8 +4,10 @@ import { ElMessage, ElMessageBox } from 'element-plus' import dayjs from 'dayjs' import type { deptType } from '../file-interface' +import comTreeSelect from '@/views/system/user/selecTree.vue' import { getUserList } from '@/api/system/user' import useUserStore from '@/store/modules/user' +import { toTreeList } from '@/utils/structure' import { getDeptTreeList } from '@/api/system/dept' import { UploadFile, addApi } from '@/api/measure/file' import type { userType } from '@/views/system/user/user-interface' @@ -51,11 +53,16 @@ userList.value = res.data.rows }) } // 获取创建人列表 +const deptProps = reactive({ + parent: 'pid', value: 'id', label: 'name', children: 'children', +}) const PubList = ref([]) +const PubListTree = ref([]) // 获取发布单位列表 const getPubList = () => { getDeptTreeList().then((res) => { PubList.value = res.data + PubListTree.value = toTreeList(res.data, '0', true) }) } // 弹窗初始化 @@ -73,7 +80,8 @@ if (row.title === '新增') { // 默认发布人和发布单位 ruleForm.createUserId = userInfo.$state.id - ruleForm.publisher = userInfo.$state.deptId + ruleForm.publisher = '' + ruleForm.publishTime = dayjs().format('YYYY-MM-DD HH:mm:ss') // 判断有无存储 console.log(sessionStorage.getItem(fileTypeName.value), 'sess') if (sessionStorage.getItem(fileTypeName.value)) { @@ -207,11 +215,12 @@ // { name: '已废止', id: '1595030083114450945', value: '3' }, // ]) watch(() => ruleForm.effectiveTime, (newVal) => { - const diffDat = dayjs(newVal).diff(dayjs().format('YYYY-MM-DD HH:mm:ss'), 'day') + const diffDat = dayjs(newVal).diff(dayjs().format('YYYY-MM-DD HH:mm:ss'), 'hour') + console.log(diffDat) if (diffDat < 0) { // ruleForm.effectiveStatusName = '已废止' - effectiveStatusName.value = '已废止' - ruleForm.effectiveStatus = '3' + effectiveStatusName.value = '在使用' + ruleForm.effectiveStatus = '1' } else if (diffDat == 0) { // ruleForm.effectiveStatusName = '在使用' @@ -271,15 +280,20 @@ - + + @@ -295,7 +309,7 @@ diff --git a/src/views/measure/person/certificateLog.vue b/src/views/measure/person/certificateLog.vue index ca26b00..2e3322a 100644 --- a/src/views/measure/person/certificateLog.vue +++ b/src/views/measure/person/certificateLog.vue @@ -32,13 +32,13 @@ const loadingTable = ref(false) // 表格loading const total = ref(0) // 数据总条数 const columns = ref([ - { text: '人员编号', value: 'staffNo', align: 'center', width: '150' }, + { text: '人员编号', value: 'staffNo', align: 'center', width: '180' }, { text: '姓名', value: 'name', align: 'center', width: '80' }, { text: '性别', value: 'sex', align: 'center', width: '55' }, { text: '工作部门', value: 'deptId', align: 'center', width: '140' }, { text: '技术职务', value: 'technologyJob', align: 'center', width: '120' }, { text: '行政职务', value: 'administrationJob', align: 'center', width: '90' }, - { text: '证书号', value: 'certificateNo', align: 'center', width: '150' }, + { text: '证书号', value: 'certificateNo', align: 'center' }, { text: '发证单位', value: 'certificateCompany', align: 'center', width: '90' }, { text: '发证日期', value: 'certificateDate', align: 'center', width: '200' }, { text: '证书有效日期', value: 'certificateDate', align: 'center', width: '200' }, diff --git a/src/views/measure/person/components/addPerson.vue b/src/views/measure/person/components/addPerson.vue index 9252393..4dc1b17 100644 --- a/src/views/measure/person/components/addPerson.vue +++ b/src/views/measure/person/components/addPerson.vue @@ -10,7 +10,7 @@ import { getDeptTreeList } from '@/api/system/dept' import { UploadFile } from '@/api/measure/file' import { toTreeList } from '@/utils/structure' -import type { userType } from '@/views/system/user/user-interface' +import type { TreeStructure, userType } from '@/views/system/user/user-interface' import { getDictByCode } from '@/api/system/dict' import comTreeSelect from '@/views/system/user/selecTree.vue' import { getStaffAdd, getStaffDetail, getStaffupdate } from '@/api/measure/person' @@ -67,7 +67,7 @@ ruleFormRef.value?.validateField('idCard').then((res) => { // 获取生日 const IdCard = ruleForm.value.idCard - const birthday = `${IdCard.substring(6, 10)}-${IdCard.substring(10, 12)}-${IdCard.substring(12, 14)}` + const birthday = `${IdCard.substring(6, 10)}-${IdCard.substring(10, 12)}` ruleForm.value.birthday = birthday console.log(ruleForm.value) }) @@ -86,12 +86,14 @@ const deptProps = reactive({ parent: 'pid', value: 'id', label: 'name', children: 'children', }) -const PubList = ref([]) +const PubList = ref([]) +const PubListTree = ref([]) // 获取组织列表 const getPubList = () => { getDeptTreeList().then((res) => { // 转成树结构 - PubList.value = toTreeList(res.data, '0', true) + PubList.value = res.data + PubListTree.value = toTreeList(res.data, '0', true) }) } const sexList = ref<{ id: string; value: string; name: string }[]>() @@ -343,7 +345,7 @@ getTechnologyJobList() getAdministrationJob() if (row.title === '新建') { - console.log() + // ruleForm.value.deptId = '' } else { getStaffDetail({ ...row }).then((res) => { @@ -371,7 +373,7 @@
- {{ title }}计量人员 + 计量人员-{{ title }}
@@ -384,14 +386,13 @@
- - + + @@ -404,20 +405,36 @@ - + + + - - - - + - - - + + + + + + + + + + + + @@ -425,82 +442,52 @@ - + - - - + + + - - - - - - - - - - - - - - - - - - - - - - + - - - - - - - - - - - - - - - - - - - + - - - - + + + + + + + + + + + + + + + + + + + + - @@ -551,6 +538,7 @@ border-radius: 8px; padding-top: 10px; margin-top: 10px; + padding-right: 10px; } .header { @@ -578,6 +566,20 @@ display: none; } + :deep(.el-icon.avatar-uploader-icon) { + font-size: 28px; + color: #8c939d; + width: 190px; + height: 250px; + text-align: center; + } + + :deep(.avatar-uploader .avatar) { + width: 190px; + height: 250px; + display: block; + } + .isDetail { ::v-deep { .el-form-item.is-required:not(.is-no-asterisk) .el-form-item__label-wrap > .el-form-item__label::before, @@ -591,12 +593,16 @@ .marg { margin-top: 20px; } + +.marg-item { + margin-top: 20px; +} @@ -618,8 +624,8 @@ .el-icon.avatar-uploader-icon { font-size: 28px; color: #8c939d; - width: 178px; - height: 178px; + width: 220px; + height: 320px; text-align: center; } diff --git a/src/views/measure/person/components/addRecord.vue b/src/views/measure/person/components/addRecord.vue index 2928870..ae48f11 100644 --- a/src/views/measure/person/components/addRecord.vue +++ b/src/views/measure/person/components/addRecord.vue @@ -9,7 +9,7 @@ import { getUserList } from '@/api/system/user' import { getDeptTreeList } from '@/api/system/dept' import { toTreeList } from '@/utils/structure' -import type { userType } from '@/views/system/user/user-interface' +import type { TreeStructure, userType } from '@/views/system/user/user-interface' import { getDictByCode } from '@/api/system/dict' import comTreeSelect from '@/views/system/user/selecTree.vue' import { addCertificateList, getCertificateDetail, getCertificateUpdate } from '@/api/measure/person' @@ -59,12 +59,14 @@ const deptProps = reactive({ parent: 'pid', value: 'id', label: 'name', children: 'children', }) -const PubList = ref([]) +const PubList = ref([]) +const PubListTree = ref([]) // 获取组织列表 const getPubList = () => { getDeptTreeList().then((res) => { // 转成树结构 - PubList.value = toTreeList(res.data, '0', true) + PubList.value = res.data + PubListTree.value = toTreeList(res.data, '0', true) }) } const sexList = ref<{ id: string; value: string; name: string }[]>() @@ -330,7 +332,13 @@ - + + + @@ -377,10 +385,12 @@ - + + + diff --git a/src/views/measure/person/components/personListDialog.vue b/src/views/measure/person/components/personListDialog.vue index 952da9d..5e20d1b 100644 --- a/src/views/measure/person/components/personListDialog.vue +++ b/src/views/measure/person/components/personListDialog.vue @@ -1,6 +1,6 @@ + + diff --git a/src/views/device/stateManage/components/status/cancel.vue b/src/views/device/stateManage/components/status/cancel.vue new file mode 100644 index 0000000..ecb2d0c --- /dev/null +++ b/src/views/device/stateManage/components/status/cancel.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/status/drafts.vue b/src/views/device/stateManage/components/status/drafts.vue new file mode 100644 index 0000000..226ba21 --- /dev/null +++ b/src/views/device/stateManage/components/status/drafts.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/status/inApproval.vue b/src/views/device/stateManage/components/status/inApproval.vue new file mode 100644 index 0000000..4988595 --- /dev/null +++ b/src/views/device/stateManage/components/status/inApproval.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/status/passed.vue b/src/views/device/stateManage/components/status/passed.vue new file mode 100644 index 0000000..ab87daf --- /dev/null +++ b/src/views/device/stateManage/components/status/passed.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/status/pending.vue b/src/views/device/stateManage/components/status/pending.vue new file mode 100644 index 0000000..3e0b315 --- /dev/null +++ b/src/views/device/stateManage/components/status/pending.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/status/unPassed.vue b/src/views/device/stateManage/components/status/unPassed.vue new file mode 100644 index 0000000..8de700e --- /dev/null +++ b/src/views/device/stateManage/components/status/unPassed.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/templateAdd.vue b/src/views/device/stateManage/components/templateAdd.vue index 9c4da0f..fc364c8 100644 --- a/src/views/device/stateManage/components/templateAdd.vue +++ b/src/views/device/stateManage/components/templateAdd.vue @@ -381,10 +381,10 @@ - + diff --git a/src/views/device/stateManage/components/templateList.vue b/src/views/device/stateManage/components/templateList.vue index 6ee2e8c..aa3963f 100644 --- a/src/views/device/stateManage/components/templateList.vue +++ b/src/views/device/stateManage/components/templateList.vue @@ -8,6 +8,10 @@ type: String, default: '', }, + title: { + type: String, + default: '', + }, }) // import { exportFile } from '@/utils/exportUtils' // const { proxy } = getCurrentInstance() as any @@ -179,15 +183,23 @@ // 同意 const agree = (row) => { console.log(approveRef.value) - approveRef.value.initDialog() + approveRef.value.initDialog({ + radio: '1', + }) } // 驳回 const reject = (row) => { - approveRef.value.initDialog() + approveRef.value.initDialog({ + radio: '3', + }) } // 拒绝 const refuse = (row) => { - approveRef.value.initDialog() + approveRef.value.initDialog( + { + radio: '2', + }, + ) } // 取消 const cancel = (row) => { diff --git a/src/views/device/stateManage/components/templatePage.vue b/src/views/device/stateManage/components/templatePage.vue index 5fb0163..fce7685 100644 --- a/src/views/device/stateManage/components/templatePage.vue +++ b/src/views/device/stateManage/components/templatePage.vue @@ -1,6 +1,12 @@ diff --git a/src/views/device/stateManage/openApply.vue b/src/views/device/stateManage/openApply.vue index 3c43781..35c2af6 100644 --- a/src/views/device/stateManage/openApply.vue +++ b/src/views/device/stateManage/openApply.vue @@ -1,13 +1,14 @@ + diff --git a/src/views/device/stateManage/scrapApply.vue b/src/views/device/stateManage/scrapApply.vue index 7bd1a98..282ecd8 100644 --- a/src/views/device/stateManage/scrapApply.vue +++ b/src/views/device/stateManage/scrapApply.vue @@ -1,10 +1,10 @@ diff --git a/src/views/device/stateManage/sealupApply.vue b/src/views/device/stateManage/sealupApply.vue index ec6320b..1c8544d 100644 --- a/src/views/device/stateManage/sealupApply.vue +++ b/src/views/device/stateManage/sealupApply.vue @@ -1,10 +1,10 @@ diff --git a/src/views/measure/file/components/addDialog.vue b/src/views/measure/file/components/addDialog.vue index a1464aa..66ec7ee 100644 --- a/src/views/measure/file/components/addDialog.vue +++ b/src/views/measure/file/components/addDialog.vue @@ -4,8 +4,10 @@ import { ElMessage, ElMessageBox } from 'element-plus' import dayjs from 'dayjs' import type { deptType } from '../file-interface' +import comTreeSelect from '@/views/system/user/selecTree.vue' import { getUserList } from '@/api/system/user' import useUserStore from '@/store/modules/user' +import { toTreeList } from '@/utils/structure' import { getDeptTreeList } from '@/api/system/dept' import { UploadFile, addApi } from '@/api/measure/file' import type { userType } from '@/views/system/user/user-interface' @@ -51,11 +53,16 @@ userList.value = res.data.rows }) } // 获取创建人列表 +const deptProps = reactive({ + parent: 'pid', value: 'id', label: 'name', children: 'children', +}) const PubList = ref([]) +const PubListTree = ref([]) // 获取发布单位列表 const getPubList = () => { getDeptTreeList().then((res) => { PubList.value = res.data + PubListTree.value = toTreeList(res.data, '0', true) }) } // 弹窗初始化 @@ -73,7 +80,8 @@ if (row.title === '新增') { // 默认发布人和发布单位 ruleForm.createUserId = userInfo.$state.id - ruleForm.publisher = userInfo.$state.deptId + ruleForm.publisher = '' + ruleForm.publishTime = dayjs().format('YYYY-MM-DD HH:mm:ss') // 判断有无存储 console.log(sessionStorage.getItem(fileTypeName.value), 'sess') if (sessionStorage.getItem(fileTypeName.value)) { @@ -207,11 +215,12 @@ // { name: '已废止', id: '1595030083114450945', value: '3' }, // ]) watch(() => ruleForm.effectiveTime, (newVal) => { - const diffDat = dayjs(newVal).diff(dayjs().format('YYYY-MM-DD HH:mm:ss'), 'day') + const diffDat = dayjs(newVal).diff(dayjs().format('YYYY-MM-DD HH:mm:ss'), 'hour') + console.log(diffDat) if (diffDat < 0) { // ruleForm.effectiveStatusName = '已废止' - effectiveStatusName.value = '已废止' - ruleForm.effectiveStatus = '3' + effectiveStatusName.value = '在使用' + ruleForm.effectiveStatus = '1' } else if (diffDat == 0) { // ruleForm.effectiveStatusName = '在使用' @@ -271,15 +280,20 @@ - + + @@ -295,7 +309,7 @@ diff --git a/src/views/measure/person/certificateLog.vue b/src/views/measure/person/certificateLog.vue index ca26b00..2e3322a 100644 --- a/src/views/measure/person/certificateLog.vue +++ b/src/views/measure/person/certificateLog.vue @@ -32,13 +32,13 @@ const loadingTable = ref(false) // 表格loading const total = ref(0) // 数据总条数 const columns = ref([ - { text: '人员编号', value: 'staffNo', align: 'center', width: '150' }, + { text: '人员编号', value: 'staffNo', align: 'center', width: '180' }, { text: '姓名', value: 'name', align: 'center', width: '80' }, { text: '性别', value: 'sex', align: 'center', width: '55' }, { text: '工作部门', value: 'deptId', align: 'center', width: '140' }, { text: '技术职务', value: 'technologyJob', align: 'center', width: '120' }, { text: '行政职务', value: 'administrationJob', align: 'center', width: '90' }, - { text: '证书号', value: 'certificateNo', align: 'center', width: '150' }, + { text: '证书号', value: 'certificateNo', align: 'center' }, { text: '发证单位', value: 'certificateCompany', align: 'center', width: '90' }, { text: '发证日期', value: 'certificateDate', align: 'center', width: '200' }, { text: '证书有效日期', value: 'certificateDate', align: 'center', width: '200' }, diff --git a/src/views/measure/person/components/addPerson.vue b/src/views/measure/person/components/addPerson.vue index 9252393..4dc1b17 100644 --- a/src/views/measure/person/components/addPerson.vue +++ b/src/views/measure/person/components/addPerson.vue @@ -10,7 +10,7 @@ import { getDeptTreeList } from '@/api/system/dept' import { UploadFile } from '@/api/measure/file' import { toTreeList } from '@/utils/structure' -import type { userType } from '@/views/system/user/user-interface' +import type { TreeStructure, userType } from '@/views/system/user/user-interface' import { getDictByCode } from '@/api/system/dict' import comTreeSelect from '@/views/system/user/selecTree.vue' import { getStaffAdd, getStaffDetail, getStaffupdate } from '@/api/measure/person' @@ -67,7 +67,7 @@ ruleFormRef.value?.validateField('idCard').then((res) => { // 获取生日 const IdCard = ruleForm.value.idCard - const birthday = `${IdCard.substring(6, 10)}-${IdCard.substring(10, 12)}-${IdCard.substring(12, 14)}` + const birthday = `${IdCard.substring(6, 10)}-${IdCard.substring(10, 12)}` ruleForm.value.birthday = birthday console.log(ruleForm.value) }) @@ -86,12 +86,14 @@ const deptProps = reactive({ parent: 'pid', value: 'id', label: 'name', children: 'children', }) -const PubList = ref([]) +const PubList = ref([]) +const PubListTree = ref([]) // 获取组织列表 const getPubList = () => { getDeptTreeList().then((res) => { // 转成树结构 - PubList.value = toTreeList(res.data, '0', true) + PubList.value = res.data + PubListTree.value = toTreeList(res.data, '0', true) }) } const sexList = ref<{ id: string; value: string; name: string }[]>() @@ -343,7 +345,7 @@ getTechnologyJobList() getAdministrationJob() if (row.title === '新建') { - console.log() + // ruleForm.value.deptId = '' } else { getStaffDetail({ ...row }).then((res) => { @@ -371,7 +373,7 @@
- {{ title }}计量人员 + 计量人员-{{ title }}
@@ -384,14 +386,13 @@
- - + + @@ -404,20 +405,36 @@ - + + + - - - - + - - - + + + + + + + + + + + + @@ -425,82 +442,52 @@ - + - - - + + + - - - - - - - - - - - - - - - - - - - - - - + - - - - - - - - - - - - - - - - - - - + - - - - + + + + + + + + + + + + + + + + + + + + - @@ -551,6 +538,7 @@ border-radius: 8px; padding-top: 10px; margin-top: 10px; + padding-right: 10px; } .header { @@ -578,6 +566,20 @@ display: none; } + :deep(.el-icon.avatar-uploader-icon) { + font-size: 28px; + color: #8c939d; + width: 190px; + height: 250px; + text-align: center; + } + + :deep(.avatar-uploader .avatar) { + width: 190px; + height: 250px; + display: block; + } + .isDetail { ::v-deep { .el-form-item.is-required:not(.is-no-asterisk) .el-form-item__label-wrap > .el-form-item__label::before, @@ -591,12 +593,16 @@ .marg { margin-top: 20px; } + +.marg-item { + margin-top: 20px; +} @@ -618,8 +624,8 @@ .el-icon.avatar-uploader-icon { font-size: 28px; color: #8c939d; - width: 178px; - height: 178px; + width: 220px; + height: 320px; text-align: center; } diff --git a/src/views/measure/person/components/addRecord.vue b/src/views/measure/person/components/addRecord.vue index 2928870..ae48f11 100644 --- a/src/views/measure/person/components/addRecord.vue +++ b/src/views/measure/person/components/addRecord.vue @@ -9,7 +9,7 @@ import { getUserList } from '@/api/system/user' import { getDeptTreeList } from '@/api/system/dept' import { toTreeList } from '@/utils/structure' -import type { userType } from '@/views/system/user/user-interface' +import type { TreeStructure, userType } from '@/views/system/user/user-interface' import { getDictByCode } from '@/api/system/dict' import comTreeSelect from '@/views/system/user/selecTree.vue' import { addCertificateList, getCertificateDetail, getCertificateUpdate } from '@/api/measure/person' @@ -59,12 +59,14 @@ const deptProps = reactive({ parent: 'pid', value: 'id', label: 'name', children: 'children', }) -const PubList = ref([]) +const PubList = ref([]) +const PubListTree = ref([]) // 获取组织列表 const getPubList = () => { getDeptTreeList().then((res) => { // 转成树结构 - PubList.value = toTreeList(res.data, '0', true) + PubList.value = res.data + PubListTree.value = toTreeList(res.data, '0', true) }) } const sexList = ref<{ id: string; value: string; name: string }[]>() @@ -330,7 +332,13 @@ - + + + @@ -377,10 +385,12 @@ - + + + diff --git a/src/views/measure/person/components/personListDialog.vue b/src/views/measure/person/components/personListDialog.vue index 952da9d..5e20d1b 100644 --- a/src/views/measure/person/components/personListDialog.vue +++ b/src/views/measure/person/components/personListDialog.vue @@ -1,6 +1,6 @@ + + diff --git a/src/views/device/stateManage/components/status/cancel.vue b/src/views/device/stateManage/components/status/cancel.vue new file mode 100644 index 0000000..ecb2d0c --- /dev/null +++ b/src/views/device/stateManage/components/status/cancel.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/status/drafts.vue b/src/views/device/stateManage/components/status/drafts.vue new file mode 100644 index 0000000..226ba21 --- /dev/null +++ b/src/views/device/stateManage/components/status/drafts.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/status/inApproval.vue b/src/views/device/stateManage/components/status/inApproval.vue new file mode 100644 index 0000000..4988595 --- /dev/null +++ b/src/views/device/stateManage/components/status/inApproval.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/status/passed.vue b/src/views/device/stateManage/components/status/passed.vue new file mode 100644 index 0000000..ab87daf --- /dev/null +++ b/src/views/device/stateManage/components/status/passed.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/status/pending.vue b/src/views/device/stateManage/components/status/pending.vue new file mode 100644 index 0000000..3e0b315 --- /dev/null +++ b/src/views/device/stateManage/components/status/pending.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/status/unPassed.vue b/src/views/device/stateManage/components/status/unPassed.vue new file mode 100644 index 0000000..8de700e --- /dev/null +++ b/src/views/device/stateManage/components/status/unPassed.vue @@ -0,0 +1,18 @@ + + + + diff --git a/src/views/device/stateManage/components/templateAdd.vue b/src/views/device/stateManage/components/templateAdd.vue index 9c4da0f..fc364c8 100644 --- a/src/views/device/stateManage/components/templateAdd.vue +++ b/src/views/device/stateManage/components/templateAdd.vue @@ -381,10 +381,10 @@ - + diff --git a/src/views/device/stateManage/components/templateList.vue b/src/views/device/stateManage/components/templateList.vue index 6ee2e8c..aa3963f 100644 --- a/src/views/device/stateManage/components/templateList.vue +++ b/src/views/device/stateManage/components/templateList.vue @@ -8,6 +8,10 @@ type: String, default: '', }, + title: { + type: String, + default: '', + }, }) // import { exportFile } from '@/utils/exportUtils' // const { proxy } = getCurrentInstance() as any @@ -179,15 +183,23 @@ // 同意 const agree = (row) => { console.log(approveRef.value) - approveRef.value.initDialog() + approveRef.value.initDialog({ + radio: '1', + }) } // 驳回 const reject = (row) => { - approveRef.value.initDialog() + approveRef.value.initDialog({ + radio: '3', + }) } // 拒绝 const refuse = (row) => { - approveRef.value.initDialog() + approveRef.value.initDialog( + { + radio: '2', + }, + ) } // 取消 const cancel = (row) => { diff --git a/src/views/device/stateManage/components/templatePage.vue b/src/views/device/stateManage/components/templatePage.vue index 5fb0163..fce7685 100644 --- a/src/views/device/stateManage/components/templatePage.vue +++ b/src/views/device/stateManage/components/templatePage.vue @@ -1,6 +1,12 @@ diff --git a/src/views/device/stateManage/openApply.vue b/src/views/device/stateManage/openApply.vue index 3c43781..35c2af6 100644 --- a/src/views/device/stateManage/openApply.vue +++ b/src/views/device/stateManage/openApply.vue @@ -1,13 +1,14 @@ + diff --git a/src/views/device/stateManage/scrapApply.vue b/src/views/device/stateManage/scrapApply.vue index 7bd1a98..282ecd8 100644 --- a/src/views/device/stateManage/scrapApply.vue +++ b/src/views/device/stateManage/scrapApply.vue @@ -1,10 +1,10 @@ diff --git a/src/views/device/stateManage/sealupApply.vue b/src/views/device/stateManage/sealupApply.vue index ec6320b..1c8544d 100644 --- a/src/views/device/stateManage/sealupApply.vue +++ b/src/views/device/stateManage/sealupApply.vue @@ -1,10 +1,10 @@ diff --git a/src/views/measure/file/components/addDialog.vue b/src/views/measure/file/components/addDialog.vue index a1464aa..66ec7ee 100644 --- a/src/views/measure/file/components/addDialog.vue +++ b/src/views/measure/file/components/addDialog.vue @@ -4,8 +4,10 @@ import { ElMessage, ElMessageBox } from 'element-plus' import dayjs from 'dayjs' import type { deptType } from '../file-interface' +import comTreeSelect from '@/views/system/user/selecTree.vue' import { getUserList } from '@/api/system/user' import useUserStore from '@/store/modules/user' +import { toTreeList } from '@/utils/structure' import { getDeptTreeList } from '@/api/system/dept' import { UploadFile, addApi } from '@/api/measure/file' import type { userType } from '@/views/system/user/user-interface' @@ -51,11 +53,16 @@ userList.value = res.data.rows }) } // 获取创建人列表 +const deptProps = reactive({ + parent: 'pid', value: 'id', label: 'name', children: 'children', +}) const PubList = ref([]) +const PubListTree = ref([]) // 获取发布单位列表 const getPubList = () => { getDeptTreeList().then((res) => { PubList.value = res.data + PubListTree.value = toTreeList(res.data, '0', true) }) } // 弹窗初始化 @@ -73,7 +80,8 @@ if (row.title === '新增') { // 默认发布人和发布单位 ruleForm.createUserId = userInfo.$state.id - ruleForm.publisher = userInfo.$state.deptId + ruleForm.publisher = '' + ruleForm.publishTime = dayjs().format('YYYY-MM-DD HH:mm:ss') // 判断有无存储 console.log(sessionStorage.getItem(fileTypeName.value), 'sess') if (sessionStorage.getItem(fileTypeName.value)) { @@ -207,11 +215,12 @@ // { name: '已废止', id: '1595030083114450945', value: '3' }, // ]) watch(() => ruleForm.effectiveTime, (newVal) => { - const diffDat = dayjs(newVal).diff(dayjs().format('YYYY-MM-DD HH:mm:ss'), 'day') + const diffDat = dayjs(newVal).diff(dayjs().format('YYYY-MM-DD HH:mm:ss'), 'hour') + console.log(diffDat) if (diffDat < 0) { // ruleForm.effectiveStatusName = '已废止' - effectiveStatusName.value = '已废止' - ruleForm.effectiveStatus = '3' + effectiveStatusName.value = '在使用' + ruleForm.effectiveStatus = '1' } else if (diffDat == 0) { // ruleForm.effectiveStatusName = '在使用' @@ -271,15 +280,20 @@ - + + @@ -295,7 +309,7 @@ diff --git a/src/views/measure/person/certificateLog.vue b/src/views/measure/person/certificateLog.vue index ca26b00..2e3322a 100644 --- a/src/views/measure/person/certificateLog.vue +++ b/src/views/measure/person/certificateLog.vue @@ -32,13 +32,13 @@ const loadingTable = ref(false) // 表格loading const total = ref(0) // 数据总条数 const columns = ref([ - { text: '人员编号', value: 'staffNo', align: 'center', width: '150' }, + { text: '人员编号', value: 'staffNo', align: 'center', width: '180' }, { text: '姓名', value: 'name', align: 'center', width: '80' }, { text: '性别', value: 'sex', align: 'center', width: '55' }, { text: '工作部门', value: 'deptId', align: 'center', width: '140' }, { text: '技术职务', value: 'technologyJob', align: 'center', width: '120' }, { text: '行政职务', value: 'administrationJob', align: 'center', width: '90' }, - { text: '证书号', value: 'certificateNo', align: 'center', width: '150' }, + { text: '证书号', value: 'certificateNo', align: 'center' }, { text: '发证单位', value: 'certificateCompany', align: 'center', width: '90' }, { text: '发证日期', value: 'certificateDate', align: 'center', width: '200' }, { text: '证书有效日期', value: 'certificateDate', align: 'center', width: '200' }, diff --git a/src/views/measure/person/components/addPerson.vue b/src/views/measure/person/components/addPerson.vue index 9252393..4dc1b17 100644 --- a/src/views/measure/person/components/addPerson.vue +++ b/src/views/measure/person/components/addPerson.vue @@ -10,7 +10,7 @@ import { getDeptTreeList } from '@/api/system/dept' import { UploadFile } from '@/api/measure/file' import { toTreeList } from '@/utils/structure' -import type { userType } from '@/views/system/user/user-interface' +import type { TreeStructure, userType } from '@/views/system/user/user-interface' import { getDictByCode } from '@/api/system/dict' import comTreeSelect from '@/views/system/user/selecTree.vue' import { getStaffAdd, getStaffDetail, getStaffupdate } from '@/api/measure/person' @@ -67,7 +67,7 @@ ruleFormRef.value?.validateField('idCard').then((res) => { // 获取生日 const IdCard = ruleForm.value.idCard - const birthday = `${IdCard.substring(6, 10)}-${IdCard.substring(10, 12)}-${IdCard.substring(12, 14)}` + const birthday = `${IdCard.substring(6, 10)}-${IdCard.substring(10, 12)}` ruleForm.value.birthday = birthday console.log(ruleForm.value) }) @@ -86,12 +86,14 @@ const deptProps = reactive({ parent: 'pid', value: 'id', label: 'name', children: 'children', }) -const PubList = ref([]) +const PubList = ref([]) +const PubListTree = ref([]) // 获取组织列表 const getPubList = () => { getDeptTreeList().then((res) => { // 转成树结构 - PubList.value = toTreeList(res.data, '0', true) + PubList.value = res.data + PubListTree.value = toTreeList(res.data, '0', true) }) } const sexList = ref<{ id: string; value: string; name: string }[]>() @@ -343,7 +345,7 @@ getTechnologyJobList() getAdministrationJob() if (row.title === '新建') { - console.log() + // ruleForm.value.deptId = '' } else { getStaffDetail({ ...row }).then((res) => { @@ -371,7 +373,7 @@
- {{ title }}计量人员 + 计量人员-{{ title }}
@@ -384,14 +386,13 @@
- - + + @@ -404,20 +405,36 @@ - + + + - - - - + - - - + + + + + + + + + + + + @@ -425,82 +442,52 @@ - + - - - + + + - - - - - - - - - - - - - - - - - - - - - - + - - - - - - - - - - - - - - - - - - - + - - - - + + + + + + + + + + + + + + + + + + + + - @@ -551,6 +538,7 @@ border-radius: 8px; padding-top: 10px; margin-top: 10px; + padding-right: 10px; } .header { @@ -578,6 +566,20 @@ display: none; } + :deep(.el-icon.avatar-uploader-icon) { + font-size: 28px; + color: #8c939d; + width: 190px; + height: 250px; + text-align: center; + } + + :deep(.avatar-uploader .avatar) { + width: 190px; + height: 250px; + display: block; + } + .isDetail { ::v-deep { .el-form-item.is-required:not(.is-no-asterisk) .el-form-item__label-wrap > .el-form-item__label::before, @@ -591,12 +593,16 @@ .marg { margin-top: 20px; } + +.marg-item { + margin-top: 20px; +} @@ -618,8 +624,8 @@ .el-icon.avatar-uploader-icon { font-size: 28px; color: #8c939d; - width: 178px; - height: 178px; + width: 220px; + height: 320px; text-align: center; } diff --git a/src/views/measure/person/components/addRecord.vue b/src/views/measure/person/components/addRecord.vue index 2928870..ae48f11 100644 --- a/src/views/measure/person/components/addRecord.vue +++ b/src/views/measure/person/components/addRecord.vue @@ -9,7 +9,7 @@ import { getUserList } from '@/api/system/user' import { getDeptTreeList } from '@/api/system/dept' import { toTreeList } from '@/utils/structure' -import type { userType } from '@/views/system/user/user-interface' +import type { TreeStructure, userType } from '@/views/system/user/user-interface' import { getDictByCode } from '@/api/system/dict' import comTreeSelect from '@/views/system/user/selecTree.vue' import { addCertificateList, getCertificateDetail, getCertificateUpdate } from '@/api/measure/person' @@ -59,12 +59,14 @@ const deptProps = reactive({ parent: 'pid', value: 'id', label: 'name', children: 'children', }) -const PubList = ref([]) +const PubList = ref([]) +const PubListTree = ref([]) // 获取组织列表 const getPubList = () => { getDeptTreeList().then((res) => { // 转成树结构 - PubList.value = toTreeList(res.data, '0', true) + PubList.value = res.data + PubListTree.value = toTreeList(res.data, '0', true) }) } const sexList = ref<{ id: string; value: string; name: string }[]>() @@ -330,7 +332,13 @@ - + + + @@ -377,10 +385,12 @@ - + + + diff --git a/src/views/measure/person/components/personListDialog.vue b/src/views/measure/person/components/personListDialog.vue index 952da9d..5e20d1b 100644 --- a/src/views/measure/person/components/personListDialog.vue +++ b/src/views/measure/person/components/personListDialog.vue @@ -1,6 +1,6 @@