Commit 8f67f625 by chenwq

fix: 修复表单标签样式及间距问题

- 为多个表单字段添加冒号后缀统一格式
- 调整表单元素间距和边距样式
- 修复商品编辑页面的布局问题
- 优化对话框组件的样式和布局
- 统一表单组件的标签宽度和间距
1 parent f4c2bd2c
......@@ -290,6 +290,10 @@ html {
margin-bottom: 60px;
}
.microStore .m-b-40 {
margin-bottom: 40px;
}
.microStore .m-r-8 {
margin-right: 8px;
}
......@@ -376,6 +380,7 @@ html {
line-height: 20px;
font-size: 12px;
color: #999999;
margin-top: 8px;
}
.microStore .p-relative {
......

35.5 KB | W: | H:

22.6 KB | W: | H:

src/assets/images/phone.png
src/assets/images/phone.png
src/assets/images/phone.png
src/assets/images/phone.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -133,7 +133,7 @@ export default {
},
props: {
formDisable:{
formDisable: {
type: Boolean,
default: false
},
......@@ -172,7 +172,7 @@ export default {
},
formObj: {
type: Object,
default: () => {}
default: () => { }
},
hasTitle: {
type: Boolean,
......@@ -180,16 +180,16 @@ export default {
},
formRules: {
type: Object,
default: () => {}
default: () => { }
},
// 搜索+输入框/搜索组合组件,搜索栏绑值
searchSelectObj: {
type: Object,
default: () => {}
default: () => { }
}
},
mounted() {},
mounted() { },
methods: {
// 选择框-添加其他属性
......@@ -327,7 +327,7 @@ export default {
.glsx-combi-form .tips-label {
margin-right: 20px;
}
.glsx-combi-form .tips-icon {
.glsx-combi-form .tips-icon {
position: absolute;
display: inline-block;
width: 12px;
......@@ -339,7 +339,7 @@ export default {
border: 1px dotted #7f7f7f;
border-radius: 50%;
}
.glsx-combi-form .tips-icon::before {
.glsx-combi-form .tips-icon::before {
content: '?';
position: absolute;
width: 8px;
......@@ -371,6 +371,7 @@ export default {
background-color: #f7f7f7;
border: 1px dotted #d9d9d9;
cursor: pointer;
border-radius: 4px;
}
.glsx-combi-form .activity-Input {
......
......@@ -262,14 +262,14 @@ export default {
},
batchEditForm: [
{
label: '快递公司',
label: '快递公司:',
name: 'expressName',
type: 'input',
placeholder: '请输入快递公司',
maxlength: 20
},
{
label: '快递单号',
label: '快递单号:',
name: 'expressNo',
type: 'input',
placeholder: '请输入快递单号',
......@@ -393,7 +393,7 @@ export default {
}
.phone {
font-size: 10px;
font-size: 12px;
color: #999999;
}
}
......
......@@ -6,7 +6,7 @@
<div :class="item.title ? 'item-box' : ''" v-for="(item, index) in externalFormList" :key="index">
<p class="edit-title" v-if="item.title">{{ item.title }}</p>
<div class="flex pad-20">
<glsx-combi-form ref="editFormRef" class="flex-grow" :labelWidth="defaultLabelWidth" :isBlock="true" :formRef="item.editChildRef" :formObj="editForm" :formData="item.editFormData" :formRules="item.editRule">
<glsx-combi-form ref="editFormRef" class="flex-grow" labelPaddingRight="0" :labelWidth="defaultLabelWidth" :isBlock="true" :formRef="item.editChildRef" :formObj="editForm" :formData="item.editFormData" :formRules="item.editRule">
<div slot="qrcodeUrl" slot-scope="scope" :style="{ width: '120px', 'text-align': 'center' }" class="flex-top">
<img class="img-104" :src="editForm[scope.scope.name]" />
<el-button type="text" @click="handleImgDown(editForm[scope.scope.name])">下载</el-button>
......@@ -22,7 +22,7 @@
<el-tab-pane v-for="(subItem, subIndex) in editForm.specialEvents" :key="subIndex" :label="subItem.eventName" :name="subIndex">
<div class="item-box">
<div class="flex pad-20">
<glsx-combi-form ref="eventEditFormRef" :labelWidth="defaultLabelWidth" :isBlock="true" formRef="eventEditChildRef" :formObj="editForm.specialEvents[bannerIdx]" :formData="eventEditFormData" :formRules="eventEditRule">
<glsx-combi-form ref="eventEditFormRef" labelPaddingRight="0" :labelWidth="defaultLabelWidth" :isBlock="true" formRef="eventEditChildRef" :formObj="editForm.specialEvents[bannerIdx]" :formData="eventEditFormData" :formRules="eventEditRule">
<template slot="entryImage">
<p class="edit-tips">格式为jpg, jpeg, png,大小不超过1M</p>
</template>
......@@ -271,7 +271,7 @@ export default {
}
},
{
label: '商品',
label: '商品:',
name: 'goodsIdList',
addHtml: 'selectProBtn'
},
......@@ -525,7 +525,7 @@ export default {
background: #fff;
}
.home-set .home-set-form .item-box .pad-20 {
padding: 20px;
padding: 20px 20px 0 20px;
}
.home-set .home-set-form .item-box .home-set-tabs .el-tabs__content {
border: 1px solid #e5e5e5;
......@@ -612,7 +612,6 @@ export default {
background-color: #f7f7f7;
border: 1px dotted #d9d9d9;
cursor: pointer;
margin-top: 10px;
}
.img-14 {
width: 14px;
......
......@@ -7,7 +7,7 @@
<GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
</div>
<div class="operate-wrap">
<span class="table-title"></span>
<span class="table-title">浏览明细</span>
<div class="operate-btn">
<el-button :size="size" @click="handleExport()">导出</el-button>
</div>
......
......@@ -44,7 +44,7 @@ export default {
},
batchEditForm: [
{
label: '分类名称',
label: '分类名称:',
name: 'categoryName',
type: 'input',
placeholder: '请输入分类名称',
......
<template>
<GLDialog :title="dialogConfig.title" mode="small" :visible.sync="visible" :show-close="true" :before-close="handleClose" @onOk="confirmPriceChange" @onCancel="handleClose" :okText="dialogConfig.okText" :cancelText="dialogConfig.cancelText">
<GLDialog class="select-dialog" :title="dialogConfig.title" mode="small" :visible.sync="visible" :show-close="true" :before-close="handleClose" @onOk="confirmPriceChange" @onCancel="handleClose" :okText="dialogConfig.okText" :cancelText="dialogConfig.cancelText">
<div class="dialog-wrap" v-loading="loading">
<glsxCombiForm ref="editFormRef" :formObj="batchForm" :formData="editFormData" :formRules="editRules" formRef="editChildRef"></glsxCombiForm>
<glsxCombiForm ref="editFormRef" :labelWidth="labelWidth" labelPaddingRight="0" :formObj="batchForm" :formData="editFormData" :formRules="editRules" formRef="editChildRef"></glsxCombiForm>
</div>
</GLDialog>
</template>
......@@ -40,6 +40,10 @@ export default {
loading: {
type: Boolean,
default: false
},
labelWidth: {
type: String,
default: '154px'
}
},
......@@ -66,32 +70,24 @@ export default {
}
</script>
<style lang="scss">
.dialog-wrap {
display: flex;
// align-items: center;
justify-content: center;
height: 100%;
width: 100%;
span {
white-space: nowrap;
margin-right: 8px;
}
// /deep/ .el-input {
// &,
// .el-input__inner {
// width: 100px;
// }
.select-dialog {
.dialog-wrap {
display: flex;
align-items: center;
justify-content: center;
height: 100%;
width: 100%;
// .el-input-group__append {
// box-sizing: border-box;
// padding: 0 11px;
span {
white-space: nowrap;
}
// span {
// margin: 0;
// }
// }
// }
/deep/ .el-input {
&,
.el-input__inner {
width: 100px;
}
}
}
}
</style>
......@@ -6,7 +6,7 @@
<div class="home-set-form flex-grow">
<div v-for="(item, index) in externalFormList" :key="index">
<p class="edit-title">{{ item.title }}</p>
<glsx-combi-form class="edit-form-container m-b-60" ref="editFormRef" :labelWidth="defaultLabelWidth" :defaultWidth="defaultWidth" :isBlock="true" :formRef="item.editChildRef" :formObj="editForm" :formData="item.editFormData" :formRules="item.editRule" @handleImgDelete="handleFormImgDelete">
<glsx-combi-form class="edit-form-container m-b-40" ref="editFormRef" labelPaddingRight="0" :labelWidth="defaultLabelWidth" :defaultWidth="defaultWidth" :isBlock="true" :formRef="item.editChildRef" :formObj="editForm" :formData="item.editFormData" :formRules="item.editRule" @handleImgDelete="handleFormImgDelete">
<template slot="describeBtn">
<el-button :disabled="isDisabled" type="default" @click="handleDescribeImgAdd">+添加图片</el-button>
<span class="edit-tips m-l-20">最多可添加10张图片</span>
......@@ -115,7 +115,7 @@
<p class="edit-tips">作为商品划线展示的价格</p>
</template>
<template slot="serviceDescHtml">
<el-input type="textarea" v-model="editForm.serviceDesc" placeholder="请输入服务说明" :autosize="{ minRows: 2, maxRows: 4 }" maxlength="200" :disabled="isDisabled" />
<el-input style="width: 432px" type="textarea" v-model="editForm.serviceDesc" placeholder="请输入服务说明" show-word-limit :autosize="{ minRows: 4, maxRows: 4 }" maxlength="200" :disabled="isDisabled" />
</template>
</glsx-combi-form>
</div>
......@@ -153,7 +153,7 @@
<div :class="{ 'inner-block': !!nameToValSpecsList.length || editForm.deliveryType == 2 }" style="margin-bottom: 8px;">
<div class="line" v-if="nameToValSpecsList.length">
<span class="line-label">已选</span>
<span class="line-txt">{{ nameToValSpecsList[0].specificationData }}</span>
<span class="line-txt ellipsis-1" style="display: inline-block; width: 150px">{{ nameToValSpecsList[0].specificationData }}</span>
</div>
<div v-show="editForm.deliveryType == 2" class="line" style="display: flex;">
<span class="line-label">配送</span>
......@@ -164,8 +164,8 @@
</div>
<div v-show="editForm.deliveryType == 2" class="line">
<span class="line-label">运费</span>
<span v-show="editForm.deliveryType == 1" class="line-txt">免运费</span>
<span v-show="editForm.deliveryType == 2" class="line-txt">{{ editForm.expressFee }}元</span>
<span v-show="editForm.deliveryType == 1" class="line-txt" style="display: inline-block; width: 150px">免运费</span>
<span v-show="editForm.deliveryType == 2" class="line-txt" style="display: inline-block; width: 150px">{{ editForm.expressFee }}元</span>
</div>
</div>
<div class="inner-block" style="margin-bottom: 0;">
......@@ -1130,18 +1130,18 @@ export default {
position: absolute;
width: 252px;
height: 35px;
top: 470px;
left: 19px;
top: 505px;
left: 18px;
}
.edit-pro .wechat-container .wechant-back {
/* border: 1px solid #D8D8D8; */
}
.edit-pro .wechat-container .wechat-inner-box {
position: absolute;
top: 56px;
left: 19px;
top: 38px;
left: 18px;
width: 253px;
height: 413px;
height: 477px;
background-color: #f7f7f7;
overflow-y: scroll;
overflow-x: hidden;
......@@ -1178,9 +1178,12 @@ export default {
height: 50px;
line-height: 50px;
border-bottom: 1px solid #eff0f2;
display: flex;
justify-content: center;
}
.edit-pro .wechat-container .line-label {
display: inline-block;
font-size: 12px;
color: #656566;
margin-right: 44px;
......@@ -1279,7 +1282,6 @@ export default {
background-color: #f7f7f7;
border: 1px dotted #d9d9d9;
cursor: pointer;
margin-top: 10px;
}
.microStore .muti-imgs {
......
......@@ -6,7 +6,7 @@
<div class="home-set-form flex-grow">
<div v-for="(item, index) in externalFormList" :key="index">
<p class="edit-title">{{ item.title }}</p>
<glsx-combi-form class="edit-form-container m-b-60" ref="editFormRef" :labelWidth="defaultLabelWidth" :defaultWidth="defaultWidth" :isBlock="true" :formRef="item.editChildRef" :formObj="editForm" :formData="item.editFormData" :formRules="item.editRule" @handleImgDelete="handleFormImgDelete">
<glsx-combi-form class="edit-form-container m-b-40" ref="editFormRef" labelPaddingRight="0" :labelWidth="defaultLabelWidth" :defaultWidth="defaultWidth" :isBlock="true" :formRef="item.editChildRef" :formObj="editForm" :formData="item.editFormData" :formRules="item.editRule" @handleImgDelete="handleFormImgDelete">
<template slot="describeBtn">
<el-button :disabled="isDisabled" type="default" @click="handleDescribeImgAdd">+添加图片</el-button>
<span class="edit-tips m-l-20">最多可添加10张图片</span>
......@@ -115,7 +115,7 @@
<p class="edit-tips">作为商品划线展示的价格</p>
</template>
<template slot="serviceDescHtml">
<el-input type="textarea" v-model="editForm.serviceDesc" placeholder="请输入服务说明" :autosize="{ minRows: 2, maxRows: 4 }" maxlength="200" :disabled="isDisabled" />
<el-input style="width: 432px" type="textarea" v-model="editForm.serviceDesc" placeholder="请输入服务说明" show-word-limit :autosize="{ minRows: 4, maxRows: 4 }" maxlength="200" :disabled="isDisabled" />
</template>
</glsx-combi-form>
</div>
......@@ -153,7 +153,7 @@
<div :class="{ 'inner-block': !!nameToValSpecsList.length || editForm.deliveryType == 2 }" style="margin-bottom: 8px;">
<div class="line" v-if="nameToValSpecsList.length">
<span class="line-label">已选</span>
<span class="line-txt">{{ nameToValSpecsList[0].specificationData }}</span>
<span class="line-txt ellipsis-1" style="display: inline-block; width: 150px">{{ nameToValSpecsList[0].specificationData }}</span>
</div>
<div v-show="editForm.deliveryType == 2" class="line" style="display: flex;">
<span class="line-label">配送</span>
......@@ -164,8 +164,8 @@
</div>
<div v-show="editForm.deliveryType == 2" class="line">
<span class="line-label">运费</span>
<span v-show="editForm.deliveryType == 1" class="line-txt">免运费</span>
<span v-show="editForm.deliveryType == 2" class="line-txt">{{ editForm.expressFee }}元</span>
<span v-show="editForm.deliveryType == 1" class="line-txt" style="display: inline-block; width: 150px">免运费</span>
<span v-show="editForm.deliveryType == 2" class="line-txt" style="display: inline-block; width: 150px">{{ editForm.expressFee }}元</span>
</div>
</div>
<div class="inner-block" style="margin-bottom: 0;">
......@@ -1130,18 +1130,18 @@ export default {
position: absolute;
width: 252px;
height: 35px;
top: 470px;
left: 19px;
top: 505px;
left: 18px;
}
.edit-pro .wechat-container .wechant-back {
/* border: 1px solid #D8D8D8; */
}
.edit-pro .wechat-container .wechat-inner-box {
position: absolute;
top: 56px;
left: 19px;
top: 38px;
left: 18px;
width: 253px;
height: 413px;
height: 477px;
background-color: #f7f7f7;
overflow-y: scroll;
overflow-x: hidden;
......@@ -1178,9 +1178,12 @@ export default {
height: 50px;
line-height: 50px;
border-bottom: 1px solid #eff0f2;
display: flex;
justify-content: center;
}
.edit-pro .wechat-container .line-label {
display: inline-block;
font-size: 12px;
color: #656566;
margin-right: 44px;
......@@ -1279,7 +1282,6 @@ export default {
background-color: #f7f7f7;
border: 1px dotted #d9d9d9;
cursor: pointer;
margin-top: 10px;
}
.microStore .muti-imgs {
......
......@@ -7,7 +7,7 @@
<GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
</div>
<div class="operate-wrap">
<span class="table-title"></span>
<span class="table-title">访客明细</span>
<div class="operate-btn">
<el-button :size="size" @click="handleExport()">导出</el-button>
</div>
......
......@@ -48,7 +48,7 @@
</div>
</GLTable>
<setPriceDialog v-if="isVisible" :echoParams="echoParams" :isConversionRate="isConversionRate" :visible="isVisible" @handleClose="handleClose" @confirm="confirmPriceChange"></setPriceDialog>
<SelectDialog v-if="isSelectVisible" :batchForm="batchForm" :editFormData="batchEditForm" :editRules="batchEditRules" :visible="isSelectVisible" @handleClose="selectVisible" @confirm="handleCategoryConfirm"></SelectDialog>
<SelectDialog v-if="isSelectVisible" :dialogConfig="dialogConfig" :batchForm="batchForm" :editFormData="batchEditForm" :editRules="batchEditRules" :visible="isSelectVisible" @handleClose="selectVisible" @confirm="handleCategoryConfirm"></SelectDialog>
</div>
</template>
......@@ -72,6 +72,11 @@ export default {
isConversionRate: false,
isSelectVisible: false,
batchForm: {},
dialogConfig: {
title: '前端分类',
okText: '确定',
cancelText: '取消'
},
batchEditForm: [],
batchEditRules: {
goodsFrontendCategory: [{ required: true, message: '请选择前端分类', trigger: 'change' }]
......@@ -570,6 +575,7 @@ export default {
this.batchEditForm = [
{
label: '前端分类:',
placeholder: '请选择前端分类',
name: 'goodsFrontendCategory',
type: 'select',
optionList: res,
......
......@@ -37,7 +37,7 @@
</div>
<GLDialog :title="dialogConfig.title" mode="mid" :visible.sync="isSelectVisible" :show-close="true" :before-close="selectVisible" @onOk="handleAllowOrRefuse('allow')" @onCancel="dialogConfig.btnOpt == 'check' ? handleAllowOrRefuse('refuse') : selectVisible()" :okText="dialogConfig.okText" :cancelText="dialogConfig.cancelText">
<div v-loading="batchLoading">
<glsxCombiForm ref="editFormRef" isEdit="true" :formObj="batchForm" :formData="batchEditForm" :formRules="batchEditRules" formRef="editChildRef"></glsxCombiForm>
<glsxCombiForm ref="editFormRef" isEdit="true" labelPaddingRight="0" :formObj="batchForm" :formData="batchEditForm" :formRules="batchEditRules" formRef="editChildRef"></glsxCombiForm>
</div>
</GLDialog>
</div>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!