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
bff70189
Commit
bff70189
authored
Jan 09, 2019
by
chenfenglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化二维码上下位置替换
parent
ca92d720
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
0 deletions
+25
-0
dialog.vue
src/components/qrcode/dialog.vue
+24
-0
index.vue
src/components/resources/index.vue
+1
-0
No files found.
src/components/qrcode/dialog.vue
View file @
bff70189
...
@@ -148,6 +148,8 @@
...
@@ -148,6 +148,8 @@
size=
"small"
>
size=
"small"
>
移除
移除
</el-button>
</el-button>
<i
class=
"iconfont icon-shangyi"
@
click=
"upIndex(scope.$index, list)"
v-if=
"!$store.state.readonly"
style=
"cursor: pointer;color: #409EFF;margin-left:10px;"
></i>
<i
class=
"iconfont icon-xiayi"
@
click=
"downIndex(scope.$index, list)"
v-if=
"!$store.state.readonly"
style=
"cursor: pointer;color: #409EFF;"
></i>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
...
@@ -367,6 +369,28 @@
...
@@ -367,6 +369,28 @@
});
});
})
})
},
},
upIndex
(
index
,
list
){
if
(
index
>
0
){
var
tempOption
=
list
[
index
-
1
];
Vue
.
set
(
list
,
index
-
1
,
list
[
index
]);
Vue
.
set
(
list
,
index
,
tempOption
);
this
.
$message
({
type
:
'success'
,
message
:
'操作成功!'
});
}
},
downIndex
(
index
,
list
){
if
(
index
<
list
.
length
-
1
){
var
tempOption
=
list
[
index
+
1
];
Vue
.
set
(
list
,
index
+
1
,
list
[
index
]);
Vue
.
set
(
list
,
index
,
tempOption
);
this
.
$message
({
type
:
'success'
,
message
:
'操作成功!'
});
}
},
}
}
}
}
</
script
>
</
script
>
...
...
src/components/resources/index.vue
View file @
bff70189
...
@@ -146,6 +146,7 @@
...
@@ -146,6 +146,7 @@
category_up_id
:
data
.
id
,
category_up_id
:
data
.
id
,
category_down_id
:
item
[
i
-
1
].
id
category_down_id
:
item
[
i
-
1
].
id
};
};
console
.
log
(
json
)
sortCategoryApi
(
json
).
then
(
res
=>
{
sortCategoryApi
(
json
).
then
(
res
=>
{
this
.
getList
()
this
.
getList
()
})
})
...
...
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