Преглед на файлове

Merge remote-tracking branch 'origin/Additional_authority' into feature/权限配置

pengyh преди 1 година
родител
ревизия
041b2e7a6f
променени са 3 файла, в които са добавени 11 реда и са изтрити 2 реда
  1. 1 1
      src/components/template/operation_mixin.js
  2. 1 1
      src/components/template/template-page-1.vue
  3. 9 0
      src/views/workOrder/workOrderPool/index.vue

+ 1 - 1
src/components/template/operation_mixin.js

@@ -56,7 +56,7 @@ export default {
                   if (opt[key]?.prompt) {
                     return role && (opt[key]?.conditions ? opt[key]?.conditions({ row, index, column }) : true) ? (
                       <el-popconfirm
-                        title={opt[key]?.prompt}
+                        title={setBtnName(opt[key]?.prompt, { row, index, column })}
                         onConfirm={() => {
                           opt[key]?.click({ row, index, column })
                         }}

+ 1 - 1
src/components/template/template-page-1.vue

@@ -151,7 +151,7 @@ export default {
             click: this.export,
             loading: false
           }
-          // this.optionsEvensAuth("export", {
+          // this.optionsEvensAuth("exp", {
           //   click: this.export,
           //   loading: false
           // })

+ 9 - 0
src/views/workOrder/workOrderPool/index.vue

@@ -115,10 +115,19 @@ export default {
       return [
         [
           [
+          this.optionsEvensAuth(["createWorkOrder", "createWbWorkOrder"], {
+              name: '创建工单',
+              click: () => { }
+            }),
             this.optionsEvensAuth("createWorkOrder", {
               click: () => {
                 this.createFormBool = true
               }
+            }),
+            this.optionsEvensAuth("createWbWorkOrder", {
+              click: () => {
+                this.createFormBool = true
+              }
             })
           ],
           [