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
package/packages/utils/store.js
CHANGED
|
@@ -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
|
+
})
|