Commit 03ef7a06 by 曾经

节日管理- 分类筛选条件

parent 968effdd
......@@ -5,7 +5,7 @@
<el-input @change="loadData" placeholder="请输入节日名称" prefix-icon="el-icon-search" v-model="searchParams.name" clearable style="width: 260px; margin-right: 10px"> </el-input>
<el-select v-model="searchParams.categoryCode" clearable placeholder="全部分类" @change="loadData">
<el-option v-for="item in canSelectCategoryList" :key="item.activityCategoryId" :label="item.categoryName" :value="item.activityCategoryId"> </el-option>
<el-option v-for="item in categoryList" :key="item.activityCategoryId" :label="item.categoryName" :value="item.activityCategoryId"> </el-option>
</el-select>
</el-row>
<el-row type="flex" align="middle">
......@@ -68,7 +68,6 @@ export default {
categoryCode: ''
},
categoryList: [],
canSelectCategoryList: [],
list: [],
totalCount: 0,
......@@ -145,12 +144,6 @@ export default {
}
return value;
}
},
watch: {
categoryList(n) {
n = n || [];
this.canSelectCategoryList = n.filter((item) => item.hasUse == 1);
}
}
};
</script>
......
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