bihuisong 1 vuosi sitten
vanhempi
commit
6e14bd1347

+ 4 - 4
src/api/highServer/highServer.js

@@ -10,9 +10,9 @@ export function listServer(query) {
 }
 }
 
 
 // 查询高频服务详细
 // 查询高频服务详细
-export function getServer(id) {
+export function getServer(id,type) {
   return request({
   return request({
-    url: '/high/server/' + id,
+    url: '/high/server/' + id + '/' + type,
     method: 'get'
     method: 'get'
   })
   })
 }
 }
@@ -36,9 +36,9 @@ export function updateServer(data) {
 }
 }
 
 
 // 删除高频服务
 // 删除高频服务
-export function delServer(id) {
+export function delServer(id,type) {
   return request({
   return request({
-    url: '/high/server/' + id,
+    url: '/high/server/' + id + '/' + type,
     method: 'delete'
     method: 'delete'
   })
   })
 }
 }

+ 2 - 2
src/views/highServer/knowledge/index.vue

@@ -268,7 +268,7 @@ export default {
     handleUpdate(row) {
     handleUpdate(row) {
       this.reset();
       this.reset();
       const id = row.id || this.ids
       const id = row.id || this.ids
-      getBase(id).then(response => {
+      getBase(id,row.type).then(response => {
         this.form = response.data;
         this.form = response.data;
         this.open = true;
         this.open = true;
         this.title = "修改知识库";
         this.title = "修改知识库";
@@ -298,7 +298,7 @@ export default {
     handleDelete(row) {
     handleDelete(row) {
       const ids = row.id || this.ids;
       const ids = row.id || this.ids;
       this.$modal.confirm('是否确认删除知识库编号为"' + ids + '"的数据项?').then(function () {
       this.$modal.confirm('是否确认删除知识库编号为"' + ids + '"的数据项?').then(function () {
-        return delBase(ids);
+        return delBase(ids,row.type);
       }).then(() => {
       }).then(() => {
         this.getList();
         this.getList();
         this.$modal.msgSuccess("删除成功");
         this.$modal.msgSuccess("删除成功");

+ 2 - 2
src/views/highServer/lifeServices/index.vue

@@ -228,7 +228,7 @@ export default {
     handleUpdate(row) {
     handleUpdate(row) {
       this.reset();
       this.reset();
       const id = row.id || this.ids
       const id = row.id || this.ids
-      getServer(id).then(response => {
+      getServer(id,row.type).then(response => {
         this.form = response.data;
         this.form = response.data;
         this.open = true;
         this.open = true;
         this.title = "修改生活服务";
         this.title = "修改生活服务";
@@ -258,7 +258,7 @@ export default {
     handleDelete(row) {
     handleDelete(row) {
       const ids = row.id || this.ids;
       const ids = row.id || this.ids;
       this.$modal.confirm('是否确认删除此条数据项?').then(function () {
       this.$modal.confirm('是否确认删除此条数据项?').then(function () {
-        return delServer(ids);
+        return delServer(ids,row.type);
       }).then(() => {
       }).then(() => {
         this.getList();
         this.getList();
         this.$modal.msgSuccess("删除成功");
         this.$modal.msgSuccess("删除成功");