Commit 9c33d176 by 杨明

合并代码

2 parents 65a2bf34 2bf2a768
...@@ -84,7 +84,7 @@ ...@@ -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> --> <!-- <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"> <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-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> <el-button class="m-l-10" v-show="!item.isDisabled" @click="handleSelectMap(item)" type="primary">选择地址</el-button>
</div> </div>
...@@ -166,7 +166,7 @@ export default { ...@@ -166,7 +166,7 @@ export default {
}, },
formObj: { formObj: {
type: Object, type: Object,
default: () => { } default: () => {}
}, },
hasTitle: { hasTitle: {
type: Boolean, type: Boolean,
...@@ -174,22 +174,22 @@ export default { ...@@ -174,22 +174,22 @@ export default {
}, },
formRules: { formRules: {
type: Object, type: Object,
default: () => { } default: () => {}
}, },
// 搜索+输入框/搜索组合组件,搜索栏绑值 // 搜索+输入框/搜索组合组件,搜索栏绑值
searchSelectObj: { searchSelectObj: {
type: Object, type: Object,
default: () => { } default: () => {}
} }
}, },
components: { components: {
// textBox, // textBox,
Province, Province
// mapView // mapView
}, },
mounted() { }, mounted() {},
methods: { methods: {
// 选择框-添加其他属性 // 选择框-添加其他属性
...@@ -210,7 +210,7 @@ export default { ...@@ -210,7 +210,7 @@ export default {
var file = e.srcElement.files[0] var file = e.srcElement.files[0]
var uploadType = targetItem.uploadType || 'img', var uploadType = targetItem.uploadType || 'img',
IMGTYPE = ['image/jpeg', 'image/png', 'image/jpg'] IMGTYPE = ['image/jpeg', 'image/png', 'image/jpg']
if(targetItem.supportGif) IMGTYPE.push('image/gif') if (targetItem.supportGif) IMGTYPE.push('image/gif')
// 默认1MB // 默认1MB
const limitSize = targetItem.limitSize || 1 const limitSize = targetItem.limitSize || 1
const isLt = file.size / 1024 / 1024 < limitSize const isLt = file.size / 1024 / 1024 < limitSize
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Author: limin * @Author: limin
* @Date: 2021-06-07 14:12:32 * @Date: 2021-06-07 14:12:32
* @LastEditors: yangming yangming@didihu.com.cn * @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 // 根据环境引入不同配置 process.env.VUE_APP_ENV
// let request = require('@/http/request.js') // let request = require('@/http/request.js')
...@@ -14,7 +14,8 @@ let timeout = 30000 //超时时间 ...@@ -14,7 +14,8 @@ let timeout = 30000 //超时时间
export const fetchConfig = function(common) { 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 } } } // 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 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 = { export const config = {
install(vue, cfg) { install(vue, cfg) {
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Author: limin * @Author: limin
* @Date: 2021-08-13 14:12:11 * @Date: 2021-08-13 14:12:11
* @LastEditors: yangming yangming@didihu.com.cn * @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2022-11-23 17:20:32 * @LastEditTime: 2023-10-08 11:38:10
* @FilePath: \scrm\scrm-sub-blog\src\main.js * @FilePath: \scrm\scrm-sub-blog\src\main.js
*/ */
import Vue from 'vue' import Vue from 'vue'
...@@ -19,7 +19,8 @@ Vue.config.productionTip = false ...@@ -19,7 +19,8 @@ Vue.config.productionTip = false
Vue.prototype.$apis = apis Vue.prototype.$apis = apis
Vue.prototype.size = 'small' Vue.prototype.size = 'small'
Vue.prototype.setMinHeight = setMinHeight 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' Vue.prototype.defaultLabelWidth = '154px'
start() start()
export { bootstrap, mount, unmount } from '@/setup' export { bootstrap, mount, unmount } from '@/setup'
...@@ -29,3 +30,4 @@ export const http_common = params => Vue.prototype.$http_common(params) ...@@ -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_tag = params => Vue.prototype.$http_tag(params)
export const http_merchant = params => Vue.prototype.$http_merchant(params) export const http_merchant = params => Vue.prototype.$http_merchant(params)
export const http_gpt = params => Vue.prototype.$http_gpt(params) export const http_gpt = params => Vue.prototype.$http_gpt(params)
export const http_upload = params => Vue.prototype.$http_upload(params)
...@@ -2,7 +2,11 @@ ...@@ -2,7 +2,11 @@
* @Author: yangming yangming@didihu.com.cn * @Author: yangming yangming@didihu.com.cn
* @Date: 2022-11-23 11:06:49 * @Date: 2022-11-23 11:06:49
* @LastEditors: yangming yangming@didihu.com.cn * @LastEditors: yangming yangming@didihu.com.cn
<<<<<<< HEAD
* @LastEditTime: 2023-09-27 16:11:41 * @LastEditTime: 2023-09-27 16:11:41
=======
* @LastEditTime: 2023-09-27 17:02:07
>>>>>>> 2bf2a768fd77a178c72c786220847f2be68b8539
* @FilePath: \live\src\setup\qiankun.js * @FilePath: \live\src\setup\qiankun.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/ */
...@@ -27,7 +31,7 @@ Vue.use(GLTableButton) ...@@ -27,7 +31,7 @@ Vue.use(GLTableButton)
Vue.use(GLEditor) Vue.use(GLEditor)
Vue.use(GLDialog) Vue.use(GLDialog)
export async function bootstrap({ history, common, messenger, globalState, routerBase }) { export async function bootstrap({ history, common, messenger, globalState, routerBase }) {
const { response, request, request2, sign, secret, sign_common, request_common, request_merchant, merchantId, request_gpt } = await fetchConfig(common) const { response, request, request2, sign, secret, sign_common, request_common, request_gpt, request_merchant, merchantId } = await fetchConfig(common)
Vue.prototype.$history = history Vue.prototype.$history = history
Vue.prototype.$messenger = messenger Vue.prototype.$messenger = messenger
Vue.prototype.$globalState = globalState Vue.prototype.$globalState = globalState
...@@ -40,6 +44,14 @@ export async function bootstrap({ history, common, messenger, globalState, route ...@@ -40,6 +44,14 @@ export async function bootstrap({ history, common, messenger, globalState, route
Vue.prototype.$isGroupUp = globalState.session.accountLevel != 4 Vue.prototype.$isGroupUp = globalState.session.accountLevel != 4
Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: globalState.session.token } }) Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: globalState.session.token } })
Vue.prototype.$http_gpt = new common.Http({ response, request: request_gpt, sign, secret, alert: ElementUI.Message.error }) Vue.prototype.$http_gpt = new common.Http({ response, request: request_gpt, sign, secret, alert: ElementUI.Message.error })
Vue.prototype.$http_upload = new common.Http({
response: { ...response, data_key: 'result', code_success_value: true, code_key: 'success' },
request,
sign,
secret,
alert: message.error,
headers: { token: globalState.session.token, 'Content-Type': 'multipart/form-data' }
})
Vue.prototype.$http_common = new common.Http({ response, signWay: 'md5', request: request_common, sign: sign_common, secret, alert: ElementUI.Message.error, headers: { TGT: globalState.session.token } }) Vue.prototype.$http_common = new common.Http({ response, signWay: 'md5', request: request_common, sign: sign_common, secret, alert: ElementUI.Message.error, headers: { TGT: globalState.session.token } })
Vue.prototype.$http_tag = new common.Http({ response, request, sign, secret, alert: ElementUI.Message.error, headers: { token: globalState.session.token } }) Vue.prototype.$http_tag = new common.Http({ response, request, sign, secret, alert: ElementUI.Message.error, headers: { token: globalState.session.token } })
Vue.prototype.$http_merchant = new common.Http({ response, request: request_merchant, sign, secret, alert: ElementUI.Message.error, headers: { token: globalState.session.token } }) Vue.prototype.$http_merchant = new common.Http({ response, request: request_merchant, sign, secret, alert: ElementUI.Message.error, headers: { token: globalState.session.token } })
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn * @Author: yangming yangming@didihu.com.cn
* @Date: 2023-06-29 21:24:27 * @Date: 2023-06-29 21:24:27
* @LastEditors: yangming yangming@didihu.com.cn * @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-09-13 16:42:14 * @LastEditTime: 2023-10-08 11:38:55
* @FilePath: \scrm-micro-link\src\views\activityLink\components\MarketingContent.vue * @FilePath: \scrm-micro-link\src\views\activityLink\components\MarketingContent.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
--> -->
...@@ -186,6 +186,7 @@ export default { ...@@ -186,6 +186,7 @@ export default {
{ {
label: '门店地址', label: '门店地址',
name: 'merchantAddress', name: 'merchantAddress',
isNeedSelect: true,
type: 'map', type: 'map',
isReadonly: false, isReadonly: false,
provinceView: false, provinceView: false,
......
...@@ -507,7 +507,7 @@ export default { ...@@ -507,7 +507,7 @@ export default {
this.calcCarValue() this.calcCarValue()
}, },
addCoupon() { addCoupon() {
openTab('/marketing/couponManage/index') openTab('/tools/couponManage/index')
}, },
getList() { getList() {
switch (+this.currentIndex) { switch (+this.currentIndex) {
......
...@@ -787,7 +787,7 @@ export default { ...@@ -787,7 +787,7 @@ export default {
jumpLabel: '创建服务', jumpLabel: '创建服务',
tipsWidth: 220, tipsWidth: 220,
handleJump: () => { handleJump: () => {
this.$history.push('/marketing/couponManage/index') this.$history.push('/tools/couponManage/index')
} }
}, },
{ {
......
...@@ -13,26 +13,17 @@ ...@@ -13,26 +13,17 @@
</el-tabs> </el-tabs>
</div> </div>
<div class="model-item-panel" v-if="modelList.length > 0" v-loading="loading"> <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" <div class="model-item" :class="{ checked: selectItem == item }" v-for="(item, index) in modelList" :key="index" @click="handleSelectItem(item)">
: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.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 == 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.couponName" v-show="activeName == 6">{{ item.equityName }}</div> -->
<div class="model-item-title" :title="item.packageName" v-show="activeName == 4">{{ item.packageName }} <div class="model-item-title" :title="item.packageName" v-show="activeName == 4">{{ item.packageName }}</div>
</div> <div class="model-item-title" :title="item.activityName" v-show="activeName == 5">{{ item.activityName }}</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 == 3">领取方式:免费领用</div>
<div class="model-item-content" v-show="activeName == 4">领取方式:付费购买</div> <div class="model-item-content" v-show="activeName == 4">领取方式:付费购买</div>
<div class="model-item-content" v-show="activeName == 2 && item.effectiveType == 6">有效期:{{ <div class="model-item-content" v-show="activeName == 2 && item.effectiveType == 6">有效期:{{ item.effectiveDays }}天</div>
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 == 3">有效期:无限制</div>
<div class="model-item-content" v-show="activeName == 2 && item.effectiveType == 2">有效期:{{ <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>
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>
<div class="model-item-content" v-show="activeName == 6">获取限制:每个服务套餐限领一次</div> --> <div class="model-item-content" v-show="activeName == 6">获取限制:每个服务套餐限领一次</div> -->
...@@ -73,19 +64,14 @@ ...@@ -73,19 +64,14 @@
<img src="@/assets/empty.png" /> <img src="@/assets/empty.png" />
<div class="empty-item">暂无数据</div> <div class="empty-item">暂无数据</div>
</div> </div>
<el-pagination v-if="activeName != 3" @size-change="handleSizeChange" @current-change="handleCurrentChange" <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>
:current-page="pageNum" :page-sizes="[12, 24, 36, 48]" :page-size="pageSize" :total="tableTotal"
layout="total, sizes, prev, pager, next, jumper"></el-pagination>
</div> </div>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button size="small" @click="dialogVisible = false">取 消</el-button> <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="handleSelect" v-show="modelList.length">确 定</el-button>
<el-button size="small" type="primary" @click="handleOpen" <el-button size="small" type="primary" @click="handleOpen" v-show="modelList.length == 0 && activeName == 2 && memberMenu">立即添加</el-button>
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" <el-button size="small" type="primary" @click="handleOpen" v-show="modelList.length == 0 && activeName == 5 && activityMenu">立即添加</el-button>
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> </span>
</GLDialog> </GLDialog>
</div> </div>
...@@ -154,13 +140,13 @@ export default { ...@@ -154,13 +140,13 @@ export default {
let url let url
switch (this.activeName) { switch (this.activeName) {
case '2': case '2':
url = '/marketing/couponManage/index' url = '/tools/couponManage/index'
break break
case '4': 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 break
case '5': case '5':
url = '/marketing/seckillActivity/editActivity/1' url = '/tools/seckillActivity/editActivity/1'
break break
} }
util.openUrl(location.origin + url) util.openUrl(location.origin + url)
...@@ -320,7 +306,7 @@ export default { ...@@ -320,7 +306,7 @@ export default {
.model-item-empty { .model-item-empty {
height: 32vh; height: 32vh;
>img { > img {
display: block; display: block;
margin: 50px auto 0px; margin: 50px auto 0px;
width: 60px; width: 60px;
......
...@@ -155,7 +155,7 @@ export default { ...@@ -155,7 +155,7 @@ export default {
handleJump(path, row = {}) { handleJump(path, row = {}) {
this.$router.push({ this.$router.push({
path: '/sop/' + path, 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 { ...@@ -245,7 +245,7 @@ export default {
handleEdit(addOrEdit, row) { handleEdit(addOrEdit, row) {
var params = { var params = {
addOrEdit: addOrEdit, addOrEdit: addOrEdit,
fromPage: '/marketing/sop/index', fromPage: '/tools/sop/index',
$title: encodeURI(addOrEdit == 'add' ? '新建SOP' : '编辑SOP') $title: encodeURI(addOrEdit == 'add' ? '新建SOP' : '编辑SOP')
} }
addOrEdit != 'add' && (params.id = row.id) addOrEdit != 'add' && (params.id = row.id)
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<el-tab-pane label="触达率分析" name="touchList"> <el-tab-pane label="触达率分析" name="touchList">
<touch-list v-if="activeName == 'touchList'" :sopId="routeInfo.id" :sopType="routeInfo.sopType"></touch-list> <touch-list v-if="activeName == 'touchList'" :sopId="routeInfo.id" :sopType="routeInfo.sopType"></touch-list>
</el-tab-pane> </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> <staff-list v-if="activeName == 'staffList'" :sopId="routeInfo.id"></staff-list>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="效果分析" name="resultList"> <el-tab-pane label="效果分析" name="resultList">
...@@ -32,7 +32,7 @@ export default { ...@@ -32,7 +32,7 @@ export default {
size: 'small', size: 'small',
routeInfo: { routeInfo: {
id: '', id: '',
fromPage: '/marketing/sop/index' fromPage: '/tools/sop/index'
} }
} }
}, },
...@@ -50,7 +50,7 @@ export default { ...@@ -50,7 +50,7 @@ export default {
}, },
methods: { methods: {
handleTabClick() { }, handleTabClick() {},
handleBack() { handleBack() {
this.$history.push({ this.$history.push({
path: this.routeInfo.fromPage path: this.routeInfo.fromPage
......
<!-- sop管理 --> <!-- sop管理 -->
<template> <template>
<div class="marketing sop-list"> <div class="marketing sop-list">
<SopNav @clickNav="handleClick" <SopNav @clickNav="handleClick" :activeName="'second'" />
:activeName="'second'" />
<div class="m-b-20 m-t-20 p-relative"> <div class="m-b-20 m-t-20 p-relative">
<el-button :size="size" <el-button :size="size" type="primary" class="el-icon-plus" @click="handleEdit('add')">新建SOP</el-button>
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>--> <!-- <el-button class="sop-back-btn" :size="size" type="primary" @click="handleBack">返回</el-button>-->
</div> </div>
<div class="container"> <div class="container">
<GLCombiForm ref="showSearch" <GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
:rowNumber="1"
:formObj="searchForm"
:formData="searchFormData"
@handleOk="handleSearch"
@handleRest="handleReset"></GLCombiForm>
<!-- 表格区域 开始 --> <!-- 表格区域 开始 -->
<GLTable ref="sopListRef" <GLTable ref="sopListRef" :getListApi="getListApi" :noDataImg="url" :searchForm="searchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun">
:getListApi="getListApi" <div class="table-btns" slot="auth-button" slot-scope="scope">
:noDataImg="url" <GLTableButton :buttonList="tableButtonList" :buttonItem="scope.scope" :buttonNum="3"></GLTableButton>
: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> </div>
</GLTable> </GLTable>
<!-- 表格区域 end --> <!-- 表格区域 end -->
...@@ -43,7 +23,7 @@ ...@@ -43,7 +23,7 @@
<script> <script>
import * as dayjs from 'dayjs' import * as dayjs from 'dayjs'
import url from '@/assets/empty.png' import url from '@/assets/empty.png'
import SopNav from "views/sop/SopNav"; import SopNav from 'views/sop/SopNav'
export default { export default {
name: 'sopList', name: 'sopList',
components: { SopNav }, components: { SopNav },
...@@ -243,7 +223,7 @@ export default { ...@@ -243,7 +223,7 @@ export default {
{ {
confId: 2, confId: 2,
confName: '群sop' confName: '群sop'
}, }
] ]
} }
} }
...@@ -260,7 +240,7 @@ export default { ...@@ -260,7 +240,7 @@ export default {
handleJump(path, row = {}) { handleJump(path, row = {}) {
this.$router.push({ this.$router.push({
path: '/sop/' + path, 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!