Commit b43a4897 by zhangquan

ui走查

1 parent 3098600d
......@@ -15,7 +15,7 @@
<span class="combi-form-label" :style="{ width: item.labelWidth || labelWidth }">{{ item.label }}:</span>
</span>
<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'">
<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>
......@@ -34,7 +34,7 @@
<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 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>
</el-radio>
</el-radio-group>
......
......@@ -193,6 +193,7 @@ export default{
margin-right: 1px;
color: #666666;
letter-spacing: 0;
font-size: 14px;
text-align: center;
cursor: pointer;
.del-icon{
......
......@@ -69,6 +69,7 @@ export default {
{
label: '频道名称',
prop: 'channelName',
width: 150,
formatter: cellValue => {
return cellValue.channelName || '--'
}
......
<template>
<div class="goods-ctnr">
<div class="global-title">{{!routeInfo.id ? '新增': disabled ? '查看' : '编辑'}}商品</div>
<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">
<div slot="selectGoodsSlot">
......@@ -506,6 +507,13 @@ export default {
</script>
<style scoped lang="scss">
.container{
.glsx-combi-form{
/deep/ .el-radio-group{
.el-radio__label{
padding-left: 8px;
}
}
}
background-color: #fff;
.disabled-class{
cursor: not-allowed;
......@@ -513,7 +521,7 @@ export default {
}
.goods-wrap{
padding: 20px 20px 1px;
width: 866px;
width: 1000px;
background: #F9F9F9;
border-radius: 4px;
.upload-calss{
......
<template>
<div class="goods-ctnr">
<div class="global-title">{{!routeInfo.id ? '新增': disabled ? '查看' : '编辑'}}商品</div>
<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">
<div slot="selectBtnSlot">
......@@ -82,6 +83,7 @@ export default {
merchantDialogVisible: false,
disabled: false,
goodsInfo: {},
routeInfo: {},
posterOptions: {
width: '104px',
height: '104px',
......@@ -103,12 +105,12 @@ export default {
isDisabled: false
},
{
label: '售价(元)',
label: '售价(元)',
name: 'retailPrice',
type: 'showTxt'
},
{
label: '最低售价(元)',
label: '最低售价(元)',
name: 'minSellPrice',
type: 'showTxt'
},
......@@ -413,13 +415,20 @@ export default {
<style scoped lang="scss">
.container{
background-color: #fff;
.glsx-combi-form{
/deep/ .el-radio-group{
.el-radio__label{
padding-left: 2px;
}
}
}
.disabled-class{
cursor: not-allowed;
color: #666666;
}
.goods-wrap{
padding: 20px 20px 1px;
width: 866px;
width: 970px;
background: #F9F9F9;
border-radius: 4px;
.upload-calss{
......@@ -437,8 +446,7 @@ export default {
}
.selected-table {
margin-top: 10px;
width: 100%;
max-width: 1100px;
width: 970px;
.el-button--text{
padding: 0;
}
......
......@@ -28,12 +28,12 @@
<span>{{ filterData(scope.scope).slice(0, 1).join('、') }}</span>
<el-popover
placement="top"
width="400"
width="fit-content"
trigger="hover">
<div v-for="(item,index) in filterData(scope.scope)" :key="index">
{{item}}
</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>
</template>
<template v-else>
......
......@@ -23,7 +23,7 @@
<span>{{ filterData(scope.scope).slice(0, 1).join('、') }}</span>
<el-popover
placement="top"
width="400"
width="fit-content"
trigger="hover">
<div v-for="(item,index) in filterData(scope.scope)" :key="index">
{{item}}
......@@ -46,7 +46,7 @@
<div v-for="(item,index) in filterData(scope.scope,1)" :key="index">
{{item}}
</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>
</template>
<template v-else>
......
......@@ -14,7 +14,7 @@
<div class="info">{{ tabPaneText }}列表</div>
<div>
<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>
</div>
</div>
......@@ -352,6 +352,7 @@ export default {
{
label: '操作人',
prop: 'updatedBy',
width: 120,
filter: '1,2,3,4,5,6'
},
// {
......@@ -625,7 +626,7 @@ export default {
display: flex;
justify-content: space-between;
align-items: center;
margin: 0 0 18px 0;
margin: 0 0 10px 0;
.info {
font-weight: 600;
font-size: 16px;
......
......@@ -332,7 +332,7 @@ export default {
display: flex;
justify-content: space-between;
align-items: center;
margin: 0 0 18px 0;
margin: 0 0 10px 0;
.info {
font-weight: 600;
font-size: 16px;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!