Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
dev
/
mgm-growth-admin-pro
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
8a796e68
authored
2019-09-18 12:14:10 +0800
by
joe
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
管理端增加小程序跳转配置
1 parent
2422e4ef
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
86 additions
and
16 deletions
package-lock.json
src/api/api.js
src/pages/classroom/ArticleManager.vue
src/pages/classroom/BannerManager.vue
package-lock.json
View file @
8a796e6
...
...
@@ -325,7 +325,8 @@
"version"
:
"1.0.0"
,
"resolved"
:
"http://registry.npm.taobao.org/assert-plus/download/assert-plus-1.0.0.tgz"
,
"integrity"
:
"sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU="
,
"dev"
:
true
"dev"
:
true
,
"optional"
:
true
},
"assign-symbols"
:
{
"version"
:
"1.0.0"
,
...
...
@@ -1972,6 +1973,7 @@
"resolved"
:
"http://registry.npm.taobao.org/combined-stream/download/combined-stream-1.0.7.tgz"
,
"integrity"
:
"sha1-LR0kMXr7ir6V1tLAsHtXgTU52Cg="
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"delayed-stream"
:
"~1.0.0"
}
...
...
@@ -2763,7 +2765,8 @@
"version"
:
"1.0.0"
,
"resolved"
:
"http://registry.npm.taobao.org/delayed-stream/download/delayed-stream-1.0.0.tgz"
,
"integrity"
:
"sha1-3zrhmayt+31ECqrgsp4icrJOxhk="
,
"dev"
:
true
"dev"
:
true
,
"optional"
:
true
},
"depd"
:
{
"version"
:
"1.1.2"
,
...
...
@@ -3531,7 +3534,8 @@
"version"
:
"1.3.0"
,
"resolved"
:
"http://registry.npm.taobao.org/extsprintf/download/extsprintf-1.3.0.tgz"
,
"integrity"
:
"sha1-lpGEQOMEGnpBT4xS48V06zw+HgU="
,
"dev"
:
true
"dev"
:
true
,
"optional"
:
true
},
"fast-deep-equal"
:
{
"version"
:
"1.1.0"
,
...
...
@@ -3870,7 +3874,8 @@
"ansi-regex"
:
{
"version"
:
"2.1.1"
,
"bundled"
:
true
,
"dev"
:
true
"dev"
:
true
,
"optional"
:
true
},
"aproba"
:
{
"version"
:
"1.2.0"
,
...
...
@@ -3891,12 +3896,14 @@
"balanced-match"
:
{
"version"
:
"1.0.0"
,
"bundled"
:
true
,
"dev"
:
true
"dev"
:
true
,
"optional"
:
true
},
"brace-expansion"
:
{
"version"
:
"1.1.11"
,
"bundled"
:
true
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"balanced-match"
:
"^1.0.0"
,
"concat-map"
:
"0.0.1"
...
...
@@ -3911,17 +3918,20 @@
"code-point-at"
:
{
"version"
:
"1.1.0"
,
"bundled"
:
true
,
"dev"
:
true
"dev"
:
true
,
"optional"
:
true
},
"concat-map"
:
{
"version"
:
"0.0.1"
,
"bundled"
:
true
,
"dev"
:
true
"dev"
:
true
,
"optional"
:
true
},
"console-control-strings"
:
{
"version"
:
"1.1.0"
,
"bundled"
:
true
,
"dev"
:
true
"dev"
:
true
,
"optional"
:
true
},
"core-util-is"
:
{
"version"
:
"1.0.2"
,
...
...
@@ -4038,7 +4048,8 @@
"inherits"
:
{
"version"
:
"2.0.3"
,
"bundled"
:
true
,
"dev"
:
true
"dev"
:
true
,
"optional"
:
true
},
"ini"
:
{
"version"
:
"1.3.5"
,
...
...
@@ -4050,6 +4061,7 @@
"version"
:
"1.0.0"
,
"bundled"
:
true
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"number-is-nan"
:
"^1.0.0"
}
...
...
@@ -4064,6 +4076,7 @@
"version"
:
"3.0.4"
,
"bundled"
:
true
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"brace-expansion"
:
"^1.1.7"
}
...
...
@@ -4071,12 +4084,14 @@
"minimist"
:
{
"version"
:
"0.0.8"
,
"bundled"
:
true
,
"dev"
:
true
"dev"
:
true
,
"optional"
:
true
},
"minipass"
:
{
"version"
:
"2.2.4"
,
"bundled"
:
true
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"safe-buffer"
:
"^5.1.1"
,
"yallist"
:
"^3.0.0"
...
...
@@ -4095,6 +4110,7 @@
"version"
:
"0.5.1"
,
"bundled"
:
true
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"minimist"
:
"0.0.8"
}
...
...
@@ -4175,7 +4191,8 @@
"number-is-nan"
:
{
"version"
:
"1.0.1"
,
"bundled"
:
true
,
"dev"
:
true
"dev"
:
true
,
"optional"
:
true
},
"object-assign"
:
{
"version"
:
"4.1.1"
,
...
...
@@ -4187,6 +4204,7 @@
"version"
:
"1.4.0"
,
"bundled"
:
true
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"wrappy"
:
"1"
}
...
...
@@ -4272,7 +4290,8 @@
"safe-buffer"
:
{
"version"
:
"5.1.1"
,
"bundled"
:
true
,
"dev"
:
true
"dev"
:
true
,
"optional"
:
true
},
"safer-buffer"
:
{
"version"
:
"2.1.2"
,
...
...
@@ -4308,6 +4327,7 @@
"version"
:
"1.0.2"
,
"bundled"
:
true
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"code-point-at"
:
"^1.0.0"
,
"is-fullwidth-code-point"
:
"^1.0.0"
,
...
...
@@ -4327,6 +4347,7 @@
"version"
:
"3.0.1"
,
"bundled"
:
true
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"ansi-regex"
:
"^2.0.0"
}
...
...
@@ -4370,12 +4391,14 @@
"wrappy"
:
{
"version"
:
"1.0.2"
,
"bundled"
:
true
,
"dev"
:
true
"dev"
:
true
,
"optional"
:
true
},
"yallist"
:
{
"version"
:
"3.0.2"
,
"bundled"
:
true
,
"dev"
:
true
"dev"
:
true
,
"optional"
:
true
}
}
},
...
...
@@ -5589,7 +5612,8 @@
"version"
:
"0.1.1"
,
"resolved"
:
"http://registry.npm.taobao.org/jsbn/download/jsbn-0.1.1.tgz"
,
"integrity"
:
"sha1-peZUwuWi3rXyAdls77yoDA7y9RM="
,
"dev"
:
true
"dev"
:
true
,
"optional"
:
true
},
"jsesc"
:
{
"version"
:
"1.3.0"
,
...
...
@@ -10765,7 +10789,8 @@
"version"
:
"0.14.5"
,
"resolved"
:
"http://registry.npm.taobao.org/tweetnacl/download/tweetnacl-0.14.5.tgz"
,
"integrity"
:
"sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q="
,
"dev"
:
true
"dev"
:
true
,
"optional"
:
true
},
"type-check"
:
{
"version"
:
"0.3.2"
,
...
...
src/api/api.js
View file @
8a796e6
...
...
@@ -189,3 +189,38 @@ export const dashboardExport = params => {
console
.
log
(
"url:"
,
url
);
window
.
open
(
url
)
};
export
const
request
=
{
post
(
url
,
data
)
{
return
axios
.
post
(
`
${
base
}${
url
}
`
,
data
);
},
get
(
url
,
data
)
{
return
axios
.
get
(
`
${
base
}${
url
}
`
,
{
params
:
data
});
},
form
(
url
,
params
)
{
let
formData
=
new
FormData
();
//使用formData对象
for
(
let
key
in
params
)
{
formData
.
append
(
key
,
params
[
key
]);
}
let
requestUrl
=
url
.
indexOf
(
"://"
)
>=
0
?
`
${
url
}
`
:
`
${
base
}${
url
}
`
;
return
axios
.
post
(
requestUrl
,
formData
,
formDataHeaders
)
},
build
(
url
,
params
)
{
let
fullUrl
=
`
${
base
}${
url
}
`
;
let
split
=
""
;
for
(
let
key
in
params
)
{
if
(
split
)
{
split
=
"&"
;
}
else
{
split
=
"?"
}
fullUrl
+=
split
+
key
+
"="
+
params
[
key
];
}
return
fullUrl
;
},
requestDomain
()
{
return
`
${
base
}
`
}
/*test*/
};
\ No newline at end of file
...
...
src/pages/classroom/ArticleManager.vue
View file @
8a796e6
...
...
@@ -27,6 +27,9 @@
style=
"width: 100%;"
>
<el-table-column
prop=
"title"
label=
"标题"
></el-table-column>
<el-table-column
label=
"所属分类"
>
<template
slot-scope=
"scope"
>
{{
formatClassify
(
scope
.
row
)
}}
</
template
>
</el-table-column>
<!-- <el-table-column prop="thumb" label="封面"></el-table-column> -->
<el-table-column
label=
"封面图"
>
<
template
slot-scope=
"scope"
>
...
...
@@ -161,6 +164,7 @@ export default {
classifyDialogList
:
[],
tagList
:
[]
},
classifyMap
:
{},
listLoading
:
false
,
editLoading
:
false
,
editFormVisible
:
false
,
...
...
@@ -294,6 +298,9 @@ export default {
this
.
$set
(
this
.
totalData
,
'classifyDialogList'
,
content
)
//深复制
let
content2
=
Object
.
assign
([],
content
)
content2
.
forEach
(
element
=>
{
this
.
classifyMap
[
element
.
classify
]
=
element
.
name
;
});
content2
.
unshift
({
classify
:
''
,
dispayType
:
''
,
...
...
@@ -330,6 +337,9 @@ export default {
this
.
reqTagList
()
console
.
log
(
'editForm:'
,
this
.
editForm
)
},
formatClassify
(
data
)
{
return
this
.
classifyMap
[
data
.
classify
];
},
deleteHandler
(
index
,
row
)
{
let
data
=
{
articleCode
:
row
.
articleCode
...
...
src/pages/classroom/BannerManager.vue
View file @
8a796e6
This diff is collapsed.
Click to expand it.
Please
register
or
sign in
to post a comment