doway-coms 1.4.55 → 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 +14 -14
package/package.json
CHANGED
|
@@ -243,20 +243,7 @@
|
|
|
243
243
|
<a-button
|
|
244
244
|
type="link"
|
|
245
245
|
@click="operationButtonClick(item, scope)"
|
|
246
|
-
v-show="
|
|
247
|
-
item.visible === true &&
|
|
248
|
-
!(scope.row['sysOperationDisVisible_' + item.field] === true) &&
|
|
249
|
-
item.visibleStatuss != undefined
|
|
250
|
-
? item.visibleStatuss.indexOf(scope.row.status) != -1
|
|
251
|
-
: true &&
|
|
252
|
-
item.visibleState != undefined &&
|
|
253
|
-
item.visibleState.field != undefined &&
|
|
254
|
-
item.visibleState.visibleStatuss != undefined
|
|
255
|
-
? item.visibleState.visibleStatuss.indexOf(
|
|
256
|
-
scope.row[item.visibleState.field]
|
|
257
|
-
) != -1
|
|
258
|
-
: true
|
|
259
|
-
"
|
|
246
|
+
v-show="operationEdit(item, scope)"
|
|
260
247
|
v-for="item in scope.column.params.columns"
|
|
261
248
|
:key="item.field"
|
|
262
249
|
>
|
|
@@ -1732,6 +1719,19 @@ export default {
|
|
|
1732
1719
|
}
|
|
1733
1720
|
this.$emit("operationBtnClick", btn, scope.row, this);
|
|
1734
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
|
+
},
|
|
1735
1735
|
activeCellMethod({ row, column }) {
|
|
1736
1736
|
let emitData ={
|
|
1737
1737
|
row:row,
|