doway-coms 1.4.54 → 1.4.56
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 +1 -1
- package/packages/BaseGrid/src/index.vue +15 -9
- package/packages/index.js +0 -1
package/package.json
CHANGED
|
@@ -239,18 +239,11 @@
|
|
|
239
239
|
</template>
|
|
240
240
|
<template #operation_edit="scope">
|
|
241
241
|
<div>
|
|
242
|
+
<!-- 2个显示限制:页面状态visibleStatuss数组;根据其他字段限制visibleState对象 -->
|
|
242
243
|
<a-button
|
|
243
244
|
type="link"
|
|
244
245
|
@click="operationButtonClick(item, scope)"
|
|
245
|
-
v-show="
|
|
246
|
-
item.visible === true &&
|
|
247
|
-
!(scope.row['sysOperationDisVisible_' + item.field] === true) &&
|
|
248
|
-
item.visibleState != undefined &&
|
|
249
|
-
item.visibleState.field != undefined &&
|
|
250
|
-
item.visibleState.visibleStatuss != undefined
|
|
251
|
-
? item.visibleState.visibleStatuss.includes(scope.row.status)
|
|
252
|
-
: true
|
|
253
|
-
"
|
|
246
|
+
v-show="operationEdit(item, scope)"
|
|
254
247
|
v-for="item in scope.column.params.columns"
|
|
255
248
|
:key="item.field"
|
|
256
249
|
>
|
|
@@ -1726,6 +1719,19 @@ export default {
|
|
|
1726
1719
|
}
|
|
1727
1720
|
this.$emit("operationBtnClick", btn, scope.row, this);
|
|
1728
1721
|
},
|
|
1722
|
+
operationEdit(item, scope) {
|
|
1723
|
+
let isShow =
|
|
1724
|
+
item.visible === true &&
|
|
1725
|
+
!(scope.row["sysOperationDisVisible_" + item.field] === true) &&
|
|
1726
|
+
(item.visibleState != undefined &&
|
|
1727
|
+
item.visibleState.field != undefined &&
|
|
1728
|
+
item.visibleState.visibleStatuss != undefined
|
|
1729
|
+
? item.visibleState.visibleStatuss.indexOf(
|
|
1730
|
+
scope.row[item.visibleState.field]
|
|
1731
|
+
) != -1
|
|
1732
|
+
: true);
|
|
1733
|
+
return isShow;
|
|
1734
|
+
},
|
|
1729
1735
|
activeCellMethod({ row, column }) {
|
|
1730
1736
|
let emitData ={
|
|
1731
1737
|
row:row,
|