n20-common-lib 2.6.65 → 2.6.67

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": "n20-common-lib",
3
- "version": "2.6.65",
3
+ "version": "2.6.67",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -36,14 +36,34 @@
36
36
  :placeholder="'请选择加签类型' | $lc"
37
37
  style="width: 10em"
38
38
  >
39
- <el-option
40
- v-if="authList.includes('isAddForwardTask') || preAddTask"
41
- :label="'向前加签' | $lc"
42
- value="2"
43
- />
44
- <el-option v-if="authList.includes('isAddtask') || preAddTask" :label="'向后加签' | $lc" value="1" />
39
+ <el-option v-if="addTaskModel === '1'" :label="'向后加签' | $lc" value="1" />
40
+ <template v-else>
41
+ <el-option
42
+ v-if="authList.includes('isAddForwardTask') || preAddTask"
43
+ :label="'向前加签' | $lc"
44
+ value="2"
45
+ />
46
+ <el-option
47
+ v-if="addTaskModel === '1' || authList.includes('isAddtask') || preAddTask"
48
+ :label="'向后加签' | $lc"
49
+ value="1"
50
+ />
51
+ </template>
45
52
  </el-select>
46
53
  <el-select
54
+ v-if="addTaskModel === '1'"
55
+ v-model="addTaskType"
56
+ disabled
57
+ clearable
58
+ :placeholder="'请选择审批方式' | $lc"
59
+ style="width: 10em"
60
+ >
61
+ <el-option :label="'普通节点' | $lc" value="1" />
62
+ <el-option :label="'会签并行' | $lc" value="2" />
63
+ <el-option :label="'普通串行' | $lc" value="3" />
64
+ </el-select>
65
+ <el-select
66
+ v-else
47
67
  v-model="addTaskType"
48
68
  disabled
49
69
  clearable
@@ -304,6 +324,7 @@ export default {
304
324
  approvalToV: false,
305
325
  showApprovalTo: false,
306
326
  opiAndUser: false,
327
+ addTaskMode: '0',
307
328
  otherAtt: {},
308
329
  fileDtos: [],
309
330
  fileName: '',
@@ -361,6 +382,16 @@ export default {
361
382
  })
362
383
  })
363
384
  },
385
+ // 获取加签方式的模式
386
+ getAddTaskMode() {
387
+ axios
388
+ .get(`/bems/activiti/sample/getAddTaskMode`, null, { loading: false, noMsg: true })
389
+ .then(({ data, code }) => {
390
+ if (code === 200) {
391
+ this.addTaskMode = data
392
+ }
393
+ })
394
+ },
364
395
 
365
396
  // 换回到发起页
366
397
  goFrom() {
@@ -222,7 +222,7 @@ export default {
222
222
  }
223
223
  $table.toggleCheckboxRow(row)
224
224
  this.key++
225
- this.handleSelectionChange()
225
+ this.handleSelectionChange(row)
226
226
  },
227
227
  customSortMethod({ sortList }) {
228
228
  const orders = sortList.map((item) => {
@@ -263,9 +263,10 @@ export default {
263
263
  this.$emit('filter-change-method', obj)
264
264
  }
265
265
  },
266
- handleSelectionChange() {
266
+ // row当前单次勾选的哪一行数据 包含checked字段
267
+ handleSelectionChange(row = '') {
267
268
  const val = this.$refs.vxeTable.getCheckboxRecords()
268
- this.$emit('selection-change-method', val)
269
+ this.$emit('selection-change-method', val, row)
269
270
  },
270
271
  sizeUp(size) {
271
272
  this.sizeC = size