+
+
+ {{ nodeConfig.nodeName }}
+
+ {{ nodeConfig.type === 1 ? '' : '' }}
+
- {{ nodeConfig.nodeName }}
-
-
-
-
-
- 请选择{{ placeholderList[nodeConfig.type] }}
-
- {{ setApproverStr(nodeConfig) }}
+ {{ nodeConfig.nodeName }}
+
+
+
+
+
+ 请选择{{ defaultText }}
+ {{ showText }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <
+
+
+
+ {{ item.nodeName }}
+ 优先级{{ item.priorityLevel }}
+
+
+
+ >
+
+
+ {{ $func.conditionStr(nodeConfig, index) }}
+
+
+
+
+
+
-
-
- 请选择{{ placeholderList[nodeConfig.type] }}
-
- {{ setApproverStr(nodeConfig) }}
-
-
-
-
-
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
- <
-
-
- {{ item.nodeName }}
- 优先级{{ item.priorityLevel }}
-
-
-
- >
-
-
- {{ conditionStr(item, index) }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ approverConfig.nodeName }}
-
-
-
-
-
-
-
-
-
-
- {{ item.label }}
- ({{ item.mark }})
-
-
-
-
-
-
- 连续多级部门主管(按照组织架构,发起人向上的各级主管依次审批)
-
-
-
- 直到发起人向上的
-
-
-
-
-
-
- 直到
-
-
-
-
-
-
-
-
-
-
- 部门主管
-
-
- 审批角色
-
-
- 指定用户
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 连续多级部门主管
-
-
- 抄送角色
-
-
- 指定用户
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 按组织架构,发起人向上的各级主管依次抄送
-
-
-
- 直到发起人向上的
-
-
-
-
-
-
- 直到
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 其他情况
-
-
-
-
-
-
-
-
- 当
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 添加条件
-
-
-
-
-
-
-
-
-
-
-
-
- 添加条件组
-
-
-
-
-
-
-
+
-
diff --git a/src/components/workFlow/selectBox.vue b/src/components/workFlow/selectBox.vue
new file mode 100644
index 0000000..e4f2c55
--- /dev/null
+++ b/src/components/workFlow/selectBox.vue
@@ -0,0 +1,84 @@
+
+
+
+
+
+
+
diff --git a/src/components/workFlow/selectResult.vue b/src/components/workFlow/selectResult.vue
new file mode 100644
index 0000000..21c2de5
--- /dev/null
+++ b/src/components/workFlow/selectResult.vue
@@ -0,0 +1,94 @@
+
+
+
+
+
+ 已选({{ total }})
+ 清空
+
+
+
+
+ -
+
+ {{ item.roleName }}
+
+
+
+
+ -
+
+ {{ item.departmentName }}
+
+
+
+
+ -
+
+ {{ item.employeeName }}
+
+
+
+
+
+
+
+
+
diff --git a/src/components/workFlow/workFlow.vue b/src/components/workFlow/workFlow.vue
deleted file mode 100644
index 439b560..0000000
--- a/src/components/workFlow/workFlow.vue
+++ /dev/null
@@ -1,764 +0,0 @@
-
-
-
-
-
-
-
diff --git a/src/css/override-element-ui.css b/src/css/override-element-ui.css
index d772692..4a931e9 100644
--- a/src/css/override-element-ui.css
+++ b/src/css/override-element-ui.css
@@ -47,6 +47,7 @@
.demo-drawer__footer {
padding: 10px 30px !important;
border-top: 1px solid #f2f2f2 !important;
+ margin-top: 32px;
}
.demo-drawer__footer .el-button {
diff --git a/src/css/workflow.css b/src/css/workflow.css
index 26ba1e6..43a0bf8 100644
--- a/src/css/workflow.css
+++ b/src/css/workflow.css
@@ -1099,7 +1099,9 @@
.zoom {
display: flex;
- position: fixed;
+
+ /* position: fixed; */
+ position: relative;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
diff --git a/src/plugins/api.js b/src/plugins/api.js
index b3b9e24..f736077 100644
--- a/src/plugins/api.js
+++ b/src/plugins/api.js
@@ -1,9 +1,3 @@
-/*
- * @Date: 2022-08-25 14:06:59
- * @LastEditors: StavinLi 495727881@qq.com
- * @LastEditTime: 2022-09-21 14:36:58
- * @FilePath: /Workflow-Vue3/src/plugins/api.js
- */
import http from '@/plugins/axios'
const baseUrl = import.meta.env.BASE_URL
diff --git a/src/plugins/preload.js b/src/plugins/preload.js
index b0281d9..fc008ff 100644
--- a/src/plugins/preload.js
+++ b/src/plugins/preload.js
@@ -37,6 +37,7 @@
document.cookie = `${name[i]}=''; path=/; expires=${myDate.toGMTString()}`
}
},
+ // 讲负责人的姓名挑出来做成字符串
arrToStr(arr) {
if (arr) {
return arr.map((item) => { return item.name }).toString()
@@ -58,53 +59,79 @@
})
arr.splice(includesIndex, 1)
},
+ // 设置审批节点的文字
setApproverStr(nodeConfig) {
- if (nodeConfig.settype == 1) {
- if (nodeConfig.nodeUserList.length == 1) {
- return nodeConfig.nodeUserList[0].name
+ console.log(nodeConfig)
+ let tempValue = '会签'
+ let strPeople = ' '
+ if (nodeConfig.selectCustomApprovalType === 'huoqian') {
+ tempValue = '或签'
+ }
+ if (nodeConfig.selectCustomApprovalMethod === 'normal') {
+ if (nodeConfig.nodeUserList.length === 1) {
+ strPeople = `由${nodeConfig.nodeUserList[0].name}人负责`
}
else if (nodeConfig.nodeUserList.length > 1) {
- if (nodeConfig.examineMode == 1) {
- return this.arrToStr(nodeConfig.nodeUserList)
- }
- else if (nodeConfig.examineMode == 2) {
- return `${nodeConfig.nodeUserList.length}人会签`
- }
+ strPeople = `由${this.arrToStr(nodeConfig.nodeUserList)}人负责(${tempValue})`
}
+ return strPeople
}
- else if (nodeConfig.settype == 2) {
- const level = nodeConfig.directorLevel == 1 ? '直接主管' : `第${nodeConfig.directorLevel}级主管`
- if (nodeConfig.examineMode == 1) {
- return level
+ else if (nodeConfig.selectCustomApprovalMethod === 'stepBYstep') {
+ let strPeople = ' '
+ if (nodeConfig.nodeUserList.length === 1) {
+ strPeople = `由${nodeConfig.nodeUserList[0].name}人负责(逐级审批)`
}
- else if (nodeConfig.examineMode == 2) {
- return `${level}会签`
+ else if (nodeConfig.nodeUserList.length > 1) {
+ strPeople = `由${this.arrToStr(nodeConfig.nodeUserList)}人负责(逐级审批-${tempValue})`
}
+ return strPeople
}
- else if (nodeConfig.settype == 4) {
- if (nodeConfig.selectRange == 1) {
- return '发起人自选'
- }
- else {
- if (nodeConfig.nodeUserList.length > 0) {
- if (nodeConfig.selectRange == 2) {
- return '发起人自选'
- }
- else {
- return `发起人从${nodeConfig.nodeUserList[0].name}中自选`
- }
- }
- else {
- return ''
- }
- }
- }
- else if (nodeConfig.settype == 5) {
- return '发起人自己'
- }
- else if (nodeConfig.settype == 7) {
- return `从直接主管到通讯录中级别最高的第${nodeConfig.examineEndDirectorLevel}个层级主管`
- }
+ // if (nodeConfig.settype == 1) {
+ // if (nodeConfig.nodeUserList.length == 1) {
+ // return nodeConfig.nodeUserList[0].name
+ // }
+ // else if (nodeConfig.nodeUserList.length > 1) {
+ // if (nodeConfig.examineMode == 1) {
+ // return this.arrToStr(nodeConfig.nodeUserList)
+ // }
+ // else if (nodeConfig.examineMode == 2) {
+ // return `${nodeConfig.nodeUserList.length}人会签`
+ // }
+ // }
+ // }
+ // else if (nodeConfig.settype == 2) {
+ // const level = nodeConfig.directorLevel == 1 ? '直接主管' : `第${nodeConfig.directorLevel}级主管`
+ // if (nodeConfig.examineMode == 1) {
+ // return level
+ // }
+ // else if (nodeConfig.examineMode == 2) {
+ // return `${level}会签`
+ // }
+ // }
+ // else if (nodeConfig.settype == 4) {
+ // if (nodeConfig.selectRange == 1) {
+ // return '发起人自选'
+ // }
+ // else {
+ // if (nodeConfig.nodeUserList.length > 0) {
+ // if (nodeConfig.selectRange == 2) {
+ // return '发起人自选'
+ // }
+ // else {
+ // return `发起人从${nodeConfig.nodeUserList[0].name}中自选`
+ // }
+ // }
+ // else {
+ // return ''
+ // }
+ // }
+ // }
+ // else if (nodeConfig.settype == 5) {
+ // return '发起人自己'
+ // }
+ // else if (nodeConfig.settype == 7) {
+ // return `从直接主管到通讯录中级别最高的第${nodeConfig.examineEndDirectorLevel}个层级主管`
+ // }
},
dealStr(str, obj) {
const arr = []
@@ -152,7 +179,9 @@
}
},
copyerStr(nodeConfig) {
+ console.log(nodeConfig.nodeUserList)
if (nodeConfig.nodeUserList.length != 0) {
+ console.log('copyerStr')
return this.arrToStr(nodeConfig.nodeUserList)
}
else {
diff --git a/src/store/modules/workFlow.ts b/src/store/modules/workFlow.ts
index 956b386..ba7d7a0 100644
--- a/src/store/modules/workFlow.ts
+++ b/src/store/modules/workFlow.ts
@@ -3,12 +3,12 @@
'workFlow',
{
state: () => ({
- tableId: '',
+ tableId: '', // 审批id
isTried: false,
promoterDrawer: false,
flowPermission1: {},
- approverDrawer: false,
- approverConfig1: {},
+ approverDrawer: false, // 审批抽屉显示隐藏
+ approverConfig1: {}, // 审批设置
copyerDrawer: false,
copyerConfig1: {},
conditionDrawer: false,
@@ -29,9 +29,11 @@
setFlowPermission(payload: object) {
this.flowPermission1 = payload
},
+ // 审批抽屉显隐
setApprover(payload: boolean) {
this.approverDrawer = payload
},
+ // 审批设置
setApproverConfig(payload: object) {
this.approverConfig1 = payload
},
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 3149996..dd44935 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -606,24 +606,6 @@
get-tsconfig: 4.2.0
dev: true
- /@esbuild/android-arm/0.15.12:
- resolution: {integrity: sha512-IC7TqIqiyE0MmvAhWkl/8AEzpOtbhRNDo7aph47We1NbE5w2bt/Q+giAhe0YYeVpYnIhGMcuZY92qDK6dQauvA==}
- engines: {node: '>=12'}
- cpu: [arm]
- os: [android]
- requiresBuild: true
- dev: true
- optional: true
-
- /@esbuild/linux-loong64/0.15.12:
- resolution: {integrity: sha512-tZEowDjvU7O7I04GYvWQOS4yyP9E/7YlsB0jjw1Ycukgr2ycEzKyIk5tms5WnLBymaewc6VmRKnn5IJWgK4eFw==}
- engines: {node: '>=12'}
- cpu: [loong64]
- os: [linux]
- requiresBuild: true
- dev: true
- optional: true
-
/@eslint/eslintrc/1.3.3:
resolution: {integrity: sha512-uj3pT6Mg+3t39fvLrj8iuCIJ38zKO9FpGtJ4BBJebJhEwjoT+KLVNCcHT5QC9NGRIEi7fZ0ZR8YRb884auB4Lg==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
@@ -813,10 +795,6 @@
picomatch: 2.3.1
dev: true
- /@sxzz/popperjs-es/2.11.7:
- resolution: {integrity: sha512-Ccy0NlLkzr0Ex2FKvh2X+OyERHXJ88XJ1MXtsI9y9fGexlaXaVTPzBCRBwIxFkORuOb+uBqeu+RqnpgYTEZRUQ==}
- dev: false
-
/@tinymce/tinymce-vue/5.0.0_vue@3.2.44:
resolution: {integrity: sha512-1HRCNa2eGdztOKShYAiHIry50LTU6YJG//qSP9AJElrXhb3BIBN0Bef6E56nZObVgwCgSmI4cnX35VU9D49aow==}
peerDependencies:
@@ -1961,7 +1939,7 @@
normalize-path: 3.0.0
readdirp: 3.6.0
optionalDependencies:
- fsevents: 2.3.2
+ fsevents: registry.npmmirror.com/fsevents/2.3.2
dev: true
/ci-info/3.5.0:
@@ -2622,7 +2600,7 @@
'@ctrl/tinycolor': 3.4.1
'@element-plus/icons-vue': 2.0.10_vue@3.2.44
'@floating-ui/dom': 1.0.3
- '@popperjs/core': /@sxzz/popperjs-es/2.11.7
+ '@popperjs/core': registry.npmmirror.com/@sxzz/popperjs-es/2.11.7
'@types/lodash': 4.14.186
'@types/lodash-es': 4.17.6
'@vueuse/core': 9.5.0_vue@3.2.44
@@ -2734,186 +2712,6 @@
is-symbol: 1.0.4
dev: true
- /esbuild-android-64/0.15.12:
- resolution: {integrity: sha512-MJKXwvPY9g0rGps0+U65HlTsM1wUs9lbjt5CU19RESqycGFDRijMDQsh68MtbzkqWSRdEtiKS1mtPzKneaAI0Q==}
- engines: {node: '>=12'}
- cpu: [x64]
- os: [android]
- requiresBuild: true
- dev: true
- optional: true
-
- /esbuild-android-arm64/0.15.12:
- resolution: {integrity: sha512-Hc9SEcZbIMhhLcvhr1DH+lrrec9SFTiRzfJ7EGSBZiiw994gfkVV6vG0sLWqQQ6DD7V4+OggB+Hn0IRUdDUqvA==}
- engines: {node: '>=12'}
- cpu: [arm64]
- os: [android]
- requiresBuild: true
- dev: true
- optional: true
-
- /esbuild-darwin-64/0.15.12:
- resolution: {integrity: sha512-qkmqrTVYPFiePt5qFjP8w/S+GIUMbt6k8qmiPraECUWfPptaPJUGkCKrWEfYFRWB7bY23FV95rhvPyh/KARP8Q==}
- engines: {node: '>=12'}
- cpu: [x64]
- os: [darwin]
- requiresBuild: true
- dev: true
- optional: true
-
- /esbuild-darwin-arm64/0.15.12:
- resolution: {integrity: sha512-z4zPX02tQ41kcXMyN3c/GfZpIjKoI/BzHrdKUwhC/Ki5BAhWv59A9M8H+iqaRbwpzYrYidTybBwiZAIWCLJAkw==}
- engines: {node: '>=12'}
- cpu: [arm64]
- os: [darwin]
- requiresBuild: true
- dev: true
- optional: true
-
- /esbuild-freebsd-64/0.15.12:
- resolution: {integrity: sha512-XFL7gKMCKXLDiAiBjhLG0XECliXaRLTZh6hsyzqUqPUf/PY4C6EJDTKIeqqPKXaVJ8+fzNek88285krSz1QECw==}
- engines: {node: '>=12'}
- cpu: [x64]
- os: [freebsd]
- requiresBuild: true
- dev: true
- optional: true
-
- /esbuild-freebsd-arm64/0.15.12:
- resolution: {integrity: sha512-jwEIu5UCUk6TjiG1X+KQnCGISI+ILnXzIzt9yDVrhjug2fkYzlLbl0K43q96Q3KB66v6N1UFF0r5Ks4Xo7i72g==}
- engines: {node: '>=12'}
- cpu: [arm64]
- os: [freebsd]
- requiresBuild: true
- dev: true
- optional: true
-
- /esbuild-linux-32/0.15.12:
- resolution: {integrity: sha512-uSQuSEyF1kVzGzuIr4XM+v7TPKxHjBnLcwv2yPyCz8riV8VUCnO/C4BF3w5dHiVpCd5Z1cebBtZJNlC4anWpwA==}
- engines: {node: '>=12'}
- cpu: [ia32]
- os: [linux]
- requiresBuild: true
- dev: true
- optional: true
-
- /esbuild-linux-64/0.15.12:
- resolution: {integrity: sha512-QcgCKb7zfJxqT9o5z9ZUeGH1k8N6iX1Y7VNsEi5F9+HzN1OIx7ESxtQXDN9jbeUSPiRH1n9cw6gFT3H4qbdvcA==}
- engines: {node: '>=12'}
- cpu: [x64]
- os: [linux]
- requiresBuild: true
- dev: true
- optional: true
-
- /esbuild-linux-arm/0.15.12:
- resolution: {integrity: sha512-Wf7T0aNylGcLu7hBnzMvsTfEXdEdJY/hY3u36Vla21aY66xR0MS5I1Hw8nVquXjTN0A6fk/vnr32tkC/C2lb0A==}
- engines: {node: '>=12'}
- cpu: [arm]
- os: [linux]
- requiresBuild: true
- dev: true
- optional: true
-
- /esbuild-linux-arm64/0.15.12:
- resolution: {integrity: sha512-HtNq5xm8fUpZKwWKS2/YGwSfTF+339L4aIA8yphNKYJckd5hVdhfdl6GM2P3HwLSCORS++++7++//ApEwXEuAQ==}
- engines: {node: '>=12'}
- cpu: [arm64]
- os: [linux]
- requiresBuild: true
- dev: true
- optional: true
-
- /esbuild-linux-mips64le/0.15.12:
- resolution: {integrity: sha512-Qol3+AvivngUZkTVFgLpb0H6DT+N5/zM3V1YgTkryPYFeUvuT5JFNDR3ZiS6LxhyF8EE+fiNtzwlPqMDqVcc6A==}
- engines: {node: '>=12'}
- cpu: [mips64el]
- os: [linux]
- requiresBuild: true
- dev: true
- optional: true
-
- /esbuild-linux-ppc64le/0.15.12:
- resolution: {integrity: sha512-4D8qUCo+CFKaR0cGXtGyVsOI7w7k93Qxb3KFXWr75An0DHamYzq8lt7TNZKoOq/Gh8c40/aKaxvcZnTgQ0TJNg==}
- engines: {node: '>=12'}
- cpu: [ppc64]
- os: [linux]
- requiresBuild: true
- dev: true
- optional: true
-
- /esbuild-linux-riscv64/0.15.12:
- resolution: {integrity: sha512-G9w6NcuuCI6TUUxe6ka0enjZHDnSVK8bO+1qDhMOCtl7Tr78CcZilJj8SGLN00zO5iIlwNRZKHjdMpfFgNn1VA==}
- engines: {node: '>=12'}
- cpu: [riscv64]
- os: [linux]
- requiresBuild: true
- dev: true
- optional: true
-
- /esbuild-linux-s390x/0.15.12:
- resolution: {integrity: sha512-Lt6BDnuXbXeqSlVuuUM5z18GkJAZf3ERskGZbAWjrQoi9xbEIsj/hEzVnSAFLtkfLuy2DE4RwTcX02tZFunXww==}
- engines: {node: '>=12'}
- cpu: [s390x]
- os: [linux]
- requiresBuild: true
- dev: true
- optional: true
-
- /esbuild-netbsd-64/0.15.12:
- resolution: {integrity: sha512-jlUxCiHO1dsqoURZDQts+HK100o0hXfi4t54MNRMCAqKGAV33JCVvMplLAa2FwviSojT/5ZG5HUfG3gstwAG8w==}
- engines: {node: '>=12'}
- cpu: [x64]
- os: [netbsd]
- requiresBuild: true
- dev: true
- optional: true
-
- /esbuild-openbsd-64/0.15.12:
- resolution: {integrity: sha512-1o1uAfRTMIWNOmpf8v7iudND0L6zRBYSH45sofCZywrcf7NcZA+c7aFsS1YryU+yN7aRppTqdUK1PgbZVaB1Dw==}
- engines: {node: '>=12'}
- cpu: [x64]
- os: [openbsd]
- requiresBuild: true
- dev: true
- optional: true
-
- /esbuild-sunos-64/0.15.12:
- resolution: {integrity: sha512-nkl251DpoWoBO9Eq9aFdoIt2yYmp4I3kvQjba3jFKlMXuqQ9A4q+JaqdkCouG3DHgAGnzshzaGu6xofGcXyPXg==}
- engines: {node: '>=12'}
- cpu: [x64]
- os: [sunos]
- requiresBuild: true
- dev: true
- optional: true
-
- /esbuild-windows-32/0.15.12:
- resolution: {integrity: sha512-WlGeBZHgPC00O08luIp5B2SP4cNCp/PcS+3Pcg31kdcJPopHxLkdCXtadLU9J82LCfw4TVls21A6lilQ9mzHrw==}
- engines: {node: '>=12'}
- cpu: [ia32]
- os: [win32]
- requiresBuild: true
- dev: true
- optional: true
-
- /esbuild-windows-64/0.15.12:
- resolution: {integrity: sha512-VActO3WnWZSN//xjSfbiGOSyC+wkZtI8I4KlgrTo5oHJM6z3MZZBCuFaZHd8hzf/W9KPhF0lY8OqlmWC9HO5AA==}
- engines: {node: '>=12'}
- cpu: [x64]
- os: [win32]
- requiresBuild: true
- dev: true
- optional: true
-
- /esbuild-windows-arm64/0.15.12:
- resolution: {integrity: sha512-Of3MIacva1OK/m4zCNIvBfz8VVROBmQT+gRX6pFTLPngFYcj6TFH/12VveAqq1k9VB2l28EoVMNMUCcmsfwyuA==}
- engines: {node: '>=12'}
- cpu: [arm64]
- os: [win32]
- requiresBuild: true
- dev: true
- optional: true
-
/esbuild/0.11.3:
resolution: {integrity: sha512-BzVRHcCtFepjS9WcqRjqoIxLqgpK21a8J4Zi4msSGxDxiXVO1IbcqT1KjhdDDnJxKfe7bvzZrvMEX+bVO0Elcw==}
hasBin: true
@@ -2926,28 +2724,28 @@
hasBin: true
requiresBuild: true
optionalDependencies:
- '@esbuild/android-arm': 0.15.12
- '@esbuild/linux-loong64': 0.15.12
- esbuild-android-64: 0.15.12
- esbuild-android-arm64: 0.15.12
- esbuild-darwin-64: 0.15.12
- esbuild-darwin-arm64: 0.15.12
- esbuild-freebsd-64: 0.15.12
- esbuild-freebsd-arm64: 0.15.12
- esbuild-linux-32: 0.15.12
- esbuild-linux-64: 0.15.12
- esbuild-linux-arm: 0.15.12
- esbuild-linux-arm64: 0.15.12
- esbuild-linux-mips64le: 0.15.12
- esbuild-linux-ppc64le: 0.15.12
- esbuild-linux-riscv64: 0.15.12
- esbuild-linux-s390x: 0.15.12
- esbuild-netbsd-64: 0.15.12
- esbuild-openbsd-64: 0.15.12
- esbuild-sunos-64: 0.15.12
- esbuild-windows-32: 0.15.12
- esbuild-windows-64: 0.15.12
- esbuild-windows-arm64: 0.15.12
+ '@esbuild/android-arm': registry.npmmirror.com/@esbuild/android-arm/0.15.12
+ '@esbuild/linux-loong64': registry.npmmirror.com/@esbuild/linux-loong64/0.15.12
+ esbuild-android-64: registry.npmmirror.com/esbuild-android-64/0.15.12
+ esbuild-android-arm64: registry.npmmirror.com/esbuild-android-arm64/0.15.12
+ esbuild-darwin-64: registry.npmmirror.com/esbuild-darwin-64/0.15.12
+ esbuild-darwin-arm64: registry.npmmirror.com/esbuild-darwin-arm64/0.15.12
+ esbuild-freebsd-64: registry.npmmirror.com/esbuild-freebsd-64/0.15.12
+ esbuild-freebsd-arm64: registry.npmmirror.com/esbuild-freebsd-arm64/0.15.12
+ esbuild-linux-32: registry.npmmirror.com/esbuild-linux-32/0.15.12
+ esbuild-linux-64: registry.npmmirror.com/esbuild-linux-64/0.15.12
+ esbuild-linux-arm: registry.npmmirror.com/esbuild-linux-arm/0.15.12
+ esbuild-linux-arm64: registry.npmmirror.com/esbuild-linux-arm64/0.15.12
+ esbuild-linux-mips64le: registry.npmmirror.com/esbuild-linux-mips64le/0.15.12
+ esbuild-linux-ppc64le: registry.npmmirror.com/esbuild-linux-ppc64le/0.15.12
+ esbuild-linux-riscv64: registry.npmmirror.com/esbuild-linux-riscv64/0.15.12
+ esbuild-linux-s390x: registry.npmmirror.com/esbuild-linux-s390x/0.15.12
+ esbuild-netbsd-64: registry.npmmirror.com/esbuild-netbsd-64/0.15.12
+ esbuild-openbsd-64: registry.npmmirror.com/esbuild-openbsd-64/0.15.12
+ esbuild-sunos-64: registry.npmmirror.com/esbuild-sunos-64/0.15.12
+ esbuild-windows-32: registry.npmmirror.com/esbuild-windows-32/0.15.12
+ esbuild-windows-64: registry.npmmirror.com/esbuild-windows-64/0.15.12
+ esbuild-windows-arm64: registry.npmmirror.com/esbuild-windows-arm64/0.15.12
dev: true
/escalade/3.1.1:
@@ -6352,7 +6150,7 @@
engines: {node: '>=10.0.0'}
hasBin: true
optionalDependencies:
- fsevents: 2.3.2
+ fsevents: registry.npmmirror.com/fsevents/2.3.2
dev: true
/run-async/2.4.1:
@@ -7748,7 +7546,7 @@
rollup: 2.79.1
sass: 1.56.1
optionalDependencies:
- fsevents: 2.3.2
+ fsevents: registry.npmmirror.com/fsevents/2.3.2
dev: true
/vue-demi/0.13.11_vue@3.2.44:
@@ -7998,6 +7796,264 @@
engines: {node: '>=10'}
dev: true
+ registry.npmmirror.com/@esbuild/android-arm/0.15.12:
+ resolution: {integrity: sha512-IC7TqIqiyE0MmvAhWkl/8AEzpOtbhRNDo7aph47We1NbE5w2bt/Q+giAhe0YYeVpYnIhGMcuZY92qDK6dQauvA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@esbuild/android-arm/-/android-arm-0.15.12.tgz}
+ name: '@esbuild/android-arm'
+ version: 0.15.12
+ engines: {node: '>=12'}
+ cpu: [arm]
+ os: [android]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ registry.npmmirror.com/@esbuild/linux-loong64/0.15.12:
+ resolution: {integrity: sha512-tZEowDjvU7O7I04GYvWQOS4yyP9E/7YlsB0jjw1Ycukgr2ycEzKyIk5tms5WnLBymaewc6VmRKnn5IJWgK4eFw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@esbuild/linux-loong64/-/linux-loong64-0.15.12.tgz}
+ name: '@esbuild/linux-loong64'
+ version: 0.15.12
+ engines: {node: '>=12'}
+ cpu: [loong64]
+ os: [linux]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ registry.npmmirror.com/@sxzz/popperjs-es/2.11.7:
+ resolution: {integrity: sha512-Ccy0NlLkzr0Ex2FKvh2X+OyERHXJ88XJ1MXtsI9y9fGexlaXaVTPzBCRBwIxFkORuOb+uBqeu+RqnpgYTEZRUQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@sxzz/popperjs-es/-/popperjs-es-2.11.7.tgz}
+ name: '@sxzz/popperjs-es'
+ version: 2.11.7
+ dev: false
+
+ registry.npmmirror.com/esbuild-android-64/0.15.12:
+ resolution: {integrity: sha512-MJKXwvPY9g0rGps0+U65HlTsM1wUs9lbjt5CU19RESqycGFDRijMDQsh68MtbzkqWSRdEtiKS1mtPzKneaAI0Q==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/esbuild-android-64/-/esbuild-android-64-0.15.12.tgz}
+ name: esbuild-android-64
+ version: 0.15.12
+ engines: {node: '>=12'}
+ cpu: [x64]
+ os: [android]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ registry.npmmirror.com/esbuild-android-arm64/0.15.12:
+ resolution: {integrity: sha512-Hc9SEcZbIMhhLcvhr1DH+lrrec9SFTiRzfJ7EGSBZiiw994gfkVV6vG0sLWqQQ6DD7V4+OggB+Hn0IRUdDUqvA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/esbuild-android-arm64/-/esbuild-android-arm64-0.15.12.tgz}
+ name: esbuild-android-arm64
+ version: 0.15.12
+ engines: {node: '>=12'}
+ cpu: [arm64]
+ os: [android]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ registry.npmmirror.com/esbuild-darwin-64/0.15.12:
+ resolution: {integrity: sha512-qkmqrTVYPFiePt5qFjP8w/S+GIUMbt6k8qmiPraECUWfPptaPJUGkCKrWEfYFRWB7bY23FV95rhvPyh/KARP8Q==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/esbuild-darwin-64/-/esbuild-darwin-64-0.15.12.tgz}
+ name: esbuild-darwin-64
+ version: 0.15.12
+ engines: {node: '>=12'}
+ cpu: [x64]
+ os: [darwin]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ registry.npmmirror.com/esbuild-darwin-arm64/0.15.12:
+ resolution: {integrity: sha512-z4zPX02tQ41kcXMyN3c/GfZpIjKoI/BzHrdKUwhC/Ki5BAhWv59A9M8H+iqaRbwpzYrYidTybBwiZAIWCLJAkw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/esbuild-darwin-arm64/-/esbuild-darwin-arm64-0.15.12.tgz}
+ name: esbuild-darwin-arm64
+ version: 0.15.12
+ engines: {node: '>=12'}
+ cpu: [arm64]
+ os: [darwin]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ registry.npmmirror.com/esbuild-freebsd-64/0.15.12:
+ resolution: {integrity: sha512-XFL7gKMCKXLDiAiBjhLG0XECliXaRLTZh6hsyzqUqPUf/PY4C6EJDTKIeqqPKXaVJ8+fzNek88285krSz1QECw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/esbuild-freebsd-64/-/esbuild-freebsd-64-0.15.12.tgz}
+ name: esbuild-freebsd-64
+ version: 0.15.12
+ engines: {node: '>=12'}
+ cpu: [x64]
+ os: [freebsd]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ registry.npmmirror.com/esbuild-freebsd-arm64/0.15.12:
+ resolution: {integrity: sha512-jwEIu5UCUk6TjiG1X+KQnCGISI+ILnXzIzt9yDVrhjug2fkYzlLbl0K43q96Q3KB66v6N1UFF0r5Ks4Xo7i72g==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/esbuild-freebsd-arm64/-/esbuild-freebsd-arm64-0.15.12.tgz}
+ name: esbuild-freebsd-arm64
+ version: 0.15.12
+ engines: {node: '>=12'}
+ cpu: [arm64]
+ os: [freebsd]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ registry.npmmirror.com/esbuild-linux-32/0.15.12:
+ resolution: {integrity: sha512-uSQuSEyF1kVzGzuIr4XM+v7TPKxHjBnLcwv2yPyCz8riV8VUCnO/C4BF3w5dHiVpCd5Z1cebBtZJNlC4anWpwA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/esbuild-linux-32/-/esbuild-linux-32-0.15.12.tgz}
+ name: esbuild-linux-32
+ version: 0.15.12
+ engines: {node: '>=12'}
+ cpu: [ia32]
+ os: [linux]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ registry.npmmirror.com/esbuild-linux-64/0.15.12:
+ resolution: {integrity: sha512-QcgCKb7zfJxqT9o5z9ZUeGH1k8N6iX1Y7VNsEi5F9+HzN1OIx7ESxtQXDN9jbeUSPiRH1n9cw6gFT3H4qbdvcA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/esbuild-linux-64/-/esbuild-linux-64-0.15.12.tgz}
+ name: esbuild-linux-64
+ version: 0.15.12
+ engines: {node: '>=12'}
+ cpu: [x64]
+ os: [linux]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ registry.npmmirror.com/esbuild-linux-arm/0.15.12:
+ resolution: {integrity: sha512-Wf7T0aNylGcLu7hBnzMvsTfEXdEdJY/hY3u36Vla21aY66xR0MS5I1Hw8nVquXjTN0A6fk/vnr32tkC/C2lb0A==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/esbuild-linux-arm/-/esbuild-linux-arm-0.15.12.tgz}
+ name: esbuild-linux-arm
+ version: 0.15.12
+ engines: {node: '>=12'}
+ cpu: [arm]
+ os: [linux]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ registry.npmmirror.com/esbuild-linux-arm64/0.15.12:
+ resolution: {integrity: sha512-HtNq5xm8fUpZKwWKS2/YGwSfTF+339L4aIA8yphNKYJckd5hVdhfdl6GM2P3HwLSCORS++++7++//ApEwXEuAQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/esbuild-linux-arm64/-/esbuild-linux-arm64-0.15.12.tgz}
+ name: esbuild-linux-arm64
+ version: 0.15.12
+ engines: {node: '>=12'}
+ cpu: [arm64]
+ os: [linux]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ registry.npmmirror.com/esbuild-linux-mips64le/0.15.12:
+ resolution: {integrity: sha512-Qol3+AvivngUZkTVFgLpb0H6DT+N5/zM3V1YgTkryPYFeUvuT5JFNDR3ZiS6LxhyF8EE+fiNtzwlPqMDqVcc6A==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/esbuild-linux-mips64le/-/esbuild-linux-mips64le-0.15.12.tgz}
+ name: esbuild-linux-mips64le
+ version: 0.15.12
+ engines: {node: '>=12'}
+ cpu: [mips64el]
+ os: [linux]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ registry.npmmirror.com/esbuild-linux-ppc64le/0.15.12:
+ resolution: {integrity: sha512-4D8qUCo+CFKaR0cGXtGyVsOI7w7k93Qxb3KFXWr75An0DHamYzq8lt7TNZKoOq/Gh8c40/aKaxvcZnTgQ0TJNg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/esbuild-linux-ppc64le/-/esbuild-linux-ppc64le-0.15.12.tgz}
+ name: esbuild-linux-ppc64le
+ version: 0.15.12
+ engines: {node: '>=12'}
+ cpu: [ppc64]
+ os: [linux]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ registry.npmmirror.com/esbuild-linux-riscv64/0.15.12:
+ resolution: {integrity: sha512-G9w6NcuuCI6TUUxe6ka0enjZHDnSVK8bO+1qDhMOCtl7Tr78CcZilJj8SGLN00zO5iIlwNRZKHjdMpfFgNn1VA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/esbuild-linux-riscv64/-/esbuild-linux-riscv64-0.15.12.tgz}
+ name: esbuild-linux-riscv64
+ version: 0.15.12
+ engines: {node: '>=12'}
+ cpu: [riscv64]
+ os: [linux]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ registry.npmmirror.com/esbuild-linux-s390x/0.15.12:
+ resolution: {integrity: sha512-Lt6BDnuXbXeqSlVuuUM5z18GkJAZf3ERskGZbAWjrQoi9xbEIsj/hEzVnSAFLtkfLuy2DE4RwTcX02tZFunXww==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/esbuild-linux-s390x/-/esbuild-linux-s390x-0.15.12.tgz}
+ name: esbuild-linux-s390x
+ version: 0.15.12
+ engines: {node: '>=12'}
+ cpu: [s390x]
+ os: [linux]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ registry.npmmirror.com/esbuild-netbsd-64/0.15.12:
+ resolution: {integrity: sha512-jlUxCiHO1dsqoURZDQts+HK100o0hXfi4t54MNRMCAqKGAV33JCVvMplLAa2FwviSojT/5ZG5HUfG3gstwAG8w==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/esbuild-netbsd-64/-/esbuild-netbsd-64-0.15.12.tgz}
+ name: esbuild-netbsd-64
+ version: 0.15.12
+ engines: {node: '>=12'}
+ cpu: [x64]
+ os: [netbsd]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ registry.npmmirror.com/esbuild-openbsd-64/0.15.12:
+ resolution: {integrity: sha512-1o1uAfRTMIWNOmpf8v7iudND0L6zRBYSH45sofCZywrcf7NcZA+c7aFsS1YryU+yN7aRppTqdUK1PgbZVaB1Dw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/esbuild-openbsd-64/-/esbuild-openbsd-64-0.15.12.tgz}
+ name: esbuild-openbsd-64
+ version: 0.15.12
+ engines: {node: '>=12'}
+ cpu: [x64]
+ os: [openbsd]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ registry.npmmirror.com/esbuild-sunos-64/0.15.12:
+ resolution: {integrity: sha512-nkl251DpoWoBO9Eq9aFdoIt2yYmp4I3kvQjba3jFKlMXuqQ9A4q+JaqdkCouG3DHgAGnzshzaGu6xofGcXyPXg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/esbuild-sunos-64/-/esbuild-sunos-64-0.15.12.tgz}
+ name: esbuild-sunos-64
+ version: 0.15.12
+ engines: {node: '>=12'}
+ cpu: [x64]
+ os: [sunos]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ registry.npmmirror.com/esbuild-windows-32/0.15.12:
+ resolution: {integrity: sha512-WlGeBZHgPC00O08luIp5B2SP4cNCp/PcS+3Pcg31kdcJPopHxLkdCXtadLU9J82LCfw4TVls21A6lilQ9mzHrw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/esbuild-windows-32/-/esbuild-windows-32-0.15.12.tgz}
+ name: esbuild-windows-32
+ version: 0.15.12
+ engines: {node: '>=12'}
+ cpu: [ia32]
+ os: [win32]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ registry.npmmirror.com/esbuild-windows-64/0.15.12:
+ resolution: {integrity: sha512-VActO3WnWZSN//xjSfbiGOSyC+wkZtI8I4KlgrTo5oHJM6z3MZZBCuFaZHd8hzf/W9KPhF0lY8OqlmWC9HO5AA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/esbuild-windows-64/-/esbuild-windows-64-0.15.12.tgz}
+ name: esbuild-windows-64
+ version: 0.15.12
+ engines: {node: '>=12'}
+ cpu: [x64]
+ os: [win32]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ registry.npmmirror.com/esbuild-windows-arm64/0.15.12:
+ resolution: {integrity: sha512-Of3MIacva1OK/m4zCNIvBfz8VVROBmQT+gRX6pFTLPngFYcj6TFH/12VveAqq1k9VB2l28EoVMNMUCcmsfwyuA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/esbuild-windows-arm64/-/esbuild-windows-arm64-0.15.12.tgz}
+ name: esbuild-windows-arm64
+ version: 0.15.12
+ engines: {node: '>=12'}
+ cpu: [arm64]
+ os: [win32]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ registry.npmmirror.com/fsevents/2.3.2:
+ resolution: {integrity: sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/fsevents/-/fsevents-2.3.2.tgz}
+ name: fsevents
+ version: 2.3.2
+ engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0}
+ os: [darwin]
+ requiresBuild: true
+ dev: true
+ optional: true
+
registry.npmmirror.com/graceful-fs/4.2.10:
resolution: {integrity: sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/graceful-fs/-/graceful-fs-4.2.10.tgz}
name: graceful-fs
diff --git a/public/conditions.json b/public/conditions.json
new file mode 100644
index 0000000..82eb19d
--- /dev/null
+++ b/public/conditions.json
@@ -0,0 +1,30 @@
+{
+ "code": "200",
+ "msg": "操作成功",
+ "data": [
+ {
+ "columnId": "1090",
+ "showType": "1",
+ "showName": "预计采购总费用",
+ "columnName": "planProcurementTotalMoney",
+ "columnType": "Double",
+ "fixedDownBoxValue": ""
+ },
+ {
+ "columnId": "1092",
+ "showType": "3",
+ "showName": "采购类型",
+ "columnName": "procurementType",
+ "columnType": "String",
+ "fixedDownBoxValue": "{\"1\":{\"key\":\"1\",\"value\":\"新开园区集中采购\",\"column\":\"\",\"type\":\"1\"}}"
+ },
+ {
+ "columnId": "1093",
+ "showType": "1",
+ "showName": "园区面积",
+ "columnName": "parkArea",
+ "columnType": "Double",
+ "fixedDownBoxValue": ""
+ }
+ ]
+}
\ No newline at end of file
diff --git "a/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" "b/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js"
new file mode 100644
index 0000000..58920ac
--- /dev/null
+++ "b/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js"
@@ -0,0 +1,34 @@
+export default {
+ "code": "200",
+ "msg": "操作成功",
+ "data": [
+ {
+ //条件id columnId == 0 为发起人
+ "columnId": "1090",
+ //columnType == "String" && showType == "3"为多选 columnType == "Double"为区间
+ "showType": "1",
+ "showName": "预计采购总费用",
+ //columnName 条件自定义字段
+ "columnName": "planProcurementTotalMoney",
+ "columnType": "Double",
+ //fixedDownBoxValue 匹配 columnType == "String" && showType == "3"时子选项内容
+ "fixedDownBoxValue": ""
+ },
+ {
+ "columnId": "1092",
+ "showType": "3",
+ "showName": "采购类型",
+ "columnName": "procurementType",
+ "columnType": "String",
+ "fixedDownBoxValue": "{\"1\":{\"key\":\"1\",\"value\":\"新开园区集中采购\",\"column\":\"\",\"type\":\"1\"}}"
+ },
+ {
+ "columnId": "1093",
+ "showType": "1",
+ "showName": "园区面积",
+ "columnName": "parkArea",
+ "columnType": "Double",
+ "fixedDownBoxValue": ""
+ }
+ ]
+}
\ No newline at end of file
diff --git a/public/data.json b/public/data.json
index bbe88b1..632c75c 100644
--- a/public/data.json
+++ b/public/data.json
@@ -136,4 +136,4 @@
"conditionNodes": []
}
}
-}
\ No newline at end of file
+}
diff --git "a/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" "b/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js"
index bb7afeb..c182ad6 100644
--- "a/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js"
+++ "b/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js"
@@ -58,7 +58,7 @@
"conditionNodes": [{ //条件节点
"nodeName": "条件1",
"type": 3,
- "priorityLevel": 1,
+ "priorityLevel": 1,
"settype": 1,
"selectMode": 0,
"selectRange": 0,
@@ -134,4 +134,4 @@
"conditionNodes": []
}
}
-}
\ No newline at end of file
+}
diff --git a/public/departments.json b/public/departments.json
new file mode 100644
index 0000000..dfd7789
--- /dev/null
+++ b/public/departments.json
@@ -0,0 +1,26 @@
+{
+ "code": "200",
+ "msg": "操作成功",
+ "data": {
+ "childDepartments": [{
+ "departmentKey": "RLXZB_V2",
+ "departmentName": "人力行政部",
+ "id": "150",
+ "parentId": "0",
+ "departmentNames": "人力行政部"
+ }, {
+ "departmentKey": "ZNBN",
+ "departmentName": "法务部",
+ "id": "324",
+ "parentId": "0",
+ "departmentNames": "法务部"
+ }],
+ "employees": [{
+ "id": "53128111",
+ "employeeName": "雅楠",
+ "isLeave": "0",
+ "open": "false"
+ }],
+ "titleDepartments": []
+ }
+}
\ No newline at end of file
diff --git a/public/departments0.json b/public/departments0.json
new file mode 100644
index 0000000..dfd7789
--- /dev/null
+++ b/public/departments0.json
@@ -0,0 +1,26 @@
+{
+ "code": "200",
+ "msg": "操作成功",
+ "data": {
+ "childDepartments": [{
+ "departmentKey": "RLXZB_V2",
+ "departmentName": "人力行政部",
+ "id": "150",
+ "parentId": "0",
+ "departmentNames": "人力行政部"
+ }, {
+ "departmentKey": "ZNBN",
+ "departmentName": "法务部",
+ "id": "324",
+ "parentId": "0",
+ "departmentNames": "法务部"
+ }],
+ "employees": [{
+ "id": "53128111",
+ "employeeName": "雅楠",
+ "isLeave": "0",
+ "open": "false"
+ }],
+ "titleDepartments": []
+ }
+}
\ No newline at end of file
diff --git a/public/departments150.json b/public/departments150.json
new file mode 100644
index 0000000..aa6cc37
--- /dev/null
+++ b/public/departments150.json
@@ -0,0 +1,26 @@
+{
+ "code": "200",
+ "msg": "操作成功",
+ "data": {
+ "childDepartments": [],
+ "employees": [{
+ "id": "53128112",
+ "employeeName": "测试1",
+ "isLeave": "0",
+ "open": "false"
+ },{
+ "id": "53128113",
+ "employeeName": "测试2",
+ "isLeave": "0",
+ "open": "false"
+ }],
+ "titleDepartments": [{
+ "departmentId": "150",
+ "departmentKey": "RLXZB_V2",
+ "departmentName": "人力行政部",
+ "departmentNames": "人力行政部",
+ "id": "150",
+ "parentId": "0"
+ }]
+ }
+}
\ No newline at end of file
diff --git a/public/departments324.json b/public/departments324.json
new file mode 100644
index 0000000..34b8cc2
--- /dev/null
+++ b/public/departments324.json
@@ -0,0 +1,21 @@
+{
+ "code": "200",
+ "msg": "操作成功",
+ "data": {
+ "childDepartments": [],
+ "employees": [{
+ "id": "53128133",
+ "employeeName": "测试3",
+ "isLeave": "0",
+ "open": "false"
+ }],
+ "titleDepartments": [{
+ "departmentId": "324",
+ "departmentKey": "ZNBN",
+ "departmentName": "法务部",
+ "departmentNames": "法务部",
+ "id": "324",
+ "parentId": "0"
+ }]
+ }
+}
\ No newline at end of file
diff --git a/public/employees.json b/public/employees.json
new file mode 100644
index 0000000..227a989
--- /dev/null
+++ b/public/employees.json
@@ -0,0 +1,42 @@
+{
+ "code": "200",
+ "msg": "操作成功",
+ "data": {
+ "navigatepageNums": ["1"],
+ "startRow": "1",
+ "hasNextPage": "false",
+ "prePage": "0",
+ "nextPage": "0",
+ "endRow": "3",
+ "pageSize": "30",
+ "list": [{
+ "departmentName": "招商事业部",
+ "employeeName": "111111",
+ "employeeDepartmentId": "121",
+ "id": "5312",
+ "departmentNames": "招商事业部"
+ }, {
+ "departmentName": "111",
+ "employeeName": "东亚-测试",
+ "employeeDepartmentId": "139",
+ "id": "2515638",
+ "departmentNames": "111"
+ }, {
+ "departmentName": "招商事业部",
+ "employeeName": "1111",
+ "employeeDepartmentId": "121",
+ "id": "2515746",
+ "departmentNames": "招商事业部"
+ }],
+ "pageNum": "1",
+ "navigatePages": "8",
+ "navigateFirstPage": "1",
+ "total": "3",
+ "pages": "1",
+ "size": "3",
+ "isLastPage": "true",
+ "hasPreviousPage": "false",
+ "navigateLastPage": "1",
+ "isFirstPage": "true"
+ }
+}
\ No newline at end of file
diff --git a/public/public/conditions.json b/public/public/conditions.json
new file mode 100644
index 0000000..82eb19d
--- /dev/null
+++ b/public/public/conditions.json
@@ -0,0 +1,30 @@
+{
+ "code": "200",
+ "msg": "操作成功",
+ "data": [
+ {
+ "columnId": "1090",
+ "showType": "1",
+ "showName": "预计采购总费用",
+ "columnName": "planProcurementTotalMoney",
+ "columnType": "Double",
+ "fixedDownBoxValue": ""
+ },
+ {
+ "columnId": "1092",
+ "showType": "3",
+ "showName": "采购类型",
+ "columnName": "procurementType",
+ "columnType": "String",
+ "fixedDownBoxValue": "{\"1\":{\"key\":\"1\",\"value\":\"新开园区集中采购\",\"column\":\"\",\"type\":\"1\"}}"
+ },
+ {
+ "columnId": "1093",
+ "showType": "1",
+ "showName": "园区面积",
+ "columnName": "parkArea",
+ "columnType": "Double",
+ "fixedDownBoxValue": ""
+ }
+ ]
+}
\ No newline at end of file
diff --git "a/public/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" "b/public/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js"
new file mode 100644
index 0000000..58920ac
--- /dev/null
+++ "b/public/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js"
@@ -0,0 +1,34 @@
+export default {
+ "code": "200",
+ "msg": "操作成功",
+ "data": [
+ {
+ //条件id columnId == 0 为发起人
+ "columnId": "1090",
+ //columnType == "String" && showType == "3"为多选 columnType == "Double"为区间
+ "showType": "1",
+ "showName": "预计采购总费用",
+ //columnName 条件自定义字段
+ "columnName": "planProcurementTotalMoney",
+ "columnType": "Double",
+ //fixedDownBoxValue 匹配 columnType == "String" && showType == "3"时子选项内容
+ "fixedDownBoxValue": ""
+ },
+ {
+ "columnId": "1092",
+ "showType": "3",
+ "showName": "采购类型",
+ "columnName": "procurementType",
+ "columnType": "String",
+ "fixedDownBoxValue": "{\"1\":{\"key\":\"1\",\"value\":\"新开园区集中采购\",\"column\":\"\",\"type\":\"1\"}}"
+ },
+ {
+ "columnId": "1093",
+ "showType": "1",
+ "showName": "园区面积",
+ "columnName": "parkArea",
+ "columnType": "Double",
+ "fixedDownBoxValue": ""
+ }
+ ]
+}
\ No newline at end of file
diff --git a/public/public/data.json b/public/public/data.json
new file mode 100644
index 0000000..bbe88b1
--- /dev/null
+++ b/public/public/data.json
@@ -0,0 +1,139 @@
+{
+ "code": "200",
+ "msg": "success",
+ "data": {
+ "tableId": 1,
+ "workFlowDef": {
+ "name": "合同审批"
+ },
+ "directorMaxLevel": 4,
+ "flowPermission": [],
+ "nodeConfig": {
+ "nodeName": "发起人",
+ "type": 0,
+ "priorityLevel": "",
+ "settype": "",
+ "selectMode": "",
+ "selectRange": "",
+ "directorLevel": "",
+ "examineMode": "",
+ "noHanderAction": "",
+ "examineEndDirectorLevel": "",
+ "ccSelfSelectFlag": "",
+ "conditionList": [],
+ "nodeUserList": [],
+ "childNode": {
+ "nodeName": "审核人",
+ "error": false,
+ "type": 1,
+ "settype": 2,
+ "selectMode": 0,
+ "selectRange": 0,
+ "directorLevel": 1,
+ "examineMode": 1,
+ "noHanderAction": 2,
+ "examineEndDirectorLevel": 0,
+ "childNode": {
+ "nodeName": "路由",
+ "type": 4,
+ "priorityLevel": 1,
+ "settype": 1,
+ "selectMode": 0,
+ "selectRange": 0,
+ "directorLevel": 1,
+ "examineMode": 1,
+ "noHanderAction": 2,
+ "examineEndDirectorLevel": 1,
+ "ccSelfSelectFlag": 1,
+ "conditionList": [],
+ "nodeUserList": [],
+ "childNode": {
+ "nodeName": "抄送人",
+ "type": 2,
+ "ccSelfSelectFlag": 1,
+ "childNode": null,
+ "nodeUserList": [],
+ "error": false
+ },
+ "conditionNodes": [{
+ "nodeName": "条件1",
+ "type": 3,
+ "priorityLevel": 1,
+ "settype": 1,
+ "selectMode": 0,
+ "selectRange": 0,
+ "directorLevel": 1,
+ "examineMode": 1,
+ "noHanderAction": 2,
+ "examineEndDirectorLevel": 1,
+ "ccSelfSelectFlag": 1,
+ "conditionList": [{
+ "columnId": 0,
+ "type": 1,
+ "conditionEn": "",
+ "conditionCn": "",
+ "optType": "",
+ "zdy1": "",
+ "zdy2": "",
+ "opt1": "",
+ "opt2": "",
+ "columnDbname": "",
+ "columnType": "",
+ "showType": "",
+ "showName": "",
+ "fixedDownBoxValue": ""
+ }],
+ "nodeUserList": [{
+ "targetId": 85,
+ "type": 1,
+ "name": "天旭"
+ }],
+ "childNode": {
+ "nodeName": "审核人",
+ "type": 1,
+ "priorityLevel": 1,
+ "settype": 1,
+ "selectMode": 0,
+ "selectRange": 0,
+ "directorLevel": 1,
+ "examineMode": 1,
+ "noHanderAction": 2,
+ "examineEndDirectorLevel": 1,
+ "ccSelfSelectFlag": 1,
+ "conditionList": [],
+ "nodeUserList": [{
+ "targetId": 2515744,
+ "type": 1,
+ "name": "哈哈哈哈"
+ }],
+ "childNode": null,
+ "conditionNodes": [],
+ "error": false
+ },
+ "conditionNodes": [],
+ "error": false
+ }, {
+ "nodeName": "条件2",
+ "type": 3,
+ "priorityLevel": 2,
+ "settype": 1,
+ "selectMode": 0,
+ "selectRange": 0,
+ "directorLevel": 1,
+ "examineMode": 1,
+ "noHanderAction": 2,
+ "examineEndDirectorLevel": 1,
+ "ccSelfSelectFlag": 1,
+ "conditionList": [],
+ "nodeUserList": [],
+ "childNode": null,
+ "conditionNodes": [],
+ "error": false
+ }]
+ },
+ "nodeUserList": []
+ },
+ "conditionNodes": []
+ }
+ }
+}
\ No newline at end of file
diff --git "a/public/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" "b/public/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js"
new file mode 100644
index 0000000..bb7afeb
--- /dev/null
+++ "b/public/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js"
@@ -0,0 +1,137 @@
+export default {
+ "code": "200",
+ "msg": "success",
+ "data": {
+ "tableId": 1,//审批id
+ "workFlowDef": {
+ "name": "合同审批",//审批名称
+ },
+ "directorMaxLevel": 4,//审批主管最大层级
+ "flowPermission": [],//发起人
+ "nodeConfig": {
+ "nodeName": "发起人",//节点名称
+ "type": 0,// 0 发起人 1审批 2抄送 3条件 4路由
+ "priorityLevel": "",// 条件优先级
+ "settype": "",// 审批人设置 1指定成员 2主管 4发起人自选 5发起人自己 7连续多级主管
+ "selectMode": "", //审批人数 1选一个人 2选多个人
+ "selectRange": "", //选择范围 1.全公司 2指定成员 2指定角色
+ "directorLevel": "", //审批终点 最高层主管数
+ "examineMode": "", //多人审批时采用的审批方式 1依次审批 2会签
+ "noHanderAction": "",//审批人为空时 1自动审批通过/不允许发起 2转交给审核管理员
+ "examineEndDirectorLevel": "", //审批终点 第n层主管
+ "ccSelfSelectFlag": "", //允许发起人自选抄送人
+ "conditionList": [], //当审批单同时满足以下条件时进入此流程
+ "nodeUserList": [], //操作人
+ "childNode": {
+ "nodeName": "审核人",
+ "error": false, //当前审批是否通过校验
+ "type": 1,
+ "settype": 2,
+ "selectMode": 0,
+ "selectRange": 0,
+ "directorLevel": 1,
+ "examineMode": 1,
+ "noHanderAction": 2,
+ "examineEndDirectorLevel": 0,
+ "childNode": {
+ "nodeName": "路由",
+ "type": 4,
+ "priorityLevel": 1,
+ "settype": 1,
+ "selectMode": 0,
+ "selectRange": 0,
+ "directorLevel": 1,
+ "examineMode": 1,
+ "noHanderAction": 2,
+ "examineEndDirectorLevel": 1,
+ "ccSelfSelectFlag": 1,
+ "conditionList": [],
+ "nodeUserList": [],
+ "childNode": {
+ "nodeName": "抄送人",
+ "type": 2,
+ "ccSelfSelectFlag": 1,
+ "childNode": null,
+ "nodeUserList": [],
+ "error": false
+ },
+ "conditionNodes": [{ //条件节点
+ "nodeName": "条件1",
+ "type": 3,
+ "priorityLevel": 1,
+ "settype": 1,
+ "selectMode": 0,
+ "selectRange": 0,
+ "directorLevel": 1,
+ "examineMode": 1,
+ "noHanderAction": 2,
+ "examineEndDirectorLevel": 1,
+ "ccSelfSelectFlag": 1,
+ "conditionList": [{ //当前条件
+ "columnId": 0, //发起人
+ "type": 1, //1 发起人 2其他
+ "optType": "", //["", "<", ">", "≤", "=", "≥"][optType]
+ "zdy1": "",//左侧自定义内容
+ "zdy2": "",//右侧自定义内容
+ "opt1": "",//左侧符号 < ≤
+ "opt2": "",//右侧符号 < ≤
+ "columnDbname": "",//条件字段名称
+ "columnType": "",//条件字段类型
+ "showType": "",//3多选 其他
+ "showName": "",//展示名
+ "fixedDownBoxValue": ""//多选数组
+ }],
+ "nodeUserList": [{
+ "targetId": 85,
+ "type": 1,
+ "name": "天旭"
+ }],
+ "childNode": {
+ "nodeName": "审核人",
+ "type": 1,
+ "priorityLevel": 1,
+ "settype": 1,
+ "selectMode": 0,
+ "selectRange": 0,
+ "directorLevel": 1,
+ "examineMode": 1,
+ "noHanderAction": 2,
+ "examineEndDirectorLevel": 1,
+ "ccSelfSelectFlag": 1,
+ "conditionList": [],
+ "nodeUserList": [{
+ "targetId": 2515744,
+ "type": 1,
+ "name": "哈哈哈哈"
+ }],
+ "childNode": null,
+ "conditionNodes": [],
+ "error": false
+ },
+ "conditionNodes": [],
+ "error": false
+ }, {
+ "nodeName": "条件2",
+ "type": 3,
+ "priorityLevel": 2,
+ "settype": 1,
+ "selectMode": 0,
+ "selectRange": 0,
+ "directorLevel": 1,
+ "examineMode": 1,
+ "noHanderAction": 2,
+ "examineEndDirectorLevel": 1,
+ "ccSelfSelectFlag": 1,
+ "conditionList": [],
+ "nodeUserList": [],
+ "childNode": null,
+ "conditionNodes": [],
+ "error": false
+ }]
+ },
+ "nodeUserList": []
+ },
+ "conditionNodes": []
+ }
+ }
+}
\ No newline at end of file
diff --git a/public/public/departments.json b/public/public/departments.json
new file mode 100644
index 0000000..dfd7789
--- /dev/null
+++ b/public/public/departments.json
@@ -0,0 +1,26 @@
+{
+ "code": "200",
+ "msg": "操作成功",
+ "data": {
+ "childDepartments": [{
+ "departmentKey": "RLXZB_V2",
+ "departmentName": "人力行政部",
+ "id": "150",
+ "parentId": "0",
+ "departmentNames": "人力行政部"
+ }, {
+ "departmentKey": "ZNBN",
+ "departmentName": "法务部",
+ "id": "324",
+ "parentId": "0",
+ "departmentNames": "法务部"
+ }],
+ "employees": [{
+ "id": "53128111",
+ "employeeName": "雅楠",
+ "isLeave": "0",
+ "open": "false"
+ }],
+ "titleDepartments": []
+ }
+}
\ No newline at end of file
diff --git a/public/public/departments0.json b/public/public/departments0.json
new file mode 100644
index 0000000..dfd7789
--- /dev/null
+++ b/public/public/departments0.json
@@ -0,0 +1,26 @@
+{
+ "code": "200",
+ "msg": "操作成功",
+ "data": {
+ "childDepartments": [{
+ "departmentKey": "RLXZB_V2",
+ "departmentName": "人力行政部",
+ "id": "150",
+ "parentId": "0",
+ "departmentNames": "人力行政部"
+ }, {
+ "departmentKey": "ZNBN",
+ "departmentName": "法务部",
+ "id": "324",
+ "parentId": "0",
+ "departmentNames": "法务部"
+ }],
+ "employees": [{
+ "id": "53128111",
+ "employeeName": "雅楠",
+ "isLeave": "0",
+ "open": "false"
+ }],
+ "titleDepartments": []
+ }
+}
\ No newline at end of file
diff --git a/public/public/departments150.json b/public/public/departments150.json
new file mode 100644
index 0000000..aa6cc37
--- /dev/null
+++ b/public/public/departments150.json
@@ -0,0 +1,26 @@
+{
+ "code": "200",
+ "msg": "操作成功",
+ "data": {
+ "childDepartments": [],
+ "employees": [{
+ "id": "53128112",
+ "employeeName": "测试1",
+ "isLeave": "0",
+ "open": "false"
+ },{
+ "id": "53128113",
+ "employeeName": "测试2",
+ "isLeave": "0",
+ "open": "false"
+ }],
+ "titleDepartments": [{
+ "departmentId": "150",
+ "departmentKey": "RLXZB_V2",
+ "departmentName": "人力行政部",
+ "departmentNames": "人力行政部",
+ "id": "150",
+ "parentId": "0"
+ }]
+ }
+}
\ No newline at end of file
diff --git a/public/public/departments324.json b/public/public/departments324.json
new file mode 100644
index 0000000..34b8cc2
--- /dev/null
+++ b/public/public/departments324.json
@@ -0,0 +1,21 @@
+{
+ "code": "200",
+ "msg": "操作成功",
+ "data": {
+ "childDepartments": [],
+ "employees": [{
+ "id": "53128133",
+ "employeeName": "测试3",
+ "isLeave": "0",
+ "open": "false"
+ }],
+ "titleDepartments": [{
+ "departmentId": "324",
+ "departmentKey": "ZNBN",
+ "departmentName": "法务部",
+ "departmentNames": "法务部",
+ "id": "324",
+ "parentId": "0"
+ }]
+ }
+}
\ No newline at end of file
diff --git a/public/public/employees.json b/public/public/employees.json
new file mode 100644
index 0000000..227a989
--- /dev/null
+++ b/public/public/employees.json
@@ -0,0 +1,42 @@
+{
+ "code": "200",
+ "msg": "操作成功",
+ "data": {
+ "navigatepageNums": ["1"],
+ "startRow": "1",
+ "hasNextPage": "false",
+ "prePage": "0",
+ "nextPage": "0",
+ "endRow": "3",
+ "pageSize": "30",
+ "list": [{
+ "departmentName": "招商事业部",
+ "employeeName": "111111",
+ "employeeDepartmentId": "121",
+ "id": "5312",
+ "departmentNames": "招商事业部"
+ }, {
+ "departmentName": "111",
+ "employeeName": "东亚-测试",
+ "employeeDepartmentId": "139",
+ "id": "2515638",
+ "departmentNames": "111"
+ }, {
+ "departmentName": "招商事业部",
+ "employeeName": "1111",
+ "employeeDepartmentId": "121",
+ "id": "2515746",
+ "departmentNames": "招商事业部"
+ }],
+ "pageNum": "1",
+ "navigatePages": "8",
+ "navigateFirstPage": "1",
+ "total": "3",
+ "pages": "1",
+ "size": "3",
+ "isLastPage": "true",
+ "hasPreviousPage": "false",
+ "navigateLastPage": "1",
+ "isFirstPage": "true"
+ }
+}
\ No newline at end of file
diff --git a/public/public/favicon.ico b/public/public/favicon.ico
new file mode 100644
index 0000000..df36fcf
--- /dev/null
+++ b/public/public/favicon.ico
Binary files differ
diff --git a/public/public/roles.json b/public/public/roles.json
new file mode 100644
index 0000000..a13bdc7
--- /dev/null
+++ b/public/public/roles.json
@@ -0,0 +1,80 @@
+{
+ "code": "200",
+ "msg": "操作成功",
+ "data": {
+ "navigatepageNums": [],
+ "startRow": "1",
+ "hasNextPage": "false",
+ "prePage": "0",
+ "nextPage": "0",
+ "endRow": "8",
+ "pageSize": "0",
+ "list": [{
+ "code": "SHGLY",
+ "roleId": "1",
+ "scope": "1",
+ "roleName": "审核管理员",
+ "description": "初始化内置审批角色",
+ "status": "1"
+ }, {
+ "code": "",
+ "roleId": "2",
+ "scope": "1",
+ "roleName": "招商事业部",
+ "description": "",
+ "status": "1"
+ }, {
+ "code": "",
+ "roleId": "3",
+ "scope": "1",
+ "roleName": "互联网部门",
+ "description": "",
+ "status": "1"
+ }, {
+ "code": "",
+ "roleId": "4",
+ "scope": "1",
+ "roleName": "销售部",
+ "description": "",
+ "status": "1"
+ }, {
+ "code": "",
+ "roleId": "5",
+ "scope": "1",
+ "roleName": "战区一",
+ "description": "",
+ "status": "1"
+ }, {
+ "code": "",
+ "roleId": "6",
+ "scope": "1",
+ "roleName": "战区二",
+ "description": "",
+ "status": "1"
+ }, {
+ "code": "",
+ "roleId": "7",
+ "scope": "1",
+ "roleName": "JAVA开发",
+ "description": "",
+ "status": "1"
+ }, {
+ "code": "",
+ "roleId": "8",
+ "scope": "1",
+ "roleName": "测试审批角色",
+ "description": "",
+ "status": "1"
+ }],
+ "pageNum": "1",
+ "navigatePages": "8",
+ "navigateFirstPage": "0",
+ "total": "8",
+ "pages": "0",
+ "size": "8",
+ "isLastPage": "true",
+ "hasPreviousPage": "false",
+ "navigateLastPage": "0",
+ "isFirstPage": "true"
+ }
+}
\ No newline at end of file
diff --git a/src/api/system/plan.ts b/src/api/system/plan.ts
new file mode 100644
index 0000000..c63aef2
--- /dev/null
+++ b/src/api/system/plan.ts
@@ -0,0 +1,56 @@
+/**
+ * 培训计划请求接口
+ */
+import request from '../index'
+const prefix = '/meter'
+
+// 列表查询
+export function getPlanList(data: object) {
+ return request({
+ url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `,
+ method: 'post',
+ data,
+ })
+}
+
+// 主管部门
+export function getDeptTree(params: object) {
+ return request({
+ url: '/sys/dept/tree',
+ method: 'get',
+ params,
+ })
+}
+
+// 培训计划新建
+export function getListAdd(data: object) {
+ return request({
+ url: `${prefix}/train/plan/add`,
+ method: 'post',
+ data,
+ })
+}
+// 培训计划详情
+export function getListDetail(data: object) {
+ return request({
+ url: `${prefix}/train/plan/detail`,
+ method: 'post',
+ data,
+ })
+}
+// 培训计划更新
+export function getListUpdate(data: object) {
+ return request({
+ url: `${prefix}/train/log/update`,
+ method: 'post',
+ data,
+ })
+}
+// 培训计划删除
+export function getListDelete(data: object) {
+ return request({
+ url: `${prefix}/train/plan/delete`,
+ method: 'post',
+ data,
+ })
+}
diff --git a/src/components.d.ts b/src/components.d.ts
index f96b6fe..dbb2458 100644
--- a/src/components.d.ts
+++ b/src/components.d.ts
@@ -7,7 +7,7 @@
declare module '@vue/runtime-core' {
export interface GlobalComponents {
- AddNode: typeof import('./components/addNode.vue')['default']
+ AddNode: typeof import('./components/workFlow/addNode.vue')['default']
AppContainer: typeof import('./components/AppContainer/index.vue')['default']
ApproverDrawer: typeof import('./components/drawer/approverDrawer.vue')['default']
Auth: typeof import('./components/Auth/index.vue')['default']
@@ -26,7 +26,7 @@
ImagePreview: typeof import('./components/ImagePreview/index.vue')['default']
ImagesUpload: typeof import('./components/ImagesUpload/index.vue')['default']
ImageUpload: typeof import('./components/ImageUpload/index.vue')['default']
- NodeWrap: typeof import('./components/nodeWrap.vue')['default']
+ NodeWrap: typeof import('./components/workFlow/nodeWrap.vue')['default']
NormalTable: typeof import('./components/NormalTable/index.vue')['default']
PageHeader: typeof import('./components/PageHeader/index.vue')['default']
PageMain: typeof import('./components/PageMain/index.vue')['default']
@@ -38,13 +38,14 @@
SearchArea: typeof import('./components/SearchArea/index.vue')['default']
SearchBar: typeof import('./components/SearchBar/index.vue')['default']
SearchItem: typeof import('./components/SearchArea/SearchItem.vue')['default']
- SelectBox: typeof import('./components/selectBox.vue')['default']
- SelectResult: typeof import('./components/selectResult.vue')['default']
+ SelectBox: typeof import('./components/workFlow/selectBox.vue')['default']
+ SelectEmployeesDialog: typeof import('./components/dialog/selectEmployeesDialog.vue')['default']
+ SelectResult: typeof import('./components/workFlow/selectResult.vue')['default']
+ SelectRoleDialog: typeof import('./components/dialog/selectRoleDialog.vue')['default']
SelectTree: typeof import('./components/SelectTree/index.vue')['default']
SvgIcon: typeof import('./components/SvgIcon/index.vue')['default']
SystemInfo: typeof import('./components/SystemInfo/index.vue')['default']
TableContainer: typeof import('./components/TableContainer/index.vue')['default']
Trend: typeof import('./components/Trend/index.vue')['default']
- WorkFlow: typeof import('./components/workFlow/workFlow.vue')['default']
}
}
diff --git a/src/components/NormalTable/index.vue b/src/components/NormalTable/index.vue
index 2aa9097..4c53275 100644
--- a/src/components/NormalTable/index.vue
+++ b/src/components/NormalTable/index.vue
@@ -1,10 +1,16 @@
-
-
-
-
-
-
-
-
diff --git a/src/components/dialog/dialog.ts b/src/components/dialog/dialog.ts
new file mode 100644
index 0000000..c27f353
--- /dev/null
+++ b/src/components/dialog/dialog.ts
@@ -0,0 +1,15 @@
+// 角色信息
+export interface IroleInfo {
+ id: string
+ name: string // 角色名
+ tips: string // 别名
+ dataScopeType: string // 数据权限类型
+ dataScopeTypeName?: string // 数据权限类型名称
+ pid: string // 父角色
+ deptId: string // 组织机构
+ num: number // 排序
+ version: string // 保留字段
+ children?: []
+ type?: number
+ targetId?: string
+}
diff --git a/src/components/dialog/employeesDialog.vue b/src/components/dialog/employeesDialog.vue
index 61ac040..a52b2ae 100644
--- a/src/components/dialog/employeesDialog.vue
+++ b/src/components/dialog/employeesDialog.vue
@@ -1,8 +1,8 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ (listQuery.offset - 1) * listQuery.limit + scope.$index + 1 }}
+
+
+
+
+
+
+
+ {{ scope.row.statusName }}
+
+
+
+
+
+
+
+
+
+
+ 取 消
+
+
+ 确 定
+
+
+
+
+
+
+
+
+
diff --git a/src/components/dialog/selectRoleDialog.vue b/src/components/dialog/selectRoleDialog.vue
new file mode 100644
index 0000000..d76462c
--- /dev/null
+++ b/src/components/dialog/selectRoleDialog.vue
@@ -0,0 +1,145 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 取 消
+
+
+ 确 定
+
+
+
+
+
+
+
diff --git a/src/components/drawer/approverDrawer.vue b/src/components/drawer/approverDrawer.vue
index 6b2694d..38281d2 100644
--- a/src/components/drawer/approverDrawer.vue
+++ b/src/components/drawer/approverDrawer.vue
@@ -1,9 +1,13 @@
-
+
-
+
+
+
+
+ 负责人
+
+
+
+ 指定成员
+
+
+ 指定角色
+
+
+
+
+ {{ item.name }}
-
diff --git a/src/components/selectBox.vue b/src/components/selectBox.vue
deleted file mode 100644
index e4f2c55..0000000
--- a/src/components/selectBox.vue
+++ /dev/null
@@ -1,84 +0,0 @@
-
-
-
-
-
-
-
diff --git a/src/components/selectResult.vue b/src/components/selectResult.vue
deleted file mode 100644
index 21c2de5..0000000
--- a/src/components/selectResult.vue
+++ /dev/null
@@ -1,94 +0,0 @@
-
-
-
-
-
- 已选({{ total }})
- 清空
-
-
-
-
- -
-
- {{ item.roleName }}
-
-
-
-
- -
-
- {{ item.departmentName }}
-
-
-
-
- -
-
- {{ item.employeeName }}
-
-
-
-
-
-
-
-
-
diff --git a/src/components/workFlow/addNode.vue b/src/components/workFlow/addNode.vue
index 2c0ea84..71f6df6 100644
--- a/src/components/workFlow/addNode.vue
+++ b/src/components/workFlow/addNode.vue
@@ -1,197 +1,167 @@
-
-
diff --git a/src/components/workFlow/nodeWrap.vue b/src/components/workFlow/nodeWrap.vue
index a5b1ff7..2674b98 100644
--- a/src/components/workFlow/nodeWrap.vue
+++ b/src/components/workFlow/nodeWrap.vue
@@ -1,456 +1,150 @@
-
-
-
-
-
-
+
+
+ {{ nodeConfig.nodeName }}
+
+ {{ nodeConfig.type === 1 ? '' : '' }}
+
- {{ nodeConfig.nodeName }}
-
-
-
-
-
- 请选择{{ placeholderList[nodeConfig.type] }}
-
- {{ setApproverStr(nodeConfig) }}
+ {{ nodeConfig.nodeName }}
+
+
+
+
+
+ 请选择{{ defaultText }}
+ {{ showText }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <
+
+
+
+ {{ item.nodeName }}
+ 优先级{{ item.priorityLevel }}
+
+
+
+ >
+
+
+ {{ $func.conditionStr(nodeConfig, index) }}
+
+
+
+
+
+
-
-
- 请选择{{ placeholderList[nodeConfig.type] }}
-
- {{ setApproverStr(nodeConfig) }}
-
-
-
-
-
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
- <
-
-
- {{ item.nodeName }}
- 优先级{{ item.priorityLevel }}
-
-
-
- >
-
-
- {{ conditionStr(item, index) }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ approverConfig.nodeName }}
-
-
-
-
-
-
-
-
-
-
- {{ item.label }}
- ({{ item.mark }})
-
-
-
-
-
-
- 连续多级部门主管(按照组织架构,发起人向上的各级主管依次审批)
-
-
-
- 直到发起人向上的
-
-
-
-
-
-
- 直到
-
-
-
-
-
-
-
-
-
-
- 部门主管
-
-
- 审批角色
-
-
- 指定用户
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 连续多级部门主管
-
-
- 抄送角色
-
-
- 指定用户
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 按组织架构,发起人向上的各级主管依次抄送
-
-
-
- 直到发起人向上的
-
-
-
-
-
-
- 直到
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 其他情况
-
-
-
-
-
-
-
-
- 当
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 添加条件
-
-
-
-
-
-
-
-
-
-
-
-
- 添加条件组
-
-
-
-
-
-
-
+
-
diff --git a/src/components/workFlow/selectBox.vue b/src/components/workFlow/selectBox.vue
new file mode 100644
index 0000000..e4f2c55
--- /dev/null
+++ b/src/components/workFlow/selectBox.vue
@@ -0,0 +1,84 @@
+
+
+
+
+
+
+
diff --git a/src/components/workFlow/selectResult.vue b/src/components/workFlow/selectResult.vue
new file mode 100644
index 0000000..21c2de5
--- /dev/null
+++ b/src/components/workFlow/selectResult.vue
@@ -0,0 +1,94 @@
+
+
+
+
+
+ 已选({{ total }})
+ 清空
+
+
+
+
+ -
+
+ {{ item.roleName }}
+
+
+
+
+ -
+
+ {{ item.departmentName }}
+
+
+
+
+ -
+
+ {{ item.employeeName }}
+
+
+
+
+
+
+
+
+
diff --git a/src/components/workFlow/workFlow.vue b/src/components/workFlow/workFlow.vue
deleted file mode 100644
index 439b560..0000000
--- a/src/components/workFlow/workFlow.vue
+++ /dev/null
@@ -1,764 +0,0 @@
-
-
-
-
-
-
-
diff --git a/src/css/override-element-ui.css b/src/css/override-element-ui.css
index d772692..4a931e9 100644
--- a/src/css/override-element-ui.css
+++ b/src/css/override-element-ui.css
@@ -47,6 +47,7 @@
.demo-drawer__footer {
padding: 10px 30px !important;
border-top: 1px solid #f2f2f2 !important;
+ margin-top: 32px;
}
.demo-drawer__footer .el-button {
diff --git a/src/css/workflow.css b/src/css/workflow.css
index 26ba1e6..43a0bf8 100644
--- a/src/css/workflow.css
+++ b/src/css/workflow.css
@@ -1099,7 +1099,9 @@
.zoom {
display: flex;
- position: fixed;
+
+ /* position: fixed; */
+ position: relative;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
diff --git a/src/plugins/api.js b/src/plugins/api.js
index b3b9e24..f736077 100644
--- a/src/plugins/api.js
+++ b/src/plugins/api.js
@@ -1,9 +1,3 @@
-/*
- * @Date: 2022-08-25 14:06:59
- * @LastEditors: StavinLi 495727881@qq.com
- * @LastEditTime: 2022-09-21 14:36:58
- * @FilePath: /Workflow-Vue3/src/plugins/api.js
- */
import http from '@/plugins/axios'
const baseUrl = import.meta.env.BASE_URL
diff --git a/src/plugins/preload.js b/src/plugins/preload.js
index b0281d9..fc008ff 100644
--- a/src/plugins/preload.js
+++ b/src/plugins/preload.js
@@ -37,6 +37,7 @@
document.cookie = `${name[i]}=''; path=/; expires=${myDate.toGMTString()}`
}
},
+ // 讲负责人的姓名挑出来做成字符串
arrToStr(arr) {
if (arr) {
return arr.map((item) => { return item.name }).toString()
@@ -58,53 +59,79 @@
})
arr.splice(includesIndex, 1)
},
+ // 设置审批节点的文字
setApproverStr(nodeConfig) {
- if (nodeConfig.settype == 1) {
- if (nodeConfig.nodeUserList.length == 1) {
- return nodeConfig.nodeUserList[0].name
+ console.log(nodeConfig)
+ let tempValue = '会签'
+ let strPeople = ' '
+ if (nodeConfig.selectCustomApprovalType === 'huoqian') {
+ tempValue = '或签'
+ }
+ if (nodeConfig.selectCustomApprovalMethod === 'normal') {
+ if (nodeConfig.nodeUserList.length === 1) {
+ strPeople = `由${nodeConfig.nodeUserList[0].name}人负责`
}
else if (nodeConfig.nodeUserList.length > 1) {
- if (nodeConfig.examineMode == 1) {
- return this.arrToStr(nodeConfig.nodeUserList)
- }
- else if (nodeConfig.examineMode == 2) {
- return `${nodeConfig.nodeUserList.length}人会签`
- }
+ strPeople = `由${this.arrToStr(nodeConfig.nodeUserList)}人负责(${tempValue})`
}
+ return strPeople
}
- else if (nodeConfig.settype == 2) {
- const level = nodeConfig.directorLevel == 1 ? '直接主管' : `第${nodeConfig.directorLevel}级主管`
- if (nodeConfig.examineMode == 1) {
- return level
+ else if (nodeConfig.selectCustomApprovalMethod === 'stepBYstep') {
+ let strPeople = ' '
+ if (nodeConfig.nodeUserList.length === 1) {
+ strPeople = `由${nodeConfig.nodeUserList[0].name}人负责(逐级审批)`
}
- else if (nodeConfig.examineMode == 2) {
- return `${level}会签`
+ else if (nodeConfig.nodeUserList.length > 1) {
+ strPeople = `由${this.arrToStr(nodeConfig.nodeUserList)}人负责(逐级审批-${tempValue})`
}
+ return strPeople
}
- else if (nodeConfig.settype == 4) {
- if (nodeConfig.selectRange == 1) {
- return '发起人自选'
- }
- else {
- if (nodeConfig.nodeUserList.length > 0) {
- if (nodeConfig.selectRange == 2) {
- return '发起人自选'
- }
- else {
- return `发起人从${nodeConfig.nodeUserList[0].name}中自选`
- }
- }
- else {
- return ''
- }
- }
- }
- else if (nodeConfig.settype == 5) {
- return '发起人自己'
- }
- else if (nodeConfig.settype == 7) {
- return `从直接主管到通讯录中级别最高的第${nodeConfig.examineEndDirectorLevel}个层级主管`
- }
+ // if (nodeConfig.settype == 1) {
+ // if (nodeConfig.nodeUserList.length == 1) {
+ // return nodeConfig.nodeUserList[0].name
+ // }
+ // else if (nodeConfig.nodeUserList.length > 1) {
+ // if (nodeConfig.examineMode == 1) {
+ // return this.arrToStr(nodeConfig.nodeUserList)
+ // }
+ // else if (nodeConfig.examineMode == 2) {
+ // return `${nodeConfig.nodeUserList.length}人会签`
+ // }
+ // }
+ // }
+ // else if (nodeConfig.settype == 2) {
+ // const level = nodeConfig.directorLevel == 1 ? '直接主管' : `第${nodeConfig.directorLevel}级主管`
+ // if (nodeConfig.examineMode == 1) {
+ // return level
+ // }
+ // else if (nodeConfig.examineMode == 2) {
+ // return `${level}会签`
+ // }
+ // }
+ // else if (nodeConfig.settype == 4) {
+ // if (nodeConfig.selectRange == 1) {
+ // return '发起人自选'
+ // }
+ // else {
+ // if (nodeConfig.nodeUserList.length > 0) {
+ // if (nodeConfig.selectRange == 2) {
+ // return '发起人自选'
+ // }
+ // else {
+ // return `发起人从${nodeConfig.nodeUserList[0].name}中自选`
+ // }
+ // }
+ // else {
+ // return ''
+ // }
+ // }
+ // }
+ // else if (nodeConfig.settype == 5) {
+ // return '发起人自己'
+ // }
+ // else if (nodeConfig.settype == 7) {
+ // return `从直接主管到通讯录中级别最高的第${nodeConfig.examineEndDirectorLevel}个层级主管`
+ // }
},
dealStr(str, obj) {
const arr = []
@@ -152,7 +179,9 @@
}
},
copyerStr(nodeConfig) {
+ console.log(nodeConfig.nodeUserList)
if (nodeConfig.nodeUserList.length != 0) {
+ console.log('copyerStr')
return this.arrToStr(nodeConfig.nodeUserList)
}
else {
diff --git a/src/store/modules/workFlow.ts b/src/store/modules/workFlow.ts
index 956b386..ba7d7a0 100644
--- a/src/store/modules/workFlow.ts
+++ b/src/store/modules/workFlow.ts
@@ -3,12 +3,12 @@
'workFlow',
{
state: () => ({
- tableId: '',
+ tableId: '', // 审批id
isTried: false,
promoterDrawer: false,
flowPermission1: {},
- approverDrawer: false,
- approverConfig1: {},
+ approverDrawer: false, // 审批抽屉显示隐藏
+ approverConfig1: {}, // 审批设置
copyerDrawer: false,
copyerConfig1: {},
conditionDrawer: false,
@@ -29,9 +29,11 @@
setFlowPermission(payload: object) {
this.flowPermission1 = payload
},
+ // 审批抽屉显隐
setApprover(payload: boolean) {
this.approverDrawer = payload
},
+ // 审批设置
setApproverConfig(payload: object) {
this.approverConfig1 = payload
},
diff --git a/src/views/measure/source/list.vue b/src/views/measure/source/list.vue
index 27c0ce7..6c88385 100644
--- a/src/views/measure/source/list.vue
+++ b/src/views/measure/source/list.vue
@@ -2,6 +2,7 @@
import { reactive, ref } from 'vue'
import type { Ref } from 'vue'
import { ElLoading, ElMessage } from 'element-plus'
+import { Delete } from '@element-plus/icons-vue'
import type { IlistQuery, IlistType } from './list_interface'
import ListSourceAdd from './listAdd.vue'
import { getSoucreList, getSoucreListDelete } from '@/api/system/source'
@@ -64,8 +65,6 @@
},
])
-// 按钮数组
-const buttons = ref(['批量导入', '模板下载', '新建', '导出', '打印'])
// 表格loding
const listLoading = ref(false)
const fetchData = (isNowPage: boolean) => {
@@ -85,6 +84,8 @@
const checkoutList = ref([])
// 文件上传input
const fileRef = ref()
+// 删除id
+const deleteId = ref('')
// 详情id
const infoId = ref('0')
const isPopconfirmShow = ref(false)
@@ -103,6 +104,7 @@
// 点击删除
const handleDelete = (index: string, row: object) => {
isPopconfirmShow.value = true
+ deleteId.value = row.id
}
// 分页
const handleSizeChange = (val: number) => {
@@ -119,8 +121,7 @@
fetchData(true)
}
const confirmEvent = () => {
- console.log('confirm!')
- getSoucreListDelete({ id: row.id }).then((res) => {
+ getSoucreListDelete({ id: deleteId.value }).then((res) => {
if (res.code === 200) {
isPopconfirmShow.value = false
fetchData(true)
@@ -194,30 +195,44 @@
const upload = () => {
fileRef.value.click()
}
-// 点击右上角一排按钮
-const handelClick = (type: string) => {
- if (type === '新建') {
- buttonType.value = ''
- show.value = false
- }
- else if (type === '导出') {
- exportExcelBtn()
- }
- else if (type === '批量导入') {
- upload()
- }
+const uploadAll = () => {
+ upload()
}
+const add = () => {
+ buttonType.value = ''
+ show.value = false
+}
+const exportAll = () => {
+ exportExcelBtn()
+}
+// 打印
+const printObj = ref({
+ id: 'print', // 需要打印元素的id
+ popTitle: '溯源供方编号模板', // 打印配置页上方的标题
+ extraHead: '', // 最上方的头部文字,附加在head标签上的额外标签,使用逗号分割
+ preview: false, // 是否启动预览模式,默认是false
+ previewBeforeOpenCallback() { console.log('正在加载预览窗口!') }, // 预览窗口打开之前的callback
+ previewOpenCallback() { console.log('已经加载完预览窗口,预览打开了!') }, // 预览窗口打开时的callback
+ beforeOpenCallback() { console.log('开始打印之前!') }, // 开始打印之前的callback
+ openCallback() { console.log('执行打印了!') }, // 调用打印时的callback
+ closeCallback() { console.log('关闭了打印工具!') }, // 关闭打印的callback(无法区分确认or取消)
+ clickMounted() { console.log('点击v-print绑定的按钮了!') },
+ // url: 'http://localhost:8080/', // 打印指定的URL,确保同源策略相同
+ // asyncUrl (reslove) {
+ // setTimeout(() => {
+ // reslove('http://localhost:8080/')
+ // }, 2000)
+ // },
+ standard: '',
+ extarCss: '',
+})