|
@@ -31,7 +31,6 @@
|
|
|
:navText="navText"
|
|
:navText="navText"
|
|
|
:loading="loading"
|
|
:loading="loading"
|
|
|
@load="load"
|
|
@load="load"
|
|
|
- @check="check"
|
|
|
|
|
>
|
|
>
|
|
|
<template slot="customize">
|
|
<template slot="customize">
|
|
|
<el-button v-if="type !== 0" @click="exportSH" type="success">
|
|
<el-button v-if="type !== 0" @click="exportSH" type="success">
|
|
@@ -728,28 +727,6 @@ export default {
|
|
|
this.init();
|
|
this.init();
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
- check(value, row) {
|
|
|
|
|
- return;
|
|
|
|
|
- if (row.oId) return;
|
|
|
|
|
- const index = this.tableData.findIndex((e) => e.id == row.id);
|
|
|
|
|
- if (this.expandList[index] === true) {
|
|
|
|
|
- this.expandList[index] = false;
|
|
|
|
|
- this.$refs.tableList.$refs.pagerset.clearSelection();
|
|
|
|
|
- return;
|
|
|
|
|
- }
|
|
|
|
|
- this.expandList[index] = true;
|
|
|
|
|
- const box = document.querySelectorAll(".el-table__row--level-0")[index];
|
|
|
|
|
- const btn = box.querySelector(".el-table__expand-icon");
|
|
|
|
|
- btn.onclick = () => {
|
|
|
|
|
- //
|
|
|
|
|
- };
|
|
|
|
|
- const event = new MouseEvent("click", {
|
|
|
|
|
- view: window,
|
|
|
|
|
- bubbles: true,
|
|
|
|
|
- cancelable: true,
|
|
|
|
|
- });
|
|
|
|
|
- btn.dispatchEvent(event);
|
|
|
|
|
- },
|
|
|
|
|
getRoles(roleId) {
|
|
getRoles(roleId) {
|
|
|
if (
|
|
if (
|
|
|
(this.$store.state.user.rolesId?.length > 0 &&
|
|
(this.$store.state.user.rolesId?.length > 0 &&
|
|
@@ -894,10 +871,7 @@ export default {
|
|
|
e.divideCompanyMoney =
|
|
e.divideCompanyMoney =
|
|
|
this.type == 2 ? e.divideSellerMoney : e.brokerage;
|
|
this.type == 2 ? e.divideSellerMoney : e.brokerage;
|
|
|
}
|
|
}
|
|
|
- // this.$refs.tableList.$refs.pagerset.toggleRowSelection(e);
|
|
|
|
|
});
|
|
});
|
|
|
- // let allCheckData = this.$refs.tableList.allCheckData;
|
|
|
|
|
- // allCheckData.push(...res.data);
|
|
|
|
|
resolve(res.data);
|
|
resolve(res.data);
|
|
|
})
|
|
})
|
|
|
.catch(() => {
|
|
.catch(() => {
|