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

文档管理优化

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