shaogen1995 4 vuotta sitten
vanhempi
commit
6ec89d5ac9
2 muutettua tiedostoa jossa 13 lisäystä ja 2 poistoa
  1. 2 2
      src/utils/request.js
  2. 11 0
      src/views/holding/holding2_add.vue

+ 2 - 2
src/utils/request.js

@@ -2,8 +2,8 @@ import axios from 'axios'
 // export const baseURL = '666初始地址'
 const service = axios.create({
   // baseURL: 'http://192.168.0.135:8006', // 本地调试
-  baseURL: 'http://8.135.106.227:8006', // 线上调试
-  // baseURL: '', // build
+  // baseURL: 'http://8.135.106.227:8006', // 线上调试
+  baseURL: '', // build
   timeout: 5000
 })
 

+ 11 - 0
src/views/holding/holding2_add.vue

@@ -314,6 +314,17 @@ export default {
   async mounted () {
     // 如果是编辑
     if (this.mydata.goodsIds) {
+      // 获取出库类型
+      const obj = {
+        展览: 'exhibition',
+        研究: 'study',
+        修复: 'repair',
+        复制: 'copy',
+        文创: 'cultural',
+        其他: 'other'
+      }
+      this.fromData.source = obj[this.mydata.type]
+      console.log(998, this.mydata)
       // 通过id获取列表详情
       const res = await getDetailById(this.mydata.id)
       this.tableData = res.data.goods