Commit 67004d83 by yancanhua

fix: 前端代码提交

1 parent d8d3d263
...@@ -6,8 +6,8 @@ ...@@ -6,8 +6,8 @@
<link rel="icon" href="/admin/main/favicon/favicon.ico" type="image/x-icon"> <link rel="icon" href="/admin/main/favicon/favicon.ico" type="image/x-icon">
<meta name="viewport" content="width=device-width,initial-scale=1.0"> <meta name="viewport" content="width=device-width,initial-scale=1.0">
<title>专电优拍</title> <title>专电优拍</title>
<script type="module" crossorigin src="/admin/main/assets/index-DPDYQjyF.js"></script> <script type="module" crossorigin src="/admin/main/assets/index-B1uOQ9hD.js"></script>
<link rel="stylesheet" crossorigin href="/admin/main/assets/index-CZnIm2LY.css"> <link rel="stylesheet" crossorigin href="/admin/main/assets/index-Y3L1Smzp.css">
</head> </head>
<body> <body>
<div id="app"></div> <div id="app"></div>
......
<template> <template>
<div> <div>
<a-popover placement="top"> <a-popover placement="top" v-if="returnPageList.length">
<template #content> <template #content>
<div style="display: flex; flex-wrap: wrap;"> <div style="display: flex; flex-wrap: wrap;">
<div v-for="(item, index) in returnPageList" :key="index" class="tag-box">{{ item.label }}</div> <div v-for="(item, index) in returnPageList" :key="index" class="tag-box">{{ item.label }}</div>
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
<div v-if="returnPageList.length > 2" class="tag-box">+ {{ returnPageList.length - 2 }}</div> <div v-if="returnPageList.length > 2" class="tag-box">+ {{ returnPageList.length - 2 }}</div>
</div> </div>
</a-popover> </a-popover>
<div v-else>-</div>
</div> </div>
</template> </template>
<script lang="ts"> <script lang="ts">
......
...@@ -51,9 +51,9 @@ ...@@ -51,9 +51,9 @@
</a-select-option> </a-select-option>
</a-select> </a-select>
</a-form-item> </a-form-item>
<a-form-item label="偏好品牌" name="vehicleBrand"> <a-form-item label="品牌偏好" name="vehicleBrand">
<a-select v-model:value="pageData.vehicleBrand" style="width: 100%;" mode="multiple" <a-select v-model:value="pageData.vehicleBrand" style="width: 100%;" mode="multiple"
:max-tag-count="3" :max-tag-text-length="10" placeholder="请选择偏好品牌"> :max-tag-count="3" :max-tag-text-length="10" placeholder="请选择品牌偏好">
<a-select-option v-for="(item, index) in brands" :key="index" :value="item.value"> <a-select-option v-for="(item, index) in brands" :key="index" :value="item.value">
{{ item.label }} {{ item.label }}
</a-select-option> </a-select-option>
......
...@@ -157,7 +157,7 @@ export default class PreferencePage extends PaginationComponent<Deposit> { ...@@ -157,7 +157,7 @@ export default class PreferencePage extends PaginationComponent<Deposit> {
{ title: '偏好车龄', dataIndex: 'vehicleAge', key: 'vehicleAge', align: 'center', width: 224, resizable: true, ellipsis: true, sorter: false }, { title: '偏好车龄', dataIndex: 'vehicleAge', key: 'vehicleAge', align: 'center', width: 224, resizable: true, ellipsis: true, sorter: false },
{ title: '燃油类型', dataIndex: 'vehicleFuelType', key: 'vehicleFuelType', align: 'center', width: 224, resizable: true, ellipsis: true, sorter: false }, { title: '燃油类型', dataIndex: 'vehicleFuelType', key: 'vehicleFuelType', align: 'center', width: 224, resizable: true, ellipsis: true, sorter: false },
{ title: '收车车型', dataIndex: 'vehicleType', key: 'vehicleType', align: 'center', width: 224, resizable: true, ellipsis: true, sorter: false }, { title: '收车车型', dataIndex: 'vehicleType', key: 'vehicleType', align: 'center', width: 224, resizable: true, ellipsis: true, sorter: false },
{ title: '偏好品牌', dataIndex: 'brandList', key: 'brandList', align: 'center', width: 224, resizable: true, ellipsis: true, sorter: false }, { title: '品牌偏好', dataIndex: 'brandList', key: 'brandList', align: 'center', width: 224, resizable: true, ellipsis: true, sorter: false },
{ title: '调研状态', dataIndex: 'status', key: 'status', align: 'center', width: 160, resizable: true, ellipsis: true, sorter: false }, { title: '调研状态', dataIndex: 'status', key: 'status', align: 'center', width: 160, resizable: true, ellipsis: true, sorter: false },
{ title: '更新时间', dataIndex: 'updateTime', key: 'updateTime', align: 'center', width: 160, resizable: true, ellipsis: true, sorter: true }, { title: '更新时间', dataIndex: 'updateTime', key: 'updateTime', align: 'center', width: 160, resizable: true, ellipsis: true, sorter: true },
{ title: '编辑人', dataIndex: 'updatedBy', key: 'updatedBy', align: 'center', width: 160, resizable: true, ellipsis: true, sorter: false }, { title: '编辑人', dataIndex: 'updatedBy', key: 'updatedBy', align: 'center', width: 160, resizable: true, ellipsis: true, sorter: false },
...@@ -192,7 +192,7 @@ export default class PreferencePage extends PaginationComponent<Deposit> { ...@@ -192,7 +192,7 @@ export default class PreferencePage extends PaginationComponent<Deposit> {
vehicleType: [[], { vehicleType: [[], {
label: '收车车型', field: 'vehicleType', type: 'select', mode: 'multiple', allowClear: true, optionItems: returnPreferenceList('vehicleTypeList'), operator: Operator.eq label: '收车车型', field: 'vehicleType', type: 'select', mode: 'multiple', allowClear: true, optionItems: returnPreferenceList('vehicleTypeList'), operator: Operator.eq
}], }],
brandName: [null, { label: '偏好品牌', field: 'brandName', placeholder: '请输入品牌名称', operator: Operator.like }], brandName: [null, { label: '品牌偏好', field: 'brandName', placeholder: '请输入品牌名称', operator: Operator.like }],
status: [null, { status: [null, {
label: '调研状态', field: 'status', type: 'select', allowClear: true, optionItems: this.researchStatusList, operator: Operator.eq label: '调研状态', field: 'status', type: 'select', allowClear: true, optionItems: this.researchStatusList, operator: Operator.eq
}], }],
...@@ -205,8 +205,6 @@ export default class PreferencePage extends PaginationComponent<Deposit> { ...@@ -205,8 +205,6 @@ export default class PreferencePage extends PaginationComponent<Deposit> {
//区域数据发生变化 //区域数据发生变化
handleChangeCity(value: string[], e: any) { handleChangeCity(value: string[], e: any) {
console.log('valuevaluevaluevaluevalue', value)
console.log('11111111111111111111', this.pagination.queryForm)
let code = '' let code = ''
if (e && e.length > 0) { if (e && e.length > 0) {
const cityObj = e[e.length - 1]; const cityObj = e[e.length - 1];
......
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
<a-descriptions-item label="收车车型"> <a-descriptions-item label="收车车型">
<PageMultipleTag :listValue="'vehicleTypeList'" :tagValue="pageData.vehicleType" /> <PageMultipleTag :listValue="'vehicleTypeList'" :tagValue="pageData.vehicleType" />
</a-descriptions-item> </a-descriptions-item>
<a-descriptions-item label="偏好品牌"> <a-descriptions-item label="品牌偏好">
<PageMultipleTag :listValue="pageData.brandList" :tagValue="pageData.brandList" /> <PageMultipleTag :listValue="pageData.brandList" :tagValue="pageData.brandList" />
</a-descriptions-item> </a-descriptions-item>
</a-descriptions> </a-descriptions>
......
...@@ -47,7 +47,7 @@ export default class ImprovePopup extends Vue { ...@@ -47,7 +47,7 @@ export default class ImprovePopup extends Vue {
} }
getPreferencePopup() { getPreferencePopup() {
PreferenceController.getPreferenceDetails(this.axios, {}).then((response: any) => { PreferenceController.getPreferenceDetails(this.axios, { isIndexPage: true }).then((response: any) => {
const data = response.data || {}; const data = response.data || {};
if (data.success) { if (data.success) {
const { popUp, accountType } = data.data || {}; const { popUp, accountType } = data.data || {};
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<view class="pageBox"> <view class="pageBox">
<view class="width-calc"> <view class="width-calc">
<view class="content-title"> <view class="content-title">
偏好品牌<span>(多选)</span> 品牌偏好<span>(多选)</span>
<view v-if="vehicleBrandList.length" @click="handleClear()" class="clearBox"> <view v-if="vehicleBrandList.length" @click="handleClear()" class="clearBox">
<uni-icons type="trash" size="13" color="#141E34" /> <uni-icons type="trash" size="13" color="#141E34" />
<span class="clear-text">清空</span> <span class="clear-text">清空</span>
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<view class="reason-select" @click="handleBrandSelect()"> <view class="reason-select" @click="handleBrandSelect()">
<text v-if="vehicleBrandList.length"> 已选 {{ vehicleBrandList.length }} 个品牌</text> <text v-if="vehicleBrandList.length"> 已选 {{ vehicleBrandList.length }} 个品牌</text>
<text v-else class="placeholder">请选择偏好品牌</text> <text v-else class="placeholder">请选择品牌偏好</text>
<uni-icons type="right" size="14" color="#999999" /> <uni-icons type="right" size="14" color="#999999" />
</view> </view>
......
...@@ -73,7 +73,7 @@ export default class indexPage extends Vue { ...@@ -73,7 +73,7 @@ export default class indexPage extends Vue {
//获取详情数据 //获取详情数据
getPreferenceDetailsData() { getPreferenceDetailsData() {
PreferenceController.getPreferenceDetails(this.axios, {}).then((response: any) => { PreferenceController.getPreferenceDetails(this.axios, { isIndexPage: false }).then((response: any) => {
const data = response.data || {}; const data = response.data || {};
if (data.success) { if (data.success) {
const itemData = data.data || {}; const itemData = data.data || {};
......
...@@ -255,21 +255,20 @@ export default class ProfilePage extends Vue { ...@@ -255,21 +255,20 @@ export default class ProfilePage extends Vue {
//获取是否显示收车偏好 //获取是否显示收车偏好
getPreference() { getPreference() {
const authService: AuthService = this.$auth; // const authService: AuthService = this.$auth;
const accountInfo = authService.getAuthentication(); // const accountInfo = authService.getAuthentication();
if (accountInfo && accountInfo.accountType === 'COMMON' && accountInfo.certifiedState !== "CERTIFICATING") { // if (accountInfo && accountInfo.accountType) {
this.showPreference = false; // this.showPreference = false;
} else { // } else {
PreferenceController.getPreferenceDetails(this.axios, {}).then((response: any) => {
// }
PreferenceController.getPreferenceDetails(this.axios, { isIndexPage: false }).then((response: any) => {
const data = response.data || {}; const data = response.data || {};
if (data.success) { if (data.success) {
const { status } = data.data || {}; const { status } = data.data || {};
this.showPreference = status === 0; this.showPreference = status === 0;
} }
}).finally(() => { }).finally(() => { });
this.showPreference = false;
});
}
} }
navigateTo(url: string): void { navigateTo(url: string): void {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!