Commit 7c15c3ab authored by renjintao's avatar renjintao

产品、工单 图片路径更新

parent 71689157
...@@ -279,7 +279,7 @@ export default { ...@@ -279,7 +279,7 @@ export default {
//返回img需要显示的src值 //返回img需要显示的src值
let tempUrl = ""; let tempUrl = "";
if (url && url.length > 0) { if (url && url.length > 0) {
tempUrl = url; tempUrl = this.downUrl +url;
} else { } else {
tempUrl = iconImg + "noPic_product.png"; tempUrl = iconImg + "noPic_product.png";
} }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<Layout> <Layout>
<Sider width="300"> <Sider width="300">
<div class="add-list"> <div class="add-list">
<img :src="img" /> <img :src="downUrl+img" />
</div> </div>
</Sider> </Sider>
<Content> <Content>
...@@ -90,6 +90,7 @@ export default { ...@@ -90,6 +90,7 @@ export default {
levelTitle: "" levelTitle: ""
}, },
downUrl: fileUrlDown,
componaylist: [], componaylist: [],
componaylist: [], componaylist: [],
data2: [], data2: [],
...@@ -133,7 +134,7 @@ export default { ...@@ -133,7 +134,7 @@ export default {
}, },
methods: { methods: {
clickData(data, liUrl) { clickData(data, liUrl) {
this.img = data; this.img = liUrl;
this.entity.productUrl = liUrl; this.entity.productUrl = liUrl;
}, },
handleSelect1(data) { handleSelect1(data) {
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<Layout> <Layout>
<Sider width="300"> <Sider width="300">
<div class="add-list"> <div class="add-list">
<img :src="img" /> <img :src="downUrl+img" />
</div> </div>
</Sider> </Sider>
<Content> <Content>
...@@ -69,6 +69,7 @@ export default { ...@@ -69,6 +69,7 @@ export default {
entity: { entity: {
levelTitle: "" levelTitle: ""
}, },
downUrl: fileUrlDown,
componayId: null, componayId: null,
componaylist: [], componaylist: [],
label: "", label: "",
...@@ -116,7 +117,7 @@ export default { ...@@ -116,7 +117,7 @@ export default {
methods: { methods: {
clickData(data, liUrl) { clickData(data, liUrl) {
this.img = data; this.img = liUrl;
this.entity.productUrl = liUrl; this.entity.productUrl = liUrl;
}, },
handleSelect1(data) { handleSelect1(data) {
...@@ -149,6 +150,7 @@ export default { ...@@ -149,6 +150,7 @@ export default {
} }
this.entity = r.result; this.entity = r.result;
this.img = this.entity.productUrl; this.img = this.entity.productUrl;
this.entity.productUrlList=this.parms.eid;
this.componayId = r.result.madeCompany; this.componayId = r.result.madeCompany;
this.$refs.edit.dep = r.result.levelId; this.$refs.edit.dep = r.result.levelId;
this.$refs.edit.label = r.result.levelTitle; this.$refs.edit.label = r.result.levelTitle;
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
<Row class="row-down"> <Row class="row-down">
<Col span="7"> <Col span="7">
<div class="img-i"> <div class="img-i">
<img :src="row.productUrl" /> <img :src="downUrl +row.productUrl" />
</div> </div>
</Col> </Col>
<Col span="17" class="c"> <Col span="17" class="c">
...@@ -91,6 +91,7 @@ export default { ...@@ -91,6 +91,7 @@ export default {
modal: false, modal: false,
title: "新增", title: "新增",
detail: null, detail: null,
downUrl: fileUrlDown,
curId: 0, curId: 0,
columns: [ columns: [
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment