Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-tools
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit bbb26609
authored
Oct 13, 2023
by
徐忆琳
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v3.20.0_10' into 'v3.20.0'
V3.20.0 10 See merge request
!9
2 parents
ccf7c454
20bb0113
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
45 additions
and
76 deletions
src/components/glsx-combi-form/index.vue
src/config/index.js
src/main.js
src/views/activityLink/components/MarketingGift.vue
src/views/activityLink/editActivity.vue
src/views/sop/editSop/components/activityModel.vue
src/views/sop/index.vue
src/views/sop/sopAnalysisList.vue
src/views/sop/sopList.vue
src/components/glsx-combi-form/index.vue
View file @
bbb2660
...
@@ -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
:
{
// 选择框-添加其他属性
// 选择框-添加其他属性
...
@@ -209,8 +209,8 @@ export default {
...
@@ -209,8 +209,8 @@ export default {
var
reader
=
new
FileReader
()
var
reader
=
new
FileReader
()
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
...
...
src/config/index.js
View file @
bbb2660
...
@@ -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
)
{
...
...
src/main.js
View file @
bbb2660
...
@@ -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: 202
2-11-23 17:20:32
* @LastEditTime: 202
3-09-27 17:01:25
* @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
)
src/views/activityLink/components/MarketingGift.vue
View file @
bbb2660
...
@@ -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
)
{
...
...
src/views/activityLink/editActivity.vue
View file @
bbb2660
...
@@ -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'
)
}
}
},
},
{
{
...
...
src/views/sop/editSop/components/activityModel.vue
View file @
bbb2660
...
@@ -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
;
...
...
src/views/sop/index.vue
View file @
bbb2660
...
@@ -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
)
...
...
src/views/sop/sopAnalysisList.vue
View file @
bbb2660
...
@@ -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"
>
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
import
completeList
from
'./sopAnalysis/completeList.vue'
import
completeList
from
'./sopAnalysis/completeList.vue'
import
touchList
from
'./sopAnalysis/touchList.vue'
import
touchList
from
'./sopAnalysis/touchList.vue'
import
staffList
from
'./sopAnalysis/staffList.vue'
import
staffList
from
'./sopAnalysis/staffList.vue'
import
ResultList
from
'./sopAnalysis/resultList.vue'
import
ResultList
from
'./sopAnalysis/resultList.vue'
export
default
{
export
default
{
name
:
'gitfBag'
,
name
:
'gitfBag'
,
data
()
{
data
()
{
...
@@ -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
...
...
src/views/sop/sopList.vue
View file @
bbb2660
<!-- 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'
}
:
''
})
})
},
},
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment