|
@@ -18,7 +18,7 @@
|
|
|
<a-col :span="12">
|
|
<a-col :span="12">
|
|
|
<a-form-item label="所属用户"
|
|
<a-form-item label="所属用户"
|
|
|
name="">
|
|
name="">
|
|
|
- <span class="white">{{rolename}}</span>
|
|
|
|
|
|
|
+ <span class="white">{{firstBtnData.rolename}}</span>
|
|
|
</a-form-item>
|
|
</a-form-item>
|
|
|
</a-col>
|
|
</a-col>
|
|
|
<a-col :span="12">
|
|
<a-col :span="12">
|
|
@@ -62,8 +62,8 @@
|
|
|
v-for="(item, index) in selectedData.acclist"
|
|
v-for="(item, index) in selectedData.acclist"
|
|
|
:key="index"
|
|
:key="index"
|
|
|
:class="[index > 1 ? 'mt10' : '']">
|
|
:class="[index > 1 ? 'mt10' : '']">
|
|
|
- <a-checkbox
|
|
|
|
|
- :value="item.accountid" disabled>
|
|
|
|
|
|
|
+ <a-checkbox :value="item.accountid"
|
|
|
|
|
+ disabled>
|
|
|
{{item.accountname}}/{{item.accountid}}
|
|
{{item.accountname}}/{{item.accountid}}
|
|
|
</a-checkbox>
|
|
</a-checkbox>
|
|
|
</a-col>
|
|
</a-col>
|
|
@@ -80,13 +80,17 @@
|
|
|
import { defineComponent, PropType, watchEffect } from 'vue';
|
|
import { defineComponent, PropType, watchEffect } from 'vue';
|
|
|
import { closeModal } from '@/common/setup/modal/index';
|
|
import { closeModal } from '@/common/setup/modal/index';
|
|
|
import { mergeTwoObj } from '@/utils/objHandle';
|
|
import { mergeTwoObj } from '@/utils/objHandle';
|
|
|
-import { handleBusinessForm, handleRoleName } from '../setup';
|
|
|
|
|
|
|
+import { handleBusinessForm } from '../setup';
|
|
|
import { ErmcpLoginUser, ErmcpLoginUserEx, ErmcpTaAccount } from '@/services/go/ermcp/account/interface';
|
|
import { ErmcpLoginUser, ErmcpLoginUserEx, ErmcpTaAccount } from '@/services/go/ermcp/account/interface';
|
|
|
|
|
|
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
|
name: 'trader-detail',
|
|
name: 'trader-detail',
|
|
|
components: {},
|
|
components: {},
|
|
|
props: {
|
|
props: {
|
|
|
|
|
+ firstBtnData: {
|
|
|
|
|
+ type: Object as PropType<ErmcpLoginUserEx>,
|
|
|
|
|
+ default: {},
|
|
|
|
|
+ },
|
|
|
selectedData: {
|
|
selectedData: {
|
|
|
type: Object as PropType<ErmcpLoginUser>,
|
|
type: Object as PropType<ErmcpLoginUser>,
|
|
|
default: {},
|
|
default: {},
|
|
@@ -103,12 +107,10 @@ export default defineComponent({
|
|
|
setup(props) {
|
|
setup(props) {
|
|
|
const { visible, cancel } = closeModal('detail');
|
|
const { visible, cancel } = closeModal('detail');
|
|
|
const { formState } = handleBusinessForm();
|
|
const { formState } = handleBusinessForm();
|
|
|
- const { rolename, getRoleName } = handleRoleName();
|
|
|
|
|
watchEffect(() => {
|
|
watchEffect(() => {
|
|
|
- if (visible.value) {
|
|
|
|
|
- const { selectedData, tableList } = props;
|
|
|
|
|
|
|
+ if (visible.value && props.selectedData) {
|
|
|
|
|
+ const { selectedData } = props;
|
|
|
mergeTwoObj(formState, selectedData);
|
|
mergeTwoObj(formState, selectedData);
|
|
|
- getRoleName(tableList, selectedData);
|
|
|
|
|
formState.logintaaccounts = selectedData.acclist.map((e) => e.accountid);
|
|
formState.logintaaccounts = selectedData.acclist.map((e) => e.accountid);
|
|
|
formState.accountname = props.selectedData.loginname;
|
|
formState.accountname = props.selectedData.loginname;
|
|
|
}
|
|
}
|
|
@@ -118,7 +120,6 @@ export default defineComponent({
|
|
|
cancel,
|
|
cancel,
|
|
|
formState,
|
|
formState,
|
|
|
maskClosableFlag: false,
|
|
maskClosableFlag: false,
|
|
|
- rolename,
|
|
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
});
|
|
});
|
|
@@ -130,10 +131,10 @@ export default defineComponent({
|
|
|
margin-top: 20px;
|
|
margin-top: 20px;
|
|
|
}
|
|
}
|
|
|
.checkboxGroupItem {
|
|
.checkboxGroupItem {
|
|
|
- .ant-col.ant-form-item-control-wrapper {
|
|
|
|
|
- width: 100%;
|
|
|
|
|
- white-space: nowrap;
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ .ant-col.ant-form-item-control-wrapper {
|
|
|
|
|
+ width: 100%;
|
|
|
|
|
+ white-space: nowrap;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
</style>;
|
|
</style>;
|