Commit 850bc544 by zhouzy

样式bug二轮修改完毕

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