保存进度!

This commit is contained in:
Kane 2023-01-30 23:25:57 +08:00
parent 30b0304309
commit d0d143d916
3 changed files with 26 additions and 9 deletions

View File

@ -2,8 +2,8 @@
* @Author: Kane
* @Date: 2022-12-14 15:12:46
* @LastEditors: Kane
* @LastEditTime: 2023-01-28 21:38:31
* @FilePath: \admin_system\src\router\index.js
* @LastEditTime: 2023-01-30 22:43:16
* @FilePath: \IT工具综合平台\src\router\index.js
* @Description: 定义应用路由配置
*
* Copyright (c) ${2022} by Kane, All Rights Reserved.
@ -50,7 +50,7 @@ const routes = [
title: "工作台",
icon: "house",
},
component: () => import("../views/overview/OverView.vue"),
component: () => import("../views/overview/Desktop.vue"),
},
],
},

View File

@ -2,17 +2,27 @@
* @Author: Kane
* @Date: 2023-01-30 17:06:10
* @LastEditors: Kane
* @LastEditTime: 2023-01-30 21:42:50
* @LastEditTime: 2023-01-30 22:57:51
* @FilePath: \IT工具综合平台\src\utils\global.js
* @Description: 全局方法
*
* Copyright (c) ${2022} by Kane, All Rights Reserved.
*/
import { ElMessageBox } from "element-plus";
const globalFunction = {
deleteConfirm: (param) =>
deleteConfirm: () =>
{
console.log("删除确认", param);
ElMessageBox.confirm("确认删除当前数据吗,删除后无法恢复!", "提示",
{
confirmButtonText: "确定",
cancelButtonText: "取消",
showClose: false,
closeOnClickModal: false,
closeOnPressEscape: false,
type: "warning",
}
).then(()=>{});
},
message: (param) =>
{

View File

@ -2,8 +2,8 @@
* @Author: Kane
* @Date: 2023-01-06 15:30:12
* @LastEditors: Kane
* @LastEditTime: 2023-01-28 09:44:31
* @FilePath: \admin_system\src\views\overview\OverView.vue
* @LastEditTime: 2023-01-30 22:54:11
* @FilePath: \IT工具综合平台\src\views\overview\desktop.vue
* @Description:
*
* Copyright (c) ${2022} by Kane, All Rights Reserved.
@ -52,11 +52,18 @@
<el-col :span="3"></el-col>
</el-row>
</el-form>
<el-button type="danger" @click="test_1">测试</el-button>
</template>
<script>
export default {
name: "OverVue"
name: "DeskTop",
methods: {
test_1()
{
this.deleteConfirm();
},
},
};
</script>