Commit 846871ca by chenwq

新增/编辑sop-标签客户;添加字段

1 parent 6ae940ba
import { http, http_common } from '@/main' import { http, http_common, http2 } from '@/main'
const defaultPath = 'scrm.api.carlife.' const defaultPath = 'scrm.api.carlife.'
const getMerchantGoodsListApi = params => { const getMerchantGoodsListApi = params => {
...@@ -94,4 +94,14 @@ const pictureUpload = params => { ...@@ -94,4 +94,14 @@ const pictureUpload = params => {
noSignAttr: ['file'] noSignAttr: ['file']
}) })
} }
export default { getMerchantGoodsListApi, getGoodsListApi, uploadImgApi, uploadVideoApi, getMerchantList, getSimpleMerchantList, getZoneListApi, getClassifyListApi, pictureUpload } const querylabeltree = params => {
params.method = 'scrm.api.datahub.labelgroup.queryLabelTree'
// params.sessionId = session
return http2({
url: '/rop-scrm-datahub/router',
method: 'POST',
data: params,
sign: true
})
}
export default { getMerchantGoodsListApi, getGoodsListApi, uploadImgApi, uploadVideoApi, getMerchantList, getSimpleMerchantList, getZoneListApi, getClassifyListApi, pictureUpload, querylabeltree }
...@@ -505,6 +505,14 @@ html { ...@@ -505,6 +505,14 @@ html {
border-radius: 4px 0px 0px 0px; border-radius: 4px 0px 0px 0px;
border: 1px solid #f4f6fc !important; border: 1px solid #f4f6fc !important;
} }
.marketing .tips-icon {
display: inline-block;
width: 14px;
height: 14px;
margin-right: 12px;
vertical-align: middle;
cursor: pointer;
}
.el-message--info { .el-message--info {
height: 40px; height: 40px;
......
...@@ -6,12 +6,11 @@ ...@@ -6,12 +6,11 @@
<el-form-item v-if="!item.isHide" :key="index" :id="item.name" :labelWidth="isEdit ? '144px' : labelWidth" :class="{ 'no-label': !item.label, isBlock: isBlock }" :style="{ 'margin-bottom': isEdit ? '24px' : '', 'margin-right': isEdit ? '0px' : '30px', ...item.style }" :label="item.label" :prop="item.name"> <el-form-item v-if="!item.isHide" :key="index" :id="item.name" :labelWidth="isEdit ? '144px' : labelWidth" :class="{ 'no-label': !item.label, isBlock: isBlock }" :style="{ 'margin-bottom': isEdit ? '24px' : '', 'margin-right': isEdit ? '0px' : '30px', ...item.style }" :label="item.label" :prop="item.name">
<span v-if="!item.isHide && item.tips" class="tips-block" slot="label"> <span v-if="!item.isHide && item.tips" class="tips-block" slot="label">
<span class="tips-label">{{ item.label }}</span> <span class="tips-label">{{ item.label }}</span>
<el-tooltip popper-class="tooltip-class" effect="dark" :content="item.tips" :placement="item.placement || 'top'"> <el-popover placement="top" width="200" trigger="hover" :content="item.tips">
<span class="tips-icon"></span> <img slot="reference" class="tips-icon" src="./images/icon-tip.png" />
</el-tooltip> </el-popover>
{{ item.label }}
</span> </span>
<span v-else-if="!item.isHide && item.label" slot="label"> <span v-else-if="!item.isHide && item.label && !item.tips" slot="label">
<span class="combi-form-label" :style="{ width: item.labelWidth ? item.labelWidth + labelPaddingRight + 'px' : '', 'padding-right': isEdit ? '12px' : labelPaddingRight + 'px' }">{{ item.label }}</span> <span class="combi-form-label" :style="{ width: item.labelWidth ? item.labelWidth + labelPaddingRight + 'px' : '', 'padding-right': isEdit ? '12px' : labelPaddingRight + 'px' }">{{ 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>
...@@ -307,36 +306,20 @@ export default { ...@@ -307,36 +306,20 @@ export default {
background-color: #fff; background-color: #fff;
} }
/* 提示图标 */ /* 提示图标 */
.glsx-combi-form .tips-block { /* .glsx-combi-form .tips-block {
position: relative; position: relative;
} } */
.glsx-combi-form .tips-label { .glsx-combi-form .tips-label {
margin-right: 20px; margin-right: 2px;
} }
.glsx-combi-form .tips-icon { .glsx-combi-form .tips-icon {
position: absolute;
display: inline-block; display: inline-block;
width: 12px; width: 14px;
height: 12px; height: 14px;
top: 3px; margin-right: 12px;
right: 14px; vertical-align: middle;
margin-right: 4px;
cursor: pointer; cursor: pointer;
border: 1px dotted #7f7f7f;
border-radius: 50%;
} }
.glsx-combi-form .tips-icon::before {
content: '?';
position: absolute;
width: 8px;
height: 8px;
top: -8px;
left: 1px;
font-size: 10px;
}
/* .glsx-combi-form .tips {
margin: 0;
} */
.glsx-combi-form .combi-form-label { .glsx-combi-form .combi-form-label {
display: inline-block; display: inline-block;
box-sizing: border-box; box-sizing: border-box;
......
...@@ -15,6 +15,7 @@ import selectSingleProDialog from '@/components/selectSingleProDialog/index.vue' ...@@ -15,6 +15,7 @@ import selectSingleProDialog from '@/components/selectSingleProDialog/index.vue'
import relateStoreDialog from '@/components/relate-store-dialog' import relateStoreDialog from '@/components/relate-store-dialog'
import selectMutiProForcouponDialog from '@/components/selectMutiProDialog/indexForCoupon.vue' import selectMutiProForcouponDialog from '@/components/selectMutiProDialog/indexForCoupon.vue'
import tableTooltip from '@/components/table-tooltip/index.vue' import tableTooltip from '@/components/table-tooltip/index.vue'
import selectTag from '@/components/selectTag/index.vue'
Vue.component('glsx-combi-form', glsxCombiForm) Vue.component('glsx-combi-form', glsxCombiForm)
Vue.component('glsx-dialog', glsxDialog) Vue.component('glsx-dialog', glsxDialog)
...@@ -23,3 +24,4 @@ Vue.component('select-single-pro-dialog', selectSingleProDialog) ...@@ -23,3 +24,4 @@ Vue.component('select-single-pro-dialog', selectSingleProDialog)
Vue.component('relate-store-dialog', relateStoreDialog) Vue.component('relate-store-dialog', relateStoreDialog)
Vue.component('select-muti-pro-forcoupon-dialog', selectMutiProForcouponDialog) Vue.component('select-muti-pro-forcoupon-dialog', selectMutiProForcouponDialog)
Vue.component('table-tooltip', tableTooltip) Vue.component('table-tooltip', tableTooltip)
Vue.component('select-tag', selectTag)
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!