Commit 7d465e41 by 前端

开通配置表单修改

1 parent 7cc6a58d
......@@ -165,7 +165,7 @@
background: #ffffff;
margin: 0 0 20px 0;
padding: 20px;
box-shadow: 0 1px 5px 0 rgba(38, 38, 38, 0.1);
// box-shadow: 0 1px 5px 0 rgba(38, 38, 38, 0.1);
}
.equity-wrap .contain .el-table__empty-text {
display: inline-block;
......
......@@ -1057,7 +1057,7 @@ export default {
}
.find_wrap {
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 20px 2px 20px;
.resetBtn {
background: #ffffff;
......@@ -1071,7 +1071,7 @@ export default {
.table_wrapper {
// margin-top: 10px;
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: 0 20px 20px;
}
......
......@@ -3,28 +3,7 @@
<GLButton fn="开通配置" class="addGood" type="primary" icon="el-icon-plus" @click="jump('add')">开通配置</GLButton>
<!-- <el-button fn="开通配置" class="addGood" type="primary" icon="el-icon-plus" @click="jump('add')">开通配置</el-button> -->
<div class="equity-wrap contain merchant-select">
<el-form :inline="true" style="width: 100%" :model="searchForm" label-width="85px" label-position="right">
<el-row>
<el-form-item size="small" label="">
<el-input placeholder="请输入内容" v-model="selectInput" class="input-with-select">
<el-select v-model="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 class="open-status" size="small" label="开通状态" style="margin-left: -10px">
<el-select size="small" v-model="openFlag">
<el-option v-for="item in openFlagList" :key="item.value" :label="item.label" :value="item.value"></el-option>
</el-select>
</el-form-item>
<el-form-item size="small" class="fr-mr0">
<el-button size="small" @click="selConfig('reset')">重置</el-button>
<el-button size="small" type="primary" @click="selConfig">查询</el-button>
<el-button size="small" @click="exportTable">导出</el-button>
</el-form-item>
</el-row>
</el-form>
<GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :searchSelectObj="searchSelectObj" :formData="searchFormData" @handleOk="selConfig" @handleRest="selConfig('reset')"></GLCombiForm>
<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> -->
......@@ -46,7 +25,7 @@
</div>
</template>
<script type='text/ecmascript-6'>
<script type="text/ecmascript-6">
function date_format(date) {
var date2 = new Date(date)
var YY = date2.getFullYear() + '-'
......@@ -76,10 +55,57 @@ export default {
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' },
flag: true,
searchForm: {
merchantId: '',
merchantName: ''
openFlag : ''
},
searchSelectObj: {
idOrName: {
attr: 'merchantName',
value: ''
}
},
searchFormData: [
{
type: 'selectInput',
selectName: 'idOrName',
isClear: true,
inputWidth: '325px',
selectWidth: '110px',
selectOption: [
{
label: '商户名称',
name: 'merchantName'
},
{
label: '商户号',
name: 'merchantId'
}
],
handleSelectChange: value => {
this.searchSelectObj.idOrName.value = ''
}
},
{
label: '开通状态',
name: 'openFlag',
type: 'select',
optionList: [
{
label: '全部',
value: ''
},
{
label: '未开通',
value: '0'
},
{
label: '已开通',
value: '1'
}
],
optionId: 'value',
optionLabel: 'label'
}
],
openFlagList: [
{
label: '全部',
......@@ -162,7 +188,7 @@ export default {
}
},
mounted() {
},
created(){
this.diffHost()
......@@ -198,7 +224,7 @@ export default {
if (e == 'add') {
this.$router.push({ path: '/config/addConfig', query: { $title: encodeURI('开通配置') } })
} else {
let query = { $title: encodeURI('修改配置') }
let query = { $title: encodeURI('修改配置') }
query.merchantId = e
console.log(query, 'query')
this.$router.push({ path: '/config/addConfig', query })
......@@ -213,26 +239,22 @@ export default {
})
},
selConfig(e) {
if (this.select == 1) {
this.searchForm.merchantName = this.selectInput
this.searchForm.merchantId = ''
} else {
this.searchForm.merchantId = this.selectInput
this.searchForm.merchantName = ''
this.searchForm = {
openFlag : this.searchForm.openFlag
}
if (e == 'reset') {
this.openFlag = '全部'
this.searchForm = {}
this.selectInput = ''
this.$refs.table.refreshTable()
} else {
if (this.openFlag < 2) {
this.searchForm.openFlag = this.openFlag
this.$refs.table.refreshTable()
} else {
this.$refs.table.refreshTable()
this.searchForm = {
openFlag: ''
}
this.searchSelectObj = {
idOrName: {
attr: 'merchantName',
value: ''
}
}
}
this.searchForm[this.searchSelectObj.idOrName.attr] = this.searchSelectObj.idOrName.value
this.$refs.table.refreshTable()
},
// ['开通', '关闭'] //
batchOperation(status) {
......@@ -377,16 +399,6 @@ export default {
width: 166px;
color: #999;
}
.el-form-item__content .el-button--small:first-child,
.row-btns > div .el-button--small:first-child {
border-color: #5850ff;
color: #5850ff;
}
.el-form-item__content .el-button--small:last-child,
.row-btns > div .el-button--small:last-child {
border-color: #999;
color: #666666;
}
.row-btns .el-checkbox__label {
color: #333;
padding-left: 8px;
......@@ -408,4 +420,4 @@ export default {
/deep/ .el-input-group__prepend {
background-color: #fff;
}
</style>
\ No newline at end of file
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!