From 161888a77f3bce7e51ee09056a8ba3e660b6018f Mon Sep 17 00:00:00 2001
From: 1178634255 <1178634255@qq.com>
Date: Wed, 7 Jun 2023 10:47:43 +0800
Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E8=8F=9C=E5=8D=95=E6=96=B0?=
=?UTF-8?q?=E5=A2=9E=E7=BC=96=E8=BE=91=E7=95=8C=E9=9D=A2=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/system/license/license.vue | 133 +++++++++++++++++++++++++--
1 file changed, 123 insertions(+), 10 deletions(-)
diff --git a/src/views/system/license/license.vue b/src/views/system/license/license.vue
index 900aea3..f0f3074 100644
--- a/src/views/system/license/license.vue
+++ b/src/views/system/license/license.vue
@@ -62,7 +62,7 @@
新增
+ >新增接口分类
@@ -77,7 +77,7 @@
-
+
@@ -233,6 +233,70 @@
:before-close="hideForm"
width="60%"
top="5vh"
+ >
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
@@ -356,6 +419,7 @@ export default {
subData: {},
formName: null,
subFormVisible: false,
+ subFormVisible1: false,
showSearch: true,
currentRow: null,
filterQuery: {
@@ -599,13 +663,13 @@ export default {
this.formName = formName;
this.check = row;
this.subData = row;
- this.subFormVisible = true;
+ this.subFormVisible1 = true;
},
reviewOrder(row, formName) {
this.formName = formName;
this.check = row;
this.subData = row;
- this.subFormVisible = true;
+ this.subFormVisible1 = true;
},
@@ -613,17 +677,66 @@ export default {
this.formName = formName;
this.check = row;
this.subData = {};
- this.subFormVisible = true;
+ this.subFormVisible1 = true;
},
add(data, formName) {
- this.subFormVisible = true;
- this.subData = {};
this.formName = formName;
+ this.subData = {};
this.check = data;
+ this.subFormVisible = true;
},
hideForm() {
this.subFormVisible = false;
+ },
+ hideForm1() {
+ this.subFormVisible1 = false;
+ },
+ forInvSubmit1() {
+ if (this.formName === "add" && this.check == null) {
+ //新增接口分类
+ this.subData.parentId = 0;
+ insertLicense(this.subData)
+ .then((res) => {
+ if (res.code == 20000) {
+ this.$message.success("添加成功!")
+ this.subFormVisible1 = false;
+ this.getList();
+ }
+ })
+ } else if (this.formName === "add" && this.check != null) {
+ //新增子接口
+ this.subData.parentId = this.check.id;
+ insertLicense(this.subData)
+ .then((res) => {
+ if (res.code == 20000) {
+ this.$message.success("添加成功!")
+ this.subFormVisible1 = false;
+ this.getList();
+ }
+ })
+ } else if (this.formName === "edit" && this.check.parentId == 0) {
+ //编辑接口分类
+ updateLicense(this.subData).then((res) => {
+ if (res.code == 20000) {
+ this.$message.success("修改成功!")
+ this.subFormVisible1 = false;
+ this.getList();
+ }
+ })
+ } else {
+ updateLicense(this.subData).then((res) => {
+ if (res.code == 20000) {
+ this.$message.success("修改成功!")
+ this.subFormVisible1 = false;
+ this.getlower();
+ }
+
+ })
+
+ }
+
+
},
forInvSubmit() {
if (this.formName === "add" && this.check == null) {