Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gs1
Overview
Overview
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
吴迪
gs1
Commits
7faf34f8
Commit
7faf34f8
authored
Nov 14, 2021
by
林家欣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
业务大厅右侧表格下载、政策法规联调
parent
410eef8f
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
70 additions
and
6 deletions
+70
-6
api.js
src/axios/api.js
+3
-0
business.js
src/axios/module/business.js
+21
-0
bgxz.vue
src/views/Business/copms/bgxz.vue
+26
-2
zcfg.vue
src/views/Business/copms/zcfg.vue
+18
-2
index.vue
src/views/Business/index.vue
+2
-2
No files found.
src/axios/api.js
View file @
7faf34f8
...
...
@@ -5,9 +5,11 @@
/* 公共接口 */
import
home
from
"./module/home.js"
import
business
from
"./module/business.js"
const
api
=
{
home
,
business
,
}
export
default
api
\ No newline at end of file
src/axios/module/business.js
0 → 100644
View file @
7faf34f8
import
{
POST
}
from
"../fetch.js"
const
Prefix
=
process
.
env
.
NODE_ENV
===
'development'
?
'/gs1'
:
'/gs1'
;
// 右侧表格下载功能
const
businessDownLoad
=
(
params
=
{})
=>
{
return
POST
(
`
${
Prefix
}
/office/doc/api/downLoad`
,
params
)
}
// 右侧政策法规前四条数据
const
businessGetTop4
=
(
params
=
{})
=>
{
return
POST
(
`
${
Prefix
}
/office/policy/api/getTop4`
,
params
)
}
export
default
{
businessDownLoad
,
businessGetTop4
,
}
src/views/Business/copms/bgxz.vue
View file @
7faf34f8
...
...
@@ -3,9 +3,9 @@
<cate
:father=
"bgxzCate"
></cate>
<div
class=
"container"
>
<ul
class=
"tmgg-ul"
>
<li
v-for=
"(tmp, i) in
4"
:key=
"i
"
>
<li
v-for=
"(tmp, i) in
list"
:key=
"i"
@
click=
"handelDownload(i)
"
>
<span></span>
<span>
新疆西域之嘉乳业责任有限责任注册公司
</span>
<span>
{{
tmp
.
title
}}
</span>
</li>
</ul>
</div>
...
...
@@ -24,8 +24,31 @@ export default {
name
:
"表格下载"
,
ico
:
require
(
"../../../assets/image/business/icon_down.png"
),
},
list
:
[],
};
},
created
()
{
// 右侧表格下载功能
this
.
businessDownLoad
();
},
methods
:
{
// 右侧表格下载功能
async
businessDownLoad
()
{
const
businessDownLoadRes
=
await
this
.
$api
.
business
.
businessDownLoad
();
const
{
returnCode
,
data
}
=
businessDownLoadRes
;
if
(
returnCode
===
"0"
)
{
data
.
forEach
(
el
=>
{
el
.
docfile
=
`http://www.gs1cn.org/manage/down/
${
el
.
docfile
}
`
;
});
this
.
list
=
data
;
}
console
.
log
(
businessDownLoadRes
,
"右侧表格下载功能"
);
},
// 下载
handelDownload
(
i
)
{
window
.
open
(
this
.
list
[
i
].
docfile
,
'_blank'
);
}
},
};
</
script
>
<
style
lang=
"scss"
>
...
...
@@ -39,6 +62,7 @@ export default {
display
:
flex
;
align-items
:
center
;
padding
:
10px
0
;
cursor
:
pointer
;
span
{
&:nth-child(1)
{
width
:
6px
;
...
...
src/views/Business/copms/zcfg.vue
View file @
7faf34f8
...
...
@@ -3,8 +3,8 @@
<cate
:father=
"zcfgCate"
></cate>
<div
class=
"container"
>
<ul
class=
"zcfg-ul"
>
<li
v-for=
"(tmp, i) in
4
"
:key=
"i"
>
<span>
中华人民共和国标准化法
</span>
<li
v-for=
"(tmp, i) in
list
"
:key=
"i"
>
<span>
{{
tmp
.
title
}}
</span>
</li>
</ul>
</div>
...
...
@@ -23,8 +23,24 @@ export default {
name
:
"政策法规"
,
ico
:
require
(
"../../../assets/image/business/icon_zhengce.png"
),
},
list
:
[],
};
},
created
()
{
// 右侧政策法规前四条数据
this
.
businessGetTop4
();
},
methods
:
{
// 右侧政策法规前四条数据
async
businessGetTop4
()
{
const
businessGetTop4Res
=
await
this
.
$api
.
business
.
businessGetTop4
();
const
{
returnCode
,
data
}
=
businessGetTop4Res
;
if
(
returnCode
===
"0"
)
{
this
.
list
=
data
;
}
console
.
log
(
businessGetTop4Res
,
"右侧政策法规前四条数据"
);
},
},
};
</
script
>
<
style
lang=
"scss"
>
...
...
src/views/Business/index.vue
View file @
7faf34f8
...
...
@@ -644,7 +644,7 @@ export default {
this
.
routeList
,
originPath
);
console
.
log
(
currentRoute
,
"currentRoute"
);
//
console.log(currentRoute, "currentRoute");
if
(
currentRoute
.
children
&&
currentRoute
.
children
.
length
>
0
)
{
newRouteList
=
currentRoute
.
children
;
}
else
if
(
currentRoute
.
noneChild
)
{
...
...
@@ -660,7 +660,7 @@ export default {
},
},
created
()
{
console
.
log
(
this
.
$route
,
"this.$route"
);
//
console.log(this.$route, "this.$route");
},
methods
:
{
deepFindCurrentRoute
(
menuList
,
activePath
)
{
...
...
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