Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
A
admin-base
Project
Project
Details
Activity
Releases
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
new-sing
admin-base
Commits
7f9bbff6
Commit
7f9bbff6
authored
Dec 18, 2018
by
chenfenglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
工具设置
parent
39e2f92a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
6 deletions
+12
-6
index.vue
src/components/class/index.vue
+1
-0
entrance.vue
src/components/framework/other/entrance.vue
+11
-5
api.js
src/service/api.js
+0
-1
No files found.
src/components/class/index.vue
View file @
7f9bbff6
...
@@ -294,6 +294,7 @@
...
@@ -294,6 +294,7 @@
getTeacher
(){
getTeacher
(){
if
(
!
this
.
periods
)
return
;
if
(
!
this
.
periods
)
return
;
getPeriodsTeacherApi
(
this
.
periods
.
id
).
then
(
res
=>
{
getPeriodsTeacherApi
(
this
.
periods
.
id
).
then
(
res
=>
{
console
.
log
(
res
)
this
.
teacherList
=
res
this
.
teacherList
=
res
})
})
},
},
...
...
src/components/framework/other/entrance.vue
View file @
7f9bbff6
...
@@ -14,8 +14,8 @@
...
@@ -14,8 +14,8 @@
<el-option
<el-option
v-for=
"(data,index) in goodsList"
v-for=
"(data,index) in goodsList"
:key=
"index"
:key=
"index"
:label=
"data.
course_titl
e"
:label=
"data.
nam
e"
:value=
"
data.id
"
>
:value=
"
String(data.id)
"
>
</el-option>
</el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
...
@@ -38,7 +38,7 @@
...
@@ -38,7 +38,7 @@
v-for=
"(data,index) in periodList"
v-for=
"(data,index) in periodList"
:key=
"index"
:key=
"index"
:label=
"data.title"
:label=
"data.title"
:value=
"
data.id
"
>
:value=
"
String(data.id)
"
>
</el-option>
</el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
...
@@ -97,7 +97,6 @@ export default {
...
@@ -97,7 +97,6 @@ export default {
this
.
periodList
=
res
.
list
;
this
.
periodList
=
res
.
list
;
});
});
},
},
getGoodsList
(){
getGoodsList
(){
let
json
=
{
let
json
=
{
limit
:
2000
,
limit
:
2000
,
...
@@ -114,7 +113,14 @@ export default {
...
@@ -114,7 +113,14 @@ export default {
cancelButtonText
:
'取消'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
type
:
'warning'
}).
then
(()
=>
{
}).
then
(()
=>
{
putConfigApi
(
data
).
then
(
res
=>
{
console
.
log
(
data
);
let
json
=
{
}
json
.
value
=
data
.
value
;
json
.
key
=
data
.
key
;
json
.
desc
=
data
.
desc
;
putConfigApi
(
json
).
then
(
res
=>
{
this
.
$message
({
this
.
$message
({
type
:
'success'
,
type
:
'success'
,
message
:
'设置成功!'
message
:
'设置成功!'
...
...
src/service/api.js
View file @
7f9bbff6
...
@@ -773,6 +773,5 @@ export const getqrCodeApi = function (json) {
...
@@ -773,6 +773,5 @@ export const getqrCodeApi = function (json) {
//设置系统指定配置
//设置系统指定配置
const
putConfigUrl
=
`/api/admin/tools/config`
;
const
putConfigUrl
=
`/api/admin/tools/config`
;
export
const
putConfigApi
=
function
(
json
)
{
export
const
putConfigApi
=
function
(
json
)
{
console
.
log
(
json
)
return
Vue
.
prototype
.
$put
(
`
${
putConfigUrl
}
`
,
json
)
return
Vue
.
prototype
.
$put
(
`
${
putConfigUrl
}
`
,
json
)
};
};
\ No newline at end of file
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