|
@@ -33,11 +33,10 @@
|
|
|
<a-row class="headRow">
|
|
<a-row class="headRow">
|
|
|
<a-col :span="12">
|
|
<a-col :span="12">
|
|
|
{{item.rolename}}({{item.userlist.length}})
|
|
{{item.rolename}}({{item.userlist.length}})
|
|
|
- <a-button @click.stop="modifySelfClick(item)">修改</a-button>
|
|
|
|
|
</a-col>
|
|
</a-col>
|
|
|
<a-col :span="12">
|
|
<a-col :span="12">
|
|
|
<BtnList :selectedData="item"
|
|
<BtnList :selectedData="item"
|
|
|
- :btnList="commonBtn"
|
|
|
|
|
|
|
+ :btnList="firstBtn"
|
|
|
@onClick="openAction" />
|
|
@onClick="openAction" />
|
|
|
</a-col>
|
|
</a-col>
|
|
|
</a-row>
|
|
</a-row>
|
|
@@ -92,7 +91,7 @@
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
<script lang="ts">
|
|
|
-import { defineComponent, initData, getBtnList, contextMenu, BtnList } from '@/common/export/table';
|
|
|
|
|
|
|
+import { defineComponent, initData, getBtnList, contextMenu, BtnList, _getBtnList } from '@/common/export/table';
|
|
|
import filterCustomTable from '@/views/information/goods/components/filterTable/index.vue';
|
|
import filterCustomTable from '@/views/information/goods/components/filterTable/index.vue';
|
|
|
import { getRoleTypeName } from '../setup';
|
|
import { getRoleTypeName } from '../setup';
|
|
|
import { queryTableList } from './setup';
|
|
import { queryTableList } from './setup';
|
|
@@ -129,21 +128,16 @@ export default defineComponent({
|
|
|
},
|
|
},
|
|
|
setup() {
|
|
setup() {
|
|
|
const { loading, tableList, queryTable } = queryTableList();
|
|
const { loading, tableList, queryTable } = queryTableList();
|
|
|
- const { commonBtn, forDataBtn } = getBtnList('account_info_trade', true);
|
|
|
|
|
|
|
+ const [firstBtn, secondBtn] = _getBtnList('account_info_trade', true).value;
|
|
|
// 新增弹窗
|
|
// 新增弹窗
|
|
|
const { selectedData: addModelData, openAction } = handleModalData<ErmcpLoginUserEx>();
|
|
const { selectedData: addModelData, openAction } = handleModalData<ErmcpLoginUserEx>();
|
|
|
// 修改 重置密码、详情等弹窗
|
|
// 修改 重置密码、详情等弹窗
|
|
|
const { selectedData: moreModelData, openAction: moreOptenAction } = handleModalData<ErmcpLoginUser>();
|
|
const { selectedData: moreModelData, openAction: moreOptenAction } = handleModalData<ErmcpLoginUser>();
|
|
|
// 处理根据状态显示对应按钮
|
|
// 处理根据状态显示对应按钮
|
|
|
function handleBtnAction() {
|
|
function handleBtnAction() {
|
|
|
- handleTableList(queryTable, tableList, forDataBtn.value);
|
|
|
|
|
- }
|
|
|
|
|
- // 修改交易用户
|
|
|
|
|
- const { openAction: openModifySelf } = openModal('account_info_trade_btn_child_modify');
|
|
|
|
|
- function modifySelfClick(value: ErmcpLoginUserEx) {
|
|
|
|
|
- Object.assign(addModelData, value);
|
|
|
|
|
- openModifySelf();
|
|
|
|
|
|
|
+ handleTableList(queryTable, tableList, secondBtn);
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
// 授权期货账户
|
|
// 授权期货账户
|
|
|
const accountList = ref<ErmcpTaAccount[]>([]);
|
|
const accountList = ref<ErmcpTaAccount[]>([]);
|
|
|
|
|
|
|
@@ -163,8 +157,8 @@ export default defineComponent({
|
|
|
function search(value: any) {}
|
|
function search(value: any) {}
|
|
|
|
|
|
|
|
return {
|
|
return {
|
|
|
- commonBtn,
|
|
|
|
|
- forDataBtn,
|
|
|
|
|
|
|
+ firstBtn,
|
|
|
|
|
+ secondBtn,
|
|
|
loading,
|
|
loading,
|
|
|
search,
|
|
search,
|
|
|
tableList,
|
|
tableList,
|
|
@@ -176,7 +170,6 @@ export default defineComponent({
|
|
|
moreOptenAction,
|
|
moreOptenAction,
|
|
|
handleBtnAction,
|
|
handleBtnAction,
|
|
|
accountList,
|
|
accountList,
|
|
|
- modifySelfClick,
|
|
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
});
|
|
});
|