li.shaoyi 1 rok temu
rodzic
commit
6b47474251
72 zmienionych plików z 216 dodań i 210 usunięć
  1. 3 3
      src/hooks/operation/index.ts
  2. 4 4
      src/packages/pc/components/base/table/index.ts
  3. 2 2
      src/packages/pc/components/modules/trade/index.vue
  4. 5 5
      src/packages/pc/views/account/tradeacct/components/bankinout/index.vue
  5. 3 3
      src/packages/pc/views/account/tradeacct/components/bankstatement/index.vue
  6. 2 2
      src/packages/pc/views/account/tradeacct/components/details/index.vue
  7. 3 3
      src/packages/pc/views/account/tradeacct/components/password/index.vue
  8. 4 4
      src/packages/pc/views/account/tradeacct/components/sign/index.vue
  9. 2 2
      src/packages/pc/views/account/tradeacct/index.vue
  10. 2 2
      src/packages/pc/views/admin/role/components/delete/index.vue
  11. 3 3
      src/packages/pc/views/admin/role/components/edit/index.vue
  12. 2 2
      src/packages/pc/views/admin/role/index.vue
  13. 4 4
      src/packages/pc/views/admin/user/components/edit/index.vue
  14. 2 2
      src/packages/pc/views/admin/user/components/status/index.vue
  15. 2 2
      src/packages/pc/views/admin/user/index.vue
  16. 4 4
      src/packages/pc/views/investor/manage/user/components/details/index.vue
  17. 2 2
      src/packages/pc/views/investor/manage/user/index.vue
  18. 2 2
      src/packages/pc/views/investor/user/open/components/cancel/index.vue
  19. 2 2
      src/packages/pc/views/investor/user/open/components/delete/index.vue
  20. 2 2
      src/packages/pc/views/investor/user/open/components/details/index.vue
  21. 2 2
      src/packages/pc/views/investor/user/open/components/edit/index.vue
  22. 2 2
      src/packages/pc/views/investor/user/open/index.vue
  23. 3 3
      src/packages/pc/views/marketrun/monitor/user/components/offline/index.vue
  24. 2 2
      src/packages/pc/views/marketrun/monitor/user/index.vue
  25. 2 2
      src/packages/pc/views/member/institution/open/components/cancel/index.vue
  26. 2 2
      src/packages/pc/views/member/institution/open/components/delete/index.vue
  27. 2 2
      src/packages/pc/views/member/institution/open/components/details/agree.vue
  28. 4 4
      src/packages/pc/views/member/institution/open/components/details/index.vue
  29. 2 2
      src/packages/pc/views/member/institution/open/components/details/refuse.vue
  30. 2 2
      src/packages/pc/views/member/institution/open/components/edit/index.vue
  31. 2 2
      src/packages/pc/views/member/institution/open/index.vue
  32. 2 2
      src/packages/pc/views/member/institution/role/index.vue
  33. 2 2
      src/packages/pc/views/member/subinstitution/manage/components/cancel/index.vue
  34. 2 2
      src/packages/pc/views/member/subinstitution/manage/components/delete/index.vue
  35. 3 3
      src/packages/pc/views/member/subinstitution/manage/components/details/index.vue
  36. 9 9
      src/packages/pc/views/member/subinstitution/manage/components/edit/index.vue
  37. 2 2
      src/packages/pc/views/member/subinstitution/manage/components/recover/index.vue
  38. 2 2
      src/packages/pc/views/member/subinstitution/manage/index.vue
  39. 2 2
      src/packages/pc/views/member/subinstitution/user/components/edit/index.vue
  40. 2 2
      src/packages/pc/views/member/subinstitution/user/index.vue
  41. 2 2
      src/packages/pc/views/profitshare/institution/group/components/delete/index.vue
  42. 2 2
      src/packages/pc/views/profitshare/institution/group/components/edit/index.vue
  43. 21 17
      src/packages/pc/views/profitshare/institution/group/components/member/index.vue
  44. 2 2
      src/packages/pc/views/profitshare/institution/group/index.vue
  45. 2 2
      src/packages/pc/views/query/order/accountsumm/index.vue
  46. 2 2
      src/packages/pc/views/query/order/goodssumm/index.vue
  47. 2 2
      src/packages/pc/views/query/order/institutionsumm/index.vue
  48. 5 5
      src/packages/pc/views/query/order/order/components/details/index.vue
  49. 2 2
      src/packages/pc/views/query/order/order/index.vue
  50. 5 5
      src/packages/pc/views/query/order/position/components/details/index.vue
  51. 2 2
      src/packages/pc/views/query/order/position/index.vue
  52. 2 2
      src/packages/pc/views/query/order/positionsumm/index.vue
  53. 4 4
      src/packages/pc/views/query/order/trade/components/details/index.vue
  54. 2 2
      src/packages/pc/views/query/order/trade/index.vue
  55. 2 2
      src/packages/pc/views/query/order/tradesumm/index.vue
  56. 5 5
      src/packages/pc/views/query/other/bank_inout/components/details/index.vue
  57. 2 2
      src/packages/pc/views/query/other/bank_inout/index.vue
  58. 2 2
      src/packages/pc/views/query/other/bank_statement/index.vue
  59. 4 4
      src/packages/pc/views/query/warehouse_receipt_order/order/components/details/index.vue
  60. 2 2
      src/packages/pc/views/query/warehouse_receipt_order/order/index.vue
  61. 2 2
      src/packages/pc/views/query/warehouse_receipt_order/trade/index.vue
  62. 2 2
      src/packages/pc/views/report/broker/index.vue
  63. 2 2
      src/packages/pc/views/report/investor/index.vue
  64. 2 2
      src/packages/pc/views/report/profitshare/index.vue
  65. 2 2
      src/packages/pc/views/report/trade/index.vue
  66. 2 2
      src/packages/pc/views/settlement/profitsharepay/index.vue
  67. 2 2
      src/packages/pc/views/system/login_failed/index.vue
  68. 2 2
      src/packages/pc/views/system/menu/components/delete/index.vue
  69. 6 6
      src/packages/pc/views/system/menu/components/edit/index.vue
  70. 3 3
      src/packages/pc/views/system/menu/index.vue
  71. 2 2
      src/packages/pc/views/system/operation_log/index.vue
  72. 11 9
      src/types/model/profitshare.d.ts

+ 3 - 3
src/hooks/operation/index.ts

@@ -14,7 +14,7 @@ export function useOperation<T>({ code, onClose }: OperationOptions = {}) {
     const buttons: Model.MenusRsp[] = []
     const componentMap = new Map<string, Component>()
     const componentId = shallowRef<string>()
-    const selectedRow = shallowRef<T>()
+    const record = shallowRef<T>()
 
     menus?.children?.forEach((item) => {
         if (item.authType === AuthType.Operate && item.show && item.component) {
@@ -38,7 +38,7 @@ export function useOperation<T>({ code, onClose }: OperationOptions = {}) {
 
     // 打开组件
     const openComponent = (id: string, row?: T) => {
-        selectedRow.value = row
+        record.value = row
         componentId.value = id
     }
 
@@ -53,7 +53,7 @@ export function useOperation<T>({ code, onClose }: OperationOptions = {}) {
     return {
         componentMap,
         componentId,
-        selectedRow,
+        record,
         openComponent,
         closeComponent,
         getFilteredButtons

+ 4 - 4
src/packages/pc/components/base/table/index.ts

@@ -8,7 +8,7 @@ import { ComposeTableOptions } from './types'
  */
 export function useComposeTable<T>({ rowKey }: ComposeTableOptions<T>) {
     // 表格选中的行数据
-    const selectedRow = ref<T>()
+    const record = ref<T>()
 
     // 表格展开行,对应 row-key 中的值
     const expandKeys = shallowRef<T[keyof T][]>([])
@@ -28,7 +28,7 @@ export function useComposeTable<T>({ rowKey }: ComposeTableOptions<T>) {
         } else {
             expandKeys.value = [keyValue]
         }
-        selectedRow.value = row
+        record.value = row
     }
 
     // 表格右键事件
@@ -37,7 +37,7 @@ export function useComposeTable<T>({ rowKey }: ComposeTableOptions<T>) {
         event.preventDefault()
 
         // 表格选中的行数据
-        selectedRow.value = row
+        record.value = row
 
         // 显示表格右键菜单
         contextmenu.value = {
@@ -50,7 +50,7 @@ export function useComposeTable<T>({ rowKey }: ComposeTableOptions<T>) {
     return {
         rowKey,
         expandKeys,
-        selectedRow,
+        record,
         contextmenu,
         rowClick,
         rowContextmenu,

+ 2 - 2
src/packages/pc/components/modules/trade/index.vue

@@ -2,7 +2,7 @@
 <template>
   <app-drawer v-model:show="show">
     <template #default>
-      {{ selectedRow }}
+      {{ record }}
     </template>
     <template #footer>
       <el-button @click="cancel">取消</el-button>
@@ -16,7 +16,7 @@ import { ref } from 'vue'
 import AppDrawer from '../../base/drawer/index.vue'
 
 defineProps({
-  selectedRow: {
+  record: {
     type: Object,
     default: () => ({})
   }

+ 5 - 5
src/packages/pc/views/account/tradeacct/components/bankinout/index.vue

@@ -6,7 +6,7 @@
             <fieldset class="g-fieldset el-form--horizontal">
                 <legend class="g-fieldset__legend">基本信息</legend>
                 <el-form-item label="资金账号">
-                    {{ selectedRow.accountId }}
+                    {{ record.accountId }}
                 </el-form-item>
                 <el-form-item label="可出金额">
                     {{ data?.money ?? 0 }}
@@ -82,7 +82,7 @@ import { getBankAccountSign, queryMoney, queryBooleanForAmount } from '@/service
 import AppDrawer from '@pc/components/base/drawer/index.vue'
 
 const props = defineProps({
-    selectedRow: {
+    record: {
         type: Object as PropType<Model.TaAccountRsp>,
         required: true
     }
@@ -95,7 +95,7 @@ const loading = shallowRef(false)
 const selectedBank = shallowRef<Model.BankAccountSignRsp>()
 
 const formData = reactive<Model.inOrOutAmountReq>({
-    accountcode: props.selectedRow.accountId,
+    accountcode: props.record.accountId,
     accpwd: '',
     cusbankid: '',
     money: 0,
@@ -106,7 +106,7 @@ const formData = reactive<Model.inOrOutAmountReq>({
 
 const { dataList: bankList } = useRequest(getBankAccountSign, {
     params: {
-        accountcode: props.selectedRow.accountId,
+        accountcode: props.record.accountId,
         signstatus: 4
     },
     onSuccess: (() => {
@@ -121,7 +121,7 @@ const { dataList: bankList } = useRequest(getBankAccountSign, {
 
 const { data } = useRequest(queryMoney, {
     params: {
-        accountid: props.selectedRow.accountId,
+        accountid: props.record.accountId,
         mtype: 2,
         type: 0
     }

+ 3 - 3
src/packages/pc/views/account/tradeacct/components/bankstatement/index.vue

@@ -7,7 +7,7 @@
             </template>
             <app-table :data="dataList" v-model:columns="tableColumns" :loading="loading">
                 <template #headerLeft>
-                    <span>资金账户:{{ selectedRow.accountId }}</span>
+                    <span>资金账户:{{ record.accountId }}</span>
                 </template>
                 <template #headerRight>
                     <div>
@@ -35,7 +35,7 @@ import AppFilter from '@pc/components/base/table-filter/index.vue'
 import AppPagination from '@pc/components/base/pagination/index.vue'
 
 const props = defineProps({
-    selectedRow: {
+    record: {
         type: Object as PropType<Model.TaAccountRsp>,
         required: true
     }
@@ -48,7 +48,7 @@ const { filterOptons, getQueryParams } = useDataFilter<Model.AmountStreamReq>()
 const { dataList, total, pageSize, pageIndex, loading, run } = useRequest(queryAmountStream, {
     params: {
         logType: 1,
-        accountId: props.selectedRow.accountId.toString(),
+        accountId: props.record.accountId.toString(),
         pageNum: 1,
         pageSize: 20
     },

+ 2 - 2
src/packages/pc/views/account/tradeacct/components/details/index.vue

@@ -22,7 +22,7 @@ import AppTable from '@pc/components/base/table/index.vue'
 import AppTableDetails from '@pc/components/base/table-details/index.vue'
 
 const props = defineProps({
-    selectedRow: {
+    record: {
         type: Object as PropType<Model.TaAccountRsp>,
         required: true
     }
@@ -38,7 +38,7 @@ const signstatusEnum = useEnum('signstatus')
 
 const { data } = useRequest(queryTaAccountDetail, {
     params: {
-        accountId: props.selectedRow.accountId,
+        accountId: props.record.accountId,
     },
     onError: (err) => {
         ElMessage.error(err)

+ 3 - 3
src/packages/pc/views/account/tradeacct/components/password/index.vue

@@ -4,7 +4,7 @@
         <el-form ref="formRef" class="el-form--vertical" label-width="100px" :model="formData" :rules="formRules"
             :show-message="false">
             <el-form-item label="资金账号">
-                {{ selectedRow.accountId }}
+                {{ record.accountId }}
             </el-form-item>
             <el-form-item label="旧密码" prop="oldPwd">
                 <el-input type="password" v-model="formData.oldPwd" placeholder="请输入" />
@@ -37,7 +37,7 @@ import AppDrawer from '@pc/components/base/drawer/index.vue'
 import cryptojs from 'crypto-js'
 
 const props = defineProps({
-    selectedRow: {
+    record: {
         type: Object as PropType<Model.TaAccountRsp>,
         required: true
     }
@@ -49,7 +49,7 @@ const refresh = ref(false)
 const loading = ref(false)
 
 const formData = ref<Model.TaAccountPwdReq>({
-    accountId: props.selectedRow.accountId,
+    accountId: props.record.accountId,
     oldPwd: '',
     newPwd: '',
     confirmPassword: ''

+ 4 - 4
src/packages/pc/views/account/tradeacct/components/sign/index.vue

@@ -4,7 +4,7 @@
         <app-view>
             <app-table :data="dataList" v-model:columns="tableColumns" :loading="loading">
                 <template #headerLeft>
-                    <span>资金账户:{{ selectedRow.accountId }}</span>
+                    <span>资金账户:{{ record.accountId }}</span>
                 </template>
                 <template #headerRight>
                     <div>
@@ -23,7 +23,7 @@
                 </template>
             </app-table>
             <component ref="componentRef" :is="componentMap.get(componentId)"
-                v-bind="{ accountId: selectedRow.accountId, selectedItem }" @closed="closeComponent"
+                v-bind="{ accountId: record.accountId, selectedItem }" @closed="closeComponent"
                 v-if="componentId" />
         </app-view>
     </teleport>
@@ -42,7 +42,7 @@ import AppTable from '@pc/components/base/table/index.vue'
 import AppPagination from '@pc/components/base/pagination/index.vue'
 
 const props = defineProps({
-    selectedRow: {
+    record: {
         type: Object as PropType<Model.TaAccountRsp>,
         required: true
     }
@@ -63,7 +63,7 @@ const { filterOptons, getQueryParams } = useDataFilter<Model.TaAccountReq>()
 
 const { dataList, total, pageSize, pageIndex, loading, run } = useRequest(queryAccountSign, {
     params: {
-        accountCode: props.selectedRow.accountId,
+        accountCode: props.record.accountId,
         pageNum: 1,
         pageSize: 20
     },

+ 2 - 2
src/packages/pc/views/account/tradeacct/index.vue

@@ -15,7 +15,7 @@
                     @change="onSearch" />
             </template>
         </app-table>
-        <component :is="componentMap.get(componentId)" v-bind="{ selectedRow }" @closed="closeComponent"
+        <component :is="componentMap.get(componentId)" v-bind="{ record }" @closed="closeComponent"
             v-if="componentId" />
     </app-view>
 </template>
@@ -38,7 +38,7 @@ const traderstatusEnum = useEnum('traderstatus')
 
 const { filterOptons, getQueryParams } = useDataFilter<Model.TaAccountReq>()
 
-const { componentMap, componentId, selectedRow, openComponent, closeComponent, getFilteredButtons } = useOperation<Model.TaAccountRsp>({
+const { componentMap, componentId, record, openComponent, closeComponent, getFilteredButtons } = useOperation<Model.TaAccountRsp>({
     onClose: () => onSearch()
 })
 

+ 2 - 2
src/packages/pc/views/admin/role/components/delete/index.vue

@@ -16,7 +16,7 @@ import { deleteRoleMenus } from '@/services/api/admin'
 import AppDrawer from '@pc/components/base/drawer/index.vue'
 
 const props = defineProps({
-    selectedRow: {
+    record: {
         type: Object as PropType<Model.RoleRsp>,
         required: true
     }
@@ -35,7 +35,7 @@ const onSubmit = () => {
     loading.value = true
     deleteRoleMenus({
         data: {
-            autoid: props.selectedRow.autoid
+            autoid: props.record.autoid
         }
     }).then(() => {
         ElMessage.success('删除成功')

+ 3 - 3
src/packages/pc/views/admin/role/components/edit/index.vue

@@ -4,7 +4,7 @@
         <el-form ref="formRef" class="el-form--vertical" label-width="90px" :model="formData" :rules="formRules"
             :show-message="false">
             <el-form-item label="角色名称" prop="rolename">
-                <el-input v-model="formData.rolename" placeholder="请输入" :disabled="!!selectedRow?.autoid" />
+                <el-input v-model="formData.rolename" placeholder="请输入" :disabled="!!record?.autoid" />
             </el-form-item>
             <el-form-item label="敏感词权限" prop="sensitivefields">
                 <el-checkbox-group v-model="checkedValue">
@@ -37,7 +37,7 @@ import { useRouterStore } from '@/stores'
 import AppDrawer from '@pc/components/base/drawer/index.vue'
 
 const props = defineProps({
-    selectedRow: {
+    record: {
         type: Object as PropType<Model.RoleRsp>
     }
 })
@@ -140,7 +140,7 @@ const onSubmit = () => {
 }
 
 onMounted(() => {
-    const autoId = props.selectedRow?.autoid
+    const autoId = props.record?.autoid
     if (autoId) {
         run({ autoId })
     }

+ 2 - 2
src/packages/pc/views/admin/role/index.vue

@@ -19,7 +19,7 @@
                     @change="onRefresh" />
             </template>
         </app-table>
-        <component :is="componentMap.get(componentId)" v-bind="{ selectedRow }" @closed="closeComponent"
+        <component :is="componentMap.get(componentId)" v-bind="{ record }" @closed="closeComponent"
             v-if="componentId" />
     </app-view>
 </template>
@@ -35,7 +35,7 @@ import AppTable from '@pc/components/base/table/index.vue'
 import AppPagination from '@pc/components/base/pagination/index.vue'
 import AppOperation from '@pc/components/base/operation/index.vue'
 
-const { componentMap, componentId, selectedRow, openComponent, closeComponent, getFilteredButtons } = useOperation<Model.RoleRsp>({
+const { componentMap, componentId, record, openComponent, closeComponent, getFilteredButtons } = useOperation<Model.RoleRsp>({
     onClose: () => onRefresh()
 })
 

+ 4 - 4
src/packages/pc/views/admin/user/components/edit/index.vue

@@ -5,9 +5,9 @@
             :show-message="false">
             <el-form-item label="登录账号" prop="logincode">
                 <el-input v-model="formData.logincode" maxlength="50" placeholder="请输入"
-                    :disabled="!!selectedRow?.autoid" />
+                    :disabled="!!record?.autoid" />
             </el-form-item>
-            <el-form-item label="默认密码" prop="password" v-if="!selectedRow?.autoid">
+            <el-form-item label="默认密码" prop="password" v-if="!record?.autoid">
                 <el-input v-model="formData.password" placeholder="请输入" disabled />
             </el-form-item>
             <el-form-item label="用户名称" prop="username">
@@ -39,7 +39,7 @@ import { dealUserMsg, querySystemmanagerDetail, queryRoleByAdd } from '@/service
 import AppDrawer from '@pc/components/base/drawer/index.vue'
 
 const props = defineProps({
-    selectedRow: {
+    record: {
         type: Object as PropType<Model.SystemmanagerRsp>
     }
 })
@@ -97,7 +97,7 @@ const onSubmit = () => {
 }
 
 onMounted(() => {
-    const autoId = props.selectedRow?.autoid
+    const autoId = props.record?.autoid
     if (autoId) {
         run({ autoId })
     }

+ 2 - 2
src/packages/pc/views/admin/user/components/status/index.vue

@@ -17,7 +17,7 @@ import AppDrawer from '@pc/components/base/drawer/index.vue'
 
 const props = defineProps({
     code: String,
-    selectedRow: {
+    record: {
         type: Object as PropType<Model.SystemmanagerRsp>,
         required: true
     }
@@ -67,7 +67,7 @@ const onSubmit = () => {
         loading.value = true
         dealUserStatus({
             data: {
-                autoid: props.selectedRow.autoid,
+                autoid: props.record.autoid,
                 type: status.value.type
             }
         }).then(() => {

+ 2 - 2
src/packages/pc/views/admin/user/index.vue

@@ -27,7 +27,7 @@
                     @change="onSearch" />
             </template>
         </app-table>
-        <component :is="componentMap.get(componentId)" v-bind="{ code: componentId, selectedRow }"
+        <component :is="componentMap.get(componentId)" v-bind="{ code: componentId, record }"
             @closed="closeComponent" v-if="componentId" />
     </app-view>
 </template>
@@ -59,7 +59,7 @@ const isTreeSelect = computed(() => {
 
 const { filterOptons, getQueryParams } = useDataFilter<Model.SystemmanagerReq>()
 
-const { componentMap, componentId, selectedRow, openComponent, closeComponent, getFilteredButtons } = useOperation<Model.SystemmanagerRsp>({
+const { componentMap, componentId, record, openComponent, closeComponent, getFilteredButtons } = useOperation<Model.SystemmanagerRsp>({
     onClose: () => onSearch()
 })
 

+ 4 - 4
src/packages/pc/views/investor/manage/user/components/details/index.vue

@@ -67,7 +67,7 @@ import AppTableDetails from '@pc/components/base/table-details/index.vue'
 import service from '@/services'
 
 const props = defineProps({
-    selectedRow: {
+    record: {
         type: Object as PropType<Model.InvestorListRsp>,
         required: true
     }
@@ -76,7 +76,7 @@ const props = defineProps({
 const show = ref(true)
 const refresh = ref(false)
 const loading = ref(false)
-const hideField = [2, 3, 4].includes(props.selectedRow.modifyStatus) // 根据状态是否隐藏字段
+const hideField = [2, 3, 4].includes(props.record.modifyStatus) // 根据状态是否隐藏字段
 const newData = ref<Model.InvestorListDetailRsp['newResult']>()
 const oldData = ref<Model.InvestorListDetailRsp['oldResult']>()
 
@@ -95,8 +95,8 @@ const certypecompanyEnum = useEnum('certypecompany')
 
 useRequest(queryInvestorListDetail, {
     params: {
-        userid: props.selectedRow.userId,
-        modifyFlag: props.selectedRow.modifyStatus
+        userid: props.record.userId,
+        modifyFlag: props.record.modifyStatus
     },
     onSuccess: (res) => {
         const { newResult, oldResult } = res.data

+ 2 - 2
src/packages/pc/views/investor/manage/user/index.vue

@@ -19,7 +19,7 @@
                     @change="onSearch" />
             </template>
         </app-table>
-        <component :is="componentMap.get(componentId)" v-bind="{ selectedRow }" @closed="closeComponent"
+        <component :is="componentMap.get(componentId)" v-bind="{ record }" @closed="closeComponent"
             v-if="componentId" />
     </app-view>
 </template>
@@ -47,7 +47,7 @@ const modifystatusEnum = useEnum('modifystatus')
 
 const { filterOptons, getQueryParams } = useDataFilter<Model.InvestorListReq>()
 
-const { componentMap, componentId, selectedRow, openComponent, closeComponent, getFilteredButtons } = useOperation<Model.InvestorRsp>({
+const { componentMap, componentId, record, openComponent, closeComponent, getFilteredButtons } = useOperation<Model.InvestorRsp>({
     onClose: () => onSearch()
 })
 

+ 2 - 2
src/packages/pc/views/investor/user/open/components/cancel/index.vue

@@ -16,7 +16,7 @@ import { wskhUserinfoReBack } from '@/services/api/member'
 import AppDrawer from '@pc/components/base/drawer/index.vue'
 
 const props = defineProps({
-    selectedRow: {
+    record: {
         type: Object as PropType<Model.InvestorRsp>,
         required: true
     }
@@ -35,7 +35,7 @@ const onSubmit = () => {
     loading.value = true
     wskhUserinfoReBack({
         data: {
-            userid: props.selectedRow.userId
+            userid: props.record.userId
         }
     }).then(() => {
         ElMessage.success('撤回成功')

+ 2 - 2
src/packages/pc/views/investor/user/open/components/delete/index.vue

@@ -16,7 +16,7 @@ import { wskhUserinfoDelete } from '@/services/api/member'
 import AppDrawer from '@pc/components/base/drawer/index.vue'
 
 const props = defineProps({
-    selectedRow: {
+    record: {
         type: Object as PropType<Model.InvestorRsp>,
         required: true
     }
@@ -35,7 +35,7 @@ const onSubmit = () => {
     loading.value = true
     wskhUserinfoDelete({
         data: {
-            userid: props.selectedRow.userId
+            userid: props.record.userId
         }
     }).then(() => {
         ElMessage.success('删除成功')

+ 2 - 2
src/packages/pc/views/investor/user/open/components/details/index.vue

@@ -51,7 +51,7 @@ import AppTableDetails from '@pc/components/base/table-details/index.vue'
 import service from '@/services'
 
 const props = defineProps({
-    selectedRow: {
+    record: {
         type: Object as PropType<Model.InvestorRsp>,
         required: true
     }
@@ -67,7 +67,7 @@ const userstateEnum = useEnum('investorOpenStatus')
 
 const { data } = useRequest(queryInvestorDetail, {
     params: {
-        userId: props.selectedRow.userId,
+        userId: props.record.userId,
     },
     onSuccess: () => {
         if (data.value) {

+ 2 - 2
src/packages/pc/views/investor/user/open/components/edit/index.vue

@@ -144,7 +144,7 @@ import service from '@/services'
 import { decryptAES } from '@/services/crypto'
 
 const props = defineProps({
-    selectedRow: {
+    record: {
         type: Object as PropType<Model.InvestorRsp>
     }
 })
@@ -314,7 +314,7 @@ const onSubmit = () => {
 }
 
 onMounted(() => {
-    const userId = props.selectedRow?.userId
+    const userId = props.record?.userId
     if (userId) {
         run({ userId })
     }

+ 2 - 2
src/packages/pc/views/investor/user/open/index.vue

@@ -30,7 +30,7 @@
                     @change="onSearch" />
             </template>
         </app-table>
-        <component :is="componentMap.get(componentId)" v-bind="{ selectedRow }" @closed="closeComponent"
+        <component :is="componentMap.get(componentId)" v-bind="{ record }" @closed="closeComponent"
             v-if="componentId" />
     </app-view>
 </template>
@@ -56,7 +56,7 @@ const userstateEnum = useEnum('investorOpenStatus')
 
 const { filterOptons, getQueryParams } = useDataFilter<Model.InvestorReq>()
 
-const { componentMap, componentId, selectedRow, openComponent, closeComponent, getFilteredButtons } = useOperation<Model.InvestorRsp>({
+const { componentMap, componentId, record, openComponent, closeComponent, getFilteredButtons } = useOperation<Model.InvestorRsp>({
     onClose: () => onSearch()
 })
 

+ 3 - 3
src/packages/pc/views/marketrun/monitor/user/components/offline/index.vue

@@ -1,7 +1,7 @@
 <!-- 市场运行管理-监控管理-在线用户查询-强制下线 -->
 <template>
     <app-drawer title="提示" v-model:show="show" :loading="loading" :refresh="refresh">
-        <div class="g-text-message">是否将用户[{{ selectedRow.loginid }}]强制下线?</div>
+        <div class="g-text-message">是否将用户[{{ record.loginid }}]强制下线?</div>
         <template #footer>
             <el-button @click="onCancel(false)">取消</el-button>
             <el-button type="primary" @click="onSubmit">确认</el-button>
@@ -16,7 +16,7 @@ import { marketRunDownonline } from '@/services/api/market'
 import AppDrawer from '@pc/components/base/drawer/index.vue'
 
 const props = defineProps({
-    selectedRow: {
+    record: {
         type: Object as PropType<Model.MarketRunUserLoginRsp>,
         required: true
     }
@@ -35,7 +35,7 @@ const onSubmit = () => {
     loading.value = true
     marketRunDownonline({
         data: {
-            loginid: props.selectedRow.loginid.toString()
+            loginid: props.record.loginid.toString()
         }
     }).then(() => {
         ElMessage.success('操作成功')

+ 2 - 2
src/packages/pc/views/marketrun/monitor/user/index.vue

@@ -19,7 +19,7 @@
                     @change="onSearch" />
             </template>
         </app-table>
-        <component :is="componentMap.get(componentId)" v-bind="{ selectedRow }" @closed="closeComponent"
+        <component :is="componentMap.get(componentId)" v-bind="{ record }" @closed="closeComponent"
             v-if="componentId" />
     </app-view>
 </template>
@@ -39,7 +39,7 @@ import AppOperation from '@pc/components/base/operation/index.vue'
 
 const { filterOptons, getQueryParams } = useDataFilter<Model.MarketRunUserLoginReq>()
 
-const { componentMap, componentId, selectedRow, openComponent, closeComponent, getFilteredButtons } = useOperation<Model.MarketRunUserLoginRsp>({
+const { componentMap, componentId, record, openComponent, closeComponent, getFilteredButtons } = useOperation<Model.MarketRunUserLoginRsp>({
     onClose: () => onSearch()
 })
 

+ 2 - 2
src/packages/pc/views/member/institution/open/components/cancel/index.vue

@@ -16,7 +16,7 @@ import { wskhUserinfoReBack } from '@/services/api/member'
 import AppDrawer from '@pc/components/base/drawer/index.vue'
 
 const props = defineProps({
-    selectedRow: {
+    record: {
         type: Object as PropType<Model.MemberDetail>,
         required: true
     }
@@ -35,7 +35,7 @@ const onSubmit = () => {
     loading.value = true
     wskhUserinfoReBack({
         data: {
-            userid: props.selectedRow.userid
+            userid: props.record.userid
         }
     }).then(() => {
         ElMessage.success('撤回成功')

+ 2 - 2
src/packages/pc/views/member/institution/open/components/delete/index.vue

@@ -16,7 +16,7 @@ import { wskhUserinfoDelete } from '@/services/api/member'
 import AppDrawer from '@pc/components/base/drawer/index.vue'
 
 const props = defineProps({
-    selectedRow: {
+    record: {
         type: Object as PropType<Model.MemberDetail>,
         required: true
     }
@@ -35,7 +35,7 @@ const onSubmit = () => {
     loading.value = true
     wskhUserinfoDelete({
         data: {
-            userid: props.selectedRow.userid
+            userid: props.record.userid
         }
     }).then(() => {
         ElMessage.success('删除成功')

+ 2 - 2
src/packages/pc/views/member/institution/open/components/details/agree.vue

@@ -29,7 +29,7 @@ import { wskhUserinfoApproved } from '@/services/api/member'
 import AppDrawer from '@pc/components/base/drawer/index.vue'
 
 const props = defineProps({
-    selectedRow: {
+    record: {
         type: Object as PropType<Model.MemberDetail>,
         required: true
     }
@@ -41,7 +41,7 @@ const refresh = ref(false)
 const loading = ref(false)
 
 const formData = ref<Partial<Model.MemberDetail>>({
-    userid: props.selectedRow.userid,
+    userid: props.record.userid,
     auditflag: 1,
     smpassword: '123456'
 })

+ 4 - 4
src/packages/pc/views/member/institution/open/components/details/index.vue

@@ -52,7 +52,7 @@
                 <el-button @click="openComponent('Agree')" type="primary">审核通过</el-button>
             </template>
         </template>
-        <component ref="componentRef" v-bind="{ selectedRow }" :is="componentMap.get(componentId)"
+        <component ref="componentRef" v-bind="{ record }" :is="componentMap.get(componentId)"
             @closed="closeComponent" v-if="componentId" />
     </app-drawer>
 </template>
@@ -71,7 +71,7 @@ import AppTableDetails from '@pc/components/base/table-details/index.vue'
 import service from '@/services'
 
 const props = defineProps({
-    selectedRow: {
+    record: {
         type: Object as PropType<Model.MemberDetail>,
         required: true
     }
@@ -86,7 +86,7 @@ const show = shallowRef(true)
 const refresh = shallowRef(false)
 const loading = shallowRef(false)
 // 是否个人
-const isPerson = props.selectedRow.userinfotype === UserInfoType.Personal
+const isPerson = props.record.userinfotype === UserInfoType.Personal
 // 企业性质枚举
 const biznatureEnum = useEnum('biznature')
 // 个人证件类型
@@ -98,7 +98,7 @@ const { componentRef, componentId, openComponent, closeComponent } = useComponen
 
 const { data } = useRequest(queryWskhUserinfoDetail, {
     params: {
-        userId: props.selectedRow.userid
+        userId: props.record.userid
     },
     onSuccess: (res) => {
         const { cardfrontphotourl, cardbackphotourl, legalcardfrontphotourl, legalcardbackphotourl, attachment1, attachment2 } = res.data

+ 2 - 2
src/packages/pc/views/member/institution/open/components/details/refuse.vue

@@ -20,7 +20,7 @@ import { wskhUserinfoApproved } from '@/services/api/member'
 import AppDrawer from '@pc/components/base/drawer/index.vue'
 
 const props = defineProps({
-    selectedRow: {
+    record: {
         type: Object as PropType<Model.MemberDetail>,
         required: true
     }
@@ -32,7 +32,7 @@ const refresh = ref(false)
 const loading = ref(false)
 
 const formData = ref<Partial<Model.MemberDetail>>({
-    userid: props.selectedRow.userid,
+    userid: props.record.userid,
     auditflag: 2
 })
 

+ 2 - 2
src/packages/pc/views/member/institution/open/components/edit/index.vue

@@ -124,7 +124,7 @@ import AppSelectMember from '@pc/components/modules/select-member/index.vue'
 import service from '@/services'
 
 const props = defineProps({
-    selectedRow: {
+    record: {
         type: Object as PropType<Model.MemberDetail>
     }
 })
@@ -239,7 +239,7 @@ const onSubmit = () => {
 }
 
 onMounted(() => {
-    const userId = props.selectedRow?.userid
+    const userId = props.record?.userid
     if (userId) {
         run({ userId })
     }

+ 2 - 2
src/packages/pc/views/member/institution/open/index.vue

@@ -31,7 +31,7 @@
                     @change="onSearch" />
             </template>
         </app-table>
-        <component :is="componentMap.get(componentId)" v-bind="{ selectedRow }" @closed="closeComponent"
+        <component :is="componentMap.get(componentId)" v-bind="{ record }" @closed="closeComponent"
             v-if="componentId" />
     </app-view>
 </template>
@@ -57,7 +57,7 @@ const userstateEnum = useEnum('investorOpenStatus')
 
 const { filterOptons, getQueryParams } = useDataFilter<Model.WskhUserinfoReq>()
 
-const { componentMap, componentId, selectedRow, openComponent, closeComponent, getFilteredButtons } = useOperation<Model.MemberDetail>({
+const { componentMap, componentId, record, openComponent, closeComponent, getFilteredButtons } = useOperation<Model.MemberDetail>({
     onClose: () => onSearch()
 })
 

+ 2 - 2
src/packages/pc/views/member/institution/role/index.vue

@@ -16,7 +16,7 @@
                     @change="onRefresh" />
             </template>
         </app-table>
-        <component :is="componentMap.get(componentId)" v-bind="{ selectedRow }" @closed="closeComponent"
+        <component :is="componentMap.get(componentId)" v-bind="{ record }" @closed="closeComponent"
             v-if="componentId" />
     </app-view>
 </template>
@@ -32,7 +32,7 @@ import AppTable from '@pc/components/base/table/index.vue'
 import AppPagination from '@pc/components/base/pagination/index.vue'
 import AppOperation from '@pc/components/base/operation/index.vue'
 
-const { componentMap, componentId, selectedRow, openComponent, closeComponent, getFilteredButtons } = useOperation<Model.RoleRsp>({
+const { componentMap, componentId, record, openComponent, closeComponent, getFilteredButtons } = useOperation<Model.RoleRsp>({
     onClose: () => onRefresh()
 })
 

+ 2 - 2
src/packages/pc/views/member/subinstitution/manage/components/cancel/index.vue

@@ -16,7 +16,7 @@ import { organSonRebackChange } from '@/services/api/member'
 import AppDrawer from '@pc/components/base/drawer/index.vue'
 
 const props = defineProps({
-    selectedRow: {
+    record: {
         type: Object as PropType<Model.OrganSonRsp>,
         required: true
     }
@@ -35,7 +35,7 @@ const onSubmit = () => {
     loading.value = true
     organSonRebackChange({
         data: {
-            areaid: props.selectedRow.userid
+            areaid: props.record.userid
         }
     }).then(() => {
         ElMessage.success('撤回成功')

+ 2 - 2
src/packages/pc/views/member/subinstitution/manage/components/delete/index.vue

@@ -16,7 +16,7 @@ import { organSonDelete } from '@/services/api/member'
 import AppDrawer from '@pc/components/base/drawer/index.vue'
 
 const props = defineProps({
-    selectedRow: {
+    record: {
         type: Object as PropType<Model.OrganSonRsp>,
         required: true
     }
@@ -35,7 +35,7 @@ const onSubmit = () => {
     loading.value = true
     organSonDelete({
         data: {
-            areaid: props.selectedRow.userid
+            areaid: props.record.userid
         }
     }).then(() => {
         ElMessage.success('注销成功')

+ 3 - 3
src/packages/pc/views/member/subinstitution/manage/components/details/index.vue

@@ -201,7 +201,7 @@ const props = defineProps({
     selectedParent: {
         type: Object as PropType<Model.AreaAndAllChildsRsp>
     },
-    selectedRow: {
+    record: {
         type: Object as PropType<Model.OrganSonRsp>
     }
 })
@@ -221,8 +221,8 @@ const certificatetypeEnum = useEnum('certificatetype')
 
 const { data } = useRequest(organSonViewson, {
     params: {
-        areaid: props.selectedRow?.userid || props.selectedParent?.userid || 0,
-        modifystatus: props.selectedRow?.modifystatus
+        areaid: props.record?.userid || props.selectedParent?.userid || 0,
+        modifystatus: props.record?.modifystatus
     },
     onSuccess: (res) => {
         const { newResult, oldResult } = res.data

+ 9 - 9
src/packages/pc/views/member/subinstitution/manage/components/edit/index.vue

@@ -8,14 +8,14 @@
                     {{ selectedParent?.accountname }}
                 </el-form-item>
                 <el-form-item label="所有者类型" prop="userinfotype">
-                    <el-radio-group v-model="formData.userinfotype" :disabled="!!selectedRow">
+                    <el-radio-group v-model="formData.userinfotype" :disabled="!!record">
                         <template v-for="item in getUserInfoTypeList()" :key="item.value">
                             <el-radio :label="item.label" :value="item.value" />
                         </template>
                     </el-radio-group>
                 </el-form-item>
                 <el-form-item label="机构代码" prop="userid">
-                    <el-input v-model="formData.userid" maxlength="4" placeholder="请输入" :disabled="!!selectedRow" />
+                    <el-input v-model="formData.userid" maxlength="4" placeholder="请输入" :disabled="!!record" />
                 </el-form-item>
                 <el-form-item label="机构名称" prop="accountname">
                     <el-input v-model="formData.accountname" maxlength="50" placeholder="请输入" />
@@ -99,12 +99,12 @@
             <fieldset class="g-fieldset el-form--horizontal">
                 <legend class="g-fieldset__legend">管理员及账户信息</legend>
                 <el-form-item label="管理员登录账号" prop="logincode">
-                    <el-input v-model="formData.logincode" maxlength="50" placeholder="请输入" :disabled="!!selectedRow" />
+                    <el-input v-model="formData.logincode" maxlength="50" placeholder="请输入" :disabled="!!record" />
                 </el-form-item>
                 <el-form-item label="管理员名称" prop="username">
-                    <el-input v-model="formData.username" maxlength="50" placeholder="请输入" :disabled="!!selectedRow" />
+                    <el-input v-model="formData.username" maxlength="50" placeholder="请输入" :disabled="!!record" />
                 </el-form-item>
-                <el-form-item label="默认登录密码" prop="smpassword" v-if="!selectedRow">
+                <el-form-item label="默认登录密码" prop="smpassword" v-if="!record">
                     <el-input value="123456" disabled />
                 </el-form-item>
             </fieldset>
@@ -123,7 +123,7 @@
         <template #footer>
             <el-button @click="onCancel(false)">取消</el-button>
             <el-button type="primary" @click="onSubmit(2)">保存</el-button>
-            <el-button type="primary" @click="onSubmit(4)" v-if="selectedRow?.accountstatus === 4">提交审核</el-button>
+            <el-button type="primary" @click="onSubmit(4)" v-if="record?.accountstatus === 4">提交审核</el-button>
         </template>
     </app-drawer>
 </template>
@@ -146,7 +146,7 @@ const props = defineProps({
     selectedParent: {
         type: Object as PropType<Model.AreaAndAllChildsRsp>
     },
-    selectedRow: {
+    record: {
         type: Object as PropType<Model.OrganSonRsp>
     }
 })
@@ -279,7 +279,7 @@ const onSubmit = (modifystatus?: number) => {
     formRef.value?.validate((valid) => {
         if (valid) {
             loading.value = true
-            if (props.selectedRow) {
+            if (props.record) {
                 rawData.modifystatus = modifystatus
                 if (rawData.modifystatus === 4) {
                     organSonEdit({
@@ -321,7 +321,7 @@ const onSubmit = (modifystatus?: number) => {
 }
 
 onMounted(() => {
-    const { userid, modifystatus } = props.selectedRow ?? {}
+    const { userid, modifystatus } = props.record ?? {}
     if (userid) {
         run({
             areaid: userid,

+ 2 - 2
src/packages/pc/views/member/subinstitution/manage/components/recover/index.vue

@@ -16,7 +16,7 @@ import { organSonRecover } from '@/services/api/member'
 import AppDrawer from '@pc/components/base/drawer/index.vue'
 
 const props = defineProps({
-    selectedRow: {
+    record: {
         type: Object as PropType<Model.OrganSonRsp>,
         required: true
     }
@@ -35,7 +35,7 @@ const onSubmit = () => {
     loading.value = true
     organSonRecover({
         data: {
-            areaid: props.selectedRow.userid
+            areaid: props.record.userid
         }
     }).then(() => {
         ElMessage.success('恢复成功')

+ 2 - 2
src/packages/pc/views/member/subinstitution/manage/index.vue

@@ -27,7 +27,7 @@
                 </template>
             </app-table>
         </div>
-        <component :is="componentMap.get(componentId)" v-bind="{ selectedParent, selectedRow }" @closed="closeComponent"
+        <component :is="componentMap.get(componentId)" v-bind="{ selectedParent, record }" @closed="closeComponent"
             v-if="componentId" />
     </div>
 </template>
@@ -52,7 +52,7 @@ const areastatusEnum = useEnum('areastatus')
 const treeRef = shallowRef()
 const selectedParent = shallowRef<Model.AreaAndAllChildsRsp>() // 已选中的树节点
 
-const { componentMap, componentId, selectedRow, openComponent, closeComponent, getFilteredButtons } = useOperation<Model.OrganSonRsp>({
+const { componentMap, componentId, record, openComponent, closeComponent, getFilteredButtons } = useOperation<Model.OrganSonRsp>({
     onClose: () => getNodeList()
 })
 

+ 2 - 2
src/packages/pc/views/member/subinstitution/user/components/edit/index.vue

@@ -138,7 +138,7 @@ import AppSelectMember from '@pc/components/modules/select-member/index.vue'
 import service from '@/services'
 
 const props = defineProps({
-    selectedRow: {
+    record: {
         type: Object as PropType<Model.MemberDetail>
     }
 })
@@ -252,7 +252,7 @@ const onSubmit = () => {
 }
 
 onMounted(() => {
-    const userId = props.selectedRow?.userid
+    const userId = props.record?.userid
     if (userId) {
         run({ userId })
     }

+ 2 - 2
src/packages/pc/views/member/subinstitution/user/index.vue

@@ -31,7 +31,7 @@
                     @change="onSearch" />
             </template>
         </app-table>
-        <component :is="componentMap.get(componentId)" v-bind="{ selectedRow }" @closed="closeComponent"
+        <component :is="componentMap.get(componentId)" v-bind="{ record }" @closed="closeComponent"
             v-if="componentId" />
     </app-view>
 </template>
@@ -57,7 +57,7 @@ const userstateEnum = useEnum('investorOpenStatus')
 
 const { filterOptons, getQueryParams } = useDataFilter<Model.WskhUserinfoReq>()
 
-const { componentMap, componentId, selectedRow, openComponent, closeComponent, getFilteredButtons } = useOperation<Model.MemberDetail>({
+const { componentMap, componentId, record, openComponent, closeComponent, getFilteredButtons } = useOperation<Model.MemberDetail>({
     onClose: () => onSearch()
 })
 

+ 2 - 2
src/packages/pc/views/profitshare/institution/group/components/delete/index.vue

@@ -16,7 +16,7 @@ import { profitShareDelete } from '@/services/api/profitshare'
 import AppDrawer from '@pc/components/base/drawer/index.vue'
 
 const props = defineProps({
-    selectedRow: {
+    record: {
         type: Object as PropType<Model.ProfitShareQueryPageRsp>,
         required: true
     }
@@ -35,7 +35,7 @@ const onSubmit = () => {
     loading.value = true
     profitShareDelete({
         data: {
-            groupId: props.selectedRow.subareagroupid
+            groupId: props.record.subareagroupid
         }
     }).then(() => {
         ElMessage.success('删除成功')

+ 2 - 2
src/packages/pc/views/profitshare/institution/group/components/edit/index.vue

@@ -31,7 +31,7 @@ import { profitShareDeal } from '@/services/api/profitshare'
 import AppDrawer from '@pc/components/base/drawer/index.vue'
 
 const props = defineProps({
-    selectedRow: {
+    record: {
         type: Object as PropType<Model.ProfitShareQueryPageRsp>
     }
 })
@@ -78,7 +78,7 @@ const onSubmit = () => {
 }
 
 onMounted(() => {
-    const params = props.selectedRow
+    const params = props.record
     if (params) {
         formData.value = {
             subareagroupid: params.subareagroupid,

+ 21 - 17
src/packages/pc/views/profitshare/institution/group/components/member/index.vue

@@ -4,7 +4,7 @@
         <app-view>
             <app-table :data="dataList" v-model:columns="tableColumns">
                 <template #headerLeft>
-                    <span>分组:{{ selectedRow.subareagroupname }}</span>
+                    <span>分组:{{ record.subareagroupname }}</span>
                 </template>
                 <template #headerRight>
                     <div style="display: flex;">
@@ -44,7 +44,7 @@ import AppTable from '@pc/components/base/table/index.vue'
 import AppPagination from '@pc/components/base/pagination/index.vue'
 
 const props = defineProps({
-    selectedRow: {
+    record: {
         type: Object as PropType<Model.ProfitShareQueryPageRsp>,
         required: true
     }
@@ -54,7 +54,7 @@ const emit = defineEmits(['closed'])
 const loading = ref(false)
 
 const formData = ref<Model.ProfitShareMemberAddReq>({
-    subareagroupid: props.selectedRow.subareagroupid,
+    subareagroupid: props.record.subareagroupid,
     userid: 0
 })
 
@@ -64,7 +64,7 @@ const { dataList, total, pageSize, pageIndex, run } = useRequest(profitShareMemb
     params: {
         pageNum: 1,
         pageSize: 20,
-        subareagroupid: props.selectedRow.subareagroupid
+        subareagroupid: props.record.subareagroupid
     },
     onError: (err) => {
         ElMessage.error(err)
@@ -78,19 +78,23 @@ const tableColumns = ref<Model.TableColumn[]>([
 
 // 添加
 const onSubmit = () => {
-    loading.value = true
-    profitShareMemberAdd({
-        data: formData.value
-    }).then(() => {
-        ElMessage.success('添加成功')
-        formData.value.userid = 0
-        run()
-        getUserList()
-    }).catch((err) => {
-        ElMessage.error('添加失败:' + err)
-    }).finally(() => {
-        loading.value = false
-    })
+    if (formData.value.userid) {
+        loading.value = true
+        profitShareMemberAdd({
+            data: formData.value
+        }).then(() => {
+            ElMessage.success('添加成功')
+            formData.value.userid = 0
+            run()
+            getUserList()
+        }).catch((err) => {
+            ElMessage.error('添加失败:' + err)
+        }).finally(() => {
+            loading.value = false
+        })
+    } else {
+        ElMessage.warning('请选择机构')
+    }
 }
 
 // 删除

+ 2 - 2
src/packages/pc/views/profitshare/institution/group/index.vue

@@ -20,7 +20,7 @@
                     @change="onSearch" />
             </template>
         </app-table>
-        <component :is="componentMap.get(componentId)" v-bind="{ selectedRow }" @closed="closeComponent"
+        <component :is="componentMap.get(componentId)" v-bind="{ record }" @closed="closeComponent"
             v-if="componentId" />
     </app-view>
 </template>
@@ -41,7 +41,7 @@ import AppOperation from '@pc/components/base/operation/index.vue'
 
 const { filterOptons, getQueryParams } = useDataFilter<Model.ProfitShareQueryPageReq>()
 
-const { componentMap, componentId, selectedRow, openComponent, closeComponent, getFilteredButtons } = useOperation<Model.ProfitShareQueryPageRsp>({
+const { componentMap, componentId, record, openComponent, closeComponent, getFilteredButtons } = useOperation<Model.ProfitShareQueryPageRsp>({
     onClose: () => onSearch()
 })
 

+ 2 - 2
src/packages/pc/views/query/order/accountsumm/index.vue

@@ -14,7 +14,7 @@
                     @change="onSearch" />
             </template>
         </app-table>
-        <component :is="componentMap.get(componentId)" v-bind="{ selectedRow, queryParams }" @closed="closeComponent"
+        <component :is="componentMap.get(componentId)" v-bind="{ record, queryParams }" @closed="closeComponent"
             v-if="componentId" />
     </app-view>
 </template>
@@ -37,7 +37,7 @@ const queryParams = shallowRef<Model.AccountTransactionsReq>()
 
 const { filterOptons, getQueryParams } = useDataFilter<Model.AccountTransactionsReq>()
 
-const { componentMap, componentId, selectedRow, openComponent, closeComponent, getFilteredButtons } = useOperation<Model.AccountTransactionsReq>({
+const { componentMap, componentId, record, openComponent, closeComponent, getFilteredButtons } = useOperation<Model.AccountTransactionsReq>({
     onClose: () => onSearch()
 })
 

+ 2 - 2
src/packages/pc/views/query/order/goodssumm/index.vue

@@ -41,7 +41,7 @@
                     @change="onSearch" />
             </template>
         </app-table>
-        <component :is="componentMap.get(componentId)" v-bind="{ selectedRow, queryParams }" @closed="closeComponent"
+        <component :is="componentMap.get(componentId)" v-bind="{ record, queryParams }" @closed="closeComponent"
             v-if="componentId" />
     </app-view>
 </template>
@@ -67,7 +67,7 @@ const queryParams = reactive<Model.GoodsTradeReq>({
     summode: 1
 })
 
-const { componentMap, componentId, selectedRow, openComponent, closeComponent, getFilteredButtons } = useOperation<Model.GoodsTradeRsp>({
+const { componentMap, componentId, record, openComponent, closeComponent, getFilteredButtons } = useOperation<Model.GoodsTradeRsp>({
     onClose: () => onSearch()
 })
 

+ 2 - 2
src/packages/pc/views/query/order/institutionsumm/index.vue

@@ -35,7 +35,7 @@
                     @change="onSearch" />
             </template>
         </app-table>
-        <component :is="componentMap.get(componentId)" v-bind="{ selectedRow, queryParams }" @closed="closeComponent"
+        <component :is="componentMap.get(componentId)" v-bind="{ record, queryParams }" @closed="closeComponent"
             v-if="componentId" />
     </app-view>
 </template>
@@ -62,7 +62,7 @@ const queryParams = reactive<Model.InvestorOrderReq>({
     pageSize: 20
 })
 
-const { componentMap, componentId, selectedRow, openComponent, closeComponent, getFilteredButtons } = useOperation<Model.InvestorOrderRsp>({
+const { componentMap, componentId, record, openComponent, closeComponent, getFilteredButtons } = useOperation<Model.InvestorOrderRsp>({
     onClose: () => onSearch()
 })
 

+ 5 - 5
src/packages/pc/views/query/order/order/components/details/index.vue

@@ -4,7 +4,7 @@
         <app-table-details title="委托单信息" :data="data" :label-width="200" :cell-props="detailProps1" :column="2" />
         <app-table-details title="费用相关配置及收取值" :data="data" :label-width="200" :cell-props="detailProps2" :column="2" />
         <template v-if="data && [7, 8, 9].includes(data.orderstatus)">
-            <app-table :data="data.tradeHisResultList" v-model:columns="tableColumns" v-if="selectedRow.isHis">
+            <app-table :data="data.tradeHisResultList" v-model:columns="tableColumns" v-if="record.isHis">
                 <template #headerLeft>
                     <b>成交单列表(历史)</b>
                 </template>
@@ -35,7 +35,7 @@ import AppTable from '@pc/components/base/table/index.vue'
 import AppTableDetails from '@pc/components/base/table-details/index.vue'
 
 const props = defineProps({
-    selectedRow: {
+    record: {
         type: Object as PropType<Model.CommissionSheetRsp>,
         required: true
     }
@@ -51,9 +51,9 @@ const orderstatusEnum = useEnum('orderstatus')
 
 const { data } = useRequest(queryCommissionSheetDetail, {
     params: {
-        isHis: props.selectedRow.isHis,
-        orderId: props.selectedRow.orderId,
-        tradeDate: props.selectedRow.tradeDate
+        isHis: props.record.isHis,
+        orderId: props.record.orderId,
+        tradeDate: props.record.tradeDate
     },
     onError: (err) => {
         ElMessage.error(err)

+ 2 - 2
src/packages/pc/views/query/order/order/index.vue

@@ -19,7 +19,7 @@
                     @change="onSearch" />
             </template>
         </app-table>
-        <component :is="componentMap.get(componentId)" v-bind="{ selectedRow, queryParams }" @closed="closeComponent"
+        <component :is="componentMap.get(componentId)" v-bind="{ record, queryParams }" @closed="closeComponent"
             v-if="componentId" />
     </app-view>
 </template>
@@ -49,7 +49,7 @@ const orderstatusEnum = useEnum('orderstatus')
 const queryParams = shallowRef<Model.CommissionSheetReq>()
 const { filterOptons, getQueryParams } = useDataFilter<Model.CommissionSheetReq>()
 
-const { componentMap, componentId, selectedRow, openComponent, closeComponent, getFilteredButtons } = useOperation<Model.CommissionSheetRsp>({
+const { componentMap, componentId, record, openComponent, closeComponent, getFilteredButtons } = useOperation<Model.CommissionSheetRsp>({
     onClose: () => onSearch()
 })
 

+ 5 - 5
src/packages/pc/views/query/order/position/components/details/index.vue

@@ -20,7 +20,7 @@ import AppDrawer from '@pc/components/base/drawer/index.vue'
 import AppTableDetails from '@pc/components/base/table-details/index.vue'
 
 const props = defineProps({
-    selectedRow: {
+    record: {
         type: Object as PropType<Model.PositionSheetRsp>,
         required: true
     }
@@ -31,10 +31,10 @@ const refresh = shallowRef(false)
 
 const { data } = useRequest(queryPositionSheetDetail, {
     params: {
-        ishis: props.selectedRow.ishis,
-        tradeid: props.selectedRow.tradeid,
-        buyorsell: props.selectedRow.buyorsell,
-        histradedate: props.selectedRow.tradedate
+        ishis: props.record.ishis,
+        tradeid: props.record.tradeid,
+        buyorsell: props.record.buyorsell,
+        histradedate: props.record.tradedate
     },
     onError: (err) => {
         ElMessage.error(err)

+ 2 - 2
src/packages/pc/views/query/order/position/index.vue

@@ -19,7 +19,7 @@
                     @change="onSearch" />
             </template>
         </app-table>
-        <component :is="componentMap.get(componentId)" v-bind="{ selectedRow, queryParams }" @closed="closeComponent"
+        <component :is="componentMap.get(componentId)" v-bind="{ record, queryParams }" @closed="closeComponent"
             v-if="componentId" />
     </app-view>
 </template>
@@ -44,7 +44,7 @@ const queryParams = shallowRef<Model.PositionSheetReq>()
 
 const { filterOptons, getQueryParams } = useDataFilter<Model.PositionSheetReq>()
 
-const { componentMap, componentId, selectedRow, openComponent, closeComponent, getFilteredButtons } = useOperation<Model.PositionSheetRsp>({
+const { componentMap, componentId, record, openComponent, closeComponent, getFilteredButtons } = useOperation<Model.PositionSheetRsp>({
     onClose: () => onSearch()
 })
 

+ 2 - 2
src/packages/pc/views/query/order/positionsumm/index.vue

@@ -14,7 +14,7 @@
                     @change="onSearch" />
             </template>
         </app-table>
-        <component :is="componentMap.get(componentId)" v-bind="{ selectedRow, queryParams }" @closed="closeComponent"
+        <component :is="componentMap.get(componentId)" v-bind="{ record, queryParams }" @closed="closeComponent"
             v-if="componentId" />
     </app-view>
 </template>
@@ -38,7 +38,7 @@ const queryParams = shallowRef<Model.PositionSumSheetReq>()
 
 const { filterOptons, getQueryParams } = useDataFilter<Model.PositionSumSheetReq>()
 
-const { componentMap, componentId, selectedRow, openComponent, closeComponent, getFilteredButtons } = useOperation<Model.PositionSumSheetRsp>({
+const { componentMap, componentId, record, openComponent, closeComponent, getFilteredButtons } = useOperation<Model.PositionSumSheetRsp>({
     onClose: () => onSearch()
 })
 

+ 4 - 4
src/packages/pc/views/query/order/trade/components/details/index.vue

@@ -28,7 +28,7 @@ import AppTable from '@pc/components/base/table/index.vue'
 import AppTableDetails from '@pc/components/base/table-details/index.vue'
 
 const props = defineProps({
-    selectedRow: {
+    record: {
         type: Object as PropType<Model.ContractSheetRsp>,
         required: true
     }
@@ -42,9 +42,9 @@ const buildtypeEnum = useEnum('buildtype')
 
 const { data } = useRequest(queryContractSheetDetailDetail, {
     params: {
-        ishis: props.selectedRow.ishis,
-        tradeid: props.selectedRow.tradeid,
-        buyorsell: props.selectedRow.buyorsell
+        ishis: props.record.ishis,
+        tradeid: props.record.tradeid,
+        buyorsell: props.record.buyorsell
     },
     onError: (err) => {
         ElMessage.error(err)

+ 2 - 2
src/packages/pc/views/query/order/trade/index.vue

@@ -19,7 +19,7 @@
                     @change="onSearch" />
             </template>
         </app-table>
-        <component :is="componentMap.get(componentId)" v-bind="{ selectedRow, queryParams }" @closed="closeComponent"
+        <component :is="componentMap.get(componentId)" v-bind="{ record, queryParams }" @closed="closeComponent"
             v-if="componentId" />
     </app-view>
 </template>
@@ -46,7 +46,7 @@ const queryParams = shallowRef<Model.ContractSheetReq>()
 
 const { filterOptons, getQueryParams } = useDataFilter<Model.ContractSheetReq>()
 
-const { componentMap, componentId, selectedRow, openComponent, closeComponent, getFilteredButtons } = useOperation<Model.ContractSheetRsp>({
+const { componentMap, componentId, record, openComponent, closeComponent, getFilteredButtons } = useOperation<Model.ContractSheetRsp>({
     onClose: () => onSearch()
 })
 

+ 2 - 2
src/packages/pc/views/query/order/tradesumm/index.vue

@@ -14,7 +14,7 @@
                     @change="onSearch" />
             </template>
         </app-table>
-        <component :is="componentMap.get(componentId)" v-bind="{ selectedRow, queryParams }" @closed="closeComponent"
+        <component :is="componentMap.get(componentId)" v-bind="{ record, queryParams }" @closed="closeComponent"
             v-if="componentId" />
     </app-view>
 </template>
@@ -37,7 +37,7 @@ const queryParams = shallowRef<Model.GoodsTradeReq>()
 
 const { filterOptons, getQueryParams } = useDataFilter<Model.GoodsTradeReq>()
 
-const { componentMap, componentId, selectedRow, openComponent, closeComponent, getFilteredButtons } = useOperation<Model.GoodsTradeReq>({
+const { componentMap, componentId, record, openComponent, closeComponent, getFilteredButtons } = useOperation<Model.GoodsTradeReq>({
     onClose: () => onSearch()
 })
 

+ 5 - 5
src/packages/pc/views/query/other/bank_inout/components/details/index.vue

@@ -31,7 +31,7 @@ import AppDrawer from '@pc/components/base/drawer/index.vue'
 import AppTableDetails from '@pc/components/base/table-details/index.vue'
 
 const props = defineProps({
-    selectedRow: {
+    record: {
         type: Object as PropType<Model.PutOrInRsp>,
         required: true
     },
@@ -48,10 +48,10 @@ const applystatusEnum = useEnum('applystatus') // 状态
 
 const { data } = useRequest(queryPutOrInDetail, {
     params: {
-        accountcode: props.selectedRow.accountcode.toString(),
-        cusbankid: props.selectedRow.cusbankid,
-        exchticket: props.selectedRow.exchticket,
-        tradedate: props.selectedRow.tradedate
+        accountcode: props.record.accountcode.toString(),
+        cusbankid: props.record.cusbankid,
+        exchticket: props.record.exchticket,
+        tradedate: props.record.tradedate
     },
     onError: (err) => {
         ElMessage.error(err)

+ 2 - 2
src/packages/pc/views/query/other/bank_inout/index.vue

@@ -15,7 +15,7 @@
                     @change="onSearch" />
             </template>
         </app-table>
-        <component :is="componentMap.get(componentId)" v-bind="{ selectedRow, flag: 2 }" @closed="closeComponent"
+        <component :is="componentMap.get(componentId)" v-bind="{ record, flag: 2 }" @closed="closeComponent"
             v-if="componentId" />
     </app-view>
 </template>
@@ -39,7 +39,7 @@ const applystatusEnum = useEnum('applystatus') // 状态
 
 const { filterOptons, getQueryParams } = useDataFilter<Model.PutOrInReq>()
 
-const { componentMap, componentId, selectedRow, openComponent, closeComponent, getFilteredButtons } = useOperation<Model.PutOrInRsp>({
+const { componentMap, componentId, record, openComponent, closeComponent, getFilteredButtons } = useOperation<Model.PutOrInRsp>({
     onClose: () => onSearch()
 })
 

+ 2 - 2
src/packages/pc/views/query/other/bank_statement/index.vue

@@ -14,7 +14,7 @@
                     @change="onSearch" />
             </template>
         </app-table>
-        <component :is="componentMap.get(componentId)" v-bind="{ selectedRow, queryParams }" @closed="closeComponent"
+        <component :is="componentMap.get(componentId)" v-bind="{ record, queryParams }" @closed="closeComponent"
             v-if="componentId" />
     </app-view>
 </template>
@@ -37,7 +37,7 @@ const queryParams = shallowRef<Model.AmountStreamReq>()
 
 const { filterOptons, getQueryParams } = useDataFilter<Model.AmountStreamReq>()
 
-const { componentMap, componentId, selectedRow, openComponent, closeComponent, getFilteredButtons } = useOperation<Model.AmountStreamRsp>({
+const { componentMap, componentId, record, openComponent, closeComponent, getFilteredButtons } = useOperation<Model.AmountStreamRsp>({
     onClose: () => onSearch()
 })
 

+ 4 - 4
src/packages/pc/views/query/warehouse_receipt_order/order/components/details/index.vue

@@ -30,7 +30,7 @@ import AppTable from '@pc/components/base/table/index.vue'
 import AppTableDetails from '@pc/components/base/table-details/index.vue'
 
 const props = defineProps({
-    selectedRow: {
+    record: {
         type: Object as PropType<Model.WarehouseQueryRsp>,
         required: true
     }
@@ -46,8 +46,8 @@ const wrTradeOrderStatusEnum = useEnum('WRTradeOrderStatus')
 
 const { data } = useRequest(tradeOrderView, {
     params: {
-        ishis: props.selectedRow.ishis,
-        wrtradeorderid: props.selectedRow.wrtradeorderid
+        ishis: props.record.ishis,
+        wrtradeorderid: props.record.wrtradeorderid
     },
     onError: (err) => {
         ElMessage.error(err)
@@ -58,7 +58,7 @@ const detailProps1 = computed<CellProp[]>(() => {
     const { userName, wrFactorTypeName, wrstandardname, marketName } = data.value ?? {}
     return [
         { prop: 'tradedate', label: '交易日:' },
-        { prop: 'wrtradeorderid', label: '委托单号:', formatValue: () => props.selectedRow.wrtradeorderid },
+        { prop: 'wrtradeorderid', label: '委托单号:', formatValue: () => props.record.wrtradeorderid },
         { prop: 'userName', label: '用户名称:', formatValue: () => userName },
         { prop: 'accountid', label: '资金账号:' },
         { prop: 'wrtradetype', label: '单据类型:', formatValue: (val) => wrtradetype2Enum.getEnumTypeName(val) },

+ 2 - 2
src/packages/pc/views/query/warehouse_receipt_order/order/index.vue

@@ -19,7 +19,7 @@
                     @change="onSearch" />
             </template>
         </app-table>
-        <component :is="componentMap.get(componentId)" v-bind="{ selectedRow, queryParams }" @closed="closeComponent"
+        <component :is="componentMap.get(componentId)" v-bind="{ record, queryParams }" @closed="closeComponent"
             v-if="componentId" />
     </app-view>
 </template>
@@ -50,7 +50,7 @@ const queryParams = shallowRef<Model.WarehouseQueryReq>()
 
 const { filterOptons, getQueryParams } = useDataFilter<Model.WarehouseQueryReq>()
 
-const { componentMap, componentId, selectedRow, openComponent, closeComponent, getFilteredButtons } = useOperation<Model.WarehouseQueryRsp>({
+const { componentMap, componentId, record, openComponent, closeComponent, getFilteredButtons } = useOperation<Model.WarehouseQueryRsp>({
     onClose: () => onSearch()
 })
 

+ 2 - 2
src/packages/pc/views/query/warehouse_receipt_order/trade/index.vue

@@ -19,7 +19,7 @@
                     @change="onSearch" />
             </template>
         </app-table>
-        <component :is="componentMap.get(componentId)" v-bind="{ selectedRow, queryParams }" @closed="closeComponent"
+        <component :is="componentMap.get(componentId)" v-bind="{ record, queryParams }" @closed="closeComponent"
             v-if="componentId" />
     </app-view>
 </template>
@@ -44,7 +44,7 @@ const queryParams = shallowRef<Model.TradeOrderReq>()
 
 const { filterOptons, getQueryParams } = useDataFilter<Model.TradeOrderReq>()
 
-const { componentMap, componentId, selectedRow, openComponent, closeComponent, getFilteredButtons } = useOperation<Model.TradeOrderRsp>({
+const { componentMap, componentId, record, openComponent, closeComponent, getFilteredButtons } = useOperation<Model.TradeOrderRsp>({
     onClose: () => onSearch()
 })
 

+ 2 - 2
src/packages/pc/views/report/broker/index.vue

@@ -10,7 +10,7 @@
                     @change="onSearch" />
             </template>
         </app-table>
-        <component :is="componentMap.get(componentId)" v-bind="{ selectedRow, queryParams }" @closed="closeComponent"
+        <component :is="componentMap.get(componentId)" v-bind="{ record, queryParams }" @closed="closeComponent"
             v-if="componentId" />
     </app-view>
 </template>
@@ -32,7 +32,7 @@ const queryParams = shallowRef<Model.OrgReportQueryReq>()
 const { filterOptons, getQueryParams } = useDataFilter<Model.OrgReportQueryReq>()
 const userStore = useUserStore()
 
-const { componentMap, componentId, selectedRow, closeComponent } = useOperation<Model.OrgReportQueryReq>({
+const { componentMap, componentId, record, closeComponent } = useOperation<Model.OrgReportQueryReq>({
     onClose: () => onSearch()
 })
 

+ 2 - 2
src/packages/pc/views/report/investor/index.vue

@@ -10,7 +10,7 @@
                     @change="onSearch" />
             </template>
         </app-table>
-        <component :is="componentMap.get(componentId)" v-bind="{ selectedRow, queryParams }" @closed="closeComponent"
+        <component :is="componentMap.get(componentId)" v-bind="{ record, queryParams }" @closed="closeComponent"
             v-if="componentId" />
     </app-view>
 </template>
@@ -32,7 +32,7 @@ const queryParams = shallowRef<Model.InvestorReportReq>()
 const { filterOptons, getQueryParams } = useDataFilter<Model.InvestorReportReq>()
 const userStore = useUserStore()
 
-const { componentMap, componentId, selectedRow, closeComponent } = useOperation<Model.InvestorReportReq>({
+const { componentMap, componentId, record, closeComponent } = useOperation<Model.InvestorReportReq>({
     onClose: () => onSearch()
 })
 

+ 2 - 2
src/packages/pc/views/report/profitshare/index.vue

@@ -10,7 +10,7 @@
                     @change="onSearch" />
             </template>
         </app-table>
-        <component :is="componentMap.get(componentId)" v-bind="{ selectedRow, queryParams }" @closed="closeComponent"
+        <component :is="componentMap.get(componentId)" v-bind="{ record, queryParams }" @closed="closeComponent"
             v-if="componentId" />
     </app-view>
 </template>
@@ -32,7 +32,7 @@ const queryParams = shallowRef<Model.ShareAmountQueryReq>()
 const { filterOptons, getQueryParams } = useDataFilter<Model.ShareAmountQueryReq>()
 const userStore = useUserStore()
 
-const { componentMap, componentId, selectedRow, closeComponent } = useOperation<Model.ShareAmountQueryReq>({
+const { componentMap, componentId, record, closeComponent } = useOperation<Model.ShareAmountQueryReq>({
     onClose: () => onSearch()
 })
 

+ 2 - 2
src/packages/pc/views/report/trade/index.vue

@@ -10,7 +10,7 @@
                     @change="onSearch" />
             </template>
         </app-table>
-        <component :is="componentMap.get(componentId)" v-bind="{ selectedRow, queryParams }" @closed="closeComponent"
+        <component :is="componentMap.get(componentId)" v-bind="{ record, queryParams }" @closed="closeComponent"
             v-if="componentId" />
     </app-view>
 </template>
@@ -30,7 +30,7 @@ import AppPagination from '@pc/components/base/pagination/index.vue'
 const queryParams = shallowRef<Model.TradeReq>()
 const { filterOptons, getQueryParams } = useDataFilter<Model.TradeReq>()
 
-const { componentMap, componentId, selectedRow, closeComponent } = useOperation<Model.TradeReq>({
+const { componentMap, componentId, record, closeComponent } = useOperation<Model.TradeReq>({
     onClose: () => onSearch()
 })
 

+ 2 - 2
src/packages/pc/views/settlement/profitsharepay/index.vue

@@ -10,7 +10,7 @@
                     @change="onSearch" />
             </template>
         </app-table>
-        <component :is="componentMap.get(componentId)" v-bind="{ selectedRow, queryParams }" @closed="closeComponent"
+        <component :is="componentMap.get(componentId)" v-bind="{ record, queryParams }" @closed="closeComponent"
             v-if="componentId" />
     </app-view>
 </template>
@@ -29,7 +29,7 @@ import AppPagination from '@pc/components/base/pagination/index.vue'
 const queryParams = shallowRef<Model.ShareDayQueryReq>()
 const { filterOptons, getQueryParams } = useDataFilter<Model.ShareDayQueryReq>()
 
-const { componentMap, componentId, selectedRow, closeComponent } = useOperation<Model.ShareDayQueryReq>({
+const { componentMap, componentId, record, closeComponent } = useOperation<Model.ShareDayQueryReq>({
     onClose: () => onSearch()
 })
 

+ 2 - 2
src/packages/pc/views/system/login_failed/index.vue

@@ -14,7 +14,7 @@
                     @change="onSearch" />
             </template>
         </app-table>
-        <component :is="componentMap.get(componentId)" v-bind="{ selectedRow, queryParams }" @closed="closeComponent"
+        <component :is="componentMap.get(componentId)" v-bind="{ record, queryParams }" @closed="closeComponent"
             v-if="componentId" />
     </app-view>
 </template>
@@ -35,7 +35,7 @@ import AppOperation from '@pc/components/base/operation/index.vue'
 const queryParams = shallowRef<Model.SystemErrorReq>()
 const { filterOptons, getQueryParams } = useDataFilter<Model.SystemErrorReq>()
 
-const { componentMap, componentId, selectedRow, openComponent, closeComponent, getFilteredButtons } = useOperation<Model.SystemErrorRsp>({
+const { componentMap, componentId, record, openComponent, closeComponent, getFilteredButtons } = useOperation<Model.SystemErrorRsp>({
     onClose: () => onSearch()
 })
 

+ 2 - 2
src/packages/pc/views/system/menu/components/delete/index.vue

@@ -16,7 +16,7 @@ import { deleteMenus } from '@/services/api/user'
 import AppDrawer from '@pc/components/base/drawer/index.vue'
 
 const props = defineProps({
-    selectedRow: {
+    record: {
         type: Object as PropType<Model.MenusRsp>,
         required: true
     }
@@ -35,7 +35,7 @@ const onSubmit = () => {
     loading.value = true
     deleteMenus({
         data: {
-            resourceCode: props.selectedRow.resourceCode
+            resourceCode: props.record.resourceCode
         }
     }).then(() => {
         ElMessage.success('删除成功')

+ 6 - 6
src/packages/pc/views/system/menu/components/edit/index.vue

@@ -21,7 +21,7 @@
                 <el-input v-model="formData.title" placeholder="请输入" />
             </el-form-item>
             <el-form-item label="权限代码" prop="resourceCode">
-                <el-input v-model="formData.resourceCode" placeholder="请输入" :disabled="!!selectedRow?.resourceCode" />
+                <el-input v-model="formData.resourceCode" placeholder="请输入" :disabled="!!record?.resourceCode" />
             </el-form-item>
             <el-form-item label="按钮样式" v-if="formData.authType === AuthType.Operate">
                 <div class="el-form-item--col">
@@ -88,7 +88,7 @@ const components = {
 }
 
 const props = defineProps({
-    selectedRow: {
+    record: {
         type: Object as PropType<Model.MenusRsp>
     }
 })
@@ -131,7 +131,7 @@ const menus = computed(() => {
         }).filter(item => item.resourceCode !== code && item.authType !== AuthType.Operate)
     }
 
-    return removeNodesByCode(data, props.selectedRow?.resourceCode)
+    return removeNodesByCode(data, props.record?.resourceCode)
 })
 
 const formData = reactive<Model.DealMenusReq>({
@@ -168,7 +168,7 @@ const onSubmit = () => {
             const rawData = toRaw(formData)
             const hasNode = hasValueInTree(routerStore.userRoutes, rawData.resourceCode, { id: 'resourceCode' })
 
-            if (props.selectedRow?.resourceCode === rawData.resourceCode || !hasNode) {
+            if (props.record?.resourceCode === rawData.resourceCode || !hasNode) {
                 if (rawData.authType === AuthType.Menu) {
                     if (rawData.urlType !== UrlType.Path) {
                         rawData.component = ''
@@ -193,7 +193,7 @@ const onSubmit = () => {
 }
 
 onMounted(() => {
-    if (props.selectedRow) {
+    if (props.record) {
         ({
             resourceCode: formData.resourceCode,
             parentCode: formData.parentCode,
@@ -207,7 +207,7 @@ onMounted(() => {
             sort: formData.sort,
             show: formData.show,
             remark: formData.remark,
-        } = props.selectedRow)
+        } = props.record)
     }
 })
 </script>

+ 3 - 3
src/packages/pc/views/system/menu/index.vue

@@ -15,7 +15,7 @@
                 <el-button size="small" icon="Delete" circle @click="showComponent('delete', row)" />
             </template>
         </app-table>
-        <component ref="componentRef" v-bind="{ selectedRow }" :is="componentMap.get(componentId)"
+        <component ref="componentRef" v-bind="{ record }" :is="componentMap.get(componentId)"
             @closed="closeComponent" v-if="componentId" />
     </app-view>
 </template>
@@ -32,7 +32,7 @@ const componentMap = new Map<string, unknown>([
 ])
 
 const routerStore = useRouterStore()
-const selectedRow = shallowRef<Model.MenusRsp>()
+const record = shallowRef<Model.MenusRsp>()
 const tableRef = shallowRef()
 const isRowExpansion = shallowRef(false)
 
@@ -49,7 +49,7 @@ const columns = shallowRef([
 ])
 
 const showComponent = (componentName: string, row?: Model.MenusRsp) => {
-    selectedRow.value = row
+    record.value = row
     openComponent(componentName)
 }
 

+ 2 - 2
src/packages/pc/views/system/operation_log/index.vue

@@ -10,7 +10,7 @@
                     @change="onSearch" />
             </template>
         </app-table>
-        <component :is="componentMap.get(componentId)" v-bind="{ selectedRow, queryParams }" @closed="closeComponent"
+        <component :is="componentMap.get(componentId)" v-bind="{ record, queryParams }" @closed="closeComponent"
             v-if="componentId" />
     </app-view>
 </template>
@@ -32,7 +32,7 @@ const queryParams = shallowRef<Model.SystemLogReq>()
 const { filterOptons, getQueryParams } = useDataFilter<Model.SystemLogReq>()
 const userStore = useUserStore()
 
-const { componentMap, componentId, selectedRow, closeComponent } = useOperation<Model.SystemLogReq>({
+const { componentMap, componentId, record, closeComponent } = useOperation<Model.SystemLogReq>({
     onClose: () => onSearch()
 })
 

+ 11 - 9
src/types/model/profitshare.d.ts

@@ -92,15 +92,7 @@ declare namespace Model {
         ft3: {
             [number]: InitProfitShareConfig[];
         };
-        mks: {
-            buyspotrighttype: number;
-            marketid: number;
-            marketname: string;
-            roletype: number;
-            spotrighttype: number;
-            trademode: number;
-            tradeproperty: number;
-        }[];
+        mks: InitProfitShareMarket[];
     }
 
     interface InitProfitShareConfig {
@@ -116,4 +108,14 @@ declare namespace Model {
         subareagroupname: string;
         username: string;
     }
+
+    interface InitProfitShareMarket {
+        buyspotrighttype: number;
+        marketid: number;
+        marketname: string;
+        roletype: number;
+        spotrighttype: number;
+        trademode: number;
+        tradeproperty: number;
+    }
 }