|
@@ -21,8 +21,11 @@
|
|
|
<a-col :span="12">
|
|
<a-col :span="12">
|
|
|
<a-form-item label="账户角色"
|
|
<a-form-item label="账户角色"
|
|
|
name="roleids">
|
|
name="roleids">
|
|
|
|
|
+ <span v-if="isPingAnOem()"
|
|
|
|
|
+ class="dialogSpan">业务员</span>
|
|
|
<a-checkbox-group class="commonCheckboxGroup"
|
|
<a-checkbox-group class="commonCheckboxGroup"
|
|
|
- v-model:value="formState.roleids">
|
|
|
|
|
|
|
+ v-model:value="formState.roleids"
|
|
|
|
|
+ v-else>
|
|
|
<a-row>
|
|
<a-row>
|
|
|
<a-col :span="12">
|
|
<a-col :span="12">
|
|
|
<a-checkbox :value="22">业务员</a-checkbox>
|
|
<a-checkbox :value="22">业务员</a-checkbox>
|
|
@@ -78,6 +81,7 @@ import { ErmcpLoginUser } from '@/services/go/ermcp/account/interface';
|
|
|
import { getUserId } from '@/services/bus/account';
|
|
import { getUserId } from '@/services/bus/account';
|
|
|
import { validateAction } from '@/common/setup/form';
|
|
import { validateAction } from '@/common/setup/form';
|
|
|
import { _closeModal } from '@/common/setup/modal/modal';
|
|
import { _closeModal } from '@/common/setup/modal/modal';
|
|
|
|
|
+import { isPingAnOem } from '@/common/config/projectName';
|
|
|
|
|
|
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
|
name: 'account_info_business_btn_modify',
|
|
name: 'account_info_business_btn_modify',
|
|
@@ -97,6 +101,10 @@ export default defineComponent({
|
|
|
mergeTwoObj(formState, props.selectedRow);
|
|
mergeTwoObj(formState, props.selectedRow);
|
|
|
// roletype :string;//角色类型(逗号隔开,如22,23), 22:业务员 23:跟单员 24:交易员
|
|
// roletype :string;//角色类型(逗号隔开,如22,23), 22:业务员 23:跟单员 24:交易员
|
|
|
formState.roleids = props.selectedRow.roletype.split(',').map((e) => +e);
|
|
formState.roleids = props.selectedRow.roletype.split(',').map((e) => +e);
|
|
|
|
|
+ // 平安项目
|
|
|
|
|
+ if (isPingAnOem()) {
|
|
|
|
|
+ formState.roleids = [22];
|
|
|
|
|
+ }
|
|
|
function submit() {
|
|
function submit() {
|
|
|
validateAction<BusinessFormState>(formRef, formState).then((param) => {
|
|
validateAction<BusinessFormState>(formRef, formState).then((param) => {
|
|
|
const name = param.loginname;
|
|
const name = param.loginname;
|
|
@@ -125,6 +133,7 @@ export default defineComponent({
|
|
|
cancel,
|
|
cancel,
|
|
|
submit,
|
|
submit,
|
|
|
loading,
|
|
loading,
|
|
|
|
|
+ isPingAnOem,
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
});
|
|
});
|