|
|
@@ -77,22 +77,23 @@
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts">
|
|
|
-import { defineComponent, ref } from 'vue';
|
|
|
+import { defineComponent, PropType, ref } from 'vue';
|
|
|
import { handleBusinessForm } from '../setup';
|
|
|
import { BusinessFormState } from '../interface';
|
|
|
import { requestResultLoadingAndInfo } from '@/common/methods/request/resultInfo';
|
|
|
import { loginAccountOperate } from '@/services/proto/accountinfo';
|
|
|
import { validateAction } from '@/common/setup/form';
|
|
|
import { _closeModal } from '@/common/setup/modal/modal';
|
|
|
+import { ErmcpLoginUserEx } from '@/services/go/ermcp/account/interface';
|
|
|
|
|
|
export default defineComponent({
|
|
|
name: 'add-business-info',
|
|
|
components: {},
|
|
|
emits: ['cancel', 'update'],
|
|
|
props: {
|
|
|
- roleid: {
|
|
|
- default: 0,
|
|
|
- type: Number,
|
|
|
+ selectedRow: {
|
|
|
+ default: {},
|
|
|
+ type: Object as PropType<ErmcpLoginUserEx>,
|
|
|
},
|
|
|
},
|
|
|
setup(props, context) {
|
|
|
@@ -100,7 +101,7 @@ export default defineComponent({
|
|
|
const { visible, cancel } = _closeModal(context);
|
|
|
const loading = ref<boolean>(false);
|
|
|
const { rules, formState, formRef, initFormData } = handleBusinessForm();
|
|
|
- formState.roleids = [props.roleid];
|
|
|
+ formState.roleids = [props.selectedRow.roleid];
|
|
|
function submit() {
|
|
|
validateAction<BusinessFormState>(formRef, formState).then((param) => {
|
|
|
const reqParam = {
|