Commit 1dd04787 by 胡悦

Merge branch 'v1.0.2' of http://192.168.3.233:8090/saas/scrm-micro-marketing into v1.0.2

2 parents 1d0f9da3 cfd180cb
......@@ -13,7 +13,7 @@
"el-tree-transfer": "^2.2.6",
"element-ui": "^2.4.5",
"glsx-common": "^1.4.6",
"glsx-components": "^1.3.3",
"glsx-components": "^1.3.5",
"lodash": "^4.17.21",
"vue": "^2.6.10",
"vue-router": "^3.1.3",
......
......@@ -11,7 +11,7 @@
let cfg = require('./conf.js')
import { Http } from 'glsx-common'
let timeout = 30000 //超时时间
export const fetchConfig = function (isEnv = true) {
export const fetchConfig = function(isEnv = true) {
// console.log(1111111)
// if (isEnv) {
// let { request } = cfg
......@@ -26,4 +26,4 @@ export const config = {
install(vue, cfg) {
vue.prototype.$config = cfg
}
}
}
\ No newline at end of file
......@@ -236,9 +236,7 @@ export default {
},
setTableFinishFun() {
//接收到的数据为空
if (!this.$refs.memberOrderRef.data.length) {
this.$refs.memberOrderRef.setTableHeightFun()
}
this.$refs.memberOrderRef.data.length ? (this.$refs.memberOrderRef.tableHeightValues = '') : this.$refs.memberOrderRef.setTableHeightFun()
},
handleReset() {
this.isReload = false
......
......@@ -25,7 +25,7 @@
ruleForm.effectiveDays = val.replace(/[^\d]/g, '')
}
"
:disabled="disabledContent"
:disabled="title== '查看' || title =='编辑' || ruleForm.effectiveType !=1"
placeholder="请输入"
size="small"
style="width: 100px"
......@@ -34,7 +34,7 @@
</el-radio>
<!-- effectiveStartTime effectiveEndTime +具体时间 -->
<el-radio :label="2">
<el-date-picker :size="small" :disabled="disabledContent" style="width: 230px" v-model="ruleForm.daterange" type="daterange" value-format="yyyy-MM-dd" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" :picker-options="pickerOptions || {}"></el-date-picker>
<el-date-picker :size="small" :disabled="title== '查看' || title =='编辑' || ruleForm.effectiveType !=2" style="width: 230px" v-model="ruleForm.daterange" type="daterange" value-format="yyyy-MM-dd" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" :picker-options="pickerOptions || {}"></el-date-picker>
</el-radio>
</el-radio-group>
</div>
......@@ -46,12 +46,12 @@
<!-- useType:1 useAmount:6 -->
<el-radio :label="1">
有效期内可使用
<el-button @click="sub1" class="addsubBtn" :disabled="disabledContent">-</el-button>
<span class="numWrap">{{ ruleForm.limitTime1 }}</span>
<el-button @click="add1" class="addsubBtn" :disabled="disabledContent">+</el-button>
<el-button @click="sub1" class="addsubBtn" :disabled="title== '查看' || title =='编辑' || ruleForm.customUseLimit !=1">-</el-button>
<div class="numWrap">{{ ruleForm.limitTime1 }}</div>
<el-button @click="add1" class="addsubBtn" :disabled="title== '查看' || title =='编辑' || ruleForm.customUseLimit !=1">+</el-button>
次
</el-radio>
<el-radio :label="2">
<el-radio :label="2" >
有效期内每
<el-input
v-model="ruleForm.limitDays"
......@@ -61,15 +61,15 @@
ruleForm.limitDays = val.replace(/[^\d]/g, '')
}
"
:disabled="disabledContent"
:disabled="title== '查看' || title =='编辑' || ruleForm.customUseLimit !=2"
placeholder="请输入"
size="small"
style="width: 100px"
></el-input>
天内可使用
<el-button @click.stop="sub2" class="addsubBtn" :disabled="disabledContent">-</el-button>
<el-button @click.stop="sub2" class="addsubBtn" :disabled="title== '查看' || title =='编辑' || ruleForm.customUseLimit !=2">-</el-button>
<span class="numWrap">{{ ruleForm.limitTime2 }}</span>
<el-button @click.stop="add2" class="addsubBtn" :disabled="disabledContent">+</el-button>
<el-button @click.stop="add2" class="addsubBtn" :disabled="title== '查看' || title =='编辑' || ruleForm.customUseLimit !=2">+</el-button>
次
</el-radio>
</el-radio-group>
......
......@@ -36,7 +36,7 @@ export default {
prop: 'customerName'
},
{
label: '几天前',
label: '评价时间',
prop: 'createdDateStr'
},
{
......
<!-- 编辑商品 -->
<template>
<div class="edit-pro marketing p-t-20 edit-box">
<el-tabs v-if="routeInfo.addOrEdit == '3'" v-model="activeName" @tab-click="handleTabClick">
<el-tabs v-if="routeInfo.addOrEdit != '1'" v-model="activeName" @tab-click="handleTabClick">
<el-tab-pane label="基本信息" name="basicInfo"></el-tab-pane>
<el-tab-pane label="评价信息" name="afterOrder"></el-tab-pane>
</el-tabs>
<div v-show="(routeInfo.addOrEdit != '3') || (routeInfo.addOrEdit == '3' && activeName == 'basicInfo')" class="container edit-container">
<div v-show="(routeInfo.addOrEdit == '1') || (['2', '3'].includes(routeInfo.addOrEdit + '') && activeName == 'basicInfo')" class="container edit-container">
<div class="flex">
<div class="home-set-form flex-grow">
<div v-for="(item, index) in externalFormList" :key="index">
......@@ -321,9 +321,9 @@
</div>
</div>
</div>
<comment-detail v-show="routeInfo.addOrEdit == '3' && activeName == 'afterOrder'" :goodsId="routeInfo.id"></comment-detail>
<comment-detail v-show="['2', '3'].includes(routeInfo.addOrEdit + '') && activeName == 'afterOrder'" :goodsId="routeInfo.id"></comment-detail>
<div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }">
<el-button v-if="routeInfo.addOrEdit != '3'" type="primary" @click="handleConfirm">确定</el-button>
<el-button v-if="(routeInfo.addOrEdit == '1') || (routeInfo.addOrEdit == '2' && activeName == 'basicInfo')" type="primary" @click="handleConfirm">确定</el-button>
<el-button type="default" @click="handleCancel">取消</el-button>
</div>
<el-dialog :visible.sync="isImgVisible">
......
<!-- 商品编辑 - 带货 -->
<template>
<div class="edit-product-dh marketing p-t-20 edit-box">
<el-tabs v-if="routeInfo.addOrEdit == '3'" v-model="activeName" @tab-click="handleTabClick">
<el-tabs v-if="routeInfo.addOrEdit != '1'" v-model="activeName" @tab-click="handleTabClick">
<el-tab-pane label="基本信息" name="basicInfo"></el-tab-pane>
<el-tab-pane label="评价信息" name="afterOrder"></el-tab-pane>
</el-tabs>
<div v-show="(routeInfo.addOrEdit != '3') || (routeInfo.addOrEdit == '3' && activeName == 'basicInfo')" class="container edit-container">
<div v-show="(routeInfo.addOrEdit == '1') || (['2', '3'].includes(routeInfo.addOrEdit + '') && activeName == 'basicInfo')" class="container edit-container">
<p class="edit-title">{{ title }}</p>
<div class="flex" style="margin-top: 20px;">
<div class="main-img-box">
......@@ -79,9 +79,9 @@
<img style="width: 375px; width: 375px;" v-show="item.resType == 1" :src="item.content" />
</div>
</div>
<comment-detail v-show="routeInfo.addOrEdit == '3' && activeName == 'afterOrder'" :goodsId="routeInfo.id"></comment-detail>
<comment-detail v-show="['2', '3'].includes(routeInfo.addOrEdit + '') && activeName == 'afterOrder'" :goodsId="routeInfo.id"></comment-detail>
<div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }">
<el-button v-if="routeInfo.addOrEdit != '3'" type="primary" @click="handleConfirm">确定</el-button>
<el-button v-if="(routeInfo.addOrEdit == '1') || (routeInfo.addOrEdit == '2' && activeName == 'basicInfo')" type="primary" @click="handleConfirm">确定</el-button>
<el-button type="default" @click="handleCancel">取消</el-button>
</div>
</div>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!