|
@@ -5,13 +5,13 @@
|
|
|
:show-close="false"
|
|
|
:close-on-click-modal="false"
|
|
|
:visible.sync="isShow"
|
|
|
- title="用户审核"
|
|
|
+ :title="`审核:${curObj.real_name}--(推荐人${curObj.referrer})`"
|
|
|
:fullscreen="false"
|
|
|
width="360px"
|
|
|
custom-class="xl-dialog"
|
|
|
center
|
|
|
>
|
|
|
- <base-form ref="ruleForm" :data="formData" :is-inline="false" label-width="60px">
|
|
|
+ <base-form ref="ruleForm" :data="formData" :is-inline="false" label-width="70px">
|
|
|
<div slot="footer">
|
|
|
<el-button class="xl-form-btn t2" @click="close">关 闭</el-button>
|
|
|
<el-button class="xl-form-btn t1" @click="close('confirm')">确定</el-button>
|
|
@@ -45,10 +45,32 @@ export default {
|
|
|
},
|
|
|
},
|
|
|
methods: {
|
|
|
- getDef() {
|
|
|
- this.formData = [
|
|
|
- { label: '处理', key: 'auth_state', type: 'select', class: 'c-2', options: [{val: '1', key: '通过'}, {val: '3', key: '拒绝'}] },
|
|
|
- ]
|
|
|
+ getDef(fieldStr) {
|
|
|
+ let params = { ...this.curObj }
|
|
|
+ if (fieldStr === 'changeStr') {
|
|
|
+ const oldform = this.$refs.ruleForm.baseForm
|
|
|
+ params = {...this.curObj, ...oldform}
|
|
|
+ } else {
|
|
|
+ params.auth_state = '1'
|
|
|
+ }
|
|
|
+ if (params.group_type == 2) {
|
|
|
+ this.formData = [
|
|
|
+ { label: '处理', key: 'auth_state', rules: 1, type: 'select', class: 'c-2', options: [{val: '1', key: '通过'}, {val: '3', key: '拒绝'}] },
|
|
|
+ { label: '角色', key: 'group_type', rules: 1, class: 'c-2', type: 'select', options: this.$dictData.group_type, changeHandle: this.groupTypeChange },
|
|
|
+ { label: '所属渠道', key: 'dept_id', type: 'selectRemote',
|
|
|
+ remoteParams: { skey: 'dept_name', api: `user.admdeptlist`, opKey: 'dept_name', opVal: 'id' },
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ } else {
|
|
|
+ this.formData = [
|
|
|
+ { label: '处理', key: 'auth_state', rules: 1, type: 'select', class: 'c-2', options: [{val: '1', key: '通过'}, {val: '3', key: '拒绝'}] },
|
|
|
+ { label: '角色', key: 'group_type', rules: 1, class: 'c-2', type: 'select', options: this.$dictData.group_type, changeHandle: this.groupTypeChange },
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ this.setDefaultValue(params)
|
|
|
+ },
|
|
|
+ groupTypeChange () {
|
|
|
+ this.getDef('changeStr')
|
|
|
},
|
|
|
close(str) {
|
|
|
if (str === 'confirm') {
|