Commit 850bc544 by zhouzy

样式bug二轮修改完毕

1 parent 9f0e4dfe
...@@ -52,7 +52,7 @@ export default { ...@@ -52,7 +52,7 @@ export default {
}, },
btnSize: { btnSize: {
type: String, type: String,
default: 'mini' default: 'small'
} }
}, },
......
<template> <template>
<div class="equity-wrap" style="margin-top:20px"> <div class="equity-wrap" style="margin-top: 20px">
<div class="equity-wrap contain"> <div class="equity-wrap contain">
<el-button type="primary" @click="add" size="small" class="addButtom">生成</el-button> <el-button type="primary" @click="add" size="small" class="addButtom">生成</el-button>
<div class="blank"></div> <div class="blank"></div>
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
</el-form-item> </el-form-item>
</el-row> </el-row>
<el-row> <el-row>
<el-form-item label="使用类型:" prop="packageCode"> <el-form-item label="适用类型:" prop="packageCode">
<el-select v-model="addDialogForm.packageCode" placeholder="请选择" size="small"> <el-select v-model="addDialogForm.packageCode" placeholder="请选择" size="small">
<el-option v-for="(item, index) in dialogTypeOptions" :key="index" :label="item.label" :value="item.value"></el-option> <el-option v-for="(item, index) in dialogTypeOptions" :key="index" :label="item.label" :value="item.value"></el-option>
</el-select> </el-select>
...@@ -70,6 +70,7 @@ function date_format(date) { ...@@ -70,6 +70,7 @@ function date_format(date) {
var ss = date2.getSeconds() < 10 ? '0' + date2.getSeconds() : date2.getSeconds() var ss = date2.getSeconds() < 10 ? '0' + date2.getSeconds() : date2.getSeconds()
return YY + MM + DD + ' ' + hh + mm + ss return YY + MM + DD + ' ' + hh + mm + ss
} }
import utils from '../../util/util'
const validatorActualPrice = (rule, value, callback) => { const validatorActualPrice = (rule, value, callback) => {
if (value) { if (value) {
var reg = /^[1-9]\d*$/ var reg = /^[1-9]\d*$/
...@@ -128,15 +129,15 @@ export default { ...@@ -128,15 +129,15 @@ export default {
}, },
{ {
value: 'PC0006', value: 'PC0006',
label: '轮胎保障服务权益' label: '轮胎无忧'
}, },
{ {
value: 'PC0007', value: 'PC0007',
label: '整车全损无忧权益' label: '整车全损无忧'
}, },
{ {
value: 'PC0008', value: 'PC0008',
label: '碰撞无忧权益' label: '碰撞无忧'
} }
], ],
dialogYearOptions: [ dialogYearOptions: [
...@@ -197,18 +198,27 @@ export default { ...@@ -197,18 +198,27 @@ export default {
download(e) { download(e) {
console.log(e, '111111111111') console.log(e, '111111111111')
this.$apis.addWorryFree.downLoads({ id: e.id }).then(res => { this.$apis.addWorryFree.downLoads({ id: e.id }).then(res => {
if (res) { // if (res) {
var a = document.createElement('a') // var a = document.createElement('a')
a.setAttribute('href', res) // a.setAttribute('href', res)
a.setAttribute('target', '_blank') // a.setAttribute('target', '_blank')
a.setAttribute('id', 'd2admin-link-temp') // a.setAttribute('id', 'd2admin-link-temp')
a.setAttribute('download', '批量下载' + '.xlsx') // 设置下载文件名称 // a.setAttribute('download', '批量下载' + '.xlsx') // 设置下载文件名称
window.open(a) // window.open(a)
document.body.appendChild(a) // document.body.appendChild(a)
a.click() // a.click()
document.body.removeChild(document.getElementById('d2admin-link-temp')) // document.body.removeChild(document.getElementById('d2admin-link-temp'))
// } else {
// console.log('导出失败')
// }
let tempaa = utils.getExplorer()
if (tempaa == 'QQ') {
window.open(res)
} else { } else {
console.log('导出失败') let iframe = document.createElement('iframe')
iframe.style.display = 'none'
iframe.src = res
document.body.appendChild(iframe)
} }
}) })
}, },
...@@ -268,7 +278,7 @@ export default { ...@@ -268,7 +278,7 @@ export default {
.el-form-item__label { .el-form-item__label {
color: #333; color: #333;
} }
input{ input {
height: 36px; height: 36px;
width: 320px; width: 320px;
font-size: 14px; font-size: 14px;
......
...@@ -17,9 +17,7 @@ ...@@ -17,9 +17,7 @@
</el-form-item> </el-form-item>
</el-row> </el-row>
</el-form> </el-form>
</div> <GLTable ref="appointmentTable" style="margin-top:10px" :searchForm="appointmentForm" :tableParams="tableParams" :pageConf="tablePageConf" :getListApi="getAppointmentList">
<div class="equity-wrap contain" style="margin-top: 10px">
<GLTable ref="appointmentTable" :searchForm="appointmentForm" :tableParams="tableParams" :pageConf="tablePageConf" :getListApi="getAppointmentList">
<span slot="auth-button" slot-scope="scope" :data="scope.scope"> <span slot="auth-button" slot-scope="scope" :data="scope.scope">
<!-- 批次管理详情弹窗按钮 --> <!-- 批次管理详情弹窗按钮 -->
<el-button type="text" @click="showDialog(scope.scope)">修改</el-button> <el-button type="text" @click="showDialog(scope.scope)">修改</el-button>
...@@ -286,4 +284,8 @@ export default { ...@@ -286,4 +284,8 @@ export default {
border-top: 1px solid #e6e6e6; border-top: 1px solid #e6e6e6;
text-align: center; text-align: center;
} }
/deep/ .el-form-item__content .el-button--small:first-child, .row-btns>div .el-button--small:first-child {
border-color: #5850ff;
color: #5850ff;
}
</style> </style>
\ No newline at end of file \ No newline at end of file
...@@ -132,7 +132,7 @@ export default { ...@@ -132,7 +132,7 @@ export default {
selectWidth: '110px', selectWidth: '110px',
selectOption: [ selectOption: [
{ {
label: '客户姓名', label: '车主姓名',
name: 'customerName' name: 'customerName'
}, },
{ {
...@@ -915,7 +915,7 @@ export default { ...@@ -915,7 +915,7 @@ export default {
} }
} }
.table_wrapper { .table_wrapper {
margin-top: 10px; // margin-top: 10px;
background: #ffffff; background: #ffffff;
box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1); box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
padding: 20px; padding: 20px;
......
...@@ -4,31 +4,13 @@ ...@@ -4,31 +4,13 @@
<div class="top">开通配置</div> <div class="top">开通配置</div>
</div> </div>
<div class="equity-wrap contain" style="padding-left: 72px"> <div class="equity-wrap contain" style="padding-left: 72px">
<el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-position="left" size="medium"> <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-position="left" size="medium" class="detailForm">
<el-form-item v-if="add" label="商户明细"> <el-form-item v-if="add" label="商户明细">
<el-button size="small" @click="openDialog">{{ selectedTable == true ? '修改商户' : '选择商户' }}</el-button> <el-button size="small" @click="openDialog">{{ selectedTable == true ? '修改商户' : '选择商户' }}</el-button>
<el-table v-if="selectedTable" :data="tableData" style="width: 100%"> <el-table v-if="selectedTable" :data="tableData" style="width: 100%">
<el-table-column prop="merchantId" label="商户号" width="180"></el-table-column> <el-table-column prop="merchantId" label="商户号" width="180"></el-table-column>
<el-table-column prop="merchantName" label="商户名称" width="180"></el-table-column> <el-table-column prop="merchantName" label="商户名称" width="180"></el-table-column>
</el-table> </el-table>
<!-- 弹窗 -->
<relateStoreDialog v-if="relateStoreVisible" ref="relateStore" :relateStoreVisible="relateStoreVisible" :storeApi="storeApi" :storeSearchForm="searchForm" :storeSelected="selectedList" @handleRelateStoreConfirm="handleRelateStoreConfirm" @handleRelateStoreClose="handleRelateStoreClose">
<el-row slot>
<el-form :model="searchForm" ref="relate" :inline="true" label-width="90px" class="configDialog">
<el-form-item>
<el-input placeholder="请输入内容" v-model="searchForm.selectInput" class="input-with-select" size="small">
<el-select v-model="searchForm.select" slot="prepend" placeholder="请选择">
<el-option label="商户名称" value="1"></el-option>
<el-option label="商户号" value="2"></el-option>
</el-select>
</el-input>
</el-form-item>
<el-form-item style="margin-top:-2px">
<el-button size="small" type="primary" @click="handleSearchStore">查询</el-button>
</el-form-item>
</el-form>
</el-row>
</relateStoreDialog>
</el-form-item> </el-form-item>
<el-form-item size="small" label="配置可见产品及产品属性"></el-form-item> <el-form-item size="small" label="配置可见产品及产品属性"></el-form-item>
<el-form-item> <el-form-item>
...@@ -68,15 +50,33 @@ ...@@ -68,15 +50,33 @@
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-checkbox v-model="honorable">尊享版</el-checkbox> <el-checkbox v-model="honorable">舒享版</el-checkbox>
</el-form-item>
<el-form-item>
<el-checkbox v-model="first">尊享版</el-checkbox>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-checkbox v-model="first">优享版</el-checkbox> <el-checkbox v-model="carefree">优享版</el-checkbox>
</el-form-item> </el-form-item>
</el-form>
<!-- 弹窗 -->
<relateStoreDialog v-if="relateStoreVisible" ref="relateStore" :relateStoreVisible="relateStoreVisible" :storeApi="storeApi" :storeSearchForm="searchForm" :storeSelected="selectedList" @handleRelateStoreConfirm="handleRelateStoreConfirm" @handleRelateStoreClose="handleRelateStoreClose">
<el-row slot>
<el-form :model="searchForm" ref="relate" :inline="true" label-width="90px" class="configDialog">
<el-form-item> <el-form-item>
<el-checkbox v-model="carefree">舒享版</el-checkbox> <el-input placeholder="请输入内容" v-model="searchForm.selectInput" class="input-with-select" size="small">
<el-select v-model="searchForm.select" slot="prepend" placeholder="请选择">
<el-option label="商户名称" value="1"></el-option>
<el-option label="商户号" value="2"></el-option>
</el-select>
</el-input>
</el-form-item>
<el-form-item style="margin-top: -4px">
<el-button size="small" type="primary" @click="handleSearchStore">查询</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
</el-row>
</relateStoreDialog>
</div> </div>
<div <div
class="footer-panel" class="footer-panel"
...@@ -171,7 +171,7 @@ export default { ...@@ -171,7 +171,7 @@ export default {
this.collisionAll = true this.collisionAll = true
this.againstTheft = ['盗抢卡输入'] this.againstTheft = ['盗抢卡输入']
this.againstVehicle = ['全损卡输入'] this.againstVehicle = ['全损卡输入']
this.againstTyre = ['轮胎卡输入'] this.againstTyre = []
this.againstCollision = ['碰撞卡输入'] this.againstCollision = ['碰撞卡输入']
this.collisionRadio = '1' this.collisionRadio = '1'
this.vehicleRadio = '1' this.vehicleRadio = '1'
...@@ -423,14 +423,10 @@ export default { ...@@ -423,14 +423,10 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
/deep/ .el-pager { /deep/ .el-dialog__footer {
-webkit-user-select: none; padding: 15px;
-moz-user-select: none; border-top: 1px solid #e6e6e6;
-ms-user-select: none; text-align: center;
user-select: none;
list-style: none;
font-size: 0;
margin-top: 13px;
} }
.container { .container {
padding-right: 20px; padding-right: 20px;
......
...@@ -24,11 +24,9 @@ ...@@ -24,11 +24,9 @@
</el-form-item> </el-form-item>
</el-row> </el-row>
</el-form> </el-form>
</div> <div class="row-btns" style="margin-top:20px">
<div class="equity-wrap contain">
<div class="row-btns">
<!-- <el-button size="small" @click="toggleAll">全选</el-button> --> <!-- <el-button size="small" @click="toggleAll">全选</el-button> -->
<el-checkbox v-model="checkbox" @change="toggleAll" style="margin-left:20px">全选</el-checkbox> <!-- <el-checkbox v-model="checkbox" @change="toggleAll" style="margin-left:20px">全选</el-checkbox> -->
<div style="float: right"> <div style="float: right">
<el-button size="small" @click="batchOperation(1)">批量开通</el-button> <el-button size="small" @click="batchOperation(1)">批量开通</el-button>
<el-button size="small" @click="batchOperation(2)">批量关闭</el-button> <el-button size="small" @click="batchOperation(2)">批量关闭</el-button>
...@@ -36,8 +34,7 @@ ...@@ -36,8 +34,7 @@
</div> </div>
<GLTable v-if="flag" ref="table" :searchForm="searchForm" :tableParams="tableParams" :pageConf="pageConf" :getListApi="getConfigList" :beforeSearchFn="check"> <GLTable v-if="flag" ref="table" :searchForm="searchForm" :tableParams="tableParams" :pageConf="pageConf" :getListApi="getConfigList" :beforeSearchFn="check">
<span slot="operate" slot-scope="scope"> <span slot="operate" slot-scope="scope">
<!-- <GLButton fn="修改配置" type="text" @click="jump(scope.scope.merchantId)">修改配置</GLButton> --> <GLButton fn="修改配置" type="text" @click="jump(scope.scope.merchantId)">修改配置</GLButton>
<el-button fn="修改配置" type="text" @click="jump(scope.scope.merchantId)">修改配置</el-button>
</span> </span>
<span slot="openFlag" slot-scope="scope"> <span slot="openFlag" slot-scope="scope">
<el-switch :value="scope.scope.openFlag == 1" active-color="#5850ff" inactive-color="#eee" @change="changStatus(scope.scope.openFlag, scope.scope.id)"></el-switch> <el-switch :value="scope.scope.openFlag == 1" active-color="#5850ff" inactive-color="#eee" @change="changStatus(scope.scope.openFlag, scope.scope.id)"></el-switch>
...@@ -361,7 +358,7 @@ export default { ...@@ -361,7 +358,7 @@ export default {
color: #999; color: #999;
} }
.el-form-item__content .el-button--small:first-child, .row-btns>div .el-button--small:first-child { .el-form-item__content .el-button--small:first-child, .row-btns>div .el-button--small:first-child {
border-color: #383747; border-color: #5850ff;
color: #5850ff; color: #5850ff;
} }
.el-form-item__content .el-button--small:last-child, .row-btns>div .el-button--small:last-child { .el-form-item__content .el-button--small:last-child, .row-btns>div .el-button--small:last-child {
...@@ -372,9 +369,7 @@ export default { ...@@ -372,9 +369,7 @@ export default {
color: #333; color: #333;
padding-left: 8px; padding-left: 8px;
} }
.cell .el-button--text {
color: #666;
}
.el-pagination { .el-pagination {
margin-top: 20px; margin-top: 20px;
} }
......
<template> <template>
<div class="equity-wrap" style="margin-top:20px"> <div class="equity-wrap" style="margin-top: 20px">
<div class="equity-wrap contain"> <div class="equity-wrap contain">
<el-form :inline="true" label-width="70px" label-position="right" class="detailForm"> <el-form :inline="true" label-width="70px" label-position="right" class="detailForm">
<el-row style="align-items: center"> <el-row style="align-items: center">
...@@ -31,15 +31,13 @@ ...@@ -31,15 +31,13 @@
<el-option v-for="(item, index) in lifeOptions" :key="index" :label="item.label" :value="item.value"></el-option> <el-option v-for="(item, index) in lifeOptions" :key="index" :label="item.label" :value="item.value"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item size="small" style="float: right; margin-right: 0px !important; padding-top: 5px;"> <el-form-item size="small" style="float: right; margin-right: 0px !important; padding-top: 5px">
<el-button class="selectBtn" size="small" @click="detailSelect('reset')" style="border-color:#5850FF;color:#5850FF;margin-right:10px;">重置</el-button> <el-button class="selectBtn" size="small" @click="detailSelect('reset')" style="border-color: #5850ff; color: #5850ff; margin-right: 10px">重置</el-button>
<el-button class="selectBtn" size="small" type="primary" @click="detailSelect('select')" style="">查询</el-button> <el-button class="selectBtn" size="small" type="primary" @click="detailSelect('select')" style="">查询</el-button>
</el-form-item> </el-form-item>
</el-row> </el-row>
</el-form> </el-form>
</div> <el-alert style="margin-top: 20px" :closable="false" type="info" show-icon>总计{{ line.total }}张,已使用{{ line.usedAmount }}张</el-alert>
<div class="equity-wrap contain">
<el-alert type="info" show-icon>总计{{ line.total }}张,已使用{{ line.usedAmount }}张</el-alert>
<GLTable ref="detailTable" :searchForm="detailForm" :tableParams="detailParams" :pageConf="detailPageConf" :getListApi="getDetailList" :beforeSearchFn="check" style="margin-top: 10px"> <GLTable ref="detailTable" :searchForm="detailForm" :tableParams="detailParams" :pageConf="detailPageConf" :getListApi="getDetailList" :beforeSearchFn="check" style="margin-top: 10px">
<span slot="auth-button" slot-scope="scope" :data="scope.scope"> <span slot="auth-button" slot-scope="scope" :data="scope.scope">
<el-button type="text" @click="modify(scope.scope)" :disabled="scope.scope.status == 0 ? false : true">修改</el-button> <el-button type="text" @click="modify(scope.scope)" :disabled="scope.scope.status == 0 ? false : true">修改</el-button>
...@@ -98,7 +96,7 @@ function date_format(date) { ...@@ -98,7 +96,7 @@ function date_format(date) {
return YY + MM + DD + ' ' + hh + mm + ss return YY + MM + DD + ' ' + hh + mm + ss
} }
const validatorActualPrice = (rule, value, callback) => { const validatorActualPrice = (rule, value, callback) => {
if (value) { if (value) {
var reg = /^[1-9]\d*$/ var reg = /^[1-9]\d*$/
if (reg.test(value)) { if (reg.test(value)) {
if (value > 200) { if (value > 200) {
...@@ -164,15 +162,15 @@ export default { ...@@ -164,15 +162,15 @@ export default {
}, },
{ {
value: 'PC0006', value: 'PC0006',
label: '轮胎保障服务权益' label: '轮胎无忧'
}, },
{ {
value: 'PC0007', value: 'PC0007',
label: '整车全损无忧权益' label: '整车全损无忧'
}, },
{ {
value: 'PC0008', value: 'PC0008',
label: '碰撞无忧权益' label: '碰撞无忧'
} }
], ],
statusOptions: [ statusOptions: [
...@@ -253,7 +251,7 @@ export default { ...@@ -253,7 +251,7 @@ export default {
batchType: [{ required: true, message: '请选择版本', trigger: 'change' }], batchType: [{ required: true, message: '请选择版本', trigger: 'change' }],
packageCode: [{ required: true, message: '请选择适用类型', trigger: 'change' }], packageCode: [{ required: true, message: '请选择适用类型', trigger: 'change' }],
actualPrice: [{ validator: validatorActualPrice, trigger: 'blur' }], actualPrice: [{ validator: validatorActualPrice, trigger: 'blur' }],
servicePeriod: [{ required: true, message: '请选择使用年限', trigger: 'change' }] servicePeriod: [{ required: true, message: '请选择适用年限', trigger: 'change' }]
}, },
detailParams: { detailParams: {
btnId: new Date().getTime() + parseInt(Math.random() * 1000), btnId: new Date().getTime() + parseInt(Math.random() * 1000),
...@@ -286,14 +284,14 @@ export default { ...@@ -286,14 +284,14 @@ export default {
} }
}, },
{ {
label: '使用类型', label: '适用类型',
prop: 'packageCode', prop: 'packageCode',
formatter: cellValue => { formatter: cellValue => {
return { return {
PC0005: '盗抢全损无忧', PC0005: '盗抢全损无忧',
PC0006: '轮胎保障服务权益', PC0006: '轮胎无忧',
PC0007: '整车全损无忧权益', PC0007: '整车全损无忧',
PC0008: '碰撞无忧权益' PC0008: '碰撞无忧'
}[cellValue.packageCode] }[cellValue.packageCode]
} }
// minWidth: '200' // minWidth: '200'
...@@ -358,6 +356,10 @@ export default { ...@@ -358,6 +356,10 @@ export default {
if (e == 'reset') { if (e == 'reset') {
this.detailForm = {} this.detailForm = {}
this.$refs.detailTable.refreshTable() this.$refs.detailTable.refreshTable()
this.detailForm.batchType = ''
this.detailForm.packageCode = ''
this.detailForm.status = ''
this.detailForm.servicePeriod = ''
} else if (e == 'select') { } else if (e == 'select') {
this.$refs.detailTable.refreshTable() this.$refs.detailTable.refreshTable()
} }
...@@ -381,7 +383,7 @@ export default { ...@@ -381,7 +383,7 @@ export default {
this.detailDialogForm = {} this.detailDialogForm = {}
}, },
submitForm(formName) { submitForm(formName) {
console.log(this.detailDialogForm); console.log(this.detailDialogForm)
this.$refs[formName].validate(valid => { this.$refs[formName].validate(valid => {
if (valid) { if (valid) {
if (this.detailDialogForm.batchType == '尊享版') { if (this.detailDialogForm.batchType == '尊享版') {
...@@ -429,7 +431,7 @@ export default { ...@@ -429,7 +431,7 @@ export default {
width: 215px; width: 215px;
} }
/deep/ .el-dialog { /deep/ .el-dialog {
.el-dialog__body{ .el-dialog__body {
padding: 40px 20px; padding: 40px 20px;
display: flex; display: flex;
justify-content: center; justify-content: center;
...@@ -444,7 +446,7 @@ export default { ...@@ -444,7 +446,7 @@ export default {
} }
.el-dialog__footer { .el-dialog__footer {
height: 70px; height: 70px;
.el-button{ .el-button {
width: 72px; width: 72px;
margin: 0 10px; margin: 0 10px;
} }
...@@ -479,11 +481,11 @@ export default { ...@@ -479,11 +481,11 @@ export default {
} }
/deep/ .el-alert { /deep/ .el-alert {
height: 40px; height: 40px;
background: #E6E9FF; background: #e6e9ff;
border: 1px solid #5850FF; border: 1px solid #5850ff;
padding: 0 15px; padding: 0 15px;
line-height: 40px; line-height: 40px;
p{ p {
font-size: 14px; font-size: 14px;
color: rgba(0, 0, 0, 0.65); color: rgba(0, 0, 0, 0.65);
} }
...@@ -491,7 +493,7 @@ export default { ...@@ -491,7 +493,7 @@ export default {
margin: 0; margin: 0;
} }
.el-alert__icon { .el-alert__icon {
color: #5850FF; color: #5850ff;
font-size: 18px; font-size: 18px;
width: 18px; width: 18px;
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!