|
|
@@ -1,80 +1,56 @@
|
|
|
<template>
|
|
|
- <div style="background: red; color: #fff; padding: 5px 0">待修改</div>
|
|
|
- <!-- 交易账户 -->
|
|
|
- <div class="account_info_trade account_info_container"
|
|
|
- :loading="loading">
|
|
|
- <filterCustomTable @search="search"></filterCustomTable>
|
|
|
- <div class="tltLeft">
|
|
|
- <span class="blue">
|
|
|
- <svg class="icon svg-icon"
|
|
|
- aria-hidden="true">
|
|
|
- <use xlink:href="#icon-shuzhuangtu"></use>
|
|
|
- </svg>
|
|
|
- {{ getUserName() }}
|
|
|
- </span>
|
|
|
- <mtp-table-button :buttons="firstBtn"
|
|
|
- @click="openComponent" />∏
|
|
|
+ <!-- 交易账户 -->
|
|
|
+ <div class="account_info_trade account_info_container" :loading="loading">
|
|
|
+ <filterCustomTable @search="search"></filterCustomTable>
|
|
|
+ <div class="tltLeft">
|
|
|
+ <span class="blue">
|
|
|
+ <svg class="icon svg-icon" aria-hidden="true">
|
|
|
+ <use xlink:href="#icon-shuzhuangtu"></use>
|
|
|
+ </svg>
|
|
|
+ {{ getUserName() }}
|
|
|
+ </span>
|
|
|
+ <mtp-table-button :buttons="firstBtn" @click="openComponent" />
|
|
|
+ </div>
|
|
|
+ <div class="a-collapse-container">
|
|
|
+ <a-collapse class="spotCollapse" v-for="(item, i) in tableList" :key="i + '11'" :bordered="false">
|
|
|
+ <template #expandIcon="props">
|
|
|
+ <svg class="icon svg-icon" aria-hidden="true" v-if="props.isActive == 0">
|
|
|
+ <use xlink:href="#icon-shouqi1"></use>
|
|
|
+ </svg>
|
|
|
+ <svg class="icon svg-icon" aria-hidden="true" v-else>
|
|
|
+ <use xlink:href="#icon-shouqi2"></use>
|
|
|
+ </svg>
|
|
|
+ </template>
|
|
|
+ <a-collapse-panel>
|
|
|
+ <template #header>
|
|
|
+ <a-row class="headRow">
|
|
|
+ <a-col :span="12"> {{ item.rolename }}({{ item.userlist.length }}) </a-col>
|
|
|
+ <a-col :span="12">
|
|
|
+ <mtp-table-button :buttons="secondBtn" :record="item" @click="openComponent" />
|
|
|
+ </a-col>
|
|
|
+ </a-row>
|
|
|
+ </template>
|
|
|
+ <a-collapse class="busyCollapse" v-for="(sub, i) in item.userlist" :key="i + '11'" :bordered="false">
|
|
|
+ <a-collapse-panel :show-arrow="false">
|
|
|
+ <template #header>
|
|
|
+ <a-row class="contRow">
|
|
|
+ <a-col :span="12">{{ sub.loginname }}-{{ sub.logincode }}</a-col>
|
|
|
+ <a-col :span="12">{{ getRoleTypeName(sub.loginstatus) }}</a-col>
|
|
|
+ </a-row>
|
|
|
+ </template>
|
|
|
+ <mtp-table-button :buttons="thirdBtn" :record="sub" @click="openSecondBtnAction" />
|
|
|
+ </a-collapse-panel>
|
|
|
+ </a-collapse>
|
|
|
+ </a-collapse-panel>
|
|
|
+ </a-collapse>
|
|
|
+ </div>
|
|
|
+ <component :is="componentId" v-if="componentId" :accountList="accountList" :tableList="tableList" :firstBtnData="firstSelectedData" :selectedData="selectedData" @cancel="closeComponent"></component>
|
|
|
</div>
|
|
|
- <div class="a-collapse-container">
|
|
|
- <a-collapse class="spotCollapse"
|
|
|
- v-for="(item, i) in tableList"
|
|
|
- :key="i + '11'"
|
|
|
- :bordered="false">
|
|
|
- <template #expandIcon="props">
|
|
|
- <svg class="icon svg-icon"
|
|
|
- aria-hidden="true"
|
|
|
- v-if="props.isActive == 0">
|
|
|
- <use xlink:href="#icon-shouqi1"></use>
|
|
|
- </svg>
|
|
|
- <svg class="icon svg-icon"
|
|
|
- aria-hidden="true"
|
|
|
- v-else>
|
|
|
- <use xlink:href="#icon-shouqi2"></use>
|
|
|
- </svg>
|
|
|
- </template>
|
|
|
- <a-collapse-panel>
|
|
|
- <template #header>
|
|
|
- <a-row class="headRow">
|
|
|
- <a-col :span="12"> {{ item.rolename }}({{ item.userlist.length }}) </a-col>
|
|
|
- <a-col :span="12">
|
|
|
- <mtp-table-button :buttons="secondBtn"
|
|
|
- :record="item"
|
|
|
- @click="openComponent" />
|
|
|
- </a-col>
|
|
|
- </a-row>
|
|
|
- </template>
|
|
|
- <a-collapse class="busyCollapse"
|
|
|
- v-for="(sub, i) in item.userlist"
|
|
|
- :key="i + '11'"
|
|
|
- :bordered="false">
|
|
|
- <a-collapse-panel :show-arrow="false">
|
|
|
- <template #header>
|
|
|
- <a-row class="contRow">
|
|
|
- <a-col :span="12">{{ sub.loginname }}-{{ sub.logincode }}</a-col>
|
|
|
- <a-col :span="12">{{ getRoleTypeName(sub.loginstatus) }}</a-col>
|
|
|
- </a-row>
|
|
|
- </template>
|
|
|
- <mtp-table-button :buttons="thirdBtn"
|
|
|
- :record="sub"
|
|
|
- @click="openSecondBtnAction" />
|
|
|
- </a-collapse-panel>
|
|
|
- </a-collapse>
|
|
|
- </a-collapse-panel>
|
|
|
- </a-collapse>
|
|
|
- </div>
|
|
|
- <component :is="componentId"
|
|
|
- v-if="componentId"
|
|
|
- :accountList="accountList"
|
|
|
- :tableList="tableList"
|
|
|
- :firstBtnData="firstSelectedData"
|
|
|
- :selectedData="selectedData"
|
|
|
- @cancel="closeComponent"></component>
|
|
|
- </div>
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts">
|
|
|
-import { initData, _getBtnList } from '@/common/export/table';
|
|
|
-import { contextMenu, defineAsyncComponent, defineComponent, MtpTableButton } from '@/common/export/commonTable';
|
|
|
+import { initData } from '@/common/methods';
|
|
|
+import { defineAsyncComponent, defineComponent, MtpTableButton } from '@/common/export/commonTable';
|
|
|
import filterCustomTable from '@/views/information/goods/components/filterTable/index.vue';
|
|
|
import { getRoleTypeName } from '../setup';
|
|
|
import { getUserName } from '@/services/bus/user';
|
|
|
@@ -91,17 +67,16 @@ import { Ref, ref } from 'vue';
|
|
|
export default defineComponent({
|
|
|
name: 'account_info_trade',
|
|
|
components: {
|
|
|
- contextMenu,
|
|
|
MtpTableButton,
|
|
|
filterCustomTable,
|
|
|
+ detail: defineAsyncComponent(() => import('../../compoments/detail-trader/index.vue')),
|
|
|
account_trade_modify: defineAsyncComponent(() => import('../../compoments/modify-traders/index.vue')),
|
|
|
account_trade_add: defineAsyncComponent(() => import('../../compoments/add-traders/index.vue')),
|
|
|
- add_child: defineAsyncComponent(() => import('../../compoments/add-child-traders/index.vue')),
|
|
|
+ account_trade_child_add: defineAsyncComponent(() => import('../../compoments/add-child-traders/index.vue')),
|
|
|
account_trade_child_locked: defineAsyncComponent(() => import('../../compoments/locked-trader/index.vue')),
|
|
|
- unlocked: defineAsyncComponent(() => import('../../compoments/unlocked-trader/index.vue')),
|
|
|
- account_trade_child_logout: defineAsyncComponent(() => import('../../compoments/cancel-trader/index.vue')),
|
|
|
+ account_trade_child_unlocked: defineAsyncComponent(() => import('../../compoments/unlocked-trader/index.vue')),
|
|
|
+ account_trade_child_cancel: defineAsyncComponent(() => import('../../compoments/cancel-trader/index.vue')),
|
|
|
account_trade_child_reset: defineAsyncComponent(() => import('../../compoments/reset-trader/index.vue')),
|
|
|
- detail: defineAsyncComponent(() => import('../../compoments/detail-trader/index.vue')),
|
|
|
account_trade_child_modify: defineAsyncComponent(() => import('../../compoments/modify-child-traders/index.vue')),
|
|
|
},
|
|
|
setup() {
|
|
|
@@ -110,8 +85,8 @@ export default defineComponent({
|
|
|
const { tableList, queryTable } = handlerManagerList(loading, 2);
|
|
|
|
|
|
const firstBtn = getTableButton(['account_trade_add']);
|
|
|
- const secondBtn = getTableButton(['account_trade_modify', 'add_child']);
|
|
|
- const thirdBtn = getTableButton(['account_trade_add', 'account_trade_modify', 'add_child'], true);
|
|
|
+ const secondBtn = getTableButton(['account_trade_modify', 'account_trade_child_add']);
|
|
|
+ const thirdBtn = getTableButton(['account_trade_add', 'account_trade_modify', 'account_trade_child_add'], true);
|
|
|
|
|
|
// 处理根据状态显示对应按钮
|
|
|
function handleBtnAction() {
|