Commit b6365d35 by Lin

refactor: 更新筛选对话框与自定义头部组件

- 将筛选对话框中的在线督导选项重命名为督导选项,增强代码可读性。
- 调整表单数据的初始化逻辑,确保省份ID与在线督导选项的默认值为null。
- 更新样式以提升用户交互体验,增加标签前的星号标识必填项。
1 parent 5f5a3142
...@@ -67,7 +67,7 @@ ...@@ -67,7 +67,7 @@
</div> </div>
<div class="filter-group"> <div class="filter-group">
<span class="label">区域督导:</span> <span class="label">区域督导:</span>
<el-select v-model="formData.onlineOps" <el-select v-model="formData.supervisorOps"
class="filter-select" class="filter-select"
clearable clearable
filterable filterable
...@@ -97,10 +97,11 @@ export default { ...@@ -97,10 +97,11 @@ export default {
type: Object, type: Object,
default: () => ({ default: () => ({
region: "", region: "",
provinceId: "", provinceId: null,
brand: [], brand: [],
regionOps: "", regionOps: "all",
onlineOps: "", onlineOps: null,
supervisorOps: null,
}), }),
}, },
brandOptions: { brandOptions: {
...@@ -224,11 +225,17 @@ $text-sub: #333333; ...@@ -224,11 +225,17 @@ $text-sub: #333333;
.label { .label {
flex-shrink: 0; flex-shrink: 0;
width: 72px; width: 92px;
font-size: 14px; font-size: 14px;
color: $text-sub; color: $text-sub;
text-align: right; text-align: right;
margin-right: 12px; margin-right: 12px;
&::before {
content: "*";
color: #f56c6c;
margin-right: 4px;
}
} }
.filter-select { .filter-select {
......
...@@ -339,12 +339,13 @@ export default { ...@@ -339,12 +339,13 @@ export default {
this.localFilters = { this.localFilters = {
...this.localFilters, ...this.localFilters,
region: dialogFilters.region ?? this.localFilters.region, region: dialogFilters.region ?? this.localFilters.region,
provinceId: dialogFilters.provinceId || "", provinceId: dialogFilters.provinceId ?? null,
brand: Array.isArray(dialogFilters.brand) brand: Array.isArray(dialogFilters.brand)
? dialogFilters.brand.map(item => (Array.isArray(item) ? [...item] : item)) ? dialogFilters.brand.map(item => (Array.isArray(item) ? [...item] : item))
: [], : [],
regionOps: dialogFilters.regionOps || "", regionOps: dialogFilters.regionOps ?? "all",
onlineOps: dialogFilters.onlineOps || "", onlineOps: dialogFilters.onlineOps ?? null,
supervisorOps: dialogFilters.supervisorOps ?? null,
}; };
}, },
handleSearch() { handleSearch() {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!