forked from liweijie/education
停用
This commit is contained in:
@@ -25,8 +25,11 @@
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12">
|
||||
<el-form-item label="状态" class="checkbox-form-item">
|
||||
<el-checkbox v-model="searchForm.ty">停用</el-checkbox>
|
||||
<el-form-item label="停用" class="checkbox-form-item">
|
||||
<el-radio-group v-model="searchForm.ty">
|
||||
<el-radio :label="false">否</el-radio>
|
||||
<el-radio :label="true">是</el-radio>
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12">
|
||||
@@ -322,10 +325,7 @@ export default {
|
||||
pageNum: this.pageNum,
|
||||
pageSize: this.pageSize
|
||||
}
|
||||
// 状态:勾选「停用」时仅查已停用(ty=1),未勾选则查询全部
|
||||
if (this.searchForm.ty) {
|
||||
params.ty = 1
|
||||
}
|
||||
params.ty = this.searchForm.ty ? 1 : 0
|
||||
// 其余文本条件非空时才传
|
||||
;['zymc', 'zydm', 'zyfx', 'xnz', 'pxlx2'].forEach(key => {
|
||||
const value = this.searchForm[key]
|
||||
|
||||
Reference in New Issue
Block a user