Explorar el Código

feature(权限): 大项目权限开发

ZZH-wl hace 2 años
padre
commit
9de77755be
Se han modificado 2 ficheros con 13 adiciones y 2 borrados
  1. 12 1
      src/views/base/productAuth/index.vue
  2. 1 1
      src/views/proj/business/index.vue

+ 12 - 1
src/views/base/productAuth/index.vue

@@ -35,7 +35,8 @@
         :sortable="item.sortable"
         :width="item.width">
         <template #default="{ row }">
-          <span>{{ row[item.prop] }}</span>
+          <span v-if="item.prop === 'isBig'">{{ row[item.prop] === '10' ? '是' : '否' }}</span>
+          <span v-else>{{ row[item.prop] }}</span>
         </template>
       </el-table-column>
       <el-table-column align="center" label="操作" width="120px">
@@ -64,6 +65,9 @@
             </el-checkbox>
           </el-checkbox-group>
         </el-form-item>
+        <el-form-item label="大项目授权">
+          <el-switch v-model="form.isBig" active-text="是" active-value="10" inactive-text="否" inactive-value="20" />
+        </el-form-item>
       </el-form>
       <template #footer>
         <el-button @click="visible = false">取 消</el-button>
@@ -116,6 +120,11 @@
             sortable: false,
             disableCheck: false,
           },
+          {
+            label: '大项目',
+            width: '120px',
+            prop: 'isBig',
+          },
           {
             label: '授权产品线',
             width: 'auto',
@@ -132,6 +141,7 @@
           userPost: '',
           userPhone: '',
           productLine: [],
+          isBig: '20',
         },
       }
     },
@@ -192,6 +202,7 @@
           userPost: '',
           userPhone: '',
           productLine: [],
+          isBig: '20',
         }
         this.$refs.form.clearValidate()
       },

+ 1 - 1
src/views/proj/business/index.vue

@@ -235,7 +235,7 @@
           {
             label: '项目级别',
             prop: 'nboType',
-            width: '60px',
+            width: '80px',
           },
           {
             label: '项目预算(万元)',