Commit 7a36af32 by 前端

Merge branch 'sass+v4.25.1' of http://192.168.3.233:8090/saas/scrm-micro-discove…

…r into xuyl_v3.13.1_backup
2 parents 4ae96e33 893acda1
......@@ -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">
......@@ -7,8 +8,9 @@
</div>
<div slot="goodsInfoSlot" class="goods-wrap">
<glsx-combi-form :isInline="false" ref="goodsInfoRef" labelWidth="154px" defaultWidth="432px" :formObj.sync="formObj" :formData="goodsFormData" :formRules="goodsRule">
<div slot="uploadSlot">
<div slot="uploadSlot" class="upload-calss">
<glsx-preview :picOptions="posterOptions" :imageUrlArr="formObj.coverList" @change="changeChannelImg"></glsx-preview>
<span class="tip">建议尺寸750*750,图片格式为jpg,jpeg,png,大小2M以内</span>
</div>
</glsx-combi-form>
</div>
......@@ -505,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;
......@@ -512,9 +521,21 @@ export default {
}
.goods-wrap{
padding: 20px 20px 1px;
width: 866px;
width: 1000px;
background: #F9F9F9;
border-radius: 4px;
.upload-calss{
display: flex;
.tip{
height: 20px;
line-height: 20px;
align-self: flex-end;
font-weight: 400;
font-size: 14px;
color: #999999;
margin-left: 10px;
}
}
}
.category-class{
width: 432px;
......
<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">
......@@ -7,8 +8,9 @@
</div>
<div slot="goodsInfoSlot" class="goods-wrap">
<glsx-combi-form :isInline="false" ref="goodsInfoRef" labelWidth="154px" defaultWidth="432px" :formObj.sync="formObj" :formData="goodsFormData" :formRules="goodsRule">
<div slot="uploadSlot">
<div slot="uploadSlot" class="upload-calss">
<glsx-preview :picOptions="posterOptions" :imageUrlArr="formObj.coverList" @change="changeChannelImg"></glsx-preview>
<span class="tip">建议尺寸750*750,图片格式为jpg,jpeg,png,大小2M以内</span>
</div>
</glsx-combi-form>
</div>
......@@ -81,6 +83,7 @@ export default {
merchantDialogVisible: false,
disabled: false,
goodsInfo: {},
routeInfo: {},
posterOptions: {
width: '104px',
height: '104px',
......@@ -102,12 +105,12 @@ export default {
isDisabled: false
},
{
label: '售价(元)',
label: '售价(元)',
name: 'retailPrice',
type: 'showTxt'
},
{
label: '最低售价(元)',
label: '最低售价(元)',
name: 'minSellPrice',
type: 'showTxt'
},
......@@ -248,7 +251,8 @@ export default {
name: 'introduction',
type: 'input',
inputType: 'textarea',
isDisabled: false
isDisabled: false,
maxlength: 200
},
],
selectedtableParams: {
......@@ -412,20 +416,38 @@ 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{
display: flex;
.tip{
height: 20px;
line-height: 20px;
align-self: flex-end;
font-weight: 400;
font-size: 14px;
color: #999999;
margin-left: 10px;
}
}
}
.selected-table {
margin-top: 10px;
width: 100%;
max-width: 1100px;
width: 970px;
.el-button--text{
padding: 0;
}
......
......@@ -77,7 +77,6 @@ export default {
},
created() {
this.copyList = JSON.parse(JSON.stringify(this.selectedList))
console.log(this.copyList)
},
methods: {
handleOk() {
......@@ -116,13 +115,12 @@ export default {
setTableFinishFun() {
this.copyList.forEach(row => {
this.$nextTick(() => {
let idx = this.$refs.tableRef.$refs[this.tableParams.mutiSelectName + 'MutiTable'].data.findIndex(item => item.id == row.id)
let idx = this.$refs.tableRef.$refs[this.tableParams.mutiSelectName + 'MutiTable'].data.findIndex(item => item.merchantId == row.merchantId)
if (idx > -1) {
try {
this.$refs.tableRef.$refs[this.tableParams.mutiSelectName + 'MutiTable'].toggleRowSelection(this.$refs.tableRef.$refs[this.tableParams.mutiSelectName + 'MutiTable'].data[idx], true)
let id = this.copyList.findIndex(item => item.id == row.id)
let id = this.copyList.findIndex(item => item.merchantId == row.merchantId)
if (id > -1) this.copyList.splice(id, 1)
console.log(this.copyList)
} catch (err) {
console.log(err)
}
......
......@@ -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!