diff --git a/supervise-crm-ui/src/api/project/project.js b/supervise-crm-ui/src/api/project/project.js index ff11125b..fc1f6a46 100644 --- a/supervise-crm-ui/src/api/project/project.js +++ b/supervise-crm-ui/src/api/project/project.js @@ -90,9 +90,9 @@ export default { method: 'delete' }) }, - getStorehouseBySid: function() { + getStorehouseBySid: function(sid) { return request({ - url: '/crm/v1/projectinformation/getStorehouseBySid/1', + url: '/crm/v1/projectinformation/getStorehouseBySid/'+ sid, method: 'get' }) }, diff --git a/supervise-crm-ui/src/assets/images/notAvailable.jpg b/supervise-crm-ui/src/assets/images/notAvailable.jpg new file mode 100644 index 00000000..83807742 Binary files /dev/null and b/supervise-crm-ui/src/assets/images/notAvailable.jpg differ diff --git a/supervise-crm-ui/src/views/project/projectInfo.vue b/supervise-crm-ui/src/views/project/projectInfo.vue index d9bbf091..b79fdb24 100644 --- a/supervise-crm-ui/src/views/project/projectInfo.vue +++ b/supervise-crm-ui/src/views/project/projectInfo.vue @@ -189,9 +189,10 @@ -
- - + @@ -217,7 +218,7 @@ } }, created() { - this.getStorehouseBySid() // 类型字典信息 + }, methods: { showAdd(sid) { @@ -231,18 +232,17 @@ .catch(e => { this.$emit('doback') }) + + req.getStorehouseBySid(sid).then((res) => { + if (res.success) { + this.temps=res.data + } + }) }, // 组件返回 handleReturn() { this.$emit('doback') }, - getStorehouseBySid(){ - req.getStorehouseBySid().then((res) => { - if (res.success) { - this.temps=res.data - } - }) - }, } } diff --git a/warehousing-system/project_web_ui/src/main.js b/warehousing-system/project_web_ui/src/main.js index a8b617bf..df7ddab7 100644 --- a/warehousing-system/project_web_ui/src/main.js +++ b/warehousing-system/project_web_ui/src/main.js @@ -24,7 +24,8 @@ Vue.use(ElementUI) import axios from 'axios' /* 设定axios的请求根目录 */ -axios.defaults.baseURL = 'http://jianguan.yyundong.com/warehouseapi/' +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 // 用户信息 diff --git a/warehousing-system/project_web_ui/src/views/component/initial_value/add/storehouseAdd.vue b/warehousing-system/project_web_ui/src/views/component/initial_value/add/storehouseAdd.vue index 54ee75ce..607baff6 100644 --- a/warehousing-system/project_web_ui/src/views/component/initial_value/add/storehouseAdd.vue +++ b/warehousing-system/project_web_ui/src/views/component/initial_value/add/storehouseAdd.vue @@ -39,7 +39,7 @@ - + { - // return item.sid === val; - // }); - // this.form.projectSid = obj.entryName; - // }, + changeLocationValue(val){ + let obj = {}; + obj = this.projectNames.find((item)=>{ + return item.sid === val; + }); + this.form.projectName = obj.entryName; + console.log( this.form.projectName); + }, isLngAndLat() { var index = document.getElementById("lngAndLat").value; var array = index.split(",");