doway-coms 2.7.4 → 2.7.6

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": "doway-coms",
3
- "version": "2.7.4",
3
+ "version": "2.7.6",
4
4
  "description": "doway组件库",
5
5
  "author": "dowaysoft",
6
6
  "main": "packages/index.js",
@@ -2848,7 +2848,6 @@ export default {
2848
2848
  return footerData
2849
2849
  }else{
2850
2850
  if (this.footerSum.length > 0) {
2851
- if (this.footerSum.length > 0) {
2852
2851
  let tempResult = [
2853
2852
  columns.map((column, columnIndex) => {
2854
2853
  if (columnIndex === 0) {
@@ -116,6 +116,10 @@ export default new Vuex.Store({
116
116
  tempPagerButtons.push(tempField)
117
117
  }else if(tempField.controlType===controlType.operation){
118
118
  //操作按钮列
119
+ // 动态加载 visibleConditional 函数 来控制操作按钮是否显示
120
+ if (tempField.visibleConditional){
121
+ tempField.visibleConditional = eval(`(${tempField.visibleConditional})`);
122
+ }
119
123
  operationFields.push(tempField)
120
124
 
121
125
  }
@@ -123,7 +127,7 @@ export default new Vuex.Store({
123
127
  tempFields.push(tempField)
124
128
  }
125
129
  })
126
-
130
+
127
131
  tempDataInfo[loopData.code]['pagerButtons'] = tempPagerButtons
128
132
  if(operationFields.length>0){
129
133
  //添加右侧按钮操作列
@@ -185,7 +189,7 @@ export default new Vuex.Store({
185
189
  actions: {
186
190
  /**
187
191
  * 系统登出
188
- * @param {} param0
192
+ * @param {} param0
189
193
  */
190
194
  logOut({commit}){
191
195
  // alert('会话过期3');
@@ -307,4 +311,4 @@ export default new Vuex.Store({
307
311
  staffId: state => state.staffId,
308
312
  baseSetting: state => state.baseSetting,
309
313
  }
310
- })
314
+ })