修改管理后台

This commit is contained in:
lcc
2025-07-16 11:57:27 +08:00
parent 1d2679fbee
commit 033ca422a4
5 changed files with 43 additions and 46 deletions
+7
View File
@@ -20,3 +20,10 @@ export async function pageAutoCar(params) {
});
return res.data;
}
export async function pageProvinceBiz(params) {
const res = await request.get('/common/allProvinceBiz', {
params
});
return res.data;
}
+12 -12
View File
@@ -10,10 +10,12 @@
popper-class="ele-pop-wrap-higher"
:props="props"
@input="updateValue"
:show-all-levels="false"
/>
</template>
<script>
import { pageProvinceBiz } from '@/api/auto';
export default {
name: 'BizSelect',
props: {
@@ -25,15 +27,13 @@
validator: (val) => {
return !val || val === 'label';
}
}
},
props: Object
},
data() {
return {
// 级联选择器数据
regionsData: [],
props: {
lazy: true
}
regionsData: []
};
},
methods: {
@@ -81,13 +81,13 @@
options: {
handler(options) {
console.log(options);
// this.regionsData = this.filterData(options ?? []);
// if (!options) {
// getRegionsData().then((data) => {
// this.regionsData = this.filterData(data ?? []);
// this.$emit('load-data-done', data);
// });
// }
this.regionsData = this.filterData(options ?? []);
if (!options) {
pageProvinceBiz().then((data) => {
this.regionsData = this.filterData(data ?? []);
this.$emit('load-data-done', data);
});
}
},
immediate: true
}
+15 -13
View File
@@ -49,12 +49,14 @@
</el-select>
</el-form-item>
</el-col>
<el-col :md="12" :sm="24">
<car-model-selector
type="brandSeries"
v-model="where.selectedCar"
:key="componentKey"
/>
<el-col :md="6" :sm="24">
<el-form-item label="品牌:">
<brand-select
v-model="where.brands"
type="provinceCity"
:props="{ multiple: true }"
/>
</el-form-item>
</el-col>
<el-col :md="6" :sm="12">
<el-form-item label="推广范围:">
@@ -355,16 +357,16 @@
<script>
import { listDictionaryData } from '@/api/system/dictionary-data';
import { pageProduct } from '@/api/car/product';
import CarModelSelector from '@/components/CarSelector/index.vue';
import ElDialogWrapper from '@/components/IframePre/index.vue';
import RegionsSelect from '@/components/RegionsSelect/index.vue';
import CouponBizs from './components/couponBizs.vue';
import BrandSelect from '@/components/BrandSelect/index.vue';
export default {
name: 'carProduct',
components: {
BrandSelect,
RegionsSelect,
CarModelSelector,
ElDialogWrapper,
CouponBizs
},
@@ -372,11 +374,7 @@
return {
where: {
title: '',
selectedCar: {
brandId: '',
seriesId: '',
modelId: ''
},
brands: [],
priceRange: [],
carProductLabel: [],
productLevel: [],
@@ -601,4 +599,8 @@
display: block;
margin: 0 auto;
}
::v-deep .el-cascader__tags input::-webkit-input-placeholder {
color: white;
opacity: 0;
}
</style>
+6 -1
View File
@@ -304,4 +304,9 @@
}
};
</script>
<style scoped></style>
<style scoped>
::v-deep .el-cascader__tags input::-webkit-input-placeholder {
color: white;
opacity: 0;
}
</style>
+3 -20
View File
@@ -256,24 +256,6 @@
this.$message.error(e.message);
});
},
/* 下拉按钮点击 */
dropClick(command, row) {
if (command === 'edit') {
this.current = row;
this.showEdit = true;
} else if (command === 'brokerage') {
this.current = row;
this.showEditBrokerage = true;
} else if (command === 'coupon') {
const path = '/car/product/coupon';
this.$nextTick(() => {
this.$router.push({
path,
query: row ? { id: row.id, title: row.title } : undefined
});
});
}
},
goDetail(row) {
const path = '/receiver/customer/detail';
this.$router.push({
@@ -297,7 +279,8 @@
};
</script>
<style scoped>
::v-deep .el-cascader .el-cascader__tags .el-cascader__search-input {
display: none;
::v-deep .el-cascader__tags input::-webkit-input-placeholder {
color: white;
opacity: 0;
}
</style>