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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "doway-coms",
3
- "version": "1.4.54",
3
+ "version": "1.4.56",
4
4
  "description": "doway组件库",
5
5
  "author": "dowaysoft",
6
6
  "main": "packages/index.js",
@@ -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,
package/packages/index.js CHANGED
@@ -85,7 +85,6 @@ Vue.use(Contextmenu);
85
85
  const install = function (Vue) {
86
86
  //注册grid组件
87
87
  Vue.use(VXETable)
88
- Vue.use(Contextmenu)
89
88
  // 遍历注册全局组件
90
89
  components.forEach((component) => {
91
90
  Vue.component(component.name, component);