Commit 43c440e3 authored by 徐一鸣's avatar 徐一鸣

tablefilter组件优化

parent 00aea7ca
...@@ -95,7 +95,7 @@ export default { ...@@ -95,7 +95,7 @@ export default {
20 - // 距左侧标题的边距 20 - // 距左侧标题的边距
110; // 折叠按钮的宽度 110; // 折叠按钮的宽度
this.filterLength = Math.floor(width / 110); this.filterLength = Math.floor(width / 150);
// console.log("每行最多可容纳" + this.filterLength + "个filter"); // console.log("每行最多可容纳" + this.filterLength + "个filter");
}); });
} }
...@@ -188,7 +188,7 @@ export default { ...@@ -188,7 +188,7 @@ export default {
.ces_filter_data > li > a { .ces_filter_data > li > a {
display: block; display: block;
height: 30px; height: 30px;
width: 90px; width: 130px;
box-sizing: border-box; box-sizing: border-box;
border-radius: 12px; border-radius: 12px;
text-align: center; text-align: center;
......
...@@ -951,10 +951,17 @@ export default { ...@@ -951,10 +951,17 @@ export default {
callback(response) { callback(response) {
let datas = []; let datas = [];
datas = (response.body.data || []).map((v) => ({ datas = [
name: v.text, {
value: v.value, name: "全部",
})); value: "",
},
].concat(
(response.body.data || []).map((v) => ({
name: v.text,
value: v.value,
}))
);
return { return {
name: "工作区域", name: "工作区域",
......
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