Commit 42460fef authored by 仇晓婷's avatar 仇晓婷

文档管理优化

parent b1f90b94
......@@ -157,8 +157,9 @@
<FormItem :label="l('img')" prop="img">
<inputFile class="tphoto" ref="refmovieFile1" v-model="imgName" :parms="parmsName" />
</FormItem>
<div class="img-touxiang" v-if="imgName">
<img :src="avatorPath" />
<div class="img-touxiang">
<img :src="avatorPath" v-if="imgName" />
<img src="@/assets/images/files_header.png" v-else width="100%" height="100%" />
</div>
</Col>
</Row>
......@@ -180,7 +181,6 @@ export default {
return {
imgName: "",
avatorPath: "",
fileds: [], //扩展属性
entity: {
creatorUserId: this.$store.state.userInfo.userId,
......@@ -311,8 +311,6 @@ export default {
.img-touxiang {
width: 230px;
height: 230px;
background: #ccc;
border-radius: 5px;
margin-left: 58px;
margin-top: -35px;
img {
......
......@@ -106,7 +106,7 @@
<Col span="4" class="dcm-right">
<div class="img-touxiang">
<img :src="downUrl+avatorPath" v-if="avatorPath" />
<img src="@/assets/imgicon/chan_Pin.png" v-else width="100%" height="100%" />
<img src="@/assets/images/files_header.png" v-else width="100%" height="100%" />
</div>
</Col>
</Row>
......@@ -138,6 +138,7 @@ export default {
props: ["eid", "treeId"],
mounted() {
this.initFiled();
this.parms.eid = this.$u.guid();
},
methods: {
load(v) {
......@@ -237,8 +238,6 @@ export default {
.img-touxiang {
width: 230px;
height: 230px;
background: #ccc;
border-radius: 5px;
float: right;
margin-top: 10px;
margin-right: 10px;
......
......@@ -164,8 +164,9 @@
<FormItem :label="l('img')" prop="img">
<inputFile class="tphoto" ref="refmovieFile1" v-model="imgName" :parms="parmsName" />
</FormItem>
<div class="img-touxiang" v-if="imgName">
<img :src="avatorPath" />
<div class="img-touxiang">
<img :src="avatorPath" v-if="imgName" />
<img src="@/assets/images/files_header.png" v-else width="100%" height="100%" />
</div>
</Col>
</Row>
......@@ -254,7 +255,12 @@ export default {
this.avatorPath = fileUrlDown + r.result.img;
this.imgName = r.result.img;
this.entity.status = r.result.status + "";
this.parms.eid = r.result.filePath;
if (r.result.filePath && r.result.filePath != "") {
this.parms.eid = r.result.filePath;
} else {
this.parms.eid = this.$u.guid();
}
this.entity.filePath = this.parms.eid;
});
},
handleSubmit() {
......@@ -307,8 +313,7 @@ export default {
.img-touxiang {
width: 230px;
height: 230px;
background: #ccc;
border-radius: 5px;
margin-left: 58px;
margin-top: -35px;
img {
......
......@@ -404,10 +404,9 @@ export default {
text-align: right;
}
}
.row-down {
// padding: 10px;
height: 113px;
padding: 10px;
height: 110px;
.img-i {
width: 90px;
background: #eee;
......@@ -426,7 +425,7 @@ export default {
.a-icon {
text-align: right;
margin-top: 24px;
margin-top: 25px;
}
}
}
......
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