完成了多选修改按钮的实现
This commit is contained in:
parent
f8c0d1066d
commit
6e725128ea
@ -4,7 +4,6 @@ import {ElButton, ElForm, ElFormItem, ElInput, ElMessage, ElPagination, ElTable,
|
|||||||
import axios from "axios";
|
import axios from "axios";
|
||||||
import {useStore} from "vuex";
|
import {useStore} from "vuex";
|
||||||
import {useRouter} from "vue-router";
|
import {useRouter} from "vue-router";
|
||||||
import EditNews from "@views/news-management/EditNews.vue";
|
|
||||||
|
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
|
|
||||||
@ -69,9 +68,9 @@ const handleReset = () => {
|
|||||||
const handleEditButton = () => {
|
const handleEditButton = () => {
|
||||||
//读取每一个selection中的选项id并新建标签页分别跳转打开编辑页面
|
//读取每一个selection中的选项id并新建标签页分别跳转打开编辑页面
|
||||||
selections.value.forEach(selection => {
|
selections.value.forEach(selection => {
|
||||||
// TODO:待修改
|
const url = router.resolve({name: 'editNews', query: {mode: 'edit', id: selection.id}}).href;
|
||||||
router.push({name: 'EditNews', params: {id: selection.id}})
|
window.open(url, '_blank');
|
||||||
})
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleDeleteButton = () => {
|
const handleDeleteButton = () => {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user