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 35a4c2d5
authored
Sep 26, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复BUG
1 parent
5f66c9f9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
82 additions
and
33 deletions
src/utils/util.js
src/views/sop/editSop/baseInfo.vue
src/views/sop/sopList.vue
src/utils/util.js
View file @
35a4c2d
...
...
@@ -100,4 +100,30 @@ util.downloadIamge = function(imgsrc, name = new Date().getTime()) {
}
image
.
src
=
imgsrc
}
util
.
downloadUrl
=
function
(
url
)
{
const
link
=
document
.
createElement
(
'a'
)
link
.
href
=
url
.
replace
(
/
(
http|https
)
:/
,
''
)
document
.
body
.
appendChild
(
link
)
link
.
click
()
document
.
body
.
removeChild
(
link
)
}
util
.
isShowBtn
=
function
(
value
,
permissions
)
{
let
isShowStatus
=
false
const
menu
=
JSON
.
parse
(
sessionStorage
[
'SCRM_BASE_MENULIST'
])
menuLevel
(
menu
)
function
menuLevel
(
item
)
{
item
.
forEach
(
itm
=>
{
if
(
value
&&
itm
.
path
==
value
)
{
isShowStatus
=
true
}
if
(
!
value
&&
itm
.
meta
&&
itm
.
meta
.
permissions
.
includes
(
permissions
))
{
isShowStatus
=
true
}
if
(
itm
.
children
)
{
menuLevel
(
itm
.
children
)
}
})
}
return
isShowStatus
}
export
default
util
src/views/sop/editSop/baseInfo.vue
View file @
35a4c2d
...
...
@@ -983,9 +983,9 @@ export default {
},
getInfo
()
{
console
.
log
(
'1affdasfadsfafa'
);
this
.
marketingSOPLoading
=
true
this
.
$apis
.
sop
.
getSopInfoDetailApi
({
sopId
:
this
.
routeInfo
.
id
}).
then
(
async
res
=>
{
this
.
marketingSOPLoading
=
false
if
(
this
.
routeInfo
.
addOrEdit
==
'copy'
)
{
this
.
editForm
.
sopType
=
res
.
sopType
res
.
eventList
&&
...
...
@@ -1010,6 +1010,7 @@ export default {
this
.
editStatus
=
false
})
}
this
.
marketingSOPLoading
=
false
})
},
...
...
@@ -1552,6 +1553,8 @@ export default {
}
,
cancelJump
()
{
console
.
log
(
this
.
routeInfo
.
fromPage
);
this
.
$history
.
push
(
this
.
routeInfo
.
fromPage
)
},
...
...
src/views/sop/sopList.vue
View file @
35a4c2d
<!-- 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
class=
"sop-back-btn"
:size=
"size"
type=
"primary"
@
click=
"handleBack"
>
返回
</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 -->
...
...
@@ -26,7 +46,7 @@ import url from '@/assets/empty.png'
import
SopNav
from
"views/sop/SopNav"
;
export
default
{
name
:
'sopList'
,
components
:
{
SopNav
},
components
:
{
SopNav
},
data
()
{
return
{
size
:
'small'
,
...
...
@@ -34,7 +54,7 @@ export default {
searchForm
:
{
sopName
:
''
,
sopStatus
:
''
,
sopType
:
''
sopType
:
''
},
// 搜索
searchFormData
:
[
...
...
@@ -160,7 +180,7 @@ export default {
width
:
240
,
line
:
1
,
formatter
:
cellValue
=>
{
return
cellValue
.
sopType
==
2
?
'群sop'
:
'客户sop'
return
cellValue
.
sopType
==
2
?
'群sop'
:
'客户sop'
}
},
{
...
...
@@ -240,7 +260,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
:
'/marketing/sop/sopList'
}
:
''
})
},
...
...
@@ -269,7 +289,7 @@ export default {
handleEdit
(
addOrEdit
,
row
)
{
var
params
=
{
addOrEdit
:
addOrEdit
,
fromPage
:
'/
marketing
/sop/sopList'
,
fromPage
:
'/
tools
/sop/sopList'
,
$title
:
encodeURI
(
addOrEdit
==
'add'
?
'新建SOP'
:
'编辑SOP'
)
}
addOrEdit
!=
'add'
&&
(
params
.
id
=
row
.
id
)
...
...
@@ -341,26 +361,26 @@ export default {
</
script
>
<
style
lang=
"scss"
scoped
>
.gl-tabs
{
/deep/
.el-tabs__header
{
margin
:
0
0
10px
;
//
background
:
#f0f1f7
;
}
/
deep
/
.el-tabs__nav-wrap
::after
{
content
:
none
;
}
/
deep
/
.el-tabs__item
{
font-size
:
16px
;
color
:
#717171
;
letter-spacing
:
0.8px
;
background
:
#f0f1f7
!important
;
}
/
deep
/
.is-active
{
color
:
#5850ff
;
font-weight
:
600
;
background
:
#f0f1f7
;
border-bottom
:
2px
solid
#5850ff
!important
;
}
.gl-tabs
{
/deep/
.el-tabs__header
{
margin
:
0
0
10px
;
//
background
:
#f0f1f7
;
}
/
deep
/
.el-tabs__nav-wrap
::after
{
content
:
none
;
}
/
deep
/
.el-tabs__item
{
font-size
:
16px
;
color
:
#717171
;
letter-spacing
:
0.8px
;
background
:
#f0f1f7
!important
;
}
/
deep
/
.is-active
{
color
:
#5850ff
;
font-weight
:
600
;
background
:
#f0f1f7
;
border-bottom
:
2px
solid
#5850ff
!important
;
}
}
.sop-list
.sop-back-btn
{
position
:
absolute
;
...
...
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