From 0628d060ba7769c7849e7978aabc412487eb74d5 Mon Sep 17 00:00:00 2001
From: 王旭 <1377869194@qq.com>
Date: 星期一, 26 九月 2022 18:01:36 +0800
Subject: [PATCH] 接口调用准备

---
 src/views/datamanage/dictionaryManage.vue |   53 +++++++++++------------------------------------------
 1 files changed, 11 insertions(+), 42 deletions(-)

diff --git a/src/views/datamanage/dictionaryManage.vue b/src/views/datamanage/dictionaryManage.vue
index 1e11171..6a88c6c 100644
--- a/src/views/datamanage/dictionaryManage.vue
+++ b/src/views/datamanage/dictionaryManage.vue
@@ -294,12 +294,10 @@
 
 <script>
 import {
-  insertDict,
-  CountDict,
-  SelectDict,
-  DeletestDict,
-  UpdateDict,
-  QueryNamesDict,
+
+
+
+
 } from "../../api/api";
 import MyBread from "../../components/MyBread.vue";
 export default {
@@ -341,9 +339,7 @@
       })
         .then(() => {
           this.dialogFormVisible = false;
-          UpdateDict(this.upform).then((res) => {
-            console.log(res);
-          });
+ 
           this.$message({
             message: "淇敼鎴愬姛",
             type: "success",
@@ -394,7 +390,7 @@
         type: "warning",
       })
         .then(() => {
-          DeletestDict([row.id]);
+ 
           this.$message({
             type: "success",
             message: "鍒犻櫎鎴愬姛!",
@@ -423,34 +419,15 @@
         .then(() => {
           this.InsertFormdialog = false;
 
-          insertDict(this.insertform).then((res) => {
-            if ((res.statusText = "OK" && res.data > 0)) {
-              this.$message({
-                message: "娣诲姞鎴愬姛",
-                type: "success",
-              });
-              this.startFromData();
-              this.insertform = {};
-            } else {
-              this.$message({
-                message: "娣诲姞澶辫触",
-                type: "error",
-              });
-              this.insertform = {};
-            }
-          });
+
         })
         .catch(() => {});
     },
     countFromData(name) {
-      CountDict(name).then((res) => {
-        this.count = res.data;
-      });
+
     },
     selectFromData(size, index, name) {
-      SelectDict(size, index, name).then((res) => {
-        this.tableData = res.data;
-      });
+
     },
     handleSelectionChange(val) {
       this.multipleSelection = val;
@@ -466,7 +443,7 @@
         type: "warning",
       })
         .then(() => {
-          DeletestDict(std);
+     
           this.$message({
             type: "success",
             message: "鍒犻櫎鎴愬姛!",
@@ -483,15 +460,7 @@
       this.countFromData(this.searchName);
     },
     startQueryNameData() {
-      QueryNamesDict().then((res) => {
-        console.log(res);
-        for (var i in res.data) {
-          this.selectName.push({
-            value: res.data[i].name,
-            label: res.data[i].name,
-          });
-        }
-      });
+
     },
     changeQueryName(val) {
       this.searchName = val;

--
Gitblit v1.9.3