Commit cfe521c4e6d4bf6478ec21773d2d3744eb142a97

Authored by liujun001
1 parent 2db226ba

显示图片

trash-ui/src/main.js
@@ -17,7 +17,7 @@ import permission from './directive/permission' @@ -17,7 +17,7 @@ import permission from './directive/permission'
17 17
18 import './assets/icons' // icon 18 import './assets/icons' // icon
19 import './permission' // permission control 19 import './permission' // permission control
20 -import { getDicts,listData } from "@/api/system/dict/data"; 20 +import { getDicts,listData } from "@/api/system/dict/data";
21 21
22 import { checkPermi } from "@/utils/permission"; 22 import { checkPermi } from "@/utils/permission";
23 import { getConfigKey } from "@/api/system/config"; 23 import { getConfigKey } from "@/api/system/config";
@@ -46,6 +46,7 @@ Vue.prototype.$aMapKey = "902732b0ff4758e4b39f0f34f0cb1cb0";// 高德地图key @@ -46,6 +46,7 @@ Vue.prototype.$aMapKey = "902732b0ff4758e4b39f0f34f0cb1cb0";// 高德地图key
46 // Vue.prototype.remoteFrame = "http://183.66.242.6:14601" 46 // Vue.prototype.remoteFrame = "http://183.66.242.6:14601"
47 // Vue.prototype.remoteFrame = "http://175.178.228.30:14601" 47 // Vue.prototype.remoteFrame = "http://175.178.228.30:14601"
48 Vue.prototype.remoteFrame = "http://175.6.47.84:8008" 48 Vue.prototype.remoteFrame = "http://175.6.47.84:8008"
  49 +Vue.prototype.smallProgramRemoteFrame = "http://61.169.120.202:18888"
49 50
50 Vue.prototype.msgSuccess = function (msg) { 51 Vue.prototype.msgSuccess = function (msg) {
51 this.$message({ showClose: true, message: msg, type: "success" }); 52 this.$message({ showClose: true, message: msg, type: "success" });
trash-ui/src/views/gar/order/index.vue
@@ -316,13 +316,16 @@ export default { @@ -316,13 +316,16 @@ export default {
316 this.reset(); 316 this.reset();
317 const garOrderId = row.garOrderId || this.ids 317 const garOrderId = row.garOrderId || this.ids
318 getOrder(garOrderId).then(response => { 318 getOrder(garOrderId).then(response => {
319 - this.form = response.data;  
320 - console.log(this.form);  
321 - console.log("----------------------->");  
322 319
  320 + this.form = response.data;
323 this.form.currentImages = this.form.currentImages.map(map => process.env.VUE_APP_BASE_API + map) 321 this.form.currentImages = this.form.currentImages.map(map => process.env.VUE_APP_BASE_API + map)
324 this.form.putDownImages = this.form.putDownImages.map(map => process.env.VUE_APP_BASE_API + map) 322 this.form.putDownImages = this.form.putDownImages.map(map => process.env.VUE_APP_BASE_API + map)
325 this.form.putOnImages = this.form.putOnImages.map(map => process.env.VUE_APP_BASE_API + map) 323 this.form.putOnImages = this.form.putOnImages.map(map => process.env.VUE_APP_BASE_API + map)
  324 + this.combnationImagePath(this.form.currentImages);
  325 + this.combnationImagePath(this.form.putDownImages);
  326 + this.combnationImagePath(this.form.putOnImages);
  327 + console.log(this.form);
  328 +
326 this.open = true; 329 this.open = true;
327 this.title = "清运派单详情"; 330 this.title = "清运派单详情";
328 }); 331 });
@@ -368,6 +371,26 @@ export default { @@ -368,6 +371,26 @@ export default {
368 }).then(response => { 371 }).then(response => {
369 this.download(response.message); 372 this.download(response.message);
370 }) 373 })
  374 + },
  375 + displayImage(url){
  376 + return null == url|| undefined == url || "" == url?"":this.smallProgramRemoteFrame+url;
  377 + },
  378 + combnationImagePath(nodes){
  379 + if(nodes){
  380 + let length = nodes.length;
  381 + for (let index = 0; index < length; index++) {
  382 + const element = nodes[index];
  383 + console.log("==========================>");
  384 +
  385 + console.log(element);
  386 +
  387 + nodes[index]= this.displayImage(element);
  388 +
  389 + console.log("==========================>nodes");
  390 +
  391 + console.log(nodes[index]);
  392 + }
  393 + }
371 } 394 }
372 } 395 }
373 }; 396 };