@lambo-design/workflow-approve 1.0.0-beta.110 → 1.0.0-beta.112

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lambo-design/workflow-approve",
3
- "version": "1.0.0-beta.110",
3
+ "version": "1.0.0-beta.112",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "author": "lambo",
@@ -13,7 +13,7 @@
13
13
  "axios": "^0.24.0",
14
14
  "axios-cache-plugin": "^0.1.0",
15
15
  "@lambo-design/core": "^4.7.1-beta.171",
16
- "@lambo-design/shared": "^1.0.0-beta.312"
16
+ "@lambo-design/shared": "^1.0.0-beta.316"
17
17
  },
18
18
  "dependencies": {
19
19
  "bpmn-js": "^7.3.1",
package/src/portrait.vue CHANGED
@@ -493,6 +493,7 @@ export default {
493
493
  permScope: '',
494
494
  organTreeType: '00',
495
495
  defaultOrganTreeType: '00',
496
+ ucAdapterType: 'x1',
496
497
  ruleValidate: {
497
498
  auditOpinion: [{ required: true, trigger: 'blur', message: '意见不能为空' }],
498
499
  assignee: [{ required: true, trigger: 'blur', message: '办理人不能为空' }],
@@ -579,6 +580,7 @@ export default {
579
580
  },
580
581
 
581
582
  mounted() {
583
+ this.getUcAdapterType()
582
584
  this.calculateDimensions();
583
585
  // 监听窗口大小变化
584
586
  window.addEventListener('resize', this.handleWindowResize);
@@ -1162,6 +1164,18 @@ export default {
1162
1164
  }
1163
1165
  this.portraitWidth = this.width
1164
1166
  },
1167
+ getUcAdapterType(){
1168
+ const self = this
1169
+ ajax.get(self.smartFlowServerContext + '/anon/systemConfig/getSystemConfig').then(function (resp) {
1170
+ const result = resp.data;
1171
+ if (result && result.code === '200') {
1172
+ self.ucAdapterType = result.data.ucAdapterType
1173
+ self.defaultOrganTreeType = self.ucAdapterType === 'sc' ? 'default' : '00'
1174
+ }
1175
+ }).catch(err => {
1176
+ console.log(err);
1177
+ })
1178
+ },
1165
1179
  initData() {
1166
1180
  if (!this.isDetail) {
1167
1181
  this.getTodoTask()
@@ -1199,7 +1213,7 @@ export default {
1199
1213
  .then(resp => {
1200
1214
  let data = resp.data.data.rows
1201
1215
  self.permScope = data[0].permScope
1202
- self.defaultOrganTreeType = data[0].organTreeType ? data[0].organTreeType : '00'
1216
+ self.defaultOrganTreeType = data[0].organTreeType ? data[0].organTreeType : self.ucAdapterType === 'sc' ? 'default' : '00'
1203
1217
  self.getNodeOrganTreeType(procType)
1204
1218
  }).catch(err => {
1205
1219
  console.log(err)
@@ -184,18 +184,20 @@ export default {
184
184
  type: Array,
185
185
  default: () => {
186
186
  return [
187
- {
188
- title: '序号',
189
- width: 60,
190
- render: (h, {row, index}) => {
191
- // 子节点不显示序号
192
- if (row._isChildNode) {
193
- return h('span', '');
194
- }
195
- return h('span', index + 1);
196
- }
197
- },
198
- {title: '节点', key: 'taskName', minWidth: 130, tree: true},
187
+ // {
188
+ // title: '序号',
189
+ // width: 60,
190
+ // render: (h, {row, index}) => {
191
+ // // 子节点不显示序号
192
+ // if (row._isChildNode) {
193
+ // return h('span', '');
194
+ // }
195
+ // return h('span', index + 1);
196
+ // }
197
+ // },
198
+ // {title: '节点', key: 'taskName', minWidth: 130, tree: true},
199
+ {title: '序号', type: 'index', width: 60},
200
+ {title: '节点', key: 'taskName', minWidth: 130},
199
201
  {title: '办理人', key: 'auditName', minWidth: 150, tooltip: true},
200
202
  {
201
203
  title: '结果', key: 'auditResult', minWidth: 150,