|
@ -5,7 +5,7 @@ |
|
|
<el-select v-model="bindingType" class="filter-item" style="width: 130px; height: 30px;margin:0 25px 0 10px" @change="crud.toQuery"> |
|
|
<el-select v-model="bindingType" class="filter-item" style="width: 130px; height: 30px;margin:0 25px 0 10px" @change="crud.toQuery"> |
|
|
<el-option v-for="item in bindingTypeOptions" :key="item.value" :label="item.label" :value="item.value" /> |
|
|
<el-option v-for="item in bindingTypeOptions" :key="item.value" :label="item.label" :value="item.value" /> |
|
|
</el-select> |
|
|
</el-select> |
|
|
<el-select v-model="operType" class="filter-item line-before" allow-create="" style="width: 130px; height: 30px;" @change="crud.toQuery"> |
|
|
|
|
|
|
|
|
<el-select v-model="operType" class="filter-item line-before" style="width: 130px; height: 30px;" @change="crud.toQuery"> |
|
|
<el-option v-for="item in operTypeOptions" :key="item.value" :label="item.label" :value="item.value" /> |
|
|
<el-option v-for="item in operTypeOptions" :key="item.value" :label="item.label" :value="item.value" /> |
|
|
</el-select> |
|
|
</el-select> |
|
|
<el-input v-model="keyWord" size="small" clearable placeholder="请输入关键词" style="width: 245px;margin:0 10px 0 -20px;padding-left:10px" class="input-prepend filter-item" @keyup.enter.native="crud.toQuery"> |
|
|
<el-input v-model="keyWord" size="small" clearable placeholder="请输入关键词" style="width: 245px;margin:0 10px 0 -20px;padding-left:10px" class="input-prepend filter-item" @keyup.enter.native="crud.toQuery"> |
|
@ -97,8 +97,12 @@ export default { |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
|
|
|
// 获取数据前的处理 |
|
|
[CRUD.HOOK.beforeRefresh]() { |
|
|
[CRUD.HOOK.beforeRefresh]() { |
|
|
this.crud.query.tid = this.params.tid |
|
|
this.crud.query.tid = this.params.tid |
|
|
|
|
|
this.crud.query.title = this.params.title |
|
|
|
|
|
this.crud.query.operType = null |
|
|
|
|
|
this.crud.query.bindingType = null |
|
|
if (this.operType > 0) { |
|
|
if (this.operType > 0) { |
|
|
this.crud.query.operType = this.operType |
|
|
this.crud.query.operType = this.operType |
|
|
} |
|
|
} |
|
@ -111,6 +115,7 @@ export default { |
|
|
} else if (this.searchVal === 'tid') { |
|
|
} else if (this.searchVal === 'tid') { |
|
|
this.crud.query.tid = this.keyWord |
|
|
this.crud.query.tid = this.keyWord |
|
|
} |
|
|
} |
|
|
|
|
|
// console.log(this.crud.data) |
|
|
}, |
|
|
}, |
|
|
clickRowHandler(row) { |
|
|
clickRowHandler(row) { |
|
|
this.$refs.table.toggleRowSelection(row) |
|
|
this.$refs.table.toggleRowSelection(row) |
|
|