|
@@ -36,9 +36,8 @@
|
|
|
{{item.rolename}}({{item.userlist.length}})
|
|
{{item.rolename}}({{item.userlist.length}})
|
|
|
</a-col>
|
|
</a-col>
|
|
|
<a-col :span="12">
|
|
<a-col :span="12">
|
|
|
- <BtnList :selectedData="item"
|
|
|
|
|
- :btnList="secondBtn"
|
|
|
|
|
- @onClick="openAction" />
|
|
|
|
|
|
|
+ <BtnList :btnList="secondBtn"
|
|
|
|
|
+ @onClick="btnClick(item)" />
|
|
|
</a-col>
|
|
</a-col>
|
|
|
</a-row>
|
|
</a-row>
|
|
|
</template>
|
|
</template>
|
|
@@ -54,49 +53,52 @@
|
|
|
</a-row>
|
|
</a-row>
|
|
|
</template>
|
|
</template>
|
|
|
<BtnList :btnList="sub.btnList"
|
|
<BtnList :btnList="sub.btnList"
|
|
|
- :selectedData="sub"
|
|
|
|
|
- @onClick="moreOptenAction" />
|
|
|
|
|
|
|
+ @onClick="btnClick(item, sub)" />
|
|
|
</a-collapse-panel>
|
|
</a-collapse-panel>
|
|
|
</a-collapse>
|
|
</a-collapse>
|
|
|
</a-collapse-panel>
|
|
</a-collapse-panel>
|
|
|
</a-collapse>
|
|
</a-collapse>
|
|
|
- <Add @refresh="handleBtnAction"
|
|
|
|
|
- :selectedData="addModelData" />
|
|
|
|
|
|
|
+ <Add @refresh="handleBtnAction" />
|
|
|
<AddChild @refresh="handleBtnAction"
|
|
<AddChild @refresh="handleBtnAction"
|
|
|
:accountList="accountList"
|
|
:accountList="accountList"
|
|
|
- :selectedData="addModelData" />
|
|
|
|
|
|
|
+ :secondBtnData="firstBtnData" />
|
|
|
<Modify @refresh="handleBtnAction"
|
|
<Modify @refresh="handleBtnAction"
|
|
|
- :selectedData="addModelData" />
|
|
|
|
|
|
|
+ :selectedData="firstBtnData" />
|
|
|
<Locked @refresh="handleBtnAction"
|
|
<Locked @refresh="handleBtnAction"
|
|
|
|
|
+ :firstBtnData="firstBtnData"
|
|
|
:accountList="accountList"
|
|
:accountList="accountList"
|
|
|
:tableList="tableList"
|
|
:tableList="tableList"
|
|
|
- :selectedData="moreModelData" />
|
|
|
|
|
|
|
+ :selectedData="secondBtnData" />
|
|
|
<Unlocked @refresh="handleBtnAction"
|
|
<Unlocked @refresh="handleBtnAction"
|
|
|
|
|
+ :firstBtnData="firstBtnData"
|
|
|
:accountList="accountList"
|
|
:accountList="accountList"
|
|
|
:tableList="tableList"
|
|
:tableList="tableList"
|
|
|
- :selectedData="moreModelData" />
|
|
|
|
|
|
|
+ :selectedData="secondBtnData" />
|
|
|
<Cancel @refresh="handleBtnAction"
|
|
<Cancel @refresh="handleBtnAction"
|
|
|
:accountList="accountList"
|
|
:accountList="accountList"
|
|
|
|
|
+ :firstBtnData="firstBtnData"
|
|
|
:tableList="tableList"
|
|
:tableList="tableList"
|
|
|
- :selectedData="moreModelData" />
|
|
|
|
|
|
|
+ :selectedData="secondBtnData" />
|
|
|
<Reset @refresh="handleBtnAction"
|
|
<Reset @refresh="handleBtnAction"
|
|
|
:accountList="accountList"
|
|
:accountList="accountList"
|
|
|
:tableList="tableList"
|
|
:tableList="tableList"
|
|
|
- :selectedData="moreModelData" />
|
|
|
|
|
- <Detail :selectedData="moreModelData"
|
|
|
|
|
|
|
+ :selectedData="secondBtnData" />
|
|
|
|
|
+ <Detail :selectedData="secondBtnData"
|
|
|
:accountList="accountList"
|
|
:accountList="accountList"
|
|
|
|
|
+ :firstBtnData="firstBtnData"
|
|
|
:tableList="tableList" />
|
|
:tableList="tableList" />
|
|
|
<ModifyChild @refresh="handleBtnAction"
|
|
<ModifyChild @refresh="handleBtnAction"
|
|
|
:accountList="accountList"
|
|
:accountList="accountList"
|
|
|
|
|
+ :firstBtnData="firstBtnData"
|
|
|
:tableList="tableList"
|
|
:tableList="tableList"
|
|
|
- :selectedData="moreModelData" />
|
|
|
|
|
|
|
+ :selectedData="secondBtnData" />
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
<script lang="ts">
|
|
|
import { defineComponent, initData, getBtnList, contextMenu, BtnList, _getBtnList } 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, handleBtnClickData } from '../setup';
|
|
|
import { getUserName } from '@/services/bus/user';
|
|
import { getUserName } from '@/services/bus/user';
|
|
|
import Modify from '../../compoments/modify-traders/index.vue';
|
|
import Modify from '../../compoments/modify-traders/index.vue';
|
|
|
import Add from '../../compoments/add-traders/index.vue'
|
|
import Add from '../../compoments/add-traders/index.vue'
|
|
@@ -143,7 +145,7 @@ export default defineComponent({
|
|
|
function handleBtnAction() {
|
|
function handleBtnAction() {
|
|
|
handleTableList(queryTable, tableList, thirdBtn);
|
|
handleTableList(queryTable, tableList, thirdBtn);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+ const { firstBtnData, secondBtnData, btnClick }= handleBtnClickData()
|
|
|
// 授权期货账户
|
|
// 授权期货账户
|
|
|
const accountList = ref<ErmcpTaAccount[]>([]);
|
|
const accountList = ref<ErmcpTaAccount[]>([]);
|
|
|
|
|
|
|
@@ -162,7 +164,10 @@ export default defineComponent({
|
|
|
function search(value: any) {}
|
|
function search(value: any) {}
|
|
|
|
|
|
|
|
return {
|
|
return {
|
|
|
|
|
+ firstBtnData,
|
|
|
|
|
+ btnClick,
|
|
|
firstBtn,
|
|
firstBtn,
|
|
|
|
|
+ secondBtnData,
|
|
|
secondBtn,
|
|
secondBtn,
|
|
|
thirdBtn,
|
|
thirdBtn,
|
|
|
loading,
|
|
loading,
|
|
@@ -204,12 +209,12 @@ export default defineComponent({
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
.ant-collapse.busyCollapse {
|
|
.ant-collapse.busyCollapse {
|
|
|
- .operBtn.ant-btn {
|
|
|
|
|
- margin-top: 0;
|
|
|
|
|
- margin-bottom: 0;
|
|
|
|
|
- height: 26px;
|
|
|
|
|
- line-height: 26px;
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ .operBtn.ant-btn {
|
|
|
|
|
+ margin-top: 0;
|
|
|
|
|
+ margin-bottom: 0;
|
|
|
|
|
+ height: 26px;
|
|
|
|
|
+ line-height: 26px;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
.ant-row.headRow {
|
|
.ant-row.headRow {
|
|
|
.ant-col:nth-child(2) {
|
|
.ant-col:nth-child(2) {
|