Parcourir la source

代理列表添加宽度,编辑页面添加提示

linweizeng il y a 2 ans
Parent
commit
8f01b81a74

+ 12 - 5
src/views/platform/bpmn/bpmAgent/edit.vue

@@ -55,7 +55,11 @@
 
             <el-row>
                 <el-col :span="24">
-                    <el-form-item label="委托人角色:">
+                    <el-form-item>
+                        <template slot="label">
+                            委托人角色:
+                            <help-tip :title="formAsterisk.title" :content="formAsterisk.content"/>
+                        </template>
                         <el-checkbox-group v-if="!readonly" v-model="checkRoleList">
                             <el-checkbox v-for="item in roleList" :key="item.id" :label="item.id">{{ item.name }}</el-checkbox>
                         </el-checkbox-group>
@@ -239,7 +243,12 @@ export default {
             yuanRoleList: [],
             checkRoleList: [],
             daiRoleName: '',
-            daiRoleList: []
+            daiRoleList: [],
+
+            formAsterisk: {
+                title: '角色代理',
+                content: '该委托人角色代理主要用于菜单权限与编辑按钮权限'
+            }
         }
     },
     computed: {
@@ -422,8 +431,7 @@ export default {
             this.dialogLoading = true
             get({
                 id: this.formId
-            })
-                .then((response) => {
+            }).then((response) => {
                     this.bpmAgent = response.data
                     this.checkRoleList = response.data.bpmAgentRoleList || []
                     this.formValidate()
@@ -525,7 +533,6 @@ export default {
                 this.roleList = this.yuanRoleList.filter(item => {
                     return !this.daiRoleList.some(it => it.id == item.id)
                 })
-                console.log(this.yuanRoleList.length,this.roleList.length)
             }
         },
         getVerification(){

+ 6 - 6
src/views/platform/bpmn/bpmAgent/list.vue

@@ -81,12 +81,12 @@ export default {
                 // 表格字段配置
                 columns: [
                     { prop: 'title', label: '标题' },
-                    { prop: 'delegatorName', label: '委托人' },
-                    { prop: 'agenterName', label: '代理人' },
-                    { prop: 'isEnabled', label: '是否启用', tags: statusOptions },
-                    { prop: 'effectiveTime', label: '生效时间', sortable: 'custom' },
-                    { prop: 'expiryTime', label: '失效时间', sortable: 'custom' },
-                    { prop: 'agentType', label: '代理类型', tags: agentTypeOptions }
+                    { prop: 'delegatorName', label: '委托人',width: '100' },
+                    { prop: 'agenterName', label: '代理人',width: '100' },
+                    { prop: 'isEnabled', label: '是否启用', tags: statusOptions,width: '100' },
+                    { prop: 'effectiveTime', label: '生效时间', sortable: 'custom',width: '100' },
+                    { prop: 'expiryTime', label: '失效时间', sortable: 'custom',width: '100' },
+                    { prop: 'agentType', label: '代理类型', tags: agentTypeOptions,width: '150' }
                 ]
                 // rowHandle: {
                 //   actions: [{