Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
techbook
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
front-end-dev
techbook
Commits
c663057a
Commit
c663057a
authored
Jan 26, 2021
by
zhangyanni
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交
parent
be0a35ce
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
55 additions
and
14 deletions
+55
-14
api.js
src/views/partner/api.js
+14
-1
auditList.vue
src/views/partner/auditList.vue
+10
-6
detail.vue
src/views/partner/detail.vue
+27
-3
list.vue
src/views/partner/list.vue
+4
-4
No files found.
src/views/partner/api.js
View file @
c663057a
...
...
@@ -24,5 +24,17 @@ export default {
//运营通过/拒绝合作伙伴验收
repectPartnerAxios
(
params
){
return
api
.
fetchLoadingPost
(
"/base/partner/checkBasePartner"
,
params
);
}
},
//销售导出列表
exportManagePartnerList
(
params
)
{
return
api
.
fetchLoadingPostex
(
'/base/partner/exportSalesPartnerList'
,
params
);
},
//运营导出列表
exportAuditPartnerList
(
params
)
{
return
api
.
fetchLoadingPostex
(
'/base/partner/exportPartnerList'
,
params
);
},
}
\ No newline at end of file
src/views/partner/auditList.vue
View file @
c663057a
...
...
@@ -164,7 +164,7 @@
endTime
:
""
,
orgIdList
:[],
cur_page
:
1
,
//页数
numberData
:
1
,
//设置个数
numberData
:
1
0
,
//设置个数
keyWord
:
""
,
tableData
:
[],
total
:
2
,
...
...
@@ -323,9 +323,13 @@
//导出
exportFunc
()
{
let
params
=
{
startDate
:
this
.
startTime
,
endDate
:
this
.
endTime
,
keyWord
:
this
.
keyWord
startTime
:
this
.
startTime
,
endTime
:
this
.
endTime
,
keyWord
:
this
.
keyWord
,
contactsName
:
this
.
contactsName
,
orgIdList
:
this
.
orgIdList
,
checkState
:
this
.
currentStatus
,
starRating
:
this
.
currentStar
};
if
(
this
.
startTime
&&
this
.
endTime
)
{
if
(
this
.
publicFun
.
getDataCheck
(
this
.
startTime
,
this
.
endTime
))
{
...
...
@@ -333,13 +337,13 @@
return
;
}
}
api
.
export
DiscussRed
List
(
params
).
then
(
response
=>
{
api
.
export
AuditPartner
List
(
params
).
then
(
response
=>
{
let
blob
=
new
Blob
([
response
],
{
type
:
"application/vnd.ms-excel"
//word文档为msword,pdf文档为pdf
});
let
objectUrl
=
URL
.
createObjectURL
(
blob
);
let
link
=
document
.
createElement
(
"a"
);
let
fname
=
`
我维护的合作伙伴-`
+
`
${
titleData
}
`
+
`.xls`
;
//下载文件的名字
let
fname
=
`
验收的合作伙伴
`
+
`.xls`
;
//下载文件的名字
link
.
href
=
objectUrl
;
link
.
setAttribute
(
"download"
,
fname
);
document
.
body
.
appendChild
(
link
);
...
...
src/views/partner/detail.vue
View file @
c663057a
...
...
@@ -14,7 +14,7 @@
<el-tab-pane
label=
"详细资料"
name=
"first"
style=
"position: relative;"
>
<div
style=
"margin: 10px 30px 0;"
>
<el-row
style=
"margin: 10px 30px"
>
<p
:style=
"
{color:partnerInfo.checkState==0?'#FF5D5D':partnerInfo.checkState==1?'#0ABB87 ':'unset'}">
<i
:class=
"partnerInfo.checkState==0?'el-icon-error':partnerInfo.checkState==1?'el-icon-success ':''"
style=
"margin-right: 10px"
></i>
{{
partnerInfo
.
checkState
==
0
?
'验收驳回'
:
partnerInfo
.
checkState
==
1
?
'已验收 '
:
''
}}
</p>
<p
v-if=
"partnerInfo.checkState!=2"
style=
"padding: 10px;background: rgb(255, 239, 239);border: 1px solid rgb(255, 93, 93);"
:style=
"
{color:partnerInfo.checkState==0?'#FF5D5D':partnerInfo.checkState==1?'#0ABB87 ':'unset'}">
{{
partnerInfo
.
checkState
==
0
?
'您提交的KOL专家未通过验收,请修改后重新提交。驳回理由:'
+
partnerInfo
.
checkDesc
:
partnerInfo
.
checkState
==
1
?
'已验收 '
:
''
}}
</p>
</el-row>
<el-form
:inline=
"true"
label-width=
"160px"
:model=
"partnerInfo"
class=
"contnetform"
>
<el-form-item
label=
"单位名称:"
style=
"width: 100%;"
>
...
...
@@ -30,7 +30,12 @@
<span>
{{
partnerInfo
.
contactInformation
}}
</span>
</el-form-item>
<el-form-item
label=
"协议/证明材料:"
style=
"width: 100%;"
>
<span>
{{
partnerInfo
.
partnerName
}}
</span>
<div
v-for=
"item in partnerInfo.materialUrlList"
>
<el-button
type=
"text"
@
click=
"handleUpload(item)"
class=
"iconfont icon-download-fill"
>
{{
item
.
fileName
}}
</el-button>
</div>
</el-form-item>
<el-row>
<el-form-item
style=
"width: 100%;"
>
...
...
@@ -97,7 +102,26 @@
handleEdit
(){
this
.
$router
.
push
({
path
:
"/addPartner"
,
query
:{
id
:
this
.
$route
.
query
.
id
}})
}
},
//下载
handleUpload
(
data
)
{
var
nameArr
=
data
.
fileName
.
split
(
'.'
);
const
img
=
[
'png'
,
'jpg'
,
'PNG'
,
'JPG'
,
'jpeg'
,
'JPEG'
,
'gif'
,
'GIF'
,
'heic'
,
'HEIC'
,
'hevc'
,
'HEVC'
,
'heif'
,
'HEIF'
,
'xls'
,
'xlsx'
,
'doc'
,
'docx'
,
'pdf'
,
'pptx'
,
'ppt'
]
const
fileName
=
img
.
indexOf
(
nameArr
[
nameArr
.
length
-
1
])
!=
-
1
;
// const file = ['xls','xlsx','doc','docx','pdf','pptx','ppt'];
// const isFile = file.indexOf(nameArr[nameArr.length - 1]) != -1;
if
(
data
.
fileUrl
)
{
const
elink
=
document
.
createElement
(
'a'
);
elink
.
href
=
data
.
fileUrl
;
elink
.
setAttribute
(
"download"
,
data
.
fileName
);
document
.
body
.
appendChild
(
elink
);
elink
.
click
();
document
.
body
.
removeChild
(
elink
);
}
else
{
this
.
$message
.
error
(
this
.
$t
(
'releasejson.excelno'
));
}
},
},
mounted
()
{
this
.
getInitData
();
...
...
src/views/partner/list.vue
View file @
c663057a
...
...
@@ -214,8 +214,8 @@
//导出
exportFunc
()
{
let
params
=
{
start
Dat
e
:
this
.
startTime
,
end
Dat
e
:
this
.
endTime
,
start
Tim
e
:
this
.
startTime
,
end
Tim
e
:
this
.
endTime
,
keyWord
:
this
.
keyWord
};
if
(
this
.
startTime
&&
this
.
endTime
)
{
...
...
@@ -224,13 +224,13 @@
return
;
}
}
api
.
export
DiscussRed
List
(
params
).
then
(
response
=>
{
api
.
export
ManagePartner
List
(
params
).
then
(
response
=>
{
let
blob
=
new
Blob
([
response
],
{
type
:
"application/vnd.ms-excel"
//word文档为msword,pdf文档为pdf
});
let
objectUrl
=
URL
.
createObjectURL
(
blob
);
let
link
=
document
.
createElement
(
"a"
);
let
fname
=
`我维护的合作伙伴
-`
+
`
${
titleData
}
`
+
`.xls`
;
//下载文件的名字
let
fname
=
`我维护的合作伙伴`
+
`.xls`
;
//下载文件的名字
link
.
href
=
objectUrl
;
link
.
setAttribute
(
"download"
,
fname
);
document
.
body
.
appendChild
(
link
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment