|
@@ -19,7 +19,8 @@
|
|
<el-button type="warning" icon="el-icon-remove-outline" size="mini" @click="batchChange(0)">部门充值比例解除</el-button>
|
|
<el-button type="warning" icon="el-icon-remove-outline" size="mini" @click="batchChange(0)">部门充值比例解除</el-button>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
- <el-table :data="adminList" @current-change="selectBrand" height="calc(100vh - 10vh - 120px)">
|
|
|
|
|
|
+ <el-table :data="adminList" @current-change="selectBrand" height="calc(100vh - 10vh - 120px)" row-key="did"
|
|
|
|
+ :tree-props="{children: 'children', hasChildren: 'hasChildren'}">
|
|
<el-table-column
|
|
<el-table-column
|
|
label="选择项"
|
|
label="选择项"
|
|
width="80">
|
|
width="80">
|
|
@@ -65,9 +66,12 @@
|
|
<script>
|
|
<script>
|
|
import { listChannel, deptJob, updataByDept } from "@/api/recharge/department";
|
|
import { listChannel, deptJob, updataByDept } from "@/api/recharge/department";
|
|
import { allRadio } from "@/api/recharge/radio";
|
|
import { allRadio } from "@/api/recharge/radio";
|
|
|
|
+import Treeselect from "@riophae/vue-treeselect";
|
|
|
|
+import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
|
import qs from 'qs'
|
|
import qs from 'qs'
|
|
export default {
|
|
export default {
|
|
name: "admin",
|
|
name: "admin",
|
|
|
|
+ components: { Treeselect },
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
// 遮罩层
|
|
// 遮罩层
|
|
@@ -127,9 +131,10 @@ export default {
|
|
getList() {
|
|
getList() {
|
|
this.loading = true;
|
|
this.loading = true;
|
|
listChannel(this.addDateRange(this.queryParams)).then(response => {
|
|
listChannel(this.addDateRange(this.queryParams)).then(response => {
|
|
- this.adminList = response.data.records;
|
|
|
|
- this.total = response.data.total;
|
|
|
|
- this.loading = false;
|
|
|
|
|
|
+ this.adminList = this.handleTree(response.data.records, "did");
|
|
|
|
+ // this.adminList = response.data.records;
|
|
|
|
+ // this.total = response.data.total;
|
|
|
|
+ this.loading = false;
|
|
}
|
|
}
|
|
);
|
|
);
|
|
},
|
|
},
|
|
@@ -209,7 +214,7 @@ export default {
|
|
if (valid) {
|
|
if (valid) {
|
|
if(this.queryParams.id){
|
|
if(this.queryParams.id){
|
|
this.loading = true;
|
|
this.loading = true;
|
|
-
|
|
|
|
|
|
+
|
|
this.staffList.deptId = this.tableRadio.did
|
|
this.staffList.deptId = this.tableRadio.did
|
|
this.staffList.radioId = this.queryParams.id
|
|
this.staffList.radioId = this.queryParams.id
|
|
this.staffList.isBinding = 1
|
|
this.staffList.isBinding = 1
|