diff --git a/src/assets/icons/icon-bench.svg b/src/assets/icons/icon-bench.svg
new file mode 100644
index 0000000..61f1ca1
--- /dev/null
+++ b/src/assets/icons/icon-bench.svg
@@ -0,0 +1 @@
+
diff --git a/src/assets/icons/icon-bench.svg b/src/assets/icons/icon-bench.svg
new file mode 100644
index 0000000..61f1ca1
--- /dev/null
+++ b/src/assets/icons/icon-bench.svg
@@ -0,0 +1 @@
+
diff --git a/src/assets/icons/icon-building.svg b/src/assets/icons/icon-building.svg
new file mode 100644
index 0000000..5f8475f
--- /dev/null
+++ b/src/assets/icons/icon-building.svg
@@ -0,0 +1 @@
+
diff --git a/src/assets/icons/icon-bench.svg b/src/assets/icons/icon-bench.svg
new file mode 100644
index 0000000..61f1ca1
--- /dev/null
+++ b/src/assets/icons/icon-bench.svg
@@ -0,0 +1 @@
+
diff --git a/src/assets/icons/icon-building.svg b/src/assets/icons/icon-building.svg
new file mode 100644
index 0000000..5f8475f
--- /dev/null
+++ b/src/assets/icons/icon-building.svg
@@ -0,0 +1 @@
+
diff --git a/src/assets/icons/icon-case.svg b/src/assets/icons/icon-case.svg
new file mode 100644
index 0000000..e44c040
--- /dev/null
+++ b/src/assets/icons/icon-case.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/assets/icons/icon-bench.svg b/src/assets/icons/icon-bench.svg
new file mode 100644
index 0000000..61f1ca1
--- /dev/null
+++ b/src/assets/icons/icon-bench.svg
@@ -0,0 +1 @@
+
diff --git a/src/assets/icons/icon-building.svg b/src/assets/icons/icon-building.svg
new file mode 100644
index 0000000..5f8475f
--- /dev/null
+++ b/src/assets/icons/icon-building.svg
@@ -0,0 +1 @@
+
diff --git a/src/assets/icons/icon-case.svg b/src/assets/icons/icon-case.svg
new file mode 100644
index 0000000..e44c040
--- /dev/null
+++ b/src/assets/icons/icon-case.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/assets/icons/icon-file.svg b/src/assets/icons/icon-file.svg
new file mode 100644
index 0000000..2d4a5fd
--- /dev/null
+++ b/src/assets/icons/icon-file.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/assets/icons/icon-bench.svg b/src/assets/icons/icon-bench.svg
new file mode 100644
index 0000000..61f1ca1
--- /dev/null
+++ b/src/assets/icons/icon-bench.svg
@@ -0,0 +1 @@
+
diff --git a/src/assets/icons/icon-building.svg b/src/assets/icons/icon-building.svg
new file mode 100644
index 0000000..5f8475f
--- /dev/null
+++ b/src/assets/icons/icon-building.svg
@@ -0,0 +1 @@
+
diff --git a/src/assets/icons/icon-case.svg b/src/assets/icons/icon-case.svg
new file mode 100644
index 0000000..e44c040
--- /dev/null
+++ b/src/assets/icons/icon-case.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/assets/icons/icon-file.svg b/src/assets/icons/icon-file.svg
new file mode 100644
index 0000000..2d4a5fd
--- /dev/null
+++ b/src/assets/icons/icon-file.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/assets/icons/icon-price.svg b/src/assets/icons/icon-price.svg
new file mode 100644
index 0000000..f5cddf6
--- /dev/null
+++ b/src/assets/icons/icon-price.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/assets/icons/icon-bench.svg b/src/assets/icons/icon-bench.svg
new file mode 100644
index 0000000..61f1ca1
--- /dev/null
+++ b/src/assets/icons/icon-bench.svg
@@ -0,0 +1 @@
+
diff --git a/src/assets/icons/icon-building.svg b/src/assets/icons/icon-building.svg
new file mode 100644
index 0000000..5f8475f
--- /dev/null
+++ b/src/assets/icons/icon-building.svg
@@ -0,0 +1 @@
+
diff --git a/src/assets/icons/icon-case.svg b/src/assets/icons/icon-case.svg
new file mode 100644
index 0000000..e44c040
--- /dev/null
+++ b/src/assets/icons/icon-case.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/assets/icons/icon-file.svg b/src/assets/icons/icon-file.svg
new file mode 100644
index 0000000..2d4a5fd
--- /dev/null
+++ b/src/assets/icons/icon-file.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/assets/icons/icon-price.svg b/src/assets/icons/icon-price.svg
new file mode 100644
index 0000000..f5cddf6
--- /dev/null
+++ b/src/assets/icons/icon-price.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components.d.ts b/src/components.d.ts
index 0d418d2..b48f4dd 100644
--- a/src/components.d.ts
+++ b/src/components.d.ts
@@ -22,6 +22,7 @@
CopyerDrawer: typeof import('./components/drawer/copyerDrawer.vue')['default']
Copyright: typeof import('./components/Copyright/index.vue')['default']
DeptSelect: typeof import('./components/DeptSelect/index.vue')['default']
+ DetailPage: typeof import('./components/DetailPage/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']
diff --git a/src/assets/icons/icon-bench.svg b/src/assets/icons/icon-bench.svg
new file mode 100644
index 0000000..61f1ca1
--- /dev/null
+++ b/src/assets/icons/icon-bench.svg
@@ -0,0 +1 @@
+
diff --git a/src/assets/icons/icon-building.svg b/src/assets/icons/icon-building.svg
new file mode 100644
index 0000000..5f8475f
--- /dev/null
+++ b/src/assets/icons/icon-building.svg
@@ -0,0 +1 @@
+
diff --git a/src/assets/icons/icon-case.svg b/src/assets/icons/icon-case.svg
new file mode 100644
index 0000000..e44c040
--- /dev/null
+++ b/src/assets/icons/icon-case.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/assets/icons/icon-file.svg b/src/assets/icons/icon-file.svg
new file mode 100644
index 0000000..2d4a5fd
--- /dev/null
+++ b/src/assets/icons/icon-file.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/assets/icons/icon-price.svg b/src/assets/icons/icon-price.svg
new file mode 100644
index 0000000..f5cddf6
--- /dev/null
+++ b/src/assets/icons/icon-price.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components.d.ts b/src/components.d.ts
index 0d418d2..b48f4dd 100644
--- a/src/components.d.ts
+++ b/src/components.d.ts
@@ -22,6 +22,7 @@
CopyerDrawer: typeof import('./components/drawer/copyerDrawer.vue')['default']
Copyright: typeof import('./components/Copyright/index.vue')['default']
DeptSelect: typeof import('./components/DeptSelect/index.vue')['default']
+ DetailPage: typeof import('./components/DetailPage/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']
diff --git a/src/components/DetailPage/index.vue b/src/components/DetailPage/index.vue
new file mode 100644
index 0000000..e627083
--- /dev/null
+++ b/src/components/DetailPage/index.vue
@@ -0,0 +1,59 @@
+
+
+
+
+
+
+
diff --git a/src/assets/icons/icon-bench.svg b/src/assets/icons/icon-bench.svg
new file mode 100644
index 0000000..61f1ca1
--- /dev/null
+++ b/src/assets/icons/icon-bench.svg
@@ -0,0 +1 @@
+
diff --git a/src/assets/icons/icon-building.svg b/src/assets/icons/icon-building.svg
new file mode 100644
index 0000000..5f8475f
--- /dev/null
+++ b/src/assets/icons/icon-building.svg
@@ -0,0 +1 @@
+
diff --git a/src/assets/icons/icon-case.svg b/src/assets/icons/icon-case.svg
new file mode 100644
index 0000000..e44c040
--- /dev/null
+++ b/src/assets/icons/icon-case.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/assets/icons/icon-file.svg b/src/assets/icons/icon-file.svg
new file mode 100644
index 0000000..2d4a5fd
--- /dev/null
+++ b/src/assets/icons/icon-file.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/assets/icons/icon-price.svg b/src/assets/icons/icon-price.svg
new file mode 100644
index 0000000..f5cddf6
--- /dev/null
+++ b/src/assets/icons/icon-price.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components.d.ts b/src/components.d.ts
index 0d418d2..b48f4dd 100644
--- a/src/components.d.ts
+++ b/src/components.d.ts
@@ -22,6 +22,7 @@
CopyerDrawer: typeof import('./components/drawer/copyerDrawer.vue')['default']
Copyright: typeof import('./components/Copyright/index.vue')['default']
DeptSelect: typeof import('./components/DeptSelect/index.vue')['default']
+ DetailPage: typeof import('./components/DetailPage/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']
diff --git a/src/components/DetailPage/index.vue b/src/components/DetailPage/index.vue
new file mode 100644
index 0000000..e627083
--- /dev/null
+++ b/src/components/DetailPage/index.vue
@@ -0,0 +1,59 @@
+
+
+
+
+
+
+
diff --git a/src/components/SearchArea/index.vue b/src/components/SearchArea/index.vue
index ba55463..475f4ad 100644
--- a/src/components/SearchArea/index.vue
+++ b/src/components/SearchArea/index.vue
@@ -7,6 +7,7 @@
Star,
} from '@element-plus/icons-vue'
// props参数
+type Size = 'small' | 'large' | 'default' | ''
const props = defineProps({
type: {
type: String,
@@ -27,10 +28,13 @@
size: {
type: String,
default: '',
+ validator: (value: string) => {
+ return ['', 'small', 'large', 'default', 'mini'].includes(value)
+ },
}, // 按钮及输入框大小
icon: {
type: Boolean,
- default: true,
+ default: false,
}, // 是否显示图标
})
// 抛出事件
@@ -76,26 +80,26 @@
-
+
搜索
-
+
高级检索
-
+
重置
-
- 搜索
+
+ 查询
-
+
高级检索
-
+
重置
@@ -107,8 +111,6 @@
.search-div {
padding: 12px;
padding-bottom: 2px; /* 本身输入框有10px下边距 */
- // padding-left: 0;
- // padding-top: 2px;
background-color: #fff; /* Safari */
display: flex;
justify-content: space-between;
diff --git a/src/assets/icons/icon-bench.svg b/src/assets/icons/icon-bench.svg
new file mode 100644
index 0000000..61f1ca1
--- /dev/null
+++ b/src/assets/icons/icon-bench.svg
@@ -0,0 +1 @@
+
diff --git a/src/assets/icons/icon-building.svg b/src/assets/icons/icon-building.svg
new file mode 100644
index 0000000..5f8475f
--- /dev/null
+++ b/src/assets/icons/icon-building.svg
@@ -0,0 +1 @@
+
diff --git a/src/assets/icons/icon-case.svg b/src/assets/icons/icon-case.svg
new file mode 100644
index 0000000..e44c040
--- /dev/null
+++ b/src/assets/icons/icon-case.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/assets/icons/icon-file.svg b/src/assets/icons/icon-file.svg
new file mode 100644
index 0000000..2d4a5fd
--- /dev/null
+++ b/src/assets/icons/icon-file.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/assets/icons/icon-price.svg b/src/assets/icons/icon-price.svg
new file mode 100644
index 0000000..f5cddf6
--- /dev/null
+++ b/src/assets/icons/icon-price.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components.d.ts b/src/components.d.ts
index 0d418d2..b48f4dd 100644
--- a/src/components.d.ts
+++ b/src/components.d.ts
@@ -22,6 +22,7 @@
CopyerDrawer: typeof import('./components/drawer/copyerDrawer.vue')['default']
Copyright: typeof import('./components/Copyright/index.vue')['default']
DeptSelect: typeof import('./components/DeptSelect/index.vue')['default']
+ DetailPage: typeof import('./components/DetailPage/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']
diff --git a/src/components/DetailPage/index.vue b/src/components/DetailPage/index.vue
new file mode 100644
index 0000000..e627083
--- /dev/null
+++ b/src/components/DetailPage/index.vue
@@ -0,0 +1,59 @@
+
+
+
+
+
+
+
diff --git a/src/components/SearchArea/index.vue b/src/components/SearchArea/index.vue
index ba55463..475f4ad 100644
--- a/src/components/SearchArea/index.vue
+++ b/src/components/SearchArea/index.vue
@@ -7,6 +7,7 @@
Star,
} from '@element-plus/icons-vue'
// props参数
+type Size = 'small' | 'large' | 'default' | ''
const props = defineProps({
type: {
type: String,
@@ -27,10 +28,13 @@
size: {
type: String,
default: '',
+ validator: (value: string) => {
+ return ['', 'small', 'large', 'default', 'mini'].includes(value)
+ },
}, // 按钮及输入框大小
icon: {
type: Boolean,
- default: true,
+ default: false,
}, // 是否显示图标
})
// 抛出事件
@@ -76,26 +80,26 @@
-
+
搜索
-
+
高级检索
-
+
重置
-
- 搜索
+
+ 查询
-
+
高级检索
-
+
重置
@@ -107,8 +111,6 @@
.search-div {
padding: 12px;
padding-bottom: 2px; /* 本身输入框有10px下边距 */
- // padding-left: 0;
- // padding-top: 2px;
background-color: #fff; /* Safari */
display: flex;
justify-content: space-between;
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/SearchArea/index.vue b/src/components/SearchArea/index.vue
index ba55463..475f4ad 100644
--- a/src/components/SearchArea/index.vue
+++ b/src/components/SearchArea/index.vue
@@ -7,6 +7,7 @@
Star,
} from '@element-plus/icons-vue'
// props参数
+type Size = 'small' | 'large' | 'default' | ''
const props = defineProps({
type: {
type: String,
@@ -27,10 +28,13 @@
size: {
type: String,
default: '',
+ validator: (value: string) => {
+ return ['', 'small', 'large', 'default', 'mini'].includes(value)
+ },
}, // 按钮及输入框大小
icon: {
type: Boolean,
- default: true,
+ default: false,
}, // 是否显示图标
})
// 抛出事件
@@ -76,26 +80,26 @@
-
+
搜索
-
+
高级检索
-
+
重置
-
- 搜索
+
+ 查询
-
+
高级检索
-
+
重置
@@ -107,8 +111,6 @@
.search-div {
padding: 12px;
padding-bottom: 2px; /* 本身输入框有10px下边距 */
- // padding-left: 0;
- // padding-top: 2px;
background-color: #fff; /* Safari */
display: flex;
justify-content: space-between;
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/assets/icons/icon-bench.svg b/src/assets/icons/icon-bench.svg
new file mode 100644
index 0000000..61f1ca1
--- /dev/null
+++ b/src/assets/icons/icon-bench.svg
@@ -0,0 +1 @@
+
diff --git a/src/assets/icons/icon-building.svg b/src/assets/icons/icon-building.svg
new file mode 100644
index 0000000..5f8475f
--- /dev/null
+++ b/src/assets/icons/icon-building.svg
@@ -0,0 +1 @@
+
diff --git a/src/assets/icons/icon-case.svg b/src/assets/icons/icon-case.svg
new file mode 100644
index 0000000..e44c040
--- /dev/null
+++ b/src/assets/icons/icon-case.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/assets/icons/icon-file.svg b/src/assets/icons/icon-file.svg
new file mode 100644
index 0000000..2d4a5fd
--- /dev/null
+++ b/src/assets/icons/icon-file.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/assets/icons/icon-price.svg b/src/assets/icons/icon-price.svg
new file mode 100644
index 0000000..f5cddf6
--- /dev/null
+++ b/src/assets/icons/icon-price.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components.d.ts b/src/components.d.ts
index 0d418d2..b48f4dd 100644
--- a/src/components.d.ts
+++ b/src/components.d.ts
@@ -22,6 +22,7 @@
CopyerDrawer: typeof import('./components/drawer/copyerDrawer.vue')['default']
Copyright: typeof import('./components/Copyright/index.vue')['default']
DeptSelect: typeof import('./components/DeptSelect/index.vue')['default']
+ DetailPage: typeof import('./components/DetailPage/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']
diff --git a/src/components/DetailPage/index.vue b/src/components/DetailPage/index.vue
new file mode 100644
index 0000000..e627083
--- /dev/null
+++ b/src/components/DetailPage/index.vue
@@ -0,0 +1,59 @@
+
+
+
+
+
+
+
diff --git a/src/components/SearchArea/index.vue b/src/components/SearchArea/index.vue
index ba55463..475f4ad 100644
--- a/src/components/SearchArea/index.vue
+++ b/src/components/SearchArea/index.vue
@@ -7,6 +7,7 @@
Star,
} from '@element-plus/icons-vue'
// props参数
+type Size = 'small' | 'large' | 'default' | ''
const props = defineProps({
type: {
type: String,
@@ -27,10 +28,13 @@
size: {
type: String,
default: '',
+ validator: (value: string) => {
+ return ['', 'small', 'large', 'default', 'mini'].includes(value)
+ },
}, // 按钮及输入框大小
icon: {
type: Boolean,
- default: true,
+ default: false,
}, // 是否显示图标
})
// 抛出事件
@@ -76,26 +80,26 @@
-
+
搜索
-
+
高级检索
-
+
重置
-
- 搜索
+
+ 查询
-
+
高级检索
-
+
重置
@@ -107,8 +111,6 @@
.search-div {
padding: 12px;
padding-bottom: 2px; /* 本身输入框有10px下边距 */
- // padding-left: 0;
- // padding-top: 2px;
background-color: #fff; /* Safari */
display: flex;
justify-content: space-between;
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/assets/icons/icon-bench.svg b/src/assets/icons/icon-bench.svg
new file mode 100644
index 0000000..61f1ca1
--- /dev/null
+++ b/src/assets/icons/icon-bench.svg
@@ -0,0 +1 @@
+
diff --git a/src/assets/icons/icon-building.svg b/src/assets/icons/icon-building.svg
new file mode 100644
index 0000000..5f8475f
--- /dev/null
+++ b/src/assets/icons/icon-building.svg
@@ -0,0 +1 @@
+
diff --git a/src/assets/icons/icon-case.svg b/src/assets/icons/icon-case.svg
new file mode 100644
index 0000000..e44c040
--- /dev/null
+++ b/src/assets/icons/icon-case.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/assets/icons/icon-file.svg b/src/assets/icons/icon-file.svg
new file mode 100644
index 0000000..2d4a5fd
--- /dev/null
+++ b/src/assets/icons/icon-file.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/assets/icons/icon-price.svg b/src/assets/icons/icon-price.svg
new file mode 100644
index 0000000..f5cddf6
--- /dev/null
+++ b/src/assets/icons/icon-price.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components.d.ts b/src/components.d.ts
index 0d418d2..b48f4dd 100644
--- a/src/components.d.ts
+++ b/src/components.d.ts
@@ -22,6 +22,7 @@
CopyerDrawer: typeof import('./components/drawer/copyerDrawer.vue')['default']
Copyright: typeof import('./components/Copyright/index.vue')['default']
DeptSelect: typeof import('./components/DeptSelect/index.vue')['default']
+ DetailPage: typeof import('./components/DetailPage/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']
diff --git a/src/components/DetailPage/index.vue b/src/components/DetailPage/index.vue
new file mode 100644
index 0000000..e627083
--- /dev/null
+++ b/src/components/DetailPage/index.vue
@@ -0,0 +1,59 @@
+
+
+
+
+
+
+
diff --git a/src/components/SearchArea/index.vue b/src/components/SearchArea/index.vue
index ba55463..475f4ad 100644
--- a/src/components/SearchArea/index.vue
+++ b/src/components/SearchArea/index.vue
@@ -7,6 +7,7 @@
Star,
} from '@element-plus/icons-vue'
// props参数
+type Size = 'small' | 'large' | 'default' | ''
const props = defineProps({
type: {
type: String,
@@ -27,10 +28,13 @@
size: {
type: String,
default: '',
+ validator: (value: string) => {
+ return ['', 'small', 'large', 'default', 'mini'].includes(value)
+ },
}, // 按钮及输入框大小
icon: {
type: Boolean,
- default: true,
+ default: false,
}, // 是否显示图标
})
// 抛出事件
@@ -76,26 +80,26 @@
-
+
搜索
-
+
高级检索
-
+
重置
-
- 搜索
+
+ 查询
-
+
高级检索
-
+
重置
@@ -107,8 +111,6 @@
.search-div {
padding: 12px;
padding-bottom: 2px; /* 本身输入框有10px下边距 */
- // padding-left: 0;
- // padding-top: 2px;
background-color: #fff; /* Safari */
display: flex;
justify-content: space-between;
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/assets/icons/icon-bench.svg b/src/assets/icons/icon-bench.svg
new file mode 100644
index 0000000..61f1ca1
--- /dev/null
+++ b/src/assets/icons/icon-bench.svg
@@ -0,0 +1 @@
+
diff --git a/src/assets/icons/icon-building.svg b/src/assets/icons/icon-building.svg
new file mode 100644
index 0000000..5f8475f
--- /dev/null
+++ b/src/assets/icons/icon-building.svg
@@ -0,0 +1 @@
+
diff --git a/src/assets/icons/icon-case.svg b/src/assets/icons/icon-case.svg
new file mode 100644
index 0000000..e44c040
--- /dev/null
+++ b/src/assets/icons/icon-case.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/assets/icons/icon-file.svg b/src/assets/icons/icon-file.svg
new file mode 100644
index 0000000..2d4a5fd
--- /dev/null
+++ b/src/assets/icons/icon-file.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/assets/icons/icon-price.svg b/src/assets/icons/icon-price.svg
new file mode 100644
index 0000000..f5cddf6
--- /dev/null
+++ b/src/assets/icons/icon-price.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components.d.ts b/src/components.d.ts
index 0d418d2..b48f4dd 100644
--- a/src/components.d.ts
+++ b/src/components.d.ts
@@ -22,6 +22,7 @@
CopyerDrawer: typeof import('./components/drawer/copyerDrawer.vue')['default']
Copyright: typeof import('./components/Copyright/index.vue')['default']
DeptSelect: typeof import('./components/DeptSelect/index.vue')['default']
+ DetailPage: typeof import('./components/DetailPage/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']
diff --git a/src/components/DetailPage/index.vue b/src/components/DetailPage/index.vue
new file mode 100644
index 0000000..e627083
--- /dev/null
+++ b/src/components/DetailPage/index.vue
@@ -0,0 +1,59 @@
+
+
+
+
+
+
+
diff --git a/src/components/SearchArea/index.vue b/src/components/SearchArea/index.vue
index ba55463..475f4ad 100644
--- a/src/components/SearchArea/index.vue
+++ b/src/components/SearchArea/index.vue
@@ -7,6 +7,7 @@
Star,
} from '@element-plus/icons-vue'
// props参数
+type Size = 'small' | 'large' | 'default' | ''
const props = defineProps({
type: {
type: String,
@@ -27,10 +28,13 @@
size: {
type: String,
default: '',
+ validator: (value: string) => {
+ return ['', 'small', 'large', 'default', 'mini'].includes(value)
+ },
}, // 按钮及输入框大小
icon: {
type: Boolean,
- default: true,
+ default: false,
}, // 是否显示图标
})
// 抛出事件
@@ -76,26 +80,26 @@
-
+
搜索
-
+
高级检索
-
+
重置
-
- 搜索
+
+ 查询
-
+
高级检索
-
+
重置
@@ -107,8 +111,6 @@
.search-div {
padding: 12px;
padding-bottom: 2px; /* 本身输入框有10px下边距 */
- // padding-left: 0;
- // padding-top: 2px;
background-color: #fff; /* Safari */
display: flex;
justify-content: space-between;
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/assets/icons/icon-bench.svg b/src/assets/icons/icon-bench.svg
new file mode 100644
index 0000000..61f1ca1
--- /dev/null
+++ b/src/assets/icons/icon-bench.svg
@@ -0,0 +1 @@
+
diff --git a/src/assets/icons/icon-building.svg b/src/assets/icons/icon-building.svg
new file mode 100644
index 0000000..5f8475f
--- /dev/null
+++ b/src/assets/icons/icon-building.svg
@@ -0,0 +1 @@
+
diff --git a/src/assets/icons/icon-case.svg b/src/assets/icons/icon-case.svg
new file mode 100644
index 0000000..e44c040
--- /dev/null
+++ b/src/assets/icons/icon-case.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/assets/icons/icon-file.svg b/src/assets/icons/icon-file.svg
new file mode 100644
index 0000000..2d4a5fd
--- /dev/null
+++ b/src/assets/icons/icon-file.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/assets/icons/icon-price.svg b/src/assets/icons/icon-price.svg
new file mode 100644
index 0000000..f5cddf6
--- /dev/null
+++ b/src/assets/icons/icon-price.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components.d.ts b/src/components.d.ts
index 0d418d2..b48f4dd 100644
--- a/src/components.d.ts
+++ b/src/components.d.ts
@@ -22,6 +22,7 @@
CopyerDrawer: typeof import('./components/drawer/copyerDrawer.vue')['default']
Copyright: typeof import('./components/Copyright/index.vue')['default']
DeptSelect: typeof import('./components/DeptSelect/index.vue')['default']
+ DetailPage: typeof import('./components/DetailPage/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']
diff --git a/src/components/DetailPage/index.vue b/src/components/DetailPage/index.vue
new file mode 100644
index 0000000..e627083
--- /dev/null
+++ b/src/components/DetailPage/index.vue
@@ -0,0 +1,59 @@
+
+
+
+
+
+
+
diff --git a/src/components/SearchArea/index.vue b/src/components/SearchArea/index.vue
index ba55463..475f4ad 100644
--- a/src/components/SearchArea/index.vue
+++ b/src/components/SearchArea/index.vue
@@ -7,6 +7,7 @@
Star,
} from '@element-plus/icons-vue'
// props参数
+type Size = 'small' | 'large' | 'default' | ''
const props = defineProps({
type: {
type: String,
@@ -27,10 +28,13 @@
size: {
type: String,
default: '',
+ validator: (value: string) => {
+ return ['', 'small', 'large', 'default', 'mini'].includes(value)
+ },
}, // 按钮及输入框大小
icon: {
type: Boolean,
- default: true,
+ default: false,
}, // 是否显示图标
})
// 抛出事件
@@ -76,26 +80,26 @@
-
+
搜索
-
+
高级检索
-
+
重置
-
- 搜索
+
+ 查询
-
+
高级检索
-
+
重置
@@ -107,8 +111,6 @@
.search-div {
padding: 12px;
padding-bottom: 2px; /* 本身输入框有10px下边距 */
- // padding-left: 0;
- // padding-top: 2px;
background-color: #fff; /* Safari */
display: flex;
justify-content: space-between;
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/assets/icons/icon-bench.svg b/src/assets/icons/icon-bench.svg
new file mode 100644
index 0000000..61f1ca1
--- /dev/null
+++ b/src/assets/icons/icon-bench.svg
@@ -0,0 +1 @@
+
diff --git a/src/assets/icons/icon-building.svg b/src/assets/icons/icon-building.svg
new file mode 100644
index 0000000..5f8475f
--- /dev/null
+++ b/src/assets/icons/icon-building.svg
@@ -0,0 +1 @@
+
diff --git a/src/assets/icons/icon-case.svg b/src/assets/icons/icon-case.svg
new file mode 100644
index 0000000..e44c040
--- /dev/null
+++ b/src/assets/icons/icon-case.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/assets/icons/icon-file.svg b/src/assets/icons/icon-file.svg
new file mode 100644
index 0000000..2d4a5fd
--- /dev/null
+++ b/src/assets/icons/icon-file.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/assets/icons/icon-price.svg b/src/assets/icons/icon-price.svg
new file mode 100644
index 0000000..f5cddf6
--- /dev/null
+++ b/src/assets/icons/icon-price.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components.d.ts b/src/components.d.ts
index 0d418d2..b48f4dd 100644
--- a/src/components.d.ts
+++ b/src/components.d.ts
@@ -22,6 +22,7 @@
CopyerDrawer: typeof import('./components/drawer/copyerDrawer.vue')['default']
Copyright: typeof import('./components/Copyright/index.vue')['default']
DeptSelect: typeof import('./components/DeptSelect/index.vue')['default']
+ DetailPage: typeof import('./components/DetailPage/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']
diff --git a/src/components/DetailPage/index.vue b/src/components/DetailPage/index.vue
new file mode 100644
index 0000000..e627083
--- /dev/null
+++ b/src/components/DetailPage/index.vue
@@ -0,0 +1,59 @@
+
+
+
+
+
+
+
diff --git a/src/components/SearchArea/index.vue b/src/components/SearchArea/index.vue
index ba55463..475f4ad 100644
--- a/src/components/SearchArea/index.vue
+++ b/src/components/SearchArea/index.vue
@@ -7,6 +7,7 @@
Star,
} from '@element-plus/icons-vue'
// props参数
+type Size = 'small' | 'large' | 'default' | ''
const props = defineProps({
type: {
type: String,
@@ -27,10 +28,13 @@
size: {
type: String,
default: '',
+ validator: (value: string) => {
+ return ['', 'small', 'large', 'default', 'mini'].includes(value)
+ },
}, // 按钮及输入框大小
icon: {
type: Boolean,
- default: true,
+ default: false,
}, // 是否显示图标
})
// 抛出事件
@@ -76,26 +80,26 @@
-
+
搜索
-
+
高级检索
-
+
重置
-
- 搜索
+
+ 查询
-
+
高级检索
-
+
重置
@@ -107,8 +111,6 @@
.search-div {
padding: 12px;
padding-bottom: 2px; /* 本身输入框有10px下边距 */
- // padding-left: 0;
- // padding-top: 2px;
background-color: #fff; /* Safari */
display: flex;
justify-content: space-between;
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/assets/icons/icon-bench.svg b/src/assets/icons/icon-bench.svg
new file mode 100644
index 0000000..61f1ca1
--- /dev/null
+++ b/src/assets/icons/icon-bench.svg
@@ -0,0 +1 @@
+
diff --git a/src/assets/icons/icon-building.svg b/src/assets/icons/icon-building.svg
new file mode 100644
index 0000000..5f8475f
--- /dev/null
+++ b/src/assets/icons/icon-building.svg
@@ -0,0 +1 @@
+
diff --git a/src/assets/icons/icon-case.svg b/src/assets/icons/icon-case.svg
new file mode 100644
index 0000000..e44c040
--- /dev/null
+++ b/src/assets/icons/icon-case.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/assets/icons/icon-file.svg b/src/assets/icons/icon-file.svg
new file mode 100644
index 0000000..2d4a5fd
--- /dev/null
+++ b/src/assets/icons/icon-file.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/assets/icons/icon-price.svg b/src/assets/icons/icon-price.svg
new file mode 100644
index 0000000..f5cddf6
--- /dev/null
+++ b/src/assets/icons/icon-price.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components.d.ts b/src/components.d.ts
index 0d418d2..b48f4dd 100644
--- a/src/components.d.ts
+++ b/src/components.d.ts
@@ -22,6 +22,7 @@
CopyerDrawer: typeof import('./components/drawer/copyerDrawer.vue')['default']
Copyright: typeof import('./components/Copyright/index.vue')['default']
DeptSelect: typeof import('./components/DeptSelect/index.vue')['default']
+ DetailPage: typeof import('./components/DetailPage/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']
diff --git a/src/components/DetailPage/index.vue b/src/components/DetailPage/index.vue
new file mode 100644
index 0000000..e627083
--- /dev/null
+++ b/src/components/DetailPage/index.vue
@@ -0,0 +1,59 @@
+
+
+
+
+
+
+
diff --git a/src/components/SearchArea/index.vue b/src/components/SearchArea/index.vue
index ba55463..475f4ad 100644
--- a/src/components/SearchArea/index.vue
+++ b/src/components/SearchArea/index.vue
@@ -7,6 +7,7 @@
Star,
} from '@element-plus/icons-vue'
// props参数
+type Size = 'small' | 'large' | 'default' | ''
const props = defineProps({
type: {
type: String,
@@ -27,10 +28,13 @@
size: {
type: String,
default: '',
+ validator: (value: string) => {
+ return ['', 'small', 'large', 'default', 'mini'].includes(value)
+ },
}, // 按钮及输入框大小
icon: {
type: Boolean,
- default: true,
+ default: false,
}, // 是否显示图标
})
// 抛出事件
@@ -76,26 +80,26 @@
-
+
搜索
-
+
高级检索
-
+
重置
-
- 搜索
+
+ 查询
-
+
高级检索
-
+
重置
@@ -107,8 +111,6 @@
.search-div {
padding: 12px;
padding-bottom: 2px; /* 本身输入框有10px下边距 */
- // padding-left: 0;
- // padding-top: 2px;
background-color: #fff; /* Safari */
display: flex;
justify-content: space-between;
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/assets/icons/icon-bench.svg b/src/assets/icons/icon-bench.svg
new file mode 100644
index 0000000..61f1ca1
--- /dev/null
+++ b/src/assets/icons/icon-bench.svg
@@ -0,0 +1 @@
+
diff --git a/src/assets/icons/icon-building.svg b/src/assets/icons/icon-building.svg
new file mode 100644
index 0000000..5f8475f
--- /dev/null
+++ b/src/assets/icons/icon-building.svg
@@ -0,0 +1 @@
+
diff --git a/src/assets/icons/icon-case.svg b/src/assets/icons/icon-case.svg
new file mode 100644
index 0000000..e44c040
--- /dev/null
+++ b/src/assets/icons/icon-case.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/assets/icons/icon-file.svg b/src/assets/icons/icon-file.svg
new file mode 100644
index 0000000..2d4a5fd
--- /dev/null
+++ b/src/assets/icons/icon-file.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/assets/icons/icon-price.svg b/src/assets/icons/icon-price.svg
new file mode 100644
index 0000000..f5cddf6
--- /dev/null
+++ b/src/assets/icons/icon-price.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components.d.ts b/src/components.d.ts
index 0d418d2..b48f4dd 100644
--- a/src/components.d.ts
+++ b/src/components.d.ts
@@ -22,6 +22,7 @@
CopyerDrawer: typeof import('./components/drawer/copyerDrawer.vue')['default']
Copyright: typeof import('./components/Copyright/index.vue')['default']
DeptSelect: typeof import('./components/DeptSelect/index.vue')['default']
+ DetailPage: typeof import('./components/DetailPage/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']
diff --git a/src/components/DetailPage/index.vue b/src/components/DetailPage/index.vue
new file mode 100644
index 0000000..e627083
--- /dev/null
+++ b/src/components/DetailPage/index.vue
@@ -0,0 +1,59 @@
+
+
+
+
+
+
+
diff --git a/src/components/SearchArea/index.vue b/src/components/SearchArea/index.vue
index ba55463..475f4ad 100644
--- a/src/components/SearchArea/index.vue
+++ b/src/components/SearchArea/index.vue
@@ -7,6 +7,7 @@
Star,
} from '@element-plus/icons-vue'
// props参数
+type Size = 'small' | 'large' | 'default' | ''
const props = defineProps({
type: {
type: String,
@@ -27,10 +28,13 @@
size: {
type: String,
default: '',
+ validator: (value: string) => {
+ return ['', 'small', 'large', 'default', 'mini'].includes(value)
+ },
}, // 按钮及输入框大小
icon: {
type: Boolean,
- default: true,
+ default: false,
}, // 是否显示图标
})
// 抛出事件
@@ -76,26 +80,26 @@
-
+
搜索
-
+
高级检索
-
+
重置
-
- 搜索
+
+ 查询
-
+
高级检索
-
+
重置
@@ -107,8 +111,6 @@
.search-div {
padding: 12px;
padding-bottom: 2px; /* 本身输入框有10px下边距 */
- // padding-left: 0;
- // padding-top: 2px;
background-color: #fff; /* Safari */
display: flex;
justify-content: space-between;
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/assets/icons/icon-bench.svg b/src/assets/icons/icon-bench.svg
new file mode 100644
index 0000000..61f1ca1
--- /dev/null
+++ b/src/assets/icons/icon-bench.svg
@@ -0,0 +1 @@
+
diff --git a/src/assets/icons/icon-building.svg b/src/assets/icons/icon-building.svg
new file mode 100644
index 0000000..5f8475f
--- /dev/null
+++ b/src/assets/icons/icon-building.svg
@@ -0,0 +1 @@
+
diff --git a/src/assets/icons/icon-case.svg b/src/assets/icons/icon-case.svg
new file mode 100644
index 0000000..e44c040
--- /dev/null
+++ b/src/assets/icons/icon-case.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/assets/icons/icon-file.svg b/src/assets/icons/icon-file.svg
new file mode 100644
index 0000000..2d4a5fd
--- /dev/null
+++ b/src/assets/icons/icon-file.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/assets/icons/icon-price.svg b/src/assets/icons/icon-price.svg
new file mode 100644
index 0000000..f5cddf6
--- /dev/null
+++ b/src/assets/icons/icon-price.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components.d.ts b/src/components.d.ts
index 0d418d2..b48f4dd 100644
--- a/src/components.d.ts
+++ b/src/components.d.ts
@@ -22,6 +22,7 @@
CopyerDrawer: typeof import('./components/drawer/copyerDrawer.vue')['default']
Copyright: typeof import('./components/Copyright/index.vue')['default']
DeptSelect: typeof import('./components/DeptSelect/index.vue')['default']
+ DetailPage: typeof import('./components/DetailPage/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']
diff --git a/src/components/DetailPage/index.vue b/src/components/DetailPage/index.vue
new file mode 100644
index 0000000..e627083
--- /dev/null
+++ b/src/components/DetailPage/index.vue
@@ -0,0 +1,59 @@
+
+
+
+
+
+
+
diff --git a/src/components/SearchArea/index.vue b/src/components/SearchArea/index.vue
index ba55463..475f4ad 100644
--- a/src/components/SearchArea/index.vue
+++ b/src/components/SearchArea/index.vue
@@ -7,6 +7,7 @@
Star,
} from '@element-plus/icons-vue'
// props参数
+type Size = 'small' | 'large' | 'default' | ''
const props = defineProps({
type: {
type: String,
@@ -27,10 +28,13 @@
size: {
type: String,
default: '',
+ validator: (value: string) => {
+ return ['', 'small', 'large', 'default', 'mini'].includes(value)
+ },
}, // 按钮及输入框大小
icon: {
type: Boolean,
- default: true,
+ default: false,
}, // 是否显示图标
})
// 抛出事件
@@ -76,26 +80,26 @@
-
+
搜索
-
+
高级检索
-
+
重置
-
- 搜索
+
+ 查询
-
+
高级检索
-
+
重置
@@ -107,8 +111,6 @@
.search-div {
padding: 12px;
padding-bottom: 2px; /* 本身输入框有10px下边距 */
- // padding-left: 0;
- // padding-top: 2px;
background-color: #fff; /* Safari */
display: flex;
justify-content: space-between;
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/assets/icons/icon-bench.svg b/src/assets/icons/icon-bench.svg
new file mode 100644
index 0000000..61f1ca1
--- /dev/null
+++ b/src/assets/icons/icon-bench.svg
@@ -0,0 +1 @@
+
diff --git a/src/assets/icons/icon-building.svg b/src/assets/icons/icon-building.svg
new file mode 100644
index 0000000..5f8475f
--- /dev/null
+++ b/src/assets/icons/icon-building.svg
@@ -0,0 +1 @@
+
diff --git a/src/assets/icons/icon-case.svg b/src/assets/icons/icon-case.svg
new file mode 100644
index 0000000..e44c040
--- /dev/null
+++ b/src/assets/icons/icon-case.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/assets/icons/icon-file.svg b/src/assets/icons/icon-file.svg
new file mode 100644
index 0000000..2d4a5fd
--- /dev/null
+++ b/src/assets/icons/icon-file.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/assets/icons/icon-price.svg b/src/assets/icons/icon-price.svg
new file mode 100644
index 0000000..f5cddf6
--- /dev/null
+++ b/src/assets/icons/icon-price.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components.d.ts b/src/components.d.ts
index 0d418d2..b48f4dd 100644
--- a/src/components.d.ts
+++ b/src/components.d.ts
@@ -22,6 +22,7 @@
CopyerDrawer: typeof import('./components/drawer/copyerDrawer.vue')['default']
Copyright: typeof import('./components/Copyright/index.vue')['default']
DeptSelect: typeof import('./components/DeptSelect/index.vue')['default']
+ DetailPage: typeof import('./components/DetailPage/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']
diff --git a/src/components/DetailPage/index.vue b/src/components/DetailPage/index.vue
new file mode 100644
index 0000000..e627083
--- /dev/null
+++ b/src/components/DetailPage/index.vue
@@ -0,0 +1,59 @@
+
+
+
+
+
+
+
diff --git a/src/components/SearchArea/index.vue b/src/components/SearchArea/index.vue
index ba55463..475f4ad 100644
--- a/src/components/SearchArea/index.vue
+++ b/src/components/SearchArea/index.vue
@@ -7,6 +7,7 @@
Star,
} from '@element-plus/icons-vue'
// props参数
+type Size = 'small' | 'large' | 'default' | ''
const props = defineProps({
type: {
type: String,
@@ -27,10 +28,13 @@
size: {
type: String,
default: '',
+ validator: (value: string) => {
+ return ['', 'small', 'large', 'default', 'mini'].includes(value)
+ },
}, // 按钮及输入框大小
icon: {
type: Boolean,
- default: true,
+ default: false,
}, // 是否显示图标
})
// 抛出事件
@@ -76,26 +80,26 @@
-
+
搜索
-
+
高级检索
-
+
重置
-
- 搜索
+
+ 查询
-
+
高级检索
-
+
重置
@@ -107,8 +111,6 @@
.search-div {
padding: 12px;
padding-bottom: 2px; /* 本身输入框有10px下边距 */
- // padding-left: 0;
- // padding-top: 2px;
background-color: #fff; /* Safari */
display: flex;
justify-content: space-between;
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/components/SearchArea/index.vue b/src/components/SearchArea/index.vue
index ba55463..475f4ad 100644
--- a/src/components/SearchArea/index.vue
+++ b/src/components/SearchArea/index.vue
@@ -7,6 +7,7 @@
Star,
} from '@element-plus/icons-vue'
// props参数
+type Size = 'small' | 'large' | 'default' | ''
const props = defineProps({
type: {
type: String,
@@ -27,10 +28,13 @@
size: {
type: String,
default: '',
+ validator: (value: string) => {
+ return ['', 'small', 'large', 'default', 'mini'].includes(value)
+ },
}, // 按钮及输入框大小
icon: {
type: Boolean,
- default: true,
+ default: false,
}, // 是否显示图标
})
// 抛出事件
@@ -76,26 +80,26 @@
-
+
搜索
-
+
高级检索
-
+
重置
-
- 搜索
+
+ 查询
-
+
高级检索
-
+
重置
@@ -107,8 +111,6 @@
.search-div {
padding: 12px;
padding-bottom: 2px; /* 本身输入框有10px下边距 */
- // padding-left: 0;
- // padding-top: 2px;
background-color: #fff; /* Safari */
display: flex;
justify-content: space-between;
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/assets/icons/icon-bench.svg b/src/assets/icons/icon-bench.svg
new file mode 100644
index 0000000..61f1ca1
--- /dev/null
+++ b/src/assets/icons/icon-bench.svg
@@ -0,0 +1 @@
+
diff --git a/src/assets/icons/icon-building.svg b/src/assets/icons/icon-building.svg
new file mode 100644
index 0000000..5f8475f
--- /dev/null
+++ b/src/assets/icons/icon-building.svg
@@ -0,0 +1 @@
+
diff --git a/src/assets/icons/icon-case.svg b/src/assets/icons/icon-case.svg
new file mode 100644
index 0000000..e44c040
--- /dev/null
+++ b/src/assets/icons/icon-case.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/assets/icons/icon-file.svg b/src/assets/icons/icon-file.svg
new file mode 100644
index 0000000..2d4a5fd
--- /dev/null
+++ b/src/assets/icons/icon-file.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/assets/icons/icon-price.svg b/src/assets/icons/icon-price.svg
new file mode 100644
index 0000000..f5cddf6
--- /dev/null
+++ b/src/assets/icons/icon-price.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components.d.ts b/src/components.d.ts
index 0d418d2..b48f4dd 100644
--- a/src/components.d.ts
+++ b/src/components.d.ts
@@ -22,6 +22,7 @@
CopyerDrawer: typeof import('./components/drawer/copyerDrawer.vue')['default']
Copyright: typeof import('./components/Copyright/index.vue')['default']
DeptSelect: typeof import('./components/DeptSelect/index.vue')['default']
+ DetailPage: typeof import('./components/DetailPage/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']
diff --git a/src/components/DetailPage/index.vue b/src/components/DetailPage/index.vue
new file mode 100644
index 0000000..e627083
--- /dev/null
+++ b/src/components/DetailPage/index.vue
@@ -0,0 +1,59 @@
+
+
+
+
+
+
+
diff --git a/src/components/SearchArea/index.vue b/src/components/SearchArea/index.vue
index ba55463..475f4ad 100644
--- a/src/components/SearchArea/index.vue
+++ b/src/components/SearchArea/index.vue
@@ -7,6 +7,7 @@
Star,
} from '@element-plus/icons-vue'
// props参数
+type Size = 'small' | 'large' | 'default' | ''
const props = defineProps({
type: {
type: String,
@@ -27,10 +28,13 @@
size: {
type: String,
default: '',
+ validator: (value: string) => {
+ return ['', 'small', 'large', 'default', 'mini'].includes(value)
+ },
}, // 按钮及输入框大小
icon: {
type: Boolean,
- default: true,
+ default: false,
}, // 是否显示图标
})
// 抛出事件
@@ -76,26 +80,26 @@
-
+
搜索
-
+
高级检索
-
+
重置
-
- 搜索
+
+ 查询
-
+
高级检索
-
+
重置
@@ -107,8 +111,6 @@
.search-div {
padding: 12px;
padding-bottom: 2px; /* 本身输入框有10px下边距 */
- // padding-left: 0;
- // padding-top: 2px;
background-color: #fff; /* Safari */
display: flex;
justify-content: space-between;
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/assets/icons/icon-bench.svg b/src/assets/icons/icon-bench.svg
new file mode 100644
index 0000000..61f1ca1
--- /dev/null
+++ b/src/assets/icons/icon-bench.svg
@@ -0,0 +1 @@
+
diff --git a/src/assets/icons/icon-building.svg b/src/assets/icons/icon-building.svg
new file mode 100644
index 0000000..5f8475f
--- /dev/null
+++ b/src/assets/icons/icon-building.svg
@@ -0,0 +1 @@
+
diff --git a/src/assets/icons/icon-case.svg b/src/assets/icons/icon-case.svg
new file mode 100644
index 0000000..e44c040
--- /dev/null
+++ b/src/assets/icons/icon-case.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/assets/icons/icon-file.svg b/src/assets/icons/icon-file.svg
new file mode 100644
index 0000000..2d4a5fd
--- /dev/null
+++ b/src/assets/icons/icon-file.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/assets/icons/icon-price.svg b/src/assets/icons/icon-price.svg
new file mode 100644
index 0000000..f5cddf6
--- /dev/null
+++ b/src/assets/icons/icon-price.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components.d.ts b/src/components.d.ts
index 0d418d2..b48f4dd 100644
--- a/src/components.d.ts
+++ b/src/components.d.ts
@@ -22,6 +22,7 @@
CopyerDrawer: typeof import('./components/drawer/copyerDrawer.vue')['default']
Copyright: typeof import('./components/Copyright/index.vue')['default']
DeptSelect: typeof import('./components/DeptSelect/index.vue')['default']
+ DetailPage: typeof import('./components/DetailPage/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']
diff --git a/src/components/DetailPage/index.vue b/src/components/DetailPage/index.vue
new file mode 100644
index 0000000..e627083
--- /dev/null
+++ b/src/components/DetailPage/index.vue
@@ -0,0 +1,59 @@
+
+
+
+
+
+
+
diff --git a/src/components/SearchArea/index.vue b/src/components/SearchArea/index.vue
index ba55463..475f4ad 100644
--- a/src/components/SearchArea/index.vue
+++ b/src/components/SearchArea/index.vue
@@ -7,6 +7,7 @@
Star,
} from '@element-plus/icons-vue'
// props参数
+type Size = 'small' | 'large' | 'default' | ''
const props = defineProps({
type: {
type: String,
@@ -27,10 +28,13 @@
size: {
type: String,
default: '',
+ validator: (value: string) => {
+ return ['', 'small', 'large', 'default', 'mini'].includes(value)
+ },
}, // 按钮及输入框大小
icon: {
type: Boolean,
- default: true,
+ default: false,
}, // 是否显示图标
})
// 抛出事件
@@ -76,26 +80,26 @@
-
+
搜索
-
+
高级检索
-
+
重置
-
- 搜索
+
+ 查询
-
+
高级检索
-
+
重置
@@ -107,8 +111,6 @@
.search-div {
padding: 12px;
padding-bottom: 2px; /* 本身输入框有10px下边距 */
- // padding-left: 0;
- // padding-top: 2px;
background-color: #fff; /* Safari */
display: flex;
justify-content: space-between;
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/assets/icons/icon-bench.svg b/src/assets/icons/icon-bench.svg
new file mode 100644
index 0000000..61f1ca1
--- /dev/null
+++ b/src/assets/icons/icon-bench.svg
@@ -0,0 +1 @@
+
diff --git a/src/assets/icons/icon-building.svg b/src/assets/icons/icon-building.svg
new file mode 100644
index 0000000..5f8475f
--- /dev/null
+++ b/src/assets/icons/icon-building.svg
@@ -0,0 +1 @@
+
diff --git a/src/assets/icons/icon-case.svg b/src/assets/icons/icon-case.svg
new file mode 100644
index 0000000..e44c040
--- /dev/null
+++ b/src/assets/icons/icon-case.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/assets/icons/icon-file.svg b/src/assets/icons/icon-file.svg
new file mode 100644
index 0000000..2d4a5fd
--- /dev/null
+++ b/src/assets/icons/icon-file.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/assets/icons/icon-price.svg b/src/assets/icons/icon-price.svg
new file mode 100644
index 0000000..f5cddf6
--- /dev/null
+++ b/src/assets/icons/icon-price.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components.d.ts b/src/components.d.ts
index 0d418d2..b48f4dd 100644
--- a/src/components.d.ts
+++ b/src/components.d.ts
@@ -22,6 +22,7 @@
CopyerDrawer: typeof import('./components/drawer/copyerDrawer.vue')['default']
Copyright: typeof import('./components/Copyright/index.vue')['default']
DeptSelect: typeof import('./components/DeptSelect/index.vue')['default']
+ DetailPage: typeof import('./components/DetailPage/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']
diff --git a/src/components/DetailPage/index.vue b/src/components/DetailPage/index.vue
new file mode 100644
index 0000000..e627083
--- /dev/null
+++ b/src/components/DetailPage/index.vue
@@ -0,0 +1,59 @@
+
+
+
+
+
+
+
diff --git a/src/components/SearchArea/index.vue b/src/components/SearchArea/index.vue
index ba55463..475f4ad 100644
--- a/src/components/SearchArea/index.vue
+++ b/src/components/SearchArea/index.vue
@@ -7,6 +7,7 @@
Star,
} from '@element-plus/icons-vue'
// props参数
+type Size = 'small' | 'large' | 'default' | ''
const props = defineProps({
type: {
type: String,
@@ -27,10 +28,13 @@
size: {
type: String,
default: '',
+ validator: (value: string) => {
+ return ['', 'small', 'large', 'default', 'mini'].includes(value)
+ },
}, // 按钮及输入框大小
icon: {
type: Boolean,
- default: true,
+ default: false,
}, // 是否显示图标
})
// 抛出事件
@@ -76,26 +80,26 @@
-
+
搜索
-
+
高级检索
-
+
重置
-
- 搜索
+
+ 查询
-
+
高级检索
-
+
重置
@@ -107,8 +111,6 @@
.search-div {
padding: 12px;
padding-bottom: 2px; /* 本身输入框有10px下边距 */
- // padding-left: 0;
- // padding-top: 2px;
background-color: #fff; /* Safari */
display: flex;
justify-content: space-between;
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/assets/icons/icon-bench.svg b/src/assets/icons/icon-bench.svg
new file mode 100644
index 0000000..61f1ca1
--- /dev/null
+++ b/src/assets/icons/icon-bench.svg
@@ -0,0 +1 @@
+
diff --git a/src/assets/icons/icon-building.svg b/src/assets/icons/icon-building.svg
new file mode 100644
index 0000000..5f8475f
--- /dev/null
+++ b/src/assets/icons/icon-building.svg
@@ -0,0 +1 @@
+
diff --git a/src/assets/icons/icon-case.svg b/src/assets/icons/icon-case.svg
new file mode 100644
index 0000000..e44c040
--- /dev/null
+++ b/src/assets/icons/icon-case.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/assets/icons/icon-file.svg b/src/assets/icons/icon-file.svg
new file mode 100644
index 0000000..2d4a5fd
--- /dev/null
+++ b/src/assets/icons/icon-file.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/assets/icons/icon-price.svg b/src/assets/icons/icon-price.svg
new file mode 100644
index 0000000..f5cddf6
--- /dev/null
+++ b/src/assets/icons/icon-price.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components.d.ts b/src/components.d.ts
index 0d418d2..b48f4dd 100644
--- a/src/components.d.ts
+++ b/src/components.d.ts
@@ -22,6 +22,7 @@
CopyerDrawer: typeof import('./components/drawer/copyerDrawer.vue')['default']
Copyright: typeof import('./components/Copyright/index.vue')['default']
DeptSelect: typeof import('./components/DeptSelect/index.vue')['default']
+ DetailPage: typeof import('./components/DetailPage/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']
diff --git a/src/components/DetailPage/index.vue b/src/components/DetailPage/index.vue
new file mode 100644
index 0000000..e627083
--- /dev/null
+++ b/src/components/DetailPage/index.vue
@@ -0,0 +1,59 @@
+
+
+
+
+
+
+
diff --git a/src/components/SearchArea/index.vue b/src/components/SearchArea/index.vue
index ba55463..475f4ad 100644
--- a/src/components/SearchArea/index.vue
+++ b/src/components/SearchArea/index.vue
@@ -7,6 +7,7 @@
Star,
} from '@element-plus/icons-vue'
// props参数
+type Size = 'small' | 'large' | 'default' | ''
const props = defineProps({
type: {
type: String,
@@ -27,10 +28,13 @@
size: {
type: String,
default: '',
+ validator: (value: string) => {
+ return ['', 'small', 'large', 'default', 'mini'].includes(value)
+ },
}, // 按钮及输入框大小
icon: {
type: Boolean,
- default: true,
+ default: false,
}, // 是否显示图标
})
// 抛出事件
@@ -76,26 +80,26 @@
-
+
搜索
-
+
高级检索
-
+
重置
-
- 搜索
+
+ 查询
-
+
高级检索
-
+
重置
@@ -107,8 +111,6 @@
.search-div {
padding: 12px;
padding-bottom: 2px; /* 本身输入框有10px下边距 */
- // padding-left: 0;
- // padding-top: 2px;
background-color: #fff; /* Safari */
display: flex;
justify-content: space-between;
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..0763c5a 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)
})
}
// 弹窗初始化
@@ -70,10 +77,11 @@
getuser()
getuser()
getPubList()
- if (row.title === '新增') {
+ 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 = '在使用'
@@ -228,58 +237,61 @@
-
-
+
+
+
+ 提交
+
+
+ 保存
+
+
+ 关闭
+
+
+
-
+
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
@@ -295,7 +307,7 @@
@@ -342,44 +354,11 @@
-
+
diff --git a/src/components/SearchArea/index.vue b/src/components/SearchArea/index.vue
index ba55463..475f4ad 100644
--- a/src/components/SearchArea/index.vue
+++ b/src/components/SearchArea/index.vue
@@ -7,6 +7,7 @@
Star,
} from '@element-plus/icons-vue'
// props参数
+type Size = 'small' | 'large' | 'default' | ''
const props = defineProps({
type: {
type: String,
@@ -27,10 +28,13 @@
size: {
type: String,
default: '',
+ validator: (value: string) => {
+ return ['', 'small', 'large', 'default', 'mini'].includes(value)
+ },
}, // 按钮及输入框大小
icon: {
type: Boolean,
- default: true,
+ default: false,
}, // 是否显示图标
})
// 抛出事件
@@ -76,26 +80,26 @@
-
+
搜索
-
+
高级检索
-
+
重置
-
- 搜索
+
+ 查询
-
+
高级检索
-
+
重置
@@ -107,8 +111,6 @@
.search-div {
padding: 12px;
padding-bottom: 2px; /* 本身输入框有10px下边距 */
- // padding-left: 0;
- // padding-top: 2px;
background-color: #fff; /* Safari */
display: flex;
justify-content: space-between;
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..0763c5a 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)
})
}
// 弹窗初始化
@@ -70,10 +77,11 @@
getuser()
getuser()
getPubList()
- if (row.title === '新增') {
+ 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 = '在使用'
@@ -228,58 +237,61 @@
-
-
+
+
+
+ 提交
+
+
+ 保存
+
+
+ 关闭
+
+
+
-
+
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
@@ -295,7 +307,7 @@
@@ -342,44 +354,11 @@
-
+
diff --git a/src/components/SearchArea/index.vue b/src/components/SearchArea/index.vue
index ba55463..475f4ad 100644
--- a/src/components/SearchArea/index.vue
+++ b/src/components/SearchArea/index.vue
@@ -7,6 +7,7 @@
Star,
} from '@element-plus/icons-vue'
// props参数
+type Size = 'small' | 'large' | 'default' | ''
const props = defineProps({
type: {
type: String,
@@ -27,10 +28,13 @@
size: {
type: String,
default: '',
+ validator: (value: string) => {
+ return ['', 'small', 'large', 'default', 'mini'].includes(value)
+ },
}, // 按钮及输入框大小
icon: {
type: Boolean,
- default: true,
+ default: false,
}, // 是否显示图标
})
// 抛出事件
@@ -76,26 +80,26 @@
-
+
搜索
-
+
高级检索
-
+
重置
-
- 搜索
+
+ 查询
-
+
高级检索
-
+
重置
@@ -107,8 +111,6 @@
.search-div {
padding: 12px;
padding-bottom: 2px; /* 本身输入框有10px下边距 */
- // padding-left: 0;
- // padding-top: 2px;
background-color: #fff; /* Safari */
display: flex;
justify-content: space-between;
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..0763c5a 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)
})
}
// 弹窗初始化
@@ -70,10 +77,11 @@
getuser()
getuser()
getPubList()
- if (row.title === '新增') {
+ 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 = '在使用'
@@ -228,58 +237,61 @@
-
-
+
+
+
+ 提交
+
+
+ 保存
+
+
+ 关闭
+
+
+
-
+
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
@@ -295,7 +307,7 @@
@@ -342,44 +354,11 @@
-
+
@@ -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/assets/icons/icon-bench.svg b/src/assets/icons/icon-bench.svg
new file mode 100644
index 0000000..61f1ca1
--- /dev/null
+++ b/src/assets/icons/icon-bench.svg
@@ -0,0 +1 @@
+
diff --git a/src/assets/icons/icon-building.svg b/src/assets/icons/icon-building.svg
new file mode 100644
index 0000000..5f8475f
--- /dev/null
+++ b/src/assets/icons/icon-building.svg
@@ -0,0 +1 @@
+
diff --git a/src/assets/icons/icon-case.svg b/src/assets/icons/icon-case.svg
new file mode 100644
index 0000000..e44c040
--- /dev/null
+++ b/src/assets/icons/icon-case.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/assets/icons/icon-file.svg b/src/assets/icons/icon-file.svg
new file mode 100644
index 0000000..2d4a5fd
--- /dev/null
+++ b/src/assets/icons/icon-file.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/assets/icons/icon-price.svg b/src/assets/icons/icon-price.svg
new file mode 100644
index 0000000..f5cddf6
--- /dev/null
+++ b/src/assets/icons/icon-price.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components.d.ts b/src/components.d.ts
index 0d418d2..b48f4dd 100644
--- a/src/components.d.ts
+++ b/src/components.d.ts
@@ -22,6 +22,7 @@
CopyerDrawer: typeof import('./components/drawer/copyerDrawer.vue')['default']
Copyright: typeof import('./components/Copyright/index.vue')['default']
DeptSelect: typeof import('./components/DeptSelect/index.vue')['default']
+ DetailPage: typeof import('./components/DetailPage/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']
diff --git a/src/components/DetailPage/index.vue b/src/components/DetailPage/index.vue
new file mode 100644
index 0000000..e627083
--- /dev/null
+++ b/src/components/DetailPage/index.vue
@@ -0,0 +1,59 @@
+
+
+
+
+
+
+
diff --git a/src/components/SearchArea/index.vue b/src/components/SearchArea/index.vue
index ba55463..475f4ad 100644
--- a/src/components/SearchArea/index.vue
+++ b/src/components/SearchArea/index.vue
@@ -7,6 +7,7 @@
Star,
} from '@element-plus/icons-vue'
// props参数
+type Size = 'small' | 'large' | 'default' | ''
const props = defineProps({
type: {
type: String,
@@ -27,10 +28,13 @@
size: {
type: String,
default: '',
+ validator: (value: string) => {
+ return ['', 'small', 'large', 'default', 'mini'].includes(value)
+ },
}, // 按钮及输入框大小
icon: {
type: Boolean,
- default: true,
+ default: false,
}, // 是否显示图标
})
// 抛出事件
@@ -76,26 +80,26 @@
-
+
搜索
-
+
高级检索
-
+
重置
-
- 搜索
+
+ 查询
-
+
高级检索
-
+
重置
@@ -107,8 +111,6 @@
.search-div {
padding: 12px;
padding-bottom: 2px; /* 本身输入框有10px下边距 */
- // padding-left: 0;
- // padding-top: 2px;
background-color: #fff; /* Safari */
display: flex;
justify-content: space-between;
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..0763c5a 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)
})
}
// 弹窗初始化
@@ -70,10 +77,11 @@
getuser()
getuser()
getPubList()
- if (row.title === '新增') {
+ 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 = '在使用'
@@ -228,58 +237,61 @@
-
-
+
+
+
+ 提交
+
+
+ 保存
+
+
+ 关闭
+
+
+
-
+
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
@@ -295,7 +307,7 @@
@@ -342,44 +354,11 @@
-
+
@@ -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/assets/icons/icon-bench.svg b/src/assets/icons/icon-bench.svg
new file mode 100644
index 0000000..61f1ca1
--- /dev/null
+++ b/src/assets/icons/icon-bench.svg
@@ -0,0 +1 @@
+
diff --git a/src/assets/icons/icon-building.svg b/src/assets/icons/icon-building.svg
new file mode 100644
index 0000000..5f8475f
--- /dev/null
+++ b/src/assets/icons/icon-building.svg
@@ -0,0 +1 @@
+
diff --git a/src/assets/icons/icon-case.svg b/src/assets/icons/icon-case.svg
new file mode 100644
index 0000000..e44c040
--- /dev/null
+++ b/src/assets/icons/icon-case.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/assets/icons/icon-file.svg b/src/assets/icons/icon-file.svg
new file mode 100644
index 0000000..2d4a5fd
--- /dev/null
+++ b/src/assets/icons/icon-file.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/assets/icons/icon-price.svg b/src/assets/icons/icon-price.svg
new file mode 100644
index 0000000..f5cddf6
--- /dev/null
+++ b/src/assets/icons/icon-price.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components.d.ts b/src/components.d.ts
index 0d418d2..b48f4dd 100644
--- a/src/components.d.ts
+++ b/src/components.d.ts
@@ -22,6 +22,7 @@
CopyerDrawer: typeof import('./components/drawer/copyerDrawer.vue')['default']
Copyright: typeof import('./components/Copyright/index.vue')['default']
DeptSelect: typeof import('./components/DeptSelect/index.vue')['default']
+ DetailPage: typeof import('./components/DetailPage/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']
diff --git a/src/components/DetailPage/index.vue b/src/components/DetailPage/index.vue
new file mode 100644
index 0000000..e627083
--- /dev/null
+++ b/src/components/DetailPage/index.vue
@@ -0,0 +1,59 @@
+
+
+
+
+
+
+
diff --git a/src/components/SearchArea/index.vue b/src/components/SearchArea/index.vue
index ba55463..475f4ad 100644
--- a/src/components/SearchArea/index.vue
+++ b/src/components/SearchArea/index.vue
@@ -7,6 +7,7 @@
Star,
} from '@element-plus/icons-vue'
// props参数
+type Size = 'small' | 'large' | 'default' | ''
const props = defineProps({
type: {
type: String,
@@ -27,10 +28,13 @@
size: {
type: String,
default: '',
+ validator: (value: string) => {
+ return ['', 'small', 'large', 'default', 'mini'].includes(value)
+ },
}, // 按钮及输入框大小
icon: {
type: Boolean,
- default: true,
+ default: false,
}, // 是否显示图标
})
// 抛出事件
@@ -76,26 +80,26 @@
-
+
搜索
-
+
高级检索
-
+
重置
-
- 搜索
+
+ 查询
-
+
高级检索
-
+
重置
@@ -107,8 +111,6 @@
.search-div {
padding: 12px;
padding-bottom: 2px; /* 本身输入框有10px下边距 */
- // padding-left: 0;
- // padding-top: 2px;
background-color: #fff; /* Safari */
display: flex;
justify-content: space-between;
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..0763c5a 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)
})
}
// 弹窗初始化
@@ -70,10 +77,11 @@
getuser()
getuser()
getPubList()
- if (row.title === '新增') {
+ 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 = '在使用'
@@ -228,58 +237,61 @@
-
-
+
+
+
+ 提交
+
+
+ 保存
+
+
+ 关闭
+
+
+
-
+
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
@@ -295,7 +307,7 @@
@@ -342,44 +354,11 @@
-
+
@@ -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/components/SearchArea/index.vue b/src/components/SearchArea/index.vue
index ba55463..475f4ad 100644
--- a/src/components/SearchArea/index.vue
+++ b/src/components/SearchArea/index.vue
@@ -7,6 +7,7 @@
Star,
} from '@element-plus/icons-vue'
// props参数
+type Size = 'small' | 'large' | 'default' | ''
const props = defineProps({
type: {
type: String,
@@ -27,10 +28,13 @@
size: {
type: String,
default: '',
+ validator: (value: string) => {
+ return ['', 'small', 'large', 'default', 'mini'].includes(value)
+ },
}, // 按钮及输入框大小
icon: {
type: Boolean,
- default: true,
+ default: false,
}, // 是否显示图标
})
// 抛出事件
@@ -76,26 +80,26 @@
-
+
搜索
-
+
高级检索
-
+
重置
-
- 搜索
+
+ 查询
-
+
高级检索
-
+
重置
@@ -107,8 +111,6 @@
.search-div {
padding: 12px;
padding-bottom: 2px; /* 本身输入框有10px下边距 */
- // padding-left: 0;
- // padding-top: 2px;
background-color: #fff; /* Safari */
display: flex;
justify-content: space-between;
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..0763c5a 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)
})
}
// 弹窗初始化
@@ -70,10 +77,11 @@
getuser()
getuser()
getPubList()
- if (row.title === '新增') {
+ 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 = '在使用'
@@ -228,58 +237,61 @@
-
-
+
+
+
+ 提交
+
+
+ 保存
+
+
+ 关闭
+
+
+
-
+
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
@@ -295,7 +307,7 @@
@@ -342,44 +354,11 @@
-
+
@@ -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/components/SearchArea/index.vue b/src/components/SearchArea/index.vue
index ba55463..475f4ad 100644
--- a/src/components/SearchArea/index.vue
+++ b/src/components/SearchArea/index.vue
@@ -7,6 +7,7 @@
Star,
} from '@element-plus/icons-vue'
// props参数
+type Size = 'small' | 'large' | 'default' | ''
const props = defineProps({
type: {
type: String,
@@ -27,10 +28,13 @@
size: {
type: String,
default: '',
+ validator: (value: string) => {
+ return ['', 'small', 'large', 'default', 'mini'].includes(value)
+ },
}, // 按钮及输入框大小
icon: {
type: Boolean,
- default: true,
+ default: false,
}, // 是否显示图标
})
// 抛出事件
@@ -76,26 +80,26 @@
-
+
搜索
-
+
高级检索
-
+
重置
-
- 搜索
+
+ 查询
-
+
高级检索
-
+
重置
@@ -107,8 +111,6 @@
.search-div {
padding: 12px;
padding-bottom: 2px; /* 本身输入框有10px下边距 */
- // padding-left: 0;
- // padding-top: 2px;
background-color: #fff; /* Safari */
display: flex;
justify-content: space-between;
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..0763c5a 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)
})
}
// 弹窗初始化
@@ -70,10 +77,11 @@
getuser()
getuser()
getPubList()
- if (row.title === '新增') {
+ 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 = '在使用'
@@ -228,58 +237,61 @@
-
-
+
+
+
+ 提交
+
+
+ 保存
+
+
+ 关闭
+
+
+
-
+
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
@@ -295,7 +307,7 @@
@@ -342,44 +354,11 @@
-
+
@@ -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/components/SearchArea/index.vue b/src/components/SearchArea/index.vue
index ba55463..475f4ad 100644
--- a/src/components/SearchArea/index.vue
+++ b/src/components/SearchArea/index.vue
@@ -7,6 +7,7 @@
Star,
} from '@element-plus/icons-vue'
// props参数
+type Size = 'small' | 'large' | 'default' | ''
const props = defineProps({
type: {
type: String,
@@ -27,10 +28,13 @@
size: {
type: String,
default: '',
+ validator: (value: string) => {
+ return ['', 'small', 'large', 'default', 'mini'].includes(value)
+ },
}, // 按钮及输入框大小
icon: {
type: Boolean,
- default: true,
+ default: false,
}, // 是否显示图标
})
// 抛出事件
@@ -76,26 +80,26 @@
-
+
搜索
-
+
高级检索
-
+
重置
-
- 搜索
+
+ 查询
-
+
高级检索
-
+
重置
@@ -107,8 +111,6 @@
.search-div {
padding: 12px;
padding-bottom: 2px; /* 本身输入框有10px下边距 */
- // padding-left: 0;
- // padding-top: 2px;
background-color: #fff; /* Safari */
display: flex;
justify-content: space-between;
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..0763c5a 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)
})
}
// 弹窗初始化
@@ -70,10 +77,11 @@
getuser()
getuser()
getPubList()
- if (row.title === '新增') {
+ 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 = '在使用'
@@ -228,58 +237,61 @@
-
-
+
+
+
+ 提交
+
+
+ 保存
+
+
+ 关闭
+
+
+
-
+
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
@@ -295,7 +307,7 @@
@@ -342,44 +354,11 @@
-
+
@@ -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/components/SearchArea/index.vue b/src/components/SearchArea/index.vue
index ba55463..475f4ad 100644
--- a/src/components/SearchArea/index.vue
+++ b/src/components/SearchArea/index.vue
@@ -7,6 +7,7 @@
Star,
} from '@element-plus/icons-vue'
// props参数
+type Size = 'small' | 'large' | 'default' | ''
const props = defineProps({
type: {
type: String,
@@ -27,10 +28,13 @@
size: {
type: String,
default: '',
+ validator: (value: string) => {
+ return ['', 'small', 'large', 'default', 'mini'].includes(value)
+ },
}, // 按钮及输入框大小
icon: {
type: Boolean,
- default: true,
+ default: false,
}, // 是否显示图标
})
// 抛出事件
@@ -76,26 +80,26 @@
-
+
搜索
-
+
高级检索
-
+
重置
-
- 搜索
+
+ 查询
-
+
高级检索
-
+
重置
@@ -107,8 +111,6 @@
.search-div {
padding: 12px;
padding-bottom: 2px; /* 本身输入框有10px下边距 */
- // padding-left: 0;
- // padding-top: 2px;
background-color: #fff; /* Safari */
display: flex;
justify-content: space-between;
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..0763c5a 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)
})
}
// 弹窗初始化
@@ -70,10 +77,11 @@
getuser()
getuser()
getPubList()
- if (row.title === '新增') {
+ 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 = '在使用'
@@ -228,58 +237,61 @@
-
-
+
+
+
+ 提交
+
+
+ 保存
+
+
+ 关闭
+
+
+
-
+
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
@@ -295,7 +307,7 @@
@@ -342,44 +354,11 @@
-
+
@@ -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/components/SearchArea/index.vue b/src/components/SearchArea/index.vue
index ba55463..475f4ad 100644
--- a/src/components/SearchArea/index.vue
+++ b/src/components/SearchArea/index.vue
@@ -7,6 +7,7 @@
Star,
} from '@element-plus/icons-vue'
// props参数
+type Size = 'small' | 'large' | 'default' | ''
const props = defineProps({
type: {
type: String,
@@ -27,10 +28,13 @@
size: {
type: String,
default: '',
+ validator: (value: string) => {
+ return ['', 'small', 'large', 'default', 'mini'].includes(value)
+ },
}, // 按钮及输入框大小
icon: {
type: Boolean,
- default: true,
+ default: false,
}, // 是否显示图标
})
// 抛出事件
@@ -76,26 +80,26 @@
-
+
搜索
-
+
高级检索
-
+
重置
-
- 搜索
+
+ 查询
-
+
高级检索
-
+
重置
@@ -107,8 +111,6 @@
.search-div {
padding: 12px;
padding-bottom: 2px; /* 本身输入框有10px下边距 */
- // padding-left: 0;
- // padding-top: 2px;
background-color: #fff; /* Safari */
display: flex;
justify-content: space-between;
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..0763c5a 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)
})
}
// 弹窗初始化
@@ -70,10 +77,11 @@
getuser()
getuser()
getPubList()
- if (row.title === '新增') {
+ 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 = '在使用'
@@ -228,58 +237,61 @@
-
-
+
+
+
+ 提交
+
+
+ 保存
+
+
+ 关闭
+
+
+
-
+
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
@@ -295,7 +307,7 @@
@@ -342,44 +354,11 @@
-
+
@@ -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/components/SearchArea/index.vue b/src/components/SearchArea/index.vue
index ba55463..475f4ad 100644
--- a/src/components/SearchArea/index.vue
+++ b/src/components/SearchArea/index.vue
@@ -7,6 +7,7 @@
Star,
} from '@element-plus/icons-vue'
// props参数
+type Size = 'small' | 'large' | 'default' | ''
const props = defineProps({
type: {
type: String,
@@ -27,10 +28,13 @@
size: {
type: String,
default: '',
+ validator: (value: string) => {
+ return ['', 'small', 'large', 'default', 'mini'].includes(value)
+ },
}, // 按钮及输入框大小
icon: {
type: Boolean,
- default: true,
+ default: false,
}, // 是否显示图标
})
// 抛出事件
@@ -76,26 +80,26 @@
-
+
搜索
-
+
高级检索
-
+
重置
-
- 搜索
+
+ 查询
-
+
高级检索
-
+
重置
@@ -107,8 +111,6 @@
.search-div {
padding: 12px;
padding-bottom: 2px; /* 本身输入框有10px下边距 */
- // padding-left: 0;
- // padding-top: 2px;
background-color: #fff; /* Safari */
display: flex;
justify-content: space-between;
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..0763c5a 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)
})
}
// 弹窗初始化
@@ -70,10 +77,11 @@
getuser()
getuser()
getPubList()
- if (row.title === '新增') {
+ 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 = '在使用'
@@ -228,58 +237,61 @@
-
-
+
+
+
+ 提交
+
+
+ 保存
+
+
+ 关闭
+
+
+
-
+
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
@@ -295,7 +307,7 @@
@@ -342,44 +354,11 @@
-
+
@@ -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/components/SearchArea/index.vue b/src/components/SearchArea/index.vue
index ba55463..475f4ad 100644
--- a/src/components/SearchArea/index.vue
+++ b/src/components/SearchArea/index.vue
@@ -7,6 +7,7 @@
Star,
} from '@element-plus/icons-vue'
// props参数
+type Size = 'small' | 'large' | 'default' | ''
const props = defineProps({
type: {
type: String,
@@ -27,10 +28,13 @@
size: {
type: String,
default: '',
+ validator: (value: string) => {
+ return ['', 'small', 'large', 'default', 'mini'].includes(value)
+ },
}, // 按钮及输入框大小
icon: {
type: Boolean,
- default: true,
+ default: false,
}, // 是否显示图标
})
// 抛出事件
@@ -76,26 +80,26 @@
-
+
搜索
-
+
高级检索
-
+
重置
-
- 搜索
+
+ 查询
-
+
高级检索
-
+
重置
@@ -107,8 +111,6 @@
.search-div {
padding: 12px;
padding-bottom: 2px; /* 本身输入框有10px下边距 */
- // padding-left: 0;
- // padding-top: 2px;
background-color: #fff; /* Safari */
display: flex;
justify-content: space-between;
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..0763c5a 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)
})
}
// 弹窗初始化
@@ -70,10 +77,11 @@
getuser()
getuser()
getPubList()
- if (row.title === '新增') {
+ 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 = '在使用'
@@ -228,58 +237,61 @@
-
-
+
+
+
+ 提交
+
+
+ 保存
+
+
+ 关闭
+
+
+
-
+
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
@@ -295,7 +307,7 @@
@@ -342,44 +354,11 @@
-
+
@@ -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 @@