Commit 9f0e4dfe by zhouzy

功能样式修改

1 parent 114d0301
{ {
"name": "services", "name": "salepre",
"version": "0.1.0", "version": "0.1.0",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
...@@ -6710,9 +6710,9 @@ ...@@ -6710,9 +6710,9 @@
} }
}, },
"glsx-components": { "glsx-components": {
"version": "1.3.0", "version": "1.3.5",
"resolved": "https://registry.npmjs.org/glsx-components/-/glsx-components-1.3.0.tgz", "resolved": "https://registry.npmjs.org/glsx-components/-/glsx-components-1.3.5.tgz",
"integrity": "sha512-J+tCvYONoAjD2XCWCkBFuemcEPiqpMA8XKxJHG5iZxnhEqWNkROiukEeYWQLQAsFQ1e2Wcv3QgI5ZJHBaz9fnQ==", "integrity": "sha512-4Xi6IaTqEGczZV2Z5BN7rxQKX9R5ZV33sRFMOd6l+wxRbfCvwJsvzW92AEDeVOqZsf0r/hZHu+pB0L2vsqaRGQ==",
"requires": { "requires": {
"core-js": "^3.6.5", "core-js": "^3.6.5",
"element-ui": "^2.15.6", "element-ui": "^2.15.6",
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
"el-tree-transfer": "^2.2.6", "el-tree-transfer": "^2.2.6",
"element-ui": "^2.4.5", "element-ui": "^2.4.5",
"glsx-common": "^1.4.6", "glsx-common": "^1.4.6",
"glsx-components": "^1.3.0", "glsx-components": "^1.3.5",
"lodash": "^4.17.21", "lodash": "^4.17.21",
"vue": "^2.6.10", "vue": "^2.6.10",
"vue-router": "^3.1.3", "vue-router": "^3.1.3",
......
...@@ -22,7 +22,10 @@ ...@@ -22,7 +22,10 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="merchantName" label="商户名称" align="center"></el-table-column> <el-table-column prop="merchantName" label="商户名称" align="center"></el-table-column>
<el-table-column label="删除" align="center" width="50"> <el-table-column align="center" width="100">
<template slot="header">
<el-link :underline="false" icon="el-icon-delete" @click="batchDelete">批量删除</el-link>
</template>
<template slot-scope="scope"> <template slot-scope="scope">
<el-button style="padding: 0" class="el-icon-delete" @click="handleDelete(scope.row)" type="text"></el-button> <el-button style="padding: 0" class="el-icon-delete" @click="handleDelete(scope.row)" type="text"></el-button>
</template> </template>
...@@ -87,6 +90,11 @@ export default { ...@@ -87,6 +90,11 @@ export default {
this.getSelectingList() this.getSelectingList()
}, },
methods: { methods: {
batchDelete() {
console.log('1')
this.selectedData = []
this.recoverySelection()
},
selectable(row, index) { selectable(row, index) {
var isSelect = row.hasOwnProperty('beServed') ? !row.beServed : true var isSelect = row.hasOwnProperty('beServed') ? !row.beServed : true
return isSelect return isSelect
...@@ -118,11 +126,11 @@ export default { ...@@ -118,11 +126,11 @@ export default {
pageSize: this.pageSize pageSize: this.pageSize
}).then(res => { }).then(res => {
console.log(res) console.log(res)
if(res.code == '33'){ if (res.code == '33') {
this.$message.error('请正确输入商户号') this.$message.error('请正确输入商户号')
} }
this.selectingData = res.data.list this.selectingData = res.data.list
for(var a= 0;a<this.selectingData.length;a++){ for (var a = 0; a < this.selectingData.length; a++) {
this.selectingData[a].merchantNo = this.selectingData[a].merchantId + '' this.selectingData[a].merchantNo = this.selectingData[a].merchantId + ''
} }
this.total = res.data.total this.total = res.data.total
...@@ -136,7 +144,7 @@ export default { ...@@ -136,7 +144,7 @@ export default {
addOrDelete ? this.selectedData.push(row) : (this.selectedData = this.selectedData.filter(item => item.merchantNo !== row.merchantNo)) addOrDelete ? this.selectedData.push(row) : (this.selectedData = this.selectedData.filter(item => item.merchantNo !== row.merchantNo))
}, },
handleAll(selection) { handleAll(selection) {
console.log(selection,'112112'); console.log(selection, '112112')
// this.selectedData=[] // this.selectedData=[]
this.selectingData.forEach(item => { this.selectingData.forEach(item => {
var isExit = this.selectedData.findIndex(subItem => subItem.merchantNo === item.merchantNo) var isExit = this.selectedData.findIndex(subItem => subItem.merchantNo === item.merchantNo)
......
<template> <template>
<div class="equity-wrap"> <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>
...@@ -72,7 +72,7 @@ function date_format(date) { ...@@ -72,7 +72,7 @@ function date_format(date) {
} }
const validatorActualPrice = (rule, value, callback) => { const validatorActualPrice = (rule, value, callback) => {
if (value) { if (value) {
var reg = /(^[1-9]\d*(\.\d{1,2})?$)|(^0(\.\d{1,2})?$)/ var reg = /^[1-9]\d*$/
if (reg.test(value)) { if (reg.test(value)) {
if (value > 200) { if (value > 200) {
callback('请输入200万以内的价格') callback('请输入200万以内的价格')
...@@ -80,7 +80,7 @@ const validatorActualPrice = (rule, value, callback) => { ...@@ -80,7 +80,7 @@ const validatorActualPrice = (rule, value, callback) => {
callback() callback()
} }
} else { } else {
callback('请输入正确格式的价格') callback('请输入正整数')
} }
} else { } else {
callback('请输入具体价格') callback('请输入具体价格')
......
...@@ -281,7 +281,7 @@ export default { ...@@ -281,7 +281,7 @@ export default {
word-break: break-all; word-break: break-all;
text-align: center; text-align: center;
} }
/deep/ .el-dialog__footer { /deep/ .detailDialog .el-dialog__footer {
padding: 15px; padding: 15px;
border-top: 1px solid #e6e6e6; border-top: 1px solid #e6e6e6;
text-align: center; text-align: center;
......
<template> <template>
<div class="equity-wrap container"> <div class="equity-wrap container">
<div class="equity-wrap contain" style="padding:0;margin-bottom:0;"> <div class="equity-wrap contain" style="padding: 0; margin-bottom: 0">
<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">
<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>
...@@ -15,16 +15,16 @@ ...@@ -15,16 +15,16 @@
<relateStoreDialog v-if="relateStoreVisible" ref="relateStore" :relateStoreVisible="relateStoreVisible" :storeApi="storeApi" :storeSearchForm="searchForm" :storeSelected="selectedList" @handleRelateStoreConfirm="handleRelateStoreConfirm" @handleRelateStoreClose="handleRelateStoreClose"> <relateStoreDialog v-if="relateStoreVisible" ref="relateStore" :relateStoreVisible="relateStoreVisible" :storeApi="storeApi" :storeSearchForm="searchForm" :storeSelected="selectedList" @handleRelateStoreConfirm="handleRelateStoreConfirm" @handleRelateStoreClose="handleRelateStoreClose">
<el-row slot> <el-row slot>
<el-form :model="searchForm" ref="relate" :inline="true" label-width="90px" class="configDialog"> <el-form :model="searchForm" ref="relate" :inline="true" label-width="90px" class="configDialog">
<el-form-item size="small" label=""> <el-form-item>
<el-input placeholder="请输入内容" v-model="searchForm.selectInput" class="input-with-select"> <el-input placeholder="请输入内容" v-model="searchForm.selectInput" class="input-with-select" size="small">
<el-select v-model="searchForm.select" slot="prepend" placeholder="请选择"> <el-select v-model="searchForm.select" slot="prepend" placeholder="请选择">
<el-option label="商户名称" value="1"></el-option> <el-option label="商户名称" value="1"></el-option>
<el-option label="商户号" value="2"></el-option> <el-option label="商户号" value="2"></el-option>
</el-select> </el-select>
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item style="margin-top:-2px">
<el-button :size="size" type="primary" @click="handleSearchStore">查询</el-button> <el-button size="small" type="primary" @click="handleSearchStore">查询</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
</el-row> </el-row>
...@@ -286,7 +286,7 @@ export default { ...@@ -286,7 +286,7 @@ export default {
theftObj.cardName = 'card' theftObj.cardName = 'card'
} }
params.push(theftObj) params.push(theftObj)
console.log(params,'params'); console.log(params, 'params')
} }
if (this.vehicleAll == true) { if (this.vehicleAll == true) {
let vehicleObj = {} let vehicleObj = {}
...@@ -423,7 +423,16 @@ export default { ...@@ -423,7 +423,16 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.container{ /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;
}
.container {
padding-right: 20px; padding-right: 20px;
padding-bottom: 74px; padding-bottom: 74px;
} }
...@@ -451,11 +460,11 @@ export default { ...@@ -451,11 +460,11 @@ export default {
margin-right: 40px; margin-right: 40px;
} }
} }
.el-button{ .el-button {
width: 88px; width: 88px;
height: 40px; height: 40px;
} }
>.el-button{ > .el-button {
border: 1px solid #d1d1d1; border: 1px solid #d1d1d1;
color: #666; color: #666;
} }
...@@ -463,7 +472,7 @@ export default { ...@@ -463,7 +472,7 @@ export default {
.top { .top {
padding-left: 20px; padding-left: 20px;
height: 58px; height: 58px;
border-bottom: 1px solid #D8D8D8; border-bottom: 1px solid #d8d8d8;
line-height: 58px; line-height: 58px;
font-size: 16px; font-size: 16px;
font-weight: 600; font-weight: 600;
...@@ -492,12 +501,12 @@ export default { ...@@ -492,12 +501,12 @@ export default {
margin: -10px -20px; margin: -10px -20px;
width: 120px; width: 120px;
} }
/deep/ .el-form{ /deep/ .el-form {
.el-form-item:nth-child(-n+2) { .el-form-item:nth-child(-n + 2) {
.el-form-item__label{ .el-form-item__label {
font-size: 14px; font-size: 14px;
font-weight: 600; font-weight: 600;
color: #3E3E3E; color: #3e3e3e;
} }
} }
.el-form-item { .el-form-item {
...@@ -505,25 +514,27 @@ export default { ...@@ -505,25 +514,27 @@ export default {
} }
.el-form-item:first-child { .el-form-item:first-child {
margin-bottom: 20px; margin-bottom: 20px;
.el-button{ .el-button {
border: 1px solid #5850FF; border: 1px solid #5850ff;
color: #5850FF; color: #5850ff;
} }
} }
.el-form-item:nth-child(2) { .el-form-item:nth-child(2) {
margin-bottom: 0; margin-bottom: 0;
} }
.el-form-item:nth-child(n+2) { .el-form-item:nth-child(n + 2) {
.el-form-item__content{ .el-form-item__content {
>div{ > div {
margin-left: 20px; margin-left: 20px;
&, .el-checkbox__label, .el-radio__label { &,
.el-checkbox__label,
.el-radio__label {
color: #666; color: #666;
} }
} }
>label { > label {
.el-checkbox__label { .el-checkbox__label {
color: #3E3E3E; color: #3e3e3e;
} }
} }
} }
......
<template> <template>
<div class="equity-wrap"> <div class="equity-wrap">
<GLButton fn="开通配置" class="addGood" type="primary" icon="el-icon-plus" @click="jump('add')">开通配置</GLButton> <GLButton fn="开通配置" class="addGood" type="primary" icon="el-icon-plus" @click="jump('add')">开通配置</GLButton>
<el-button fn="开通配置" class="addGood" type="primary" icon="el-icon-right" @click="jump('add')">开通配置</el-button>
<div class="equity-wrap contain merchant-select"> <div class="equity-wrap contain merchant-select">
<el-form :inline="true" style="width: 100%" :model="searchForm" label-width="85px" label-position="right"> <el-form :inline="true" style="width: 100%" :model="searchForm" label-width="85px" label-position="right">
<el-row> <el-row>
...@@ -28,7 +27,8 @@ ...@@ -28,7 +27,8 @@
</div> </div>
<div class="equity-wrap contain"> <div class="equity-wrap contain">
<div class="row-btns"> <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>
<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>
...@@ -65,6 +65,7 @@ export default { ...@@ -65,6 +65,7 @@ export default {
// mixins: [searchMixin], // mixins: [searchMixin],
data() { data() {
return { return {
checkbox:false,
date_format, date_format,
openFlag: '', openFlag: '',
getConfigList: this.$apis.openconfig.getConfigList, getConfigList: this.$apis.openconfig.getConfigList,
...@@ -360,7 +361,7 @@ export default { ...@@ -360,7 +361,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: #5850ff; border-color: #383747;
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 {
......
<template> <template>
<div class="equity-wrap"> <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">
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
<el-alert type="info" show-icon>总计{{ line.total }}张,已使用{{ line.usedAmount }}张</el-alert> <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)">修改</el-button> <el-button type="text" @click="modify(scope.scope)" :disabled="scope.scope.status == 0 ? false : true">修改</el-button>
</span> </span>
</GLTable> </GLTable>
</div> </div>
...@@ -98,14 +98,17 @@ function date_format(date) { ...@@ -98,14 +98,17 @@ 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 = /^[+]{0,1}(\d+)$/ var reg = /^[1-9]\d*$/
if (!reg.test(value)) { if (reg.test(value)) {
callback('请输入1-200的整数') if (value > 200) {
} else if (value > 200) { callback('请输入200万以内的价格')
callback('请输入1-200的数字') } else {
callback()
}
} else {
callback('请输入正整数')
} }
callback()
} else { } else {
callback('请输入具体价格') callback('请输入具体价格')
} }
...@@ -405,11 +408,6 @@ export default { ...@@ -405,11 +408,6 @@ export default {
}) })
} }
}) })
} else {
this.$message({
message: '请填写必要信息',
type: 'error'
})
} }
}) })
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!