fengdong777 2 years ago
parent
commit
7c2332b477
  1. 2
      warehousing-system/project_web_ui/src/main.js
  2. 21
      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' import axios from 'axios'
/* 设定axios的请求根目录 */ /* 设定axios的请求根目录 */
axios.defaults.baseURL = 'http://192.168.1.193:9050' axios.defaults.baseURL = 'http://jianguan.yyundong.com/warehouseapi/'
// import '@/permission' //权限控制 // import '@/permission' //权限控制
Vue.prototype.$http = axios Vue.prototype.$http = axios
Vue.prototype.$userInfo = null // 用户信息 Vue.prototype.$userInfo = null // 用户信息

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

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

Loading…
Cancel
Save