Commit 6dd5e0d8 authored by 赵茹林's avatar 赵茹林

标签管理 修复 分页问题、高级搜索弹窗关闭后搜索条件没有清空的问题

parent a3cb288f
...@@ -312,4 +312,11 @@ ...@@ -312,4 +312,11 @@
background-color: #fff; background-color: #fff;
} }
} }
// 修复样式
.el-tree-node__content {
.el-checkbox {
margin-right: 8px !important;
}
}
</style> </style>
...@@ -10,7 +10,10 @@ ...@@ -10,7 +10,10 @@
<li v-for="item2 in item1.children" class="brokerage-item"> <li v-for="item2 in item1.children" class="brokerage-item">
<div class="brokerage-item-header clearfix"> <div class="brokerage-item-header clearfix">
{{filterName(item2.value, 'BROKERAGE_COURSE_TYPE')}} {{filterName(item2.value, 'BROKERAGE_COURSE_TYPE')}}
<el-button @click="itemAdd(item1.value, item2.value)" class="fr" type="success" plain size="small">新增</el-button> <el-button
v-if="!$store.state.readonly"
@click="itemAdd(item1.value, item2.value)"
class="fr" type="success" plain size="small">新增</el-button>
</div> </div>
<el-table border :data="item2.data"> <el-table border :data="item2.data">
...@@ -42,9 +45,12 @@ ...@@ -42,9 +45,12 @@
<template slot-scope="scope"> <template slot-scope="scope">
<div style="display: flex;"> <div style="display: flex;">
<el-button <el-button
v-if="!$store.state.readonly"
:disabled="!((typeof scope.row.min_money == 'number') && (typeof scope.row.max_money == 'number') && (typeof scope.row.scale == 'number'))" :disabled="!((typeof scope.row.min_money == 'number') && (typeof scope.row.max_money == 'number') && (typeof scope.row.scale == 'number'))"
v-if="true" size="small" plain type="primary" @click="itemSave(scope.row)">保存</el-button> size="small" plain type="primary" @click="itemSave(scope.row)">保存</el-button>
<el-button v-if="true" size="small" plain type="danger" @click="itemDelete(scope.row)">删除</el-button> <el-button
v-if="!$store.state.readonly && $store.state.deletePermission"
size="small" plain type="danger" @click="itemDelete(scope.row)">删除</el-button>
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
...@@ -231,6 +237,9 @@ ...@@ -231,6 +237,9 @@
background-color: #fff; background-color: #fff;
.brokerage-item-header { .brokerage-item-header {
padding-bottom: 10px; padding-bottom: 10px;
line-height: 32px;
color: #333333;
font-size: 16px;
} }
} }
} }
......
...@@ -68,7 +68,6 @@ ...@@ -68,7 +68,6 @@
}; };
// debugger // debugger
loginApi(json).then(res => { loginApi(json).then(res => {
debugger
if (res.teacher_info) { if (res.teacher_info) {
let data = JSON.stringify(res.teacher_info) let data = JSON.stringify(res.teacher_info)
localStorage.setItem("phoneNum", data) localStorage.setItem("phoneNum", data)
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<el-form-item> <el-form-item>
<div class="search-btn-wrapper"> <div class="search-btn-wrapper">
<!--<el-button @click="onSearch" type="primary" plain>搜索</el-button>--> <!--<el-button @click="onSearch" type="primary" plain>搜索</el-button>-->
<el-button @click="dialogUser.show = !dialogUser.show;" type="warning" plain>高级搜索</el-button> <el-button @click="advancedOpen" type="warning" plain>高级搜索</el-button>
<!--<el-button v-if="!$store.state.readonly" @click="onAdd" type="success" plain>新增标签</el-button>--> <!--<el-button v-if="!$store.state.readonly" @click="onAdd" type="success" plain>新增标签</el-button>-->
</div> </div>
</el-form-item> </el-form-item>
...@@ -73,6 +73,7 @@ ...@@ -73,6 +73,7 @@
<div style="display: flex;margin-bottom: 20px;"> <div style="display: flex;margin-bottom: 20px;">
<el-button style="margin-right: 20px; width: 70px;" type="primary" v-if="!$store.state.readonly && $store.state.export" plain :disabled="!tableData.length" @click="exportExcel">导出</el-button> <el-button style="margin-right: 20px; width: 70px;" type="primary" v-if="!$store.state.readonly && $store.state.export" plain :disabled="!tableData.length" @click="exportExcel">导出</el-button>
<el-cascader <el-cascader
v-model="tagValue"
style="width: calc(100% - 90px)" placeholder="选择标签" clearable @change="conditionsChange" style="width: calc(100% - 90px)" placeholder="选择标签" clearable @change="conditionsChange"
:options="treeDataOrigin" :props="{ value: 'id', label: 'name', multiple: true, checkStrictly: true }"></el-cascader> :options="treeDataOrigin" :props="{ value: 'id', label: 'name', multiple: true, checkStrictly: true }"></el-cascader>
</div> </div>
...@@ -106,6 +107,8 @@ ...@@ -106,6 +107,8 @@
tagExpanded: [0], tagExpanded: [0],
tagExpandedWait: '', tagExpandedWait: '',
tagValue: [], // 用于清空
tableData: [], tableData: [],
treeData: [], treeData: [],
treeDataOrigin: [], treeDataOrigin: [],
...@@ -171,7 +174,8 @@ ...@@ -171,7 +174,8 @@
page: this.nowPage page: this.nowPage
} }
getTagUserApi(json).then(res=>{ getTagUserApi(json).then(res=>{
this.tableData = res.list this.tableData = res.list;
this.total = res.total;
}) })
}, },
...@@ -191,12 +195,9 @@ ...@@ -191,12 +195,9 @@
}, },
dialogReset(callback) { dialogReset(callback) {
this.$nextTick(()=>{ this.$nextTick(()=>{
this.$refs['dialogForm'].resetFields(); this.conditions = arr;
//this.$nextTick(()=>{ this.tableData = [];
callback && callback(); this.total = 0
//})
//this.dialog.form.id = '';
//this.dialog.form.pid = '';
}) })
}, },
dialogSave() { dialogSave() {
...@@ -300,9 +301,18 @@ ...@@ -300,9 +301,18 @@
} else { } else {
this.conditions = arr; this.conditions = arr;
this.tableData = []; this.tableData = [];
this.total = 0
} }
}, },
advancedOpen() {
this.tagValue = [];
this.conditions = [];
this.tableData = [];
this.total = 0;
this.dialogUser.show = !this.dialogUser.show
},
exportExcel() { exportExcel() {
let json = { let json = {
conditions: JSON.stringify(this.conditions), conditions: JSON.stringify(this.conditions),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment