添加删除确认,修改操作信息
This commit is contained in:
parent
07cee69631
commit
9336042b3b
|
|
@ -4,7 +4,7 @@ import { ElMessage } from 'element-plus';
|
||||||
//const baseURL = "https://gep.ljsea.xyz/";
|
//const baseURL = "https://gep.ljsea.xyz/";
|
||||||
//const baseURL= "http://localhost:8083";
|
//const baseURL= "http://localhost:8083";
|
||||||
//const baseURL="https://pm.ljsea.top";
|
//const baseURL="https://pm.ljsea.top";
|
||||||
const baseURL2 = "https://gep.ljsea.xyz/";
|
const baseURL2 = "https://gep.ljsea.top/";
|
||||||
const request2 = axios.create({
|
const request2 = axios.create({
|
||||||
baseURL: baseURL2,
|
baseURL: baseURL2,
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -98,6 +98,10 @@ export default {
|
||||||
router.push("/cidlog");
|
router.push("/cidlog");
|
||||||
},
|
},
|
||||||
async deleteCID(index) {
|
async deleteCID(index) {
|
||||||
|
// 删除前确认
|
||||||
|
if (!confirm("确定删除吗?")) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
var id = this.tableData[index].ID;
|
var id = this.tableData[index].ID;
|
||||||
var delete_data = {
|
var delete_data = {
|
||||||
id: id,
|
id: id,
|
||||||
|
|
|
||||||
|
|
@ -110,6 +110,12 @@ export default {
|
||||||
router.push("/deviceRealVP");
|
router.push("/deviceRealVP");
|
||||||
},
|
},
|
||||||
async deleteDevice(index) {
|
async deleteDevice(index) {
|
||||||
|
// 删除前确认
|
||||||
|
if (!confirm("确定删除吗?")) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
var id = this.tableData[index].ID;
|
var id = this.tableData[index].ID;
|
||||||
var delete_data = {
|
var delete_data = {
|
||||||
id: id,
|
id: id,
|
||||||
|
|
|
||||||
|
|
@ -319,6 +319,10 @@ export default {
|
||||||
},
|
},
|
||||||
//退出群聊
|
//退出群聊
|
||||||
async DelFriendsOrGroup(index){
|
async DelFriendsOrGroup(index){
|
||||||
|
// 删除前确认
|
||||||
|
if (!confirm("确定退出吗?")) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
var id = this.add_groups[index].ID;
|
var id = this.add_groups[index].ID;
|
||||||
|
|
||||||
let result ={}
|
let result ={}
|
||||||
|
|
|
||||||
|
|
@ -116,6 +116,10 @@ export default {
|
||||||
},
|
},
|
||||||
//删除好友
|
//删除好友
|
||||||
async DelFriendsOrGroup(index){
|
async DelFriendsOrGroup(index){
|
||||||
|
// 删除前确认
|
||||||
|
if (!confirm("确定删除吗?")) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
var id = this.FriendsGList[index].id;
|
var id = this.FriendsGList[index].id;
|
||||||
var name = this.FriendsGList[index].name;
|
var name = this.FriendsGList[index].name;
|
||||||
let result ={}
|
let result ={}
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,7 @@ import { getVideoListService, quashVideoService } from "@/api/video.js";
|
||||||
import { delayVideoService } from "@/api/video.js";
|
import { delayVideoService } from "@/api/video.js";
|
||||||
import router from "@/router/index.js";
|
import router from "@/router/index.js";
|
||||||
import Cookies from "js-cookie";
|
import Cookies from "js-cookie";
|
||||||
|
import { ElMessage } from 'element-plus';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
|
|
@ -66,7 +67,8 @@ export default {
|
||||||
// 撤销操作
|
// 撤销操作
|
||||||
let result=await quashVideoService(this.tokenData);
|
let result=await quashVideoService(this.tokenData);
|
||||||
if (result.code == 0) {
|
if (result.code == 0) {
|
||||||
alert(result.message);
|
//alert(result.message);
|
||||||
|
ElMessage.success(result.message);
|
||||||
this.getVideoList();
|
this.getVideoList();
|
||||||
} else {
|
} else {
|
||||||
alert("操作失败");
|
alert("操作失败");
|
||||||
|
|
@ -133,6 +135,7 @@ export default {
|
||||||
URL.revokeObjectURL(videoUrl);
|
URL.revokeObjectURL(videoUrl);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error("下载视频时发生错误:", error);
|
console.error("下载视频时发生错误:", error);
|
||||||
|
ElMessage.error("下载视频时发生错误")
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async delayVideo(index) {
|
async delayVideo(index) {
|
||||||
|
|
@ -149,9 +152,11 @@ export default {
|
||||||
try {
|
try {
|
||||||
var d_re = await delayVideoService(delay_data);
|
var d_re = await delayVideoService(delay_data);
|
||||||
if (d_re.code == 0) {
|
if (d_re.code == 0) {
|
||||||
alert(d_re.message);
|
//alert(d_re.message);
|
||||||
|
ElMessage.success(d_re.message);
|
||||||
} else {
|
} else {
|
||||||
alert("操作失败");
|
ElMessage.error("操作失败");
|
||||||
|
//alert("操作失败");
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log(e);
|
console.log(e);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue