Commit 0e2ed548 by chenwq

style(ruleConfig): 优化开关组件布局并移除冗余文本

refactor(storeCredit): 调整表单字段格式并添加间距
1 parent b858f247
...@@ -7,7 +7,9 @@ ...@@ -7,7 +7,9 @@
<div class="table-container"> <div class="table-container">
<GLTable :tableData="tableData" :tableParams="tableParams" :hasPage="false" :hasNum="false"> <GLTable :tableData="tableData" :tableParams="tableParams" :hasPage="false" :hasNum="false">
<template slot="switchSlot" slot-scope="scope"> <template slot="switchSlot" slot-scope="scope">
<el-switch v-model="scope.scope.enabled" active-text="启用" inactive-text="停用"></el-switch> <!-- <el-switch v-model="scope.scope.enabled" active-text="启用" inactive-text="停用"></el-switch> -->
<el-switch v-model="scope.scope.enabled"></el-switch>
<div class="switch-txt">{{ scope.scope.enabled ? '启用' : '停用' }}</div>
</template> </template>
</GLTable> </GLTable>
</div> </div>
...@@ -86,6 +88,10 @@ export default { ...@@ -86,6 +88,10 @@ export default {
.container { .container {
padding: 20px; padding: 20px;
.switch-txt {
display: inline-block;
margin-left: 8px;
}
.config-card { .config-card {
background: #fff; background: #fff;
border-radius: 4px; border-radius: 4px;
......
...@@ -36,6 +36,7 @@ ...@@ -36,6 +36,7 @@
<el-radio-group :disabled="pageObject.id" v-model="configForm.personType"> <el-radio-group :disabled="pageObject.id" v-model="configForm.personType">
<el-radio v-for="(item, idx) in baseData.personTypeList" :key="idx" :label="item.confId">{{ item.confLabel }}</el-radio> <el-radio v-for="(item, idx) in baseData.personTypeList" :key="idx" :label="item.confId">{{ item.confLabel }}</el-radio>
</el-radio-group> </el-radio-group>
<div style="margin-bottom: 8px;"></div>
<div class="upload"> <div class="upload">
<div class="upload-btn"> <div class="upload-btn">
<el-button size="small" :disabled="pageObject.disabled"> <el-button size="small" :disabled="pageObject.disabled">
...@@ -200,8 +201,8 @@ export default { ...@@ -200,8 +201,8 @@ export default {
personType: [{ required: true, message: '请选择用户类型', trigger: 'change' }], personType: [{ required: true, message: '请选择用户类型', trigger: 'change' }],
}, },
configForm: { configForm: {
personType: 1 personType: 1
}, },
formData: [ formData: [
{ {
label: '选择商户', label: '选择商户',
...@@ -396,7 +397,7 @@ export default { ...@@ -396,7 +397,7 @@ export default {
passageServiceCharge: res.integralRate passageServiceCharge: res.integralRate
}) })
this.totalForm.customerTotal = detailList.length this.totalForm.customerTotal = detailList.length
this.configForm.personType = res.personType this.configForm.personType = res.personType
const list = this.splitArray(detailList, 50) const list = this.splitArray(detailList, 50)
this.importObject = { this.importObject = {
detailList: list detailList: list
...@@ -454,7 +455,7 @@ export default { ...@@ -454,7 +455,7 @@ export default {
merchantId, merchantId,
merchantName, merchantName,
detailList, detailList,
personType personType
} }
if (id) params.id = id if (id) params.id = id
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!