Commit 20bb0113 by 前端

Merge branch 'master' of http://192.168.3.233:8090/saas/scrm-micro-tools into v3.20.0_10

 Conflicts:
	src/main.js
	src/setup/qiankun.js
	src/views/activityLink/components/MarketingContent.vue
2 parents 1eccfc26 2bf2a768
......@@ -84,7 +84,7 @@
<!-- <textBox v-else-if="item.type === 'textBox'" :ref="item.name + 'TextBox'" :excludeMenus="item.excludeMenus || ['code']" @change="e => handleTextBoxChange(e, item)" @focus="handleTextBoxFocus(item)"></textBox> -->
<!-- 地图 -->
<div v-else-if="item.type === 'map'" class="flex">
<Province ref="provinceForm" :subdistrict="subdistrict" :isDisabled="item.isDisabled" @selectProvince="e => handleSelectProvince(e, item)" @selectCity="e => handleSelectCity(e, item)"></Province>
<Province v-if="!item.isNeedSelect" ref="provinceForm" :subdistrict="subdistrict" :isDisabled="item.isDisabled" @selectProvince="e => handleSelectProvince(e, item)" @selectCity="e => handleSelectCity(e, item)"></Province>
<el-input style="flex: 1;" v-model="formObj[item.name]" placeholder="请选择商户地址" :readonly="item.isReadonly"></el-input>
<el-button class="m-l-10" v-show="!item.isDisabled" @click="handleSelectMap(item)" type="primary">选择地址</el-button>
</div>
......@@ -166,7 +166,7 @@ export default {
},
formObj: {
type: Object,
default: () => { }
default: () => {}
},
hasTitle: {
type: Boolean,
......@@ -174,22 +174,22 @@ export default {
},
formRules: {
type: Object,
default: () => { }
default: () => {}
},
// 搜索+输入框/搜索组合组件,搜索栏绑值
searchSelectObj: {
type: Object,
default: () => { }
default: () => {}
}
},
components: {
// textBox,
Province,
Province
// mapView
},
mounted() { },
mounted() {},
methods: {
// 选择框-添加其他属性
......@@ -209,8 +209,8 @@ export default {
var reader = new FileReader()
var file = e.srcElement.files[0]
var uploadType = targetItem.uploadType || 'img',
IMGTYPE = ['image/jpeg', 'image/png', 'image/jpg']
if(targetItem.supportGif) IMGTYPE.push('image/gif')
IMGTYPE = ['image/jpeg', 'image/png', 'image/jpg']
if (targetItem.supportGif) IMGTYPE.push('image/gif')
// 默认1MB
const limitSize = targetItem.limitSize || 1
const isLt = file.size / 1024 / 1024 < limitSize
......
......@@ -4,7 +4,7 @@
* @Author: limin
* @Date: 2021-06-07 14:12:32
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-09-05 16:07:53
* @LastEditTime: 2023-09-27 18:08:21
*/
// 根据环境引入不同配置 process.env.VUE_APP_ENV
// let request = require('@/http/request.js')
......@@ -14,7 +14,8 @@ let timeout = 30000 //超时时间
export const fetchConfig = function(common) {
// let params = { moduleName: 'peregrination', mockUrl: 'https://oss-config.glsx.com.cn/mock/63c12a2e28a427953783403b/link/config', httpOptions: { Headers: { refererurl: location.href }, request: { timeout: 30000 } } }
// return common.utils.getConfig(params)
return new Http().get('https://oss-config.dev.glsx.com.cn/mock/650901f737c9d135bfb68619/tools/config')
// return new Http().get('https://oss-config.dev.glsx.com.cn/mock/650901f737c9d135bfb68619/tools/config')
return new Http().get('https://oss-config.glsx.com.cn/mock/6513d53164bbd943bb9cb5cc/tools/config')
}
export const config = {
install(vue, cfg) {
......
......@@ -4,7 +4,7 @@
* @Author: limin
* @Date: 2021-08-13 14:12:11
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2022-11-23 17:20:32
* @LastEditTime: 2023-09-27 17:01:25
* @FilePath: \scrm\scrm-sub-blog\src\main.js
*/
import Vue from 'vue'
......@@ -19,7 +19,8 @@ Vue.config.productionTip = false
Vue.prototype.$apis = apis
Vue.prototype.size = 'small'
Vue.prototype.setMinHeight = setMinHeight
Vue.prototype.staticImgUrl = 'https://img01.glsx.com.cn/weapp/resource/saas/scrm/activity/'
Vue.prototype.$vip = 'https://img01.glsx.com.cn/weapp/resource/miniprogram/expandedGold/vip.png'
Vue.prototype.defaultLabelWidth = '154px'
start()
export { bootstrap, mount, unmount } from '@/setup'
......@@ -29,3 +30,4 @@ export const http_common = params => Vue.prototype.$http_common(params)
export const http_tag = params => Vue.prototype.$http_tag(params)
export const http_merchant = params => Vue.prototype.$http_merchant(params)
export const http_gpt = params => Vue.prototype.$http_gpt(params)
export const http_upload = params => Vue.prototype.$http_upload(params)
......@@ -507,7 +507,7 @@ export default {
this.calcCarValue()
},
addCoupon() {
openTab('/marketing/couponManage/index')
openTab('/tools/couponManage/index')
},
getList() {
switch (+this.currentIndex) {
......
......@@ -787,7 +787,7 @@ export default {
jumpLabel: '创建服务',
tipsWidth: 220,
handleJump: () => {
this.$history.push('/marketing/couponManage/index')
this.$history.push('/tools/couponManage/index')
}
},
{
......
......@@ -13,26 +13,17 @@
</el-tabs>
</div>
<div class="model-item-panel" v-if="modelList.length > 0" v-loading="loading">
<div class="model-item" :class="{ checked: selectItem == item }" v-for="(item, index) in modelList"
:key="index" @click="handleSelectItem(item)">
<div class="model-item" :class="{ checked: selectItem == item }" v-for="(item, index) in modelList" :key="index" @click="handleSelectItem(item)">
<div class="model-item-title" :title="item.equityName" v-show="activeName == 3">{{ item.equityName }}</div>
<div class="model-item-title" :title="item.couponName" v-show="activeName == 2">{{ item.couponName }}</div>
<!-- <div class="model-item-title" :title="item.couponName" v-show="activeName == 6">{{ item.equityName }}</div> -->
<div class="model-item-title" :title="item.packageName" v-show="activeName == 4">{{ item.packageName }}
</div>
<div class="model-item-title" :title="item.activityName" v-show="activeName == 5">{{ item.activityName }}
</div>
<div class="model-item-title" :title="item.packageName" v-show="activeName == 4">{{ item.packageName }}</div>
<div class="model-item-title" :title="item.activityName" v-show="activeName == 5">{{ item.activityName }}</div>
<div class="model-item-content" v-show="activeName == 3">领取方式:免费领用</div>
<div class="model-item-content" v-show="activeName == 4">领取方式:付费购买</div>
<div class="model-item-content" v-show="activeName == 2 && item.effectiveType == 6">有效期:{{
item.effectiveDays
}}天</div>
<div class="model-item-content" v-show="activeName == 2 && item.effectiveType == 6">有效期:{{ item.effectiveDays }}天</div>
<div class="model-item-content" v-show="activeName == 2 && item.effectiveType == 3">有效期:无限制</div>
<div class="model-item-content" v-show="activeName == 2 && item.effectiveType == 2">有效期:{{
item.effectiveStartTime ? item.effectiveStartTime.split(' ')[0] : ''
}}~{{ item.effectiveEndTime ?
item.effectiveEndTime.split(' ')[0] : ''
}}</div>
<div class="model-item-content" v-show="activeName == 2 && item.effectiveType == 2">有效期:{{ item.effectiveStartTime ? item.effectiveStartTime.split(' ')[0] : '' }}~{{ item.effectiveEndTime ? item.effectiveEndTime.split(' ')[0] : '' }}</div>
<!-- <div class="model-item-content" v-show="activeName == 6">获取方式:需先购买无忧服务套餐</div>
<div class="model-item-content" v-show="activeName == 6">获取限制:每个服务套餐限领一次</div> -->
......@@ -73,19 +64,14 @@
<img src="@/assets/empty.png" />
<div class="empty-item">暂无数据</div>
</div>
<el-pagination v-if="activeName != 3" @size-change="handleSizeChange" @current-change="handleCurrentChange"
:current-page="pageNum" :page-sizes="[12, 24, 36, 48]" :page-size="pageSize" :total="tableTotal"
layout="total, sizes, prev, pager, next, jumper"></el-pagination>
<el-pagination v-if="activeName != 3" @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="pageNum" :page-sizes="[12, 24, 36, 48]" :page-size="pageSize" :total="tableTotal" layout="total, sizes, prev, pager, next, jumper"></el-pagination>
</div>
<span slot="footer" class="dialog-footer">
<el-button size="small" @click="dialogVisible = false">取 消</el-button>
<el-button size="small" type="primary" @click="handleSelect" v-show="modelList.length">确 定</el-button>
<el-button size="small" type="primary" @click="handleOpen"
v-show="modelList.length == 0 && activeName == 2 && memberMenu">立即添加</el-button>
<el-button size="small" type="primary" @click="handleOpen"
v-show="modelList.length == 0 && activeName == 4 && couponMenu">立即添加</el-button>
<el-button size="small" type="primary" @click="handleOpen"
v-show="modelList.length == 0 && activeName == 5 && activityMenu">立即添加</el-button>
<el-button size="small" type="primary" @click="handleOpen" v-show="modelList.length == 0 && activeName == 2 && memberMenu">立即添加</el-button>
<el-button size="small" type="primary" @click="handleOpen" v-show="modelList.length == 0 && activeName == 4 && couponMenu">立即添加</el-button>
<el-button size="small" type="primary" @click="handleOpen" v-show="modelList.length == 0 && activeName == 5 && activityMenu">立即添加</el-button>
</span>
</GLDialog>
</div>
......@@ -154,13 +140,13 @@ export default {
let url
switch (this.activeName) {
case '2':
url = '/marketing/couponManage/index'
url = '/tools/couponManage/index'
break
case '4':
url = '/marketing/memberCenter/setmealAddUpdate?%24title=%25E5%2588%259B%25E5%25BB%25BA%25E5%25A5%2597%25E9%25A4%2590'
url = '/tools/memberCenter/setmealAddUpdate?%24title=%25E5%2588%259B%25E5%25BB%25BA%25E5%25A5%2597%25E9%25A4%2590'
break
case '5':
url = '/marketing/seckillActivity/editActivity/1'
url = '/tools/seckillActivity/editActivity/1'
break
}
util.openUrl(location.origin + url)
......@@ -320,7 +306,7 @@ export default {
.model-item-empty {
height: 32vh;
>img {
> img {
display: block;
margin: 50px auto 0px;
width: 60px;
......
......@@ -155,7 +155,7 @@ export default {
handleJump(path, row = {}) {
this.$router.push({
path: '/sop/' + path,
query: row ? {id: row.id, fromPage: '/marketing/sop/index',sopType:row.sopType} : ''
query: row ? {id: row.id, fromPage: '/tools/sop/index',sopType:row.sopType} : ''
})
},
......@@ -245,7 +245,7 @@ export default {
handleEdit(addOrEdit, row) {
var params = {
addOrEdit: addOrEdit,
fromPage: '/marketing/sop/index',
fromPage: '/tools/sop/index',
$title: encodeURI(addOrEdit == 'add' ? '新建SOP' : '编辑SOP')
}
addOrEdit != 'add' && (params.id = row.id)
......
......@@ -8,7 +8,7 @@
<el-tab-pane label="触达率分析" name="touchList">
<touch-list v-if="activeName == 'touchList'" :sopId="routeInfo.id" :sopType="routeInfo.sopType"></touch-list>
</el-tab-pane>
<el-tab-pane label="员工完成率分析" name="staffList" v-if=" routeInfo.sopType == 1">
<el-tab-pane label="员工完成率分析" name="staffList" v-if="routeInfo.sopType == 1">
<staff-list v-if="activeName == 'staffList'" :sopId="routeInfo.id"></staff-list>
</el-tab-pane>
<el-tab-pane label="效果分析" name="resultList">
......@@ -23,7 +23,7 @@
import completeList from './sopAnalysis/completeList.vue'
import touchList from './sopAnalysis/touchList.vue'
import staffList from './sopAnalysis/staffList.vue'
import ResultList from './sopAnalysis/resultList.vue'
import ResultList from './sopAnalysis/resultList.vue'
export default {
name: 'gitfBag',
data() {
......@@ -32,7 +32,7 @@ export default {
size: 'small',
routeInfo: {
id: '',
fromPage: '/marketing/sop/index'
fromPage: '/tools/sop/index'
}
}
},
......@@ -50,7 +50,7 @@ export default {
},
methods: {
handleTabClick() { },
handleTabClick() {},
handleBack() {
this.$history.push({
path: this.routeInfo.fromPage
......
<!-- sop管理 -->
<template>
<div class="marketing sop-list">
<SopNav @clickNav="handleClick"
:activeName="'second'" />
<SopNav @clickNav="handleClick" :activeName="'second'" />
<div class="m-b-20 m-t-20 p-relative">
<el-button :size="size"
type="primary"
class="el-icon-plus"
@click="handleEdit('add')"> 新建SOP</el-button>
<el-button :size="size" type="primary" class="el-icon-plus" @click="handleEdit('add')">新建SOP</el-button>
<!-- <el-button class="sop-back-btn" :size="size" type="primary" @click="handleBack">返回</el-button>-->
</div>
<div class="container">
<GLCombiForm ref="showSearch"
:rowNumber="1"
:formObj="searchForm"
:formData="searchFormData"
@handleOk="handleSearch"
@handleRest="handleReset"></GLCombiForm>
<GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<!-- 表格区域 开始 -->
<GLTable ref="sopListRef"
:getListApi="getListApi"
:noDataImg="url"
:searchForm="searchForm"
:tableParams="tableParams"
:pageConf="pageConf"
:beforeSearchFn="beforeSearchFn"
@setTableFinishFun="setTableFinishFun">
<div class="table-btns"
slot="auth-button"
slot-scope="scope">
<GLTableButton :buttonList="tableButtonList"
:buttonItem="scope.scope"
:buttonNum="3"></GLTableButton>
<GLTable ref="sopListRef" :getListApi="getListApi" :noDataImg="url" :searchForm="searchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun">
<div class="table-btns" slot="auth-button" slot-scope="scope">
<GLTableButton :buttonList="tableButtonList" :buttonItem="scope.scope" :buttonNum="3"></GLTableButton>
</div>
</GLTable>
<!-- 表格区域 end -->
......@@ -43,7 +23,7 @@
<script>
import * as dayjs from 'dayjs'
import url from '@/assets/empty.png'
import SopNav from "views/sop/SopNav";
import SopNav from 'views/sop/SopNav'
export default {
name: 'sopList',
components: { SopNav },
......@@ -243,7 +223,7 @@ export default {
{
confId: 2,
confName: '群sop'
},
}
]
}
}
......@@ -260,7 +240,7 @@ export default {
handleJump(path, row = {}) {
this.$router.push({
path: '/sop/' + path,
query: row ? { id: row.id, sopType: row.sopType, fromPage: '/marketing/sop/sopList' } : ''
query: row ? { id: row.id, sopType: row.sopType, fromPage: '/tools/sop/sopList' } : ''
})
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!