Commit 8f67f625 by chenwq

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

- 为多个表单字段添加冒号后缀统一格式
- 调整表单元素间距和边距样式
- 修复商品编辑页面的布局问题
- 优化对话框组件的样式和布局
- 统一表单组件的标签宽度和间距
1 parent f4c2bd2c
...@@ -290,6 +290,10 @@ html { ...@@ -290,6 +290,10 @@ html {
margin-bottom: 60px; margin-bottom: 60px;
} }
.microStore .m-b-40 {
margin-bottom: 40px;
}
.microStore .m-r-8 { .microStore .m-r-8 {
margin-right: 8px; margin-right: 8px;
} }
...@@ -376,6 +380,7 @@ html { ...@@ -376,6 +380,7 @@ html {
line-height: 20px; line-height: 20px;
font-size: 12px; font-size: 12px;
color: #999999; color: #999999;
margin-top: 8px;
} }
.microStore .p-relative { .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 { ...@@ -133,7 +133,7 @@ export default {
}, },
props: { props: {
formDisable:{ formDisable: {
type: Boolean, type: Boolean,
default: false default: false
}, },
...@@ -172,7 +172,7 @@ export default { ...@@ -172,7 +172,7 @@ export default {
}, },
formObj: { formObj: {
type: Object, type: Object,
default: () => {} default: () => { }
}, },
hasTitle: { hasTitle: {
type: Boolean, type: Boolean,
...@@ -180,16 +180,16 @@ export default { ...@@ -180,16 +180,16 @@ export default {
}, },
formRules: { formRules: {
type: Object, type: Object,
default: () => {} default: () => { }
}, },
// 搜索+输入框/搜索组合组件,搜索栏绑值 // 搜索+输入框/搜索组合组件,搜索栏绑值
searchSelectObj: { searchSelectObj: {
type: Object, type: Object,
default: () => {} default: () => { }
} }
}, },
mounted() {}, mounted() { },
methods: { methods: {
// 选择框-添加其他属性 // 选择框-添加其他属性
...@@ -327,7 +327,7 @@ export default { ...@@ -327,7 +327,7 @@ export default {
.glsx-combi-form .tips-label { .glsx-combi-form .tips-label {
margin-right: 20px; margin-right: 20px;
} }
.glsx-combi-form .tips-icon { .glsx-combi-form .tips-icon {
position: absolute; position: absolute;
display: inline-block; display: inline-block;
width: 12px; width: 12px;
...@@ -339,7 +339,7 @@ export default { ...@@ -339,7 +339,7 @@ export default {
border: 1px dotted #7f7f7f; border: 1px dotted #7f7f7f;
border-radius: 50%; border-radius: 50%;
} }
.glsx-combi-form .tips-icon::before { .glsx-combi-form .tips-icon::before {
content: '?'; content: '?';
position: absolute; position: absolute;
width: 8px; width: 8px;
...@@ -371,6 +371,7 @@ export default { ...@@ -371,6 +371,7 @@ export default {
background-color: #f7f7f7; background-color: #f7f7f7;
border: 1px dotted #d9d9d9; border: 1px dotted #d9d9d9;
cursor: pointer; cursor: pointer;
border-radius: 4px;
} }
.glsx-combi-form .activity-Input { .glsx-combi-form .activity-Input {
......
...@@ -262,14 +262,14 @@ export default { ...@@ -262,14 +262,14 @@ export default {
}, },
batchEditForm: [ batchEditForm: [
{ {
label: '快递公司', label: '快递公司:',
name: 'expressName', name: 'expressName',
type: 'input', type: 'input',
placeholder: '请输入快递公司', placeholder: '请输入快递公司',
maxlength: 20 maxlength: 20
}, },
{ {
label: '快递单号', label: '快递单号:',
name: 'expressNo', name: 'expressNo',
type: 'input', type: 'input',
placeholder: '请输入快递单号', placeholder: '请输入快递单号',
...@@ -393,7 +393,7 @@ export default { ...@@ -393,7 +393,7 @@ export default {
} }
.phone { .phone {
font-size: 10px; font-size: 12px;
color: #999999; color: #999999;
} }
} }
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<div :class="item.title ? 'item-box' : ''" v-for="(item, index) in externalFormList" :key="index"> <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> <p class="edit-title" v-if="item.title">{{ item.title }}</p>
<div class="flex pad-20"> <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"> <div slot="qrcodeUrl" slot-scope="scope" :style="{ width: '120px', 'text-align': 'center' }" class="flex-top">
<img class="img-104" :src="editForm[scope.scope.name]" /> <img class="img-104" :src="editForm[scope.scope.name]" />
<el-button type="text" @click="handleImgDown(editForm[scope.scope.name])">下载</el-button> <el-button type="text" @click="handleImgDown(editForm[scope.scope.name])">下载</el-button>
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
<el-tab-pane v-for="(subItem, subIndex) in editForm.specialEvents" :key="subIndex" :label="subItem.eventName" :name="subIndex"> <el-tab-pane v-for="(subItem, subIndex) in editForm.specialEvents" :key="subIndex" :label="subItem.eventName" :name="subIndex">
<div class="item-box"> <div class="item-box">
<div class="flex pad-20"> <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"> <template slot="entryImage">
<p class="edit-tips">格式为jpg, jpeg, png,大小不超过1M</p> <p class="edit-tips">格式为jpg, jpeg, png,大小不超过1M</p>
</template> </template>
...@@ -271,7 +271,7 @@ export default { ...@@ -271,7 +271,7 @@ export default {
} }
}, },
{ {
label: '商品', label: '商品:',
name: 'goodsIdList', name: 'goodsIdList',
addHtml: 'selectProBtn' addHtml: 'selectProBtn'
}, },
...@@ -525,7 +525,7 @@ export default { ...@@ -525,7 +525,7 @@ export default {
background: #fff; background: #fff;
} }
.home-set .home-set-form .item-box .pad-20 { .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 { .home-set .home-set-form .item-box .home-set-tabs .el-tabs__content {
border: 1px solid #e5e5e5; border: 1px solid #e5e5e5;
...@@ -612,7 +612,6 @@ export default { ...@@ -612,7 +612,6 @@ export default {
background-color: #f7f7f7; background-color: #f7f7f7;
border: 1px dotted #d9d9d9; border: 1px dotted #d9d9d9;
cursor: pointer; cursor: pointer;
margin-top: 10px;
} }
.img-14 { .img-14 {
width: 14px; width: 14px;
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm> <GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
</div> </div>
<div class="operate-wrap"> <div class="operate-wrap">
<span class="table-title"></span> <span class="table-title">浏览明细</span>
<div class="operate-btn"> <div class="operate-btn">
<el-button :size="size" @click="handleExport()">导出</el-button> <el-button :size="size" @click="handleExport()">导出</el-button>
</div> </div>
......
...@@ -44,7 +44,7 @@ export default { ...@@ -44,7 +44,7 @@ export default {
}, },
batchEditForm: [ batchEditForm: [
{ {
label: '分类名称', label: '分类名称:',
name: 'categoryName', name: 'categoryName',
type: 'input', type: 'input',
placeholder: '请输入分类名称', placeholder: '请输入分类名称',
......
<template> <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"> <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> </div>
</GLDialog> </GLDialog>
</template> </template>
...@@ -40,6 +40,10 @@ export default { ...@@ -40,6 +40,10 @@ export default {
loading: { loading: {
type: Boolean, type: Boolean,
default: false default: false
},
labelWidth: {
type: String,
default: '154px'
} }
}, },
...@@ -66,32 +70,24 @@ export default { ...@@ -66,32 +70,24 @@ export default {
} }
</script> </script>
<style lang="scss"> <style lang="scss">
.dialog-wrap { .select-dialog {
display: flex; .dialog-wrap {
// align-items: center; display: flex;
justify-content: center; align-items: center;
height: 100%; justify-content: center;
width: 100%; height: 100%;
width: 100%;
span {
white-space: nowrap;
margin-right: 8px;
}
// /deep/ .el-input {
// &,
// .el-input__inner {
// width: 100px;
// }
// .el-input-group__append { span {
// box-sizing: border-box; white-space: nowrap;
// padding: 0 11px; }
// span { /deep/ .el-input {
// margin: 0; &,
// } .el-input__inner {
// } width: 100px;
// } }
}
}
} }
</style> </style>
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<div class="home-set-form flex-grow"> <div class="home-set-form flex-grow">
<div v-for="(item, index) in externalFormList" :key="index"> <div v-for="(item, index) in externalFormList" :key="index">
<p class="edit-title">{{ item.title }}</p> <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"> <template slot="describeBtn">
<el-button :disabled="isDisabled" type="default" @click="handleDescribeImgAdd">+添加图片</el-button> <el-button :disabled="isDisabled" type="default" @click="handleDescribeImgAdd">+添加图片</el-button>
<span class="edit-tips m-l-20">最多可添加10张图片</span> <span class="edit-tips m-l-20">最多可添加10张图片</span>
...@@ -115,7 +115,7 @@ ...@@ -115,7 +115,7 @@
<p class="edit-tips">作为商品划线展示的价格</p> <p class="edit-tips">作为商品划线展示的价格</p>
</template> </template>
<template slot="serviceDescHtml"> <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> </template>
</glsx-combi-form> </glsx-combi-form>
</div> </div>
...@@ -153,7 +153,7 @@ ...@@ -153,7 +153,7 @@
<div :class="{ 'inner-block': !!nameToValSpecsList.length || editForm.deliveryType == 2 }" style="margin-bottom: 8px;"> <div :class="{ 'inner-block': !!nameToValSpecsList.length || editForm.deliveryType == 2 }" style="margin-bottom: 8px;">
<div class="line" v-if="nameToValSpecsList.length"> <div class="line" v-if="nameToValSpecsList.length">
<span class="line-label">已选</span> <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>
<div v-show="editForm.deliveryType == 2" class="line" style="display: flex;"> <div v-show="editForm.deliveryType == 2" class="line" style="display: flex;">
<span class="line-label">配送</span> <span class="line-label">配送</span>
...@@ -164,8 +164,8 @@ ...@@ -164,8 +164,8 @@
</div> </div>
<div v-show="editForm.deliveryType == 2" class="line"> <div v-show="editForm.deliveryType == 2" class="line">
<span class="line-label">运费</span> <span class="line-label">运费</span>
<span v-show="editForm.deliveryType == 1" class="line-txt">免运费</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">{{ editForm.expressFee }}元</span> <span v-show="editForm.deliveryType == 2" class="line-txt" style="display: inline-block; width: 150px">{{ editForm.expressFee }}元</span>
</div> </div>
</div> </div>
<div class="inner-block" style="margin-bottom: 0;"> <div class="inner-block" style="margin-bottom: 0;">
...@@ -1130,18 +1130,18 @@ export default { ...@@ -1130,18 +1130,18 @@ export default {
position: absolute; position: absolute;
width: 252px; width: 252px;
height: 35px; height: 35px;
top: 470px; top: 505px;
left: 19px; left: 18px;
} }
.edit-pro .wechat-container .wechant-back { .edit-pro .wechat-container .wechant-back {
/* border: 1px solid #D8D8D8; */ /* border: 1px solid #D8D8D8; */
} }
.edit-pro .wechat-container .wechat-inner-box { .edit-pro .wechat-container .wechat-inner-box {
position: absolute; position: absolute;
top: 56px; top: 38px;
left: 19px; left: 18px;
width: 253px; width: 253px;
height: 413px; height: 477px;
background-color: #f7f7f7; background-color: #f7f7f7;
overflow-y: scroll; overflow-y: scroll;
overflow-x: hidden; overflow-x: hidden;
...@@ -1178,9 +1178,12 @@ export default { ...@@ -1178,9 +1178,12 @@ export default {
height: 50px; height: 50px;
line-height: 50px; line-height: 50px;
border-bottom: 1px solid #eff0f2; border-bottom: 1px solid #eff0f2;
display: flex;
justify-content: center;
} }
.edit-pro .wechat-container .line-label { .edit-pro .wechat-container .line-label {
display: inline-block;
font-size: 12px; font-size: 12px;
color: #656566; color: #656566;
margin-right: 44px; margin-right: 44px;
...@@ -1279,7 +1282,6 @@ export default { ...@@ -1279,7 +1282,6 @@ export default {
background-color: #f7f7f7; background-color: #f7f7f7;
border: 1px dotted #d9d9d9; border: 1px dotted #d9d9d9;
cursor: pointer; cursor: pointer;
margin-top: 10px;
} }
.microStore .muti-imgs { .microStore .muti-imgs {
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<div class="home-set-form flex-grow"> <div class="home-set-form flex-grow">
<div v-for="(item, index) in externalFormList" :key="index"> <div v-for="(item, index) in externalFormList" :key="index">
<p class="edit-title">{{ item.title }}</p> <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"> <template slot="describeBtn">
<el-button :disabled="isDisabled" type="default" @click="handleDescribeImgAdd">+添加图片</el-button> <el-button :disabled="isDisabled" type="default" @click="handleDescribeImgAdd">+添加图片</el-button>
<span class="edit-tips m-l-20">最多可添加10张图片</span> <span class="edit-tips m-l-20">最多可添加10张图片</span>
...@@ -115,7 +115,7 @@ ...@@ -115,7 +115,7 @@
<p class="edit-tips">作为商品划线展示的价格</p> <p class="edit-tips">作为商品划线展示的价格</p>
</template> </template>
<template slot="serviceDescHtml"> <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> </template>
</glsx-combi-form> </glsx-combi-form>
</div> </div>
...@@ -153,7 +153,7 @@ ...@@ -153,7 +153,7 @@
<div :class="{ 'inner-block': !!nameToValSpecsList.length || editForm.deliveryType == 2 }" style="margin-bottom: 8px;"> <div :class="{ 'inner-block': !!nameToValSpecsList.length || editForm.deliveryType == 2 }" style="margin-bottom: 8px;">
<div class="line" v-if="nameToValSpecsList.length"> <div class="line" v-if="nameToValSpecsList.length">
<span class="line-label">已选</span> <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>
<div v-show="editForm.deliveryType == 2" class="line" style="display: flex;"> <div v-show="editForm.deliveryType == 2" class="line" style="display: flex;">
<span class="line-label">配送</span> <span class="line-label">配送</span>
...@@ -164,8 +164,8 @@ ...@@ -164,8 +164,8 @@
</div> </div>
<div v-show="editForm.deliveryType == 2" class="line"> <div v-show="editForm.deliveryType == 2" class="line">
<span class="line-label">运费</span> <span class="line-label">运费</span>
<span v-show="editForm.deliveryType == 1" class="line-txt">免运费</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">{{ editForm.expressFee }}元</span> <span v-show="editForm.deliveryType == 2" class="line-txt" style="display: inline-block; width: 150px">{{ editForm.expressFee }}元</span>
</div> </div>
</div> </div>
<div class="inner-block" style="margin-bottom: 0;"> <div class="inner-block" style="margin-bottom: 0;">
...@@ -1130,18 +1130,18 @@ export default { ...@@ -1130,18 +1130,18 @@ export default {
position: absolute; position: absolute;
width: 252px; width: 252px;
height: 35px; height: 35px;
top: 470px; top: 505px;
left: 19px; left: 18px;
} }
.edit-pro .wechat-container .wechant-back { .edit-pro .wechat-container .wechant-back {
/* border: 1px solid #D8D8D8; */ /* border: 1px solid #D8D8D8; */
} }
.edit-pro .wechat-container .wechat-inner-box { .edit-pro .wechat-container .wechat-inner-box {
position: absolute; position: absolute;
top: 56px; top: 38px;
left: 19px; left: 18px;
width: 253px; width: 253px;
height: 413px; height: 477px;
background-color: #f7f7f7; background-color: #f7f7f7;
overflow-y: scroll; overflow-y: scroll;
overflow-x: hidden; overflow-x: hidden;
...@@ -1178,9 +1178,12 @@ export default { ...@@ -1178,9 +1178,12 @@ export default {
height: 50px; height: 50px;
line-height: 50px; line-height: 50px;
border-bottom: 1px solid #eff0f2; border-bottom: 1px solid #eff0f2;
display: flex;
justify-content: center;
} }
.edit-pro .wechat-container .line-label { .edit-pro .wechat-container .line-label {
display: inline-block;
font-size: 12px; font-size: 12px;
color: #656566; color: #656566;
margin-right: 44px; margin-right: 44px;
...@@ -1279,7 +1282,6 @@ export default { ...@@ -1279,7 +1282,6 @@ export default {
background-color: #f7f7f7; background-color: #f7f7f7;
border: 1px dotted #d9d9d9; border: 1px dotted #d9d9d9;
cursor: pointer; cursor: pointer;
margin-top: 10px;
} }
.microStore .muti-imgs { .microStore .muti-imgs {
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm> <GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
</div> </div>
<div class="operate-wrap"> <div class="operate-wrap">
<span class="table-title"></span> <span class="table-title">访客明细</span>
<div class="operate-btn"> <div class="operate-btn">
<el-button :size="size" @click="handleExport()">导出</el-button> <el-button :size="size" @click="handleExport()">导出</el-button>
</div> </div>
......
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
</div> </div>
</GLTable> </GLTable>
<setPriceDialog v-if="isVisible" :echoParams="echoParams" :isConversionRate="isConversionRate" :visible="isVisible" @handleClose="handleClose" @confirm="confirmPriceChange"></setPriceDialog> <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> </div>
</template> </template>
...@@ -72,6 +72,11 @@ export default { ...@@ -72,6 +72,11 @@ export default {
isConversionRate: false, isConversionRate: false,
isSelectVisible: false, isSelectVisible: false,
batchForm: {}, batchForm: {},
dialogConfig: {
title: '前端分类',
okText: '确定',
cancelText: '取消'
},
batchEditForm: [], batchEditForm: [],
batchEditRules: { batchEditRules: {
goodsFrontendCategory: [{ required: true, message: '请选择前端分类', trigger: 'change' }] goodsFrontendCategory: [{ required: true, message: '请选择前端分类', trigger: 'change' }]
...@@ -570,6 +575,7 @@ export default { ...@@ -570,6 +575,7 @@ export default {
this.batchEditForm = [ this.batchEditForm = [
{ {
label: '前端分类:', label: '前端分类:',
placeholder: '请选择前端分类',
name: 'goodsFrontendCategory', name: 'goodsFrontendCategory',
type: 'select', type: 'select',
optionList: res, optionList: res,
......
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
</div> </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"> <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"> <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> </div>
</GLDialog> </GLDialog>
</div> </div>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!