Sfoglia il codice sorgente

gantt设备下拉列表api

wyh 2 anni fa
parent
commit
bf852f0ae3
2 ha cambiato i file con 6 aggiunte e 2 eliminazioni
  1. 5 1
      itdmWeb/src/api/api.js
  2. 1 1
      itdmWeb/vue.config.js

+ 5 - 1
itdmWeb/src/api/api.js

@@ -54,6 +54,9 @@ const queryMyDepartTreeList = (params)=>getAction("/sys/sysDepart/queryMyDeptTre
 
 // 设备故障判断
 const checkGuzhang = (params) => putAction('/itdmDevice/itdmDevice/edit1', params)
+// 获取设备下拉列表
+const getDeviceList = (params) => getAction('/itdmDevice/itdmDevice/xialalist', params)
+
 
 //日志管理
 const deleteLog = (params)=>deleteAction("/sys/log/delete",params);
@@ -159,7 +162,8 @@ export {
   queryMyDepartTreeList,
   getUserNoticeInfo,
   getDictItemsFromCache,
-  checkGuzhang
+  checkGuzhang,
+  getDeviceList
 }
 
 

+ 1 - 1
itdmWeb/vue.config.js

@@ -108,7 +108,7 @@ module.exports = {
       /* 注意:jeecgboot前端做了改造,此处不需要配置跨域和后台接口(只需要改.env相关配置文件即可)
           issues/3462 很多人此处做了配置,导致刷新前端404问题,请一定注意*/
       '/jeecg-boot': {
-        // target: 'http://192.168.186.146:8080',
+        // target: 'http://192.168.1.15:8080',
         target: 'http://localhost:8080',
         ws: false,
         changeOrigin: true