Commit b43a4897 by zhangquan

ui走查

1 parent 3098600d
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<span class="combi-form-label" :style="{ width: item.labelWidth || labelWidth }">{{ item.label }}:</span> <span class="combi-form-label" :style="{ width: item.labelWidth || labelWidth }">{{ item.label }}:</span>
</span> </span>
<slot v-if="item.addHtml" :name="item.addHtml" :scope="item"></slot> <slot v-if="item.addHtml" :name="item.addHtml" :scope="item"></slot>
<span v-else-if="item.type === 'showTxt'">{{ formObj[item.name] }}</span> <span v-else-if="item.type === 'showTxt'">{{ !formObj[item.name] && formObj[item.name]!==0 ? '--' : formObj[item.name] }}</span>
<div v-else-if="item.type === 'input'"> <div v-else-if="item.type === 'input'">
<el-input :placeholder="item.placeholder || '请输入' + item.label" v-bind="item.attrs ? item.attrs : {}" v-on="item.listeners ? item.listeners : {}" :prefix-icon="item.prefixIcon" v-model.trim="formObj[item.name]" :disabled="item.isDisabled" :maxlength="item.maxlength" :clearable="item.isClear || false" :type="item.inputType || 'text'" :rows="item.rows || 2" :style="{ width: item.width || defaultWidth }" :show-word-limit="item.showLimit || false" :show-password="item.showPass || false" @keydown.native="e => handleInputDown(e, item)"> <el-input :placeholder="item.placeholder || '请输入' + item.label" v-bind="item.attrs ? item.attrs : {}" v-on="item.listeners ? item.listeners : {}" :prefix-icon="item.prefixIcon" v-model.trim="formObj[item.name]" :disabled="item.isDisabled" :maxlength="item.maxlength" :clearable="item.isClear || false" :type="item.inputType || 'text'" :rows="item.rows || 2" :style="{ width: item.width || defaultWidth }" :show-word-limit="item.showLimit || false" :show-password="item.showPass || false" @keydown.native="e => handleInputDown(e, item)">
<span v-if="item.prepend" slot="prepend">{{ item.prepend }}</span> <span v-if="item.prepend" slot="prepend">{{ item.prepend }}</span>
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
<div v-else-if="item.type === 'radio'"> <div v-else-if="item.type === 'radio'">
<el-radio-group v-model="formObj[item.name]" v-bind="item.attrs ? item.attrs : {}" v-on="item.listeners ? item.listeners : {}" :disabled="item.isDisabled" @change="item.handleRadioChange"> <el-radio-group v-model="formObj[item.name]" v-bind="item.attrs ? item.attrs : {}" v-on="item.listeners ? item.listeners : {}" :disabled="item.isDisabled" @change="item.handleRadioChange">
<el-radio v-for="subItem in item.optionList" :key="subItem[item.optionId]" :disabled="subItem.isDisabled" :label="subItem[item.optionId]"> <el-radio v-for="subItem in item.optionList" :key="subItem[item.optionId]" :disabled="subItem.isDisabled" :label="subItem[item.optionId]">
{{ subItem[item.optionLabel] }} {{subItem[item.optionLabel]}}
<slot :name="subItem.suffixSonSlot" :scope="subItem"></slot> <slot :name="subItem.suffixSonSlot" :scope="subItem"></slot>
</el-radio> </el-radio>
</el-radio-group> </el-radio-group>
......
...@@ -193,6 +193,7 @@ export default{ ...@@ -193,6 +193,7 @@ export default{
margin-right: 1px; margin-right: 1px;
color: #666666; color: #666666;
letter-spacing: 0; letter-spacing: 0;
font-size: 14px;
text-align: center; text-align: center;
cursor: pointer; cursor: pointer;
.del-icon{ .del-icon{
......
...@@ -69,6 +69,7 @@ export default { ...@@ -69,6 +69,7 @@ export default {
{ {
label: '频道名称', label: '频道名称',
prop: 'channelName', prop: 'channelName',
width: 150,
formatter: cellValue => { formatter: cellValue => {
return cellValue.channelName || '--' return cellValue.channelName || '--'
} }
......
<template> <template>
<div class="goods-ctnr"> <div class="goods-ctnr">
<div class="global-title">{{!routeInfo.id ? '新增': disabled ? '查看' : '编辑'}}商品</div>
<div class="container"> <div class="container">
<glsx-combi-form :isInline="false" class="glsx-combi-form" ref="baseInfoRef" labelWidth="154px" defaultWidth="432px" :formObj.sync="formObj" :formData="formData" :formRules="myRule"> <glsx-combi-form :isInline="false" class="glsx-combi-form" ref="baseInfoRef" labelWidth="154px" defaultWidth="432px" :formObj.sync="formObj" :formData="formData" :formRules="myRule">
<div slot="selectGoodsSlot"> <div slot="selectGoodsSlot">
...@@ -506,6 +507,13 @@ export default { ...@@ -506,6 +507,13 @@ export default {
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
.container{ .container{
.glsx-combi-form{
/deep/ .el-radio-group{
.el-radio__label{
padding-left: 8px;
}
}
}
background-color: #fff; background-color: #fff;
.disabled-class{ .disabled-class{
cursor: not-allowed; cursor: not-allowed;
...@@ -513,7 +521,7 @@ export default { ...@@ -513,7 +521,7 @@ export default {
} }
.goods-wrap{ .goods-wrap{
padding: 20px 20px 1px; padding: 20px 20px 1px;
width: 866px; width: 1000px;
background: #F9F9F9; background: #F9F9F9;
border-radius: 4px; border-radius: 4px;
.upload-calss{ .upload-calss{
......
<template> <template>
<div class="goods-ctnr"> <div class="goods-ctnr">
<div class="global-title">{{!routeInfo.id ? '新增': disabled ? '查看' : '编辑'}}商品</div>
<div class="container"> <div class="container">
<glsx-combi-form :isInline="false" class="glsx-combi-form" ref="baseInfoRef" labelWidth="154px" defaultWidth="432px" :formObj.sync="formObj" :formData="formData" :formRules="myRule"> <glsx-combi-form :isInline="false" class="glsx-combi-form" ref="baseInfoRef" labelWidth="154px" defaultWidth="432px" :formObj.sync="formObj" :formData="formData" :formRules="myRule">
<div slot="selectBtnSlot"> <div slot="selectBtnSlot">
...@@ -82,6 +83,7 @@ export default { ...@@ -82,6 +83,7 @@ export default {
merchantDialogVisible: false, merchantDialogVisible: false,
disabled: false, disabled: false,
goodsInfo: {}, goodsInfo: {},
routeInfo: {},
posterOptions: { posterOptions: {
width: '104px', width: '104px',
height: '104px', height: '104px',
...@@ -103,12 +105,12 @@ export default { ...@@ -103,12 +105,12 @@ export default {
isDisabled: false isDisabled: false
}, },
{ {
label: '售价(元)', label: '售价(元)',
name: 'retailPrice', name: 'retailPrice',
type: 'showTxt' type: 'showTxt'
}, },
{ {
label: '最低售价(元)', label: '最低售价(元)',
name: 'minSellPrice', name: 'minSellPrice',
type: 'showTxt' type: 'showTxt'
}, },
...@@ -413,13 +415,20 @@ export default { ...@@ -413,13 +415,20 @@ export default {
<style scoped lang="scss"> <style scoped lang="scss">
.container{ .container{
background-color: #fff; background-color: #fff;
.glsx-combi-form{
/deep/ .el-radio-group{
.el-radio__label{
padding-left: 2px;
}
}
}
.disabled-class{ .disabled-class{
cursor: not-allowed; cursor: not-allowed;
color: #666666; color: #666666;
} }
.goods-wrap{ .goods-wrap{
padding: 20px 20px 1px; padding: 20px 20px 1px;
width: 866px; width: 970px;
background: #F9F9F9; background: #F9F9F9;
border-radius: 4px; border-radius: 4px;
.upload-calss{ .upload-calss{
...@@ -437,8 +446,7 @@ export default { ...@@ -437,8 +446,7 @@ export default {
} }
.selected-table { .selected-table {
margin-top: 10px; margin-top: 10px;
width: 100%; width: 970px;
max-width: 1100px;
.el-button--text{ .el-button--text{
padding: 0; padding: 0;
} }
......
...@@ -28,12 +28,12 @@ ...@@ -28,12 +28,12 @@
<span>{{ filterData(scope.scope).slice(0, 1).join('、') }}</span> <span>{{ filterData(scope.scope).slice(0, 1).join('、') }}</span>
<el-popover <el-popover
placement="top" placement="top"
width="400" width="fit-content"
trigger="hover"> trigger="hover">
<div v-for="(item,index) in filterData(scope.scope)" :key="index"> <div v-for="(item,index) in filterData(scope.scope)" :key="index">
{{item}} {{item}}
</div> </div>
<span class="more-info" slot="reference">...[{{ scope.scope.saleMerchantList.length }}]</span> <span class="more-info" slot="reference">...({{ scope.scope.saleMerchantList.length }})</span>
</el-popover> </el-popover>
</template> </template>
<template v-else> <template v-else>
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
<span>{{ filterData(scope.scope).slice(0, 1).join('、') }}</span> <span>{{ filterData(scope.scope).slice(0, 1).join('、') }}</span>
<el-popover <el-popover
placement="top" placement="top"
width="400" width="fit-content"
trigger="hover"> trigger="hover">
<div v-for="(item,index) in filterData(scope.scope)" :key="index"> <div v-for="(item,index) in filterData(scope.scope)" :key="index">
{{item}} {{item}}
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
<div v-for="(item,index) in filterData(scope.scope,1)" :key="index"> <div v-for="(item,index) in filterData(scope.scope,1)" :key="index">
{{item}} {{item}}
</div> </div>
<span class="more-info" slot="reference">...[{{ scope.scope.saleMerchantList.length }}]</span> <span class="more-info" slot="reference">...({{ scope.scope.saleMerchantList.length }})</span>
</el-popover> </el-popover>
</template> </template>
<template v-else> <template v-else>
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<div class="info">{{ tabPaneText }}列表</div> <div class="info">{{ tabPaneText }}列表</div>
<div> <div>
<el-button type="primary" size="small" @click="handleEdit">频道设置</el-button> <el-button type="primary" size="small" @click="handleEdit">频道设置</el-button>
<el-button type="primary" size="small" @click="handleAdd">编辑频道</el-button> <el-button type="primary" :plain="activeName==5 || activeName==6" size="small" @click="handleAdd">编辑频道</el-button>
<el-button v-if="activeName!=5 && activeName!=6" type="primary" plain size="small" @click="handleAddContent()">新增内容</el-button> <el-button v-if="activeName!=5 && activeName!=6" type="primary" plain size="small" @click="handleAddContent()">新增内容</el-button>
</div> </div>
</div> </div>
...@@ -352,6 +352,7 @@ export default { ...@@ -352,6 +352,7 @@ export default {
{ {
label: '操作人', label: '操作人',
prop: 'updatedBy', prop: 'updatedBy',
width: 120,
filter: '1,2,3,4,5,6' filter: '1,2,3,4,5,6'
}, },
// { // {
...@@ -625,7 +626,7 @@ export default { ...@@ -625,7 +626,7 @@ export default {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
margin: 0 0 18px 0; margin: 0 0 10px 0;
.info { .info {
font-weight: 600; font-weight: 600;
font-size: 16px; font-size: 16px;
......
...@@ -332,7 +332,7 @@ export default { ...@@ -332,7 +332,7 @@ export default {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
margin: 0 0 18px 0; margin: 0 0 10px 0;
.info { .info {
font-weight: 600; font-weight: 600;
font-size: 16px; font-size: 16px;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!