This commit is contained in:
2026-08-25 19:25:55 +08:00
parent 0240f410b6
commit 13d72c54f2
16 changed files with 185 additions and 163 deletions
@@ -20,11 +20,11 @@
</el-form-item>
</el-col>
<el-col :xs="24" :sm="12" :md="12" :lg="8" :xl="8">
<el-form-item label="状态">
<el-select v-model="searchForm.ty" placeholder="请选择状态" clearable style="width: 100%">
<el-option label="启用" :value="0" />
<el-option label="停用" :value="1" />
</el-select>
<el-form-item label="停用">
<el-radio-group v-model="searchForm.ty">
<el-radio :label="0">否</el-radio>
<el-radio :label="1">是</el-radio>
</el-radio-group>
</el-form-item>
</el-col>
</el-row>
@@ -253,7 +253,7 @@ export default {
mc: '',
pxlx: '',
pxcc: '',
ty: ''
ty: 0
},
// ==================== 列表数据 ====================
@@ -317,10 +317,7 @@ export default {
pageNum: this.pageNum,
pageSize: this.pageSize
}
// 状态:0 启用 / 1 停用(选中时才传)
if (this.searchForm.ty !== '' && this.searchForm.ty !== null && this.searchForm.ty !== undefined) {
params.ty = this.searchForm.ty
}
params.ty = this.searchForm.ty
// 其余文本条件非空时才传
;['mc', 'pxlx', 'pxcc'].forEach(key => {
if (this.searchForm[key] !== '' && this.searchForm[key] !== null && this.searchForm[key] !== undefined) {
@@ -349,7 +346,7 @@ export default {
mc: '',
pxlx: '',
pxcc: '',
ty: ''
ty: 0
}
this.pageNum = 1
this.fetchList()
@@ -541,4 +538,4 @@ export default {
user-select: none;
}
}
</style>
</style>