From 3cb05f85a2c32a1fdde5cef35e5c42644dd65d8a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E7=93=B6=E4=B8=AD=E6=B2=99?= <464652163@qq.com>
Date: Wed, 8 May 2024 23:16:25 +0800
Subject: [PATCH] 111
---
src/components/PzSet.vue | 102 +++++++++++++++++++++++++++++++++++++++
src/views/Page.vue | 33 +++++++++++--
2 files changed, 132 insertions(+), 3 deletions(-)
create mode 100644 src/components/PzSet.vue
diff --git a/src/components/PzSet.vue b/src/components/PzSet.vue
new file mode 100644
index 0000000..309d312
--- /dev/null
+++ b/src/components/PzSet.vue
@@ -0,0 +1,102 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ -
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 保存
+ 取消
+
+
+
+
+
+
diff --git a/src/views/Page.vue b/src/views/Page.vue
index c9a8145..ecd4b5f 100644
--- a/src/views/Page.vue
+++ b/src/views/Page.vue
@@ -83,6 +83,9 @@
+
+ 配置
+
编辑
@@ -113,6 +116,13 @@
@dialogSuccess="dialogSuccess1"
>
+
+
@@ -122,11 +132,13 @@ import infoApi from "@/api/infoApi.js";
import { ElMessage, ElMessageBox } from "element-plus";
import AddData from "@/components/AddData.vue";
import AddSet from "@/components/AddSet.vue";
+import PzSet from "@/components/PzSet.vue";
export default {
name: "page",
components: {
AddData,
AddSet,
+ PzSet
},
setup() {
const state = reactive({
@@ -135,7 +147,8 @@ export default {
formData: {},
dialogVisible: false,
dialogVisible1: false,
- type: '0' // 0新增 1 编辑
+ dialogVisible2: false,// 配置弹框
+ type: '0', // 0新增 1 编辑
});
onMounted(() => {
@@ -173,11 +186,18 @@ export default {
const dialogClose1 = () => {
state.dialogVisible1 = false;
};
-
+ const dialogClose2 = () => {
+ state.dialogVisible2 = false;
+ };
+
const dialogSuccess1 = () => {
state.dialogVisible1 = false;
getTableData();
};
+ const dialogSuccess2 = () => {
+ state.dialogVisible2 = false;
+ getTableData();
+ };
const addData = () => {
state.formData = {
name: '',
@@ -237,6 +257,10 @@ export default {
}
};
+ const openPz = (item) => {
+ state.dialogVisible2 = true;
+ }
+
return {
...toRefs(state),
addData,
@@ -247,7 +271,10 @@ export default {
dialogSuccess,
changeStatus,
dialogClose1,
- dialogSuccess1
+ dialogSuccess1,
+ dialogClose2,
+ dialogSuccess2,
+ openPz
};
},
};