Browse Source

修改权限人员选择为单选

dev
long 2 years ago
parent
commit
411bae21f2
  1. 1
      src/components/jeecgbiz/JSelectUserByDep.vue
  2. 6
      src/views/activiti/form/ProcessPermissionAuthorizationForm.vue

1
src/components/jeecgbiz/JSelectUserByDep.vue

@ -5,6 +5,7 @@
placeholder="请先选择用户"
readOnly
unselectable="on"
:multi="multi"
@search="onSearchDepUser"
>
<a-button slot="enterButton" :disabled="disabled">选择用户</a-button>

6
src/views/activiti/form/ProcessPermissionAuthorizationForm.vue

@ -30,12 +30,12 @@
</a-col>
<a-col :span="12">
<a-form-item label="授权人" :labelCol="labelCol" :wrapperCol="wrapperCol">
<j-select-user-by-dep v-decorator="['authorizationPerson']"/>
<j-select-user-by-dep v-decorator="['authorizationPerson',validatorRules.authorizationPerson]" :multi="false"/>
</a-form-item>
</a-col>
<a-col :span="12">
<a-form-item label="被授权人" :labelCol="labelCol" :wrapperCol="wrapperCol">
<j-select-user-by-dep v-decorator="['authorizedPerson',validatorRules.authorizedPerson]" />
<j-select-user-by-dep v-decorator="['authorizedPerson',validatorRules.authorizedPerson]" :multi="false" />
</a-form-item>
</a-col>
<a-col :span="12">
@ -189,6 +189,7 @@
privilegedTimeEnd: {rules:[ { required: true, message: '结束时间不能为空!'}]},
privilegedAffirmedTime: {rules:[ { required: true, message: '授权时间不能为空!'}]},
authorizationNumberDays: {rules:[ { required: true, message: '授权天数不能为空!'}]},
authorizationPerson:{rules: [{ required: true, message: '授权人不能为空!' }]},
},
}
},
@ -403,7 +404,6 @@
console.log('获取我的数据',res)
let param={}
param.createBy=res.username;
param.authorizationPerson=res.username;
param.company=company;
param.departId=res.departIds;
param.createTime= getCurrentTime();

Loading…
Cancel
Save