소스 검색

增加获取全部列表的接口和decimal.js

littleblue55 4 주 전
부모
커밋
36c1d44ae2
5개의 변경된 파일25개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 1
      package.json
  2. 7 0
      src/api/enterprise/enterprise.js
  3. 7 0
      src/api/industry/industry.js
  4. 9 0
      src/api/industry_run/industry_run.js
  5. 0 1
      src/main.js

+ 2 - 1
package.json

@@ -38,9 +38,10 @@
   },
   "dependencies": {
     "@riophae/vue-treeselect": "0.4.0",
-    "axios": "0.28.1",
+    "axios": "^0.28.1",
     "clipboard": "2.0.8",
     "core-js": "3.37.1",
+    "decimal.js": "^10.4.3",
     "echarts": "5.4.0",
     "echarts-stat": "^1.2.0",
     "element-ui": "2.15.14",

+ 7 - 0
src/api/enterprise/enterprise.js

@@ -42,3 +42,10 @@ export function delEnterprise(id) {
     method: 'delete'
   })
 }
+
+export function listAllEnterprise() {
+  return request({
+    url: '/enterprise/enterprise/alllist',
+    method: 'get'
+  })
+}

+ 7 - 0
src/api/industry/industry.js

@@ -42,3 +42,10 @@ export function delIndustry(id) {
     method: 'delete'
   })
 }
+
+export function listAllIndustry() {
+  return request({
+    url: '/industry/industry/alllist',
+    method: 'get'
+  })
+}

+ 9 - 0
src/api/industry_run/industry_run.js

@@ -42,3 +42,12 @@ export function delIndustry_run(enterpriseName) {
     method: 'delete'
   })
 }
+
+// 查询industry_run全部列表
+export function listAllIndustry_run(query) {
+  return request({
+    url: '/industry_run/industry_run/alllist',
+    method: 'get',
+    params: query
+  })
+}

+ 0 - 1
src/main.js

@@ -37,7 +37,6 @@ import DictTag from '@/components/DictTag'
 import VueMeta from 'vue-meta'
 // 字典数据组件
 import DictData from '@/components/DictData'
-
 // 全局方法挂载
 Vue.prototype.getDicts = getDicts
 Vue.prototype.getConfigKey = getConfigKey