Просмотр исходного кода

修改bpmn源码-隐藏contextPad中无用选项

lph 1 год назад
Родитель
Сommit
34f12a9036

+ 30 - 30
zkqy-ui/src/components/updateModule/bpmn-js/lib/features/context-pad/ContextPadProvider.js

@@ -384,32 +384,32 @@ ContextPadProvider.prototype.getContextPadEntries = function (element) {
   if (!popupMenu.isEmpty(element, 'bpmn-replace')) {
 
     // Replace menu entry
-    assign(actions, {
-      'replace': {
-        group: 'edit',
-        className: 'bpmn-icon-screw-wrench',
-        title: translate('Change type'),
-        action: {
-          click: function (event, element) {
-
-            var position = assign(getReplaceMenuPosition(element), {
-              cursor: { x: event.x, y: event.y }
-            });
-
-            popupMenu.open(element, 'bpmn-replace', position);
-          }
-        }
-      }
-    });
+    // assign(actions, {
+    //   'replace': {
+    //     group: 'edit',
+    //     className: 'bpmn-icon-screw-wrench',
+    //     title: translate('Change type'),
+    //     action: {
+    //       click: function (event, element) {
+
+    //         var position = assign(getReplaceMenuPosition(element), {
+    //           cursor: { x: event.x, y: event.y }
+    //         });
+
+    //         popupMenu.open(element, 'bpmn-replace', position);
+    //       }
+    //     }
+    //   }
+    // });
   }
 
   if (is(businessObject, 'bpmn:SequenceFlow')) {
-    assign(actions, {
-      'append.text-annotation': appendAction(
-        'bpmn:TextAnnotation',
-        'bpmn-icon-text-annotation'
-      )
-    });
+    // assign(actions, {
+    //   'append.text-annotation': appendAction(
+    //     'bpmn:TextAnnotation',
+    //     'bpmn-icon-text-annotation'
+    //   )
+    // });
   }
 
   if (
@@ -421,10 +421,10 @@ ContextPadProvider.prototype.getContextPadEntries = function (element) {
     ])
   ) {
     assign(actions, {
-      'append.text-annotation': appendAction(
-        'bpmn:TextAnnotation',
-        'bpmn-icon-text-annotation'
-      ),
+      // 'append.text-annotation': appendAction(
+      //   'bpmn:TextAnnotation',
+      //   'bpmn-icon-text-annotation'
+      // ),
 
       'connect': {
         group: 'connect',
@@ -473,9 +473,9 @@ ContextPadProvider.prototype.getContextPadEntries = function (element) {
   }
 
   if (is(businessObject, 'bpmn:Group')) {
-    assign(actions, {
-      'append.text-annotation': appendAction('bpmn:TextAnnotation', 'bpmn-icon-text-annotation')
-    });
+    // assign(actions, {
+    //   'append.text-annotation': appendAction('bpmn:TextAnnotation', 'bpmn-icon-text-annotation')
+    // });
   }
 
   // delete element entry, only show if allowed by rules

+ 6 - 2
zkqy-ui/src/views/system/tenant/code/index.vue

@@ -8,7 +8,11 @@
         label-width="80px"
       >
         <el-form-item label="租户信息" prop="tenantCode">
-          <el-select v-model="activationCode.tenantCode" placeholder="请选择">
+          <el-select
+            v-model="activationCode.tenantCode"
+            placeholder="请选择"
+            filterable
+          >
             <el-option
               v-for="item in tenantList"
               :key="item.tenantId"
@@ -216,7 +220,7 @@ export default {
   methods: {
     //查询租户信息列表
     getList() {
-      listTenant(this.queryParams).then((response) => {
+      listTenant({ isEnablePaging: false }).then((response) => {
         this.tenantList = response.rows;
       });
     },