|
|
@@ -13,6 +13,8 @@
|
|
|
</span>
|
|
|
</div>
|
|
|
<a-collapse class="spotCollapse"
|
|
|
+ v-for="(item, i) in tableList"
|
|
|
+ :key="i + '11'"
|
|
|
:bordered="false">
|
|
|
<template #expandIcon="props">
|
|
|
<svg class="icon svg-icon"
|
|
|
@@ -29,21 +31,21 @@
|
|
|
<a-collapse-panel>
|
|
|
<template #header>
|
|
|
<a-row class="headRow">
|
|
|
- <a-col :span="12">业务员(2)</a-col>
|
|
|
+ <a-col :span="12">{{item.rolename}}({{item.userlist.length}})</a-col>
|
|
|
<a-col :span="12">
|
|
|
<BtnList :btnList="commonBtn" />
|
|
|
</a-col>
|
|
|
</a-row>
|
|
|
</template>
|
|
|
<a-row class="contRow"
|
|
|
- v-for="(item, i) in businesserList"
|
|
|
+ v-for="(sub, i) in item.userlist"
|
|
|
:key="i + '11'">
|
|
|
- <a-col :span="12">{{item.accountname}}-{{item.logincode}}</a-col>
|
|
|
- <a-col :span="12">{{getLoginStatusEnumItemName(item.loginstatus)}}</a-col>
|
|
|
+ <a-col :span="12">{{sub.accountname}}-{{sub.logincode}}</a-col>
|
|
|
+ <a-col :span="12">{{getLoginStatusEnumItemName(sub.loginstatus)}}</a-col>
|
|
|
</a-row>
|
|
|
</a-collapse-panel>
|
|
|
</a-collapse>
|
|
|
- <a-collapse class="spotCollapse"
|
|
|
+ <!-- <a-collapse class="spotCollapse"
|
|
|
:bordered="false">
|
|
|
<template #expandIcon="props">
|
|
|
<svg class="icon svg-icon"
|
|
|
@@ -81,8 +83,8 @@
|
|
|
</a-collapse-panel>
|
|
|
</a-collapse>
|
|
|
</a-collapse-panel>
|
|
|
- </a-collapse>
|
|
|
- <Add />
|
|
|
+ </a-collapse> -->
|
|
|
+ <Add @refresh="queryTable" />
|
|
|
<Modify />
|
|
|
<Reset />
|
|
|
<Locked />
|
|
|
@@ -94,8 +96,7 @@
|
|
|
<script lang="ts">
|
|
|
import { defineComponent, initData, getBtnList, contextMenu, BtnList } from '@/common/export/table';
|
|
|
import filterCustomTable from '@/views/information/goods/components/filterTable/index.vue';
|
|
|
-import { ref } from 'vue';
|
|
|
-import { handleBusinessAccount } from './setup';
|
|
|
+import { queryTableList } from './setup';
|
|
|
import { getLoginStatusEnumItemName } from '@/common/constants/enumsName';
|
|
|
import Add from '../../compoments/add-business/index.vue';
|
|
|
import Modify from '../../compoments/modify-business/index.vue';
|
|
|
@@ -118,14 +119,11 @@ export default defineComponent({
|
|
|
Detail,
|
|
|
},
|
|
|
setup() {
|
|
|
- const { businesserList, merchandiserList, getBusinesserList } = handleBusinessAccount();
|
|
|
-
|
|
|
+ const { loading, tableList, queryTable } = queryTableList();
|
|
|
const { commonBtn, forDataBtn } = getBtnList('account_info_business', true);
|
|
|
- const loading = ref<boolean>(false);
|
|
|
initData(() => {
|
|
|
- getBusinesserList();
|
|
|
+ queryTable();
|
|
|
});
|
|
|
-
|
|
|
// 查询
|
|
|
function search(value: any) {}
|
|
|
|
|
|
@@ -134,9 +132,9 @@ export default defineComponent({
|
|
|
forDataBtn,
|
|
|
loading,
|
|
|
search,
|
|
|
- businesserList,
|
|
|
- merchandiserList,
|
|
|
+ tableList,
|
|
|
getLoginStatusEnumItemName,
|
|
|
+ queryTable,
|
|
|
};
|
|
|
},
|
|
|
});
|