vue2-client 1.15.17 → 1.15.19

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": "vue2-client",
3
- "version": "1.15.17",
3
+ "version": "1.15.19",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
@@ -10,7 +10,7 @@
10
10
  <!-- <a-button v-if="eventState.customSave" type="primary" @click="custom('customSave')">-->
11
11
  <!-- <a-icon type="save"/>保存-->
12
12
  <!-- </a-button>-->
13
- <slot name="leftButton" :selectedRowKeys="selectedRowKeys" :selectedRows="selectedRows"></slot>
13
+ <slot name="leftButton" v-if="buttonState.extra !== false" :selectedRowKeys="selectedRowKeys" :selectedRows="selectedRows"></slot>
14
14
  <a-button v-if="buttonState.add && buttonRendering('add')" type="primary" @click="add">
15
15
  <a-icon type="plus"/>新增
16
16
  </a-button>
@@ -80,17 +80,20 @@
80
80
  </a-menu>
81
81
  <a-button>打印 <a-icon type="printer" :style="iconStyle"/> </a-button>
82
82
  </a-dropdown>
83
- <!-- 遍历按钮配置数组,动态生成按钮 -->
84
- <a-button
85
- v-for="(button, index) in editButtonStateData"
86
- :key="index"
87
- :type="button.type || 'dashed'"
88
- @click="editButtonStateDataClick(index)"
89
- class="btn-success"
90
- >
91
- <a-icon type="dashed" :style="iconStyle"/>
92
- {{ button.buttonName }}
93
- </a-button>
83
+ <template
84
+ v-if="buttonState.extra !== false">
85
+ <!-- 遍历按钮配置数组,动态生成按钮 -->
86
+ <a-button
87
+ v-for="(button, index) in editButtonStateData"
88
+ :key="index"
89
+ :type="button.type || 'dashed'"
90
+ @click="editButtonStateDataClick(index)"
91
+ class="btn-success"
92
+ >
93
+ <a-icon type="dashed" :style="iconStyle"/>
94
+ {{ button.buttonName }}
95
+ </a-button>
96
+ </template>
94
97
  <a-button
95
98
  v-if="allowedCardMode && !simpleMode"
96
99
  @click="changeViewMode"
@@ -121,9 +124,8 @@
121
124
  :show-save-button="false"
122
125
  :dont-format="true"/>
123
126
 
124
- <slot name="button" :selectedRowKeys="selectedRowKeys" :selectedRows="selectedRows"></slot>
127
+ <slot name="button" v-if="buttonState.extra !== false" :selectedRowKeys="selectedRowKeys" :selectedRows="selectedRows"></slot>
125
128
  </a-space>
126
-
127
129
  </span>
128
130
  </a-col>
129
131
  <a-col v-show="showRightTools && !simpleMode">
@@ -312,7 +312,7 @@ export default {
312
312
  const k = col.dataIndex || col.key
313
313
  return k === key
314
314
  })
315
- if (!col || !col.width) {
315
+ if (!col || !col.width || col.slotType === 'action') {
316
316
  return h('th', { ...restProps }, [...children])
317
317
  }
318
318
 
@@ -558,7 +558,7 @@ export default {
558
558
  top: 50%;
559
559
  height: 20px;
560
560
  width: 1px;
561
- background-color: #d9d9d9;
561
+ background-color: #ebebeb;
562
562
  transition: background-color 0.2s;
563
563
  transform: translateY(-50%);
564
564
  right: 9px;
@@ -37,7 +37,7 @@
37
37
  <!-- 当前步骤历史记录 -->
38
38
  <template v-if="showTab">
39
39
  <x-tab
40
- :compProp="{ buttonState: { add: false, edit: false, delete: false, import: false }, disableAction: true }"
40
+ :compProp="{ buttonState: { add: false, edit: false, delete: false, import: false, extra: false }, disableAction: true }"
41
41
  :local-config="tabDesigner"
42
42
  :body-style="{ padding: 0 }"
43
43
  :tabBarGutter="24"
@@ -770,6 +770,8 @@ export default {
770
770
  this.$message.success('退回成功')
771
771
  this.loading = true
772
772
  this.loadingHistory = true
773
+ this.currentStepId = this.preBtnTo
774
+ this.activeStepId = this.preBtnTo
773
775
  this.$emit('refresh')
774
776
  this.onClose()
775
777
  this.init()
@@ -920,6 +922,19 @@ export default {
920
922
  },
921
923
  // 根据当前节点,判断之后流程,以及按钮的显示
922
924
  workflowControl () {
925
+ // 重置所有控制数据为默认值,避免之前状态的影响
926
+ this.showNextBtn = false
927
+ this.nextBtnTo = undefined
928
+ this.nextBtnTitle = ''
929
+ this.showStepNextBtn = false
930
+ this.stepNextBtnTo = undefined
931
+ this.stepNextBtnTitle = ''
932
+ this.stepNextBtnText = []
933
+ this.showPrevBtn = false
934
+ this.preBtnTo = undefined
935
+ this.preBtnTitle = ''
936
+ this.preBtnText = []
937
+
923
938
  // 分类收集不同类型的actions
924
939
  const submitActions = this.currentDirections.filter(item => item.type === 'submit')
925
940
  const conditionalActions = this.currentDirections.filter(item => item.type === 'conditionalBranch')