Commit ada46209 by yancanhua

fix: 自测问题修改

1 parent 71728231
......@@ -63,7 +63,14 @@ export const financeRouter: Array<RouteRecordRaw> = [
path: '/finance/preference/view',
component: () => import( '@/views/finance/preference/ViewPreference.vue'),
meta: {
breadcrumbs: [{name: '车商管理'}, {name: '收车偏好', path: '/finance/preference'}, {name: '收车偏好详情'}]
breadcrumbs: [{name: '车商管理'}, {name: '收车偏好', path: '/finance/preference'}, {name: '详情'}]
}
},
{
path: '/finance/preference/edit',
component: () => import( '@/views/finance/preference/EditPreference.vue'),
meta: {
breadcrumbs: [{name: '车商管理'}, {name: '收车偏好', path: '/finance/preference'}, {name: '编辑'}]
}
},
{
......
<template>
<div>
<ViewPreference />
</div>
</template>
<script lang="ts">
import { Component, Vue } from 'vue-facing-decorator';
import ViewPreference from "@/views/finance/preference/ViewPreference.vue";
@Component({
components: { ViewPreference}
})
export default class EditPreference extends Vue {}
</script>
<style scoped lang="less"></style>
......@@ -3,7 +3,7 @@
<div v-for="(item, index) in logList" :key="index" class="log-list">
<div class="progressBox">
<div class="progressBox-point" :class="{ 'bg-1956fe': index > 0 }"></div>
<div class="progressBox-line"></div>
<div v-if="alllist.length !== index + 1" class="progressBox-line"></div>
</div>
<div class="log-title">
<div v-if="item.title || item.content" class="logBox-content">
......@@ -97,7 +97,7 @@ export default class OperationLog extends Vue {
height: 40px;
background: #1956fe;
margin-top: 3px;
margin-left: 2px;
margin-left: 2.5px;
}
.log-title {
......
<template>
<!--查询栏-->
<m-pagination-query-render :fields="pagination.filterFields" :form="pagination.queryForm" @onSearch="handlePageReload"
@onReset="handleReset" :simpleFieldNum="4">
<m-pagination-query-render :fields="pagination.filterFields" :form="pagination.queryForm"
@onSearch="handlePageReload" @onReset="handleReset" :simpleFieldNum="4">
<template #cityCodeName="{ record }">
<a-cascader v-model:value="carProvinceCity" :options="areaData" @change="handleChangeCity"
placeholder="请选择省/市" />
......@@ -37,7 +37,7 @@
<a-button type="link" size="small">详情</a-button>
</router-link>
<router-link
:to="{ path: '/finance/preference/view', query: { preferenceId: record.id, action: 'EDIT' } }">
:to="{ path: '/finance/preference/edit', query: { preferenceId: record.id, action: 'EDIT' } }">
<a-button type="link" size="small">编辑</a-button>
</router-link>
</template>
......@@ -124,7 +124,6 @@ export default class PreferencePage extends PaginationComponent<Deposit> {
excelValue = '1';
businessModelList = [
{ label: '全部', value: '' },
{ label: '批发', value: '1' },
{ label: '零售', value: '2' }
]
......@@ -177,8 +176,8 @@ export default class PreferencePage extends PaginationComponent<Deposit> {
cityCode: [null, {
name: 'cityCodeName', label: '注册地区', field: 'cityCode', type: 'slot', placeholder: '请选择省/市', operator: Operator.eq
}],
businessModel: ['', {
label: '经营模式', field: 'businessModel', type: 'select', placeholder: '请选择经营模式', allowClear: true, optionItems: this.businessModelList, operator: Operator.eq
businessModel: [null, {
label: '经营模式', field: 'businessModel', type: 'select', placeholder: '请选择经营模式', optionItems: this.businessModelList, operator: Operator.eq
}],
vehicleCondition: [[], {
label: '偏好车况', field: 'vehicleCondition', type: 'select', mode: 'multiple', allowClear: true, optionItems: returnPreferenceList('vehicleConditionList'), operator: Operator.eq
......@@ -222,6 +221,7 @@ export default class PreferencePage extends PaginationComponent<Deposit> {
//重置查询条件
handleReset() {
this.carProvinceCity = '';
this.pagination.queryForm.businessModel = '';
this.selectIds = [];
this.selectedItems = [];
this.pageReset();
......
<template>
<div>
<div class="titleBox">
{{ actionState == 'EDIT' ? '编辑收车偏好' : '车商基础信息' }}
{{ actionState == 'EDIT' ? '编辑收车偏好' : '收车偏好详情' }}
<a-button style="float: right;" @click="handleCancelExit()">返回列表</a-button>
</div>
<div v-if="actionState == 'EDIT'" class="warning-box">
<InfoCircleFilled color="#1956FE" font-size="14px" style="margin-left: 16px; color: #1956FE;" />
<span style="padding-left: 8px;color: #777C85;">编辑完成所有偏好信息并保存后,车商小程序将不再展示收车偏好调研入口。仅编辑部分信息无法保存。</span>
</div>
<a-card :bordered="false" size="small">
<a-descriptions :column="3" size="small" layout="vertical">
<template #title>
......@@ -90,11 +94,11 @@ import PageMultipleTag from "@/views/finance/preference/PageMultipleTag.vue";
import OperationLog from "@/views/finance/preference/OperationLog.vue";
import PreferenceForm from "@/views/finance/preference/PreferenceForm.vue";
import TitleDivider from "@/components/TitleDivider.vue";
import { DeleteOutlined, EditOutlined, PlusOutlined } from "@ant-design/icons-vue";
import { DeleteOutlined, EditOutlined, PlusOutlined, InfoCircleFilled } from "@ant-design/icons-vue";
import TitleTipIcon from "@/components/icons/TitleTipIcon.vue";
@Component({
components: { TitleDivider, EditOutlined, DeleteOutlined, PlusOutlined, TitleTipIcon, PageMultipleTag, OperationLog, PreferenceForm }
components: { TitleDivider, EditOutlined, DeleteOutlined, PlusOutlined, TitleTipIcon, PageMultipleTag, OperationLog, PreferenceForm, InfoCircleFilled }
})
export default class ViewPreference extends Vue {
......@@ -125,6 +129,19 @@ export default class ViewPreference extends Vue {
</script>
<style scoped lang="less">
::v-deep(.ant-descriptions-item-label::after) {
display: none;
}
::v-deep(.ant-descriptions-small .ant-descriptions-row >th) {
padding-bottom: 0px !important;
}
::v-deep(.ant-descriptions-small .ant-descriptions-row >td) {
padding-top: 6px !important;
padding-bottom: 16px !important;
}
.titleBox {
width: -webkit-calc(100% - 24px);
width: -moz-calc(100% - 24px);
......@@ -132,12 +149,24 @@ export default class ViewPreference extends Vue {
height: 32px;
line-height: 32px;
margin-left: 12px;
color: #2f3133;
font-size: 16px;
font-weight: 700;
margin-bottom: 4px;
}
.warning-box {
width: 100%;
height: 36px;
line-height: 36px;
border-radius: 4px;
background: #196dfe1a;
color: #777c85;
font-size: 14px;
font-weight: 400;
font-family: "HarmonyOSSansSC";
margin-top: 8px;
}
.title-line {
width: 100%;
height: 1px;
......
......@@ -198,10 +198,10 @@ export default class HomePage extends Vue {
ConfigController.getBusinessConfig(this.axios).then((res) => {
this.businessConfig = res.data;
});
this.showCertification();
});
// 每次都加载
onShow((option) => {
this.showCertification();
});
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!