Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
visualcloud
/
Vmatrix-admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
ec2da2ba
authored
Dec 27, 2019
by
hank
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改字段
parent
e514108b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
3 deletions
+14
-3
src/api/Menu.js
+3
-2
src/views/template/template-type-detail.vue
+2
-1
src/views/template/template-type.vue
+9
-0
No files found.
src/api/Menu.js
View file @
ec2da2ba
...
@@ -104,13 +104,14 @@ export function getTypeTagList(typeId = '', p = 1, c = 20) {
...
@@ -104,13 +104,14 @@ export function getTypeTagList(typeId = '', p = 1, c = 20) {
* @param {*} typeMenuId
* @param {*} typeMenuId
* 根据类型ID修改模板类型信息
* 根据类型ID修改模板类型信息
*/
*/
export
function
typeUpdateInfo
(
typeMenuName
,
typeMenuId
)
{
export
function
typeUpdateInfo
(
typeMenuName
,
typeMenuId
,
typeOrder
)
{
return
request
({
return
request
({
url
:
'/type/update/info'
,
url
:
'/type/update/info'
,
method
:
'post'
,
method
:
'post'
,
data
:
{
data
:
{
typeMenuName
,
typeMenuName
,
typeMenuId
typeMenuId
,
typeOrder
}
}
})
})
}
}
...
...
src/views/template/template-type-detail.vue
View file @
ec2da2ba
...
@@ -394,7 +394,8 @@ export default {
...
@@ -394,7 +394,8 @@ export default {
if
(
valid
)
{
if
(
valid
)
{
typeUpdateInfo
(
typeUpdateInfo
(
this
.
detailTemp
.
typeName
,
this
.
detailTemp
.
typeName
,
this
.
$route
.
query
.
typeId
this
.
$route
.
query
.
typeId
,
this
.
detailTemp
.
typeOrder
,
).
then
(()
=>
{
).
then
(()
=>
{
this
.
$notify
({
this
.
$notify
({
title
:
'Success'
,
title
:
'Success'
,
...
...
src/views/template/template-type.vue
View file @
ec2da2ba
...
@@ -37,6 +37,15 @@
...
@@ -37,6 +37,15 @@
</
template
>
-->
</
template
>
-->
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
label=
"排序序号"
width=
"auto"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
typeMenuOrder
}}
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"模板类型名称"
label=
"模板类型名称"
width=
"auto"
width=
"auto"
align=
"center"
align=
"center"
...
...
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