Commit 0e2ed548 by chenwq

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

refactor(storeCredit): 调整表单字段格式并添加间距
1 parent b858f247
......@@ -7,7 +7,9 @@
<div class="table-container">
<GLTable :tableData="tableData" :tableParams="tableParams" :hasPage="false" :hasNum="false">
<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>
</GLTable>
</div>
......@@ -86,6 +88,10 @@ export default {
.container {
padding: 20px;
.switch-txt {
display: inline-block;
margin-left: 8px;
}
.config-card {
background: #fff;
border-radius: 4px;
......
......@@ -36,6 +36,7 @@
<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-group>
<div style="margin-bottom: 8px;"></div>
<div class="upload">
<div class="upload-btn">
<el-button size="small" :disabled="pageObject.disabled">
......@@ -200,8 +201,8 @@ export default {
personType: [{ required: true, message: '请选择用户类型', trigger: 'change' }],
},
configForm: {
personType: 1
},
personType: 1
},
formData: [
{
label: '选择商户',
......@@ -396,7 +397,7 @@ export default {
passageServiceCharge: res.integralRate
})
this.totalForm.customerTotal = detailList.length
this.configForm.personType = res.personType
this.configForm.personType = res.personType
const list = this.splitArray(detailList, 50)
this.importObject = {
detailList: list
......@@ -454,7 +455,7 @@ export default {
merchantId,
merchantName,
detailList,
personType
personType
}
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!