fengdong777 2 years ago
parent
commit
7c2332b477
  1. 2
      warehousing-system/project_web_ui/src/main.js
  2. 19
      warehousing-system/project_web_ui/src/views/component/initial_value/add/storehouseAdd.vue

2
warehousing-system/project_web_ui/src/main.js

@ -24,7 +24,7 @@ Vue.use(ElementUI)
import axios from 'axios'
/* 设定axios的请求根目录 */
axios.defaults.baseURL = 'http://192.168.1.193:9050'
axios.defaults.baseURL = 'http://jianguan.yyundong.com/warehouseapi/'
// import '@/permission' //权限控制
Vue.prototype.$http = axios
Vue.prototype.$userInfo = null // 用户信息

19
warehousing-system/project_web_ui/src/views/component/initial_value/add/storehouseAdd.vue

@ -41,7 +41,7 @@
<el-form-item class="trightbs_item">
<el-select v-model="form.projectSid" placeholder="请选择">
<el-option
v-for="(custName, i) in projectName"
v-for="(custName, i) in projectNames"
:key="i"
:label="custName.entryName"
:value="custName.sid"
@ -424,7 +424,7 @@ export default {
imgList: [],
imgPrl: [],
temp: {},
projectName:[],
projectNames:[],
msg: [],
imagesg:[],
jingweidu:''
@ -523,6 +523,7 @@ export default {
this.jingweidu=result.data.lon+','+result.data.lat
}
this.form = result.data;
this.form.projectSid = result.data.projectSid;
let value=result.data.pics
const picImg=result.data.picUrl
this.imagesg.push({
@ -543,7 +544,7 @@ export default {
async getprojectSid () {
const { data: result } = await this.$http.get('/v1/shstorehouse/selectAllProject') //
if (result.code == 200){
this.projectName = result.data
this.projectNames = result.data
}
},
claerArrList(){
@ -553,13 +554,13 @@ export default {
this.imgPrl=[]
this.imagesg=[]
},
changeLocationValue(val){
let obj = {};
obj = this.projectName.find((item)=>{
return item.sid === val;
});
// changeLocationValue(val){
// let obj = {};
// obj = this.projectName.find((item)=>{
// return item.sid === val;
// });
// this.form.projectSid = obj.entryName;
},
// },
isLngAndLat() {
var index = document.getElementById("lngAndLat").value;
var array = index.split(",");

Loading…
Cancel
Save