Эх сурвалжийг харах

编辑机构扩展信息 查询接口切换为v2, v2 接口不走缓存,(生产上反馈有机构扩展缓存未清除到的情况,界面编辑直接走数据库查询)

zhulu 8 сар өмнө
parent
commit
d2ae05d239

+ 7 - 0
src/api/system/extend.js

@@ -23,6 +23,13 @@ export function getExtendByOrgId(id) {
     method: 'get'
   })
 }
+// 查询机构扩展详细(不走缓存,生产上反馈有缓存未清除到的情况,界面编辑直接走数据库查询)
+export function getExtendByOrgIdNoCache(id) {
+  return request({
+    url: '/system/extend/v2/org/' + id,
+    method: 'get'
+  })
+}
 // 文件上传
 // export function uploadFile(formDatas,busType) {
 //   return uploadFileNew('/file/file/uploadFile', formDatas,busType)

+ 2 - 1
src/views/system/dept/dialog.edit.vue

@@ -294,6 +294,7 @@ import {
   updateExtend,
   delExtend,
   getExtendByOrgId,
+  getExtendByOrgIdNoCache,
   uploadFile,
   addOrUpdate,
 } from "@/api/system/extend";
@@ -511,7 +512,7 @@ export default {
         // this.form.isLock2=row.isLock;
         this.id = row.id;
         if (row.id != null) {
-          getExtendByOrgId(row.id).then((data) => {
+          getExtendByOrgIdNoCache(row.id).then((data) => {
             console.log(data.data);
             if (data.data != null) {
               (this.form.orgExtendId = data.data.id),

+ 2 - 1
src/views/system/dept/extend.vue

@@ -573,6 +573,7 @@ import {
   updateExtend,
   delExtend,
   getExtendByOrgId,
+  getExtendByOrgIdNoCache,
   uploadFile,
 } from "@/api/system/extend";
 
@@ -1061,7 +1062,7 @@ export default {
     },
 
     getExtendInfo() {
-      getExtendByOrgId(this.$route.params.id).then((data) => {
+      getExtendByOrgIdNoCache(this.$route.params.id).then((data) => {
         if (this.type === this.org_type.zxywk) {
           this.businessLibrary = 1;
         }