Commit 62ea2bf5 authored by 仇晓婷's avatar 仇晓婷

文档优化

parent 6f25f245
<template>
<img :src="downUrl + row.img"/>
<img :src="downUrl + src" />
</template>
<script>
export default {
props:["src",size],
data(){
return {
path:""
}
},
mounted(){
if(this.src){
this.path=downUrl+v
}
},
watch:{
src(v){
if(v){
this.path=downUrl+v
}
}
props: ["src"],
data() {
return {
path: "",
downUrl: fileUrlDown,
};
},
mounted() {
if (this.src) {
this.path = downUrl + v;
}
}
},
watch: {
src(v) {
if (v) {
this.path = downUrl + v;
}
},
},
};
</script>
\ No newline at end of file
......@@ -110,7 +110,8 @@
</Col>
<Col span="4" class="dcm-right">
<div class="img-touxiang">
<img :src="downUrl + avatorPath" v-if="avatorPath" />
<!-- <img :src="downUrl + avatorPath" v-if="avatorPath" /> -->
<Pictrue :src="avatorPath" v-if="avatorPath" />
<img
src="@/assets/images/files_header.png"
v-else
......
......@@ -12,6 +12,7 @@
<InputCode
v-if="li.dataType == 0 && li.field == 'code'"
v-model="entity[li.field]"
code="WORD"
/>
<InputNumber
v-if="li.dataType == 1 || li.dataType == 2"
......@@ -247,6 +248,9 @@ export default {
this.parms.eid = this.$u.guid();
this.$refs.refmovieFile1.inputShow = false;
},
async fetch({ store, params }) {
await store.dispatch("loadDictionary"); // 加载数据字典
},
methods: {
imgUrl() {
window.open(this.avatorPath, "_blank");
......
<template>
<div class=".detail-document">
{{ workFlowIds }}
<div class="body-document" v-if="eid != 0">
<h4>详细信息</h4>
<Row>
......@@ -42,9 +41,9 @@
<Filed :span="12" :name="l('creatorUserId') + ':'">
<User :value="entity.creatorUserId" />
</Filed>
<Filed :span="12" :name="l('status') + ':'">{{
entity.status == 0 ? "草稿" : "送审"
}}</Filed>
<Filed :span="12" :name="l('status') + ':'">
<state code="word.document.status" :value="entity.status" />
</Filed>
<Filed :span="24" :name="l('filePath') + ':'">
<files ref="refFile" :parms="parms" :showList="false" />
</Filed>
......@@ -53,7 +52,8 @@
</Col>
<Col span="4" class="dcm-right">
<div class="img-touxiang">
<img :src="downUrl + avatorPath" v-if="avatorPath" />
<!-- <img :src="downUrl + avatorPath" v-if="avatorPath" /> -->
<Pictrue :src="avatorPath" v-if="avatorPath" />
<img
src="@/assets/images/files_header.png"
v-else
......
......@@ -53,8 +53,8 @@
<Row class="row-down" :gutter="10">
<Col span="7">
<div class="img-i">
<img :src="downUrl + row.img" v-if="row.img" />
<!-- onerror="this.src='/imgicon/chan_Pin.png'" -->
<!-- <img :src="downUrl + row.img" v-if="row.img" /> -->
<Pictrue :src="row.img" v-if="row.img" />
<img
src="@/assets/images/files_header.png"
v-else
......@@ -136,7 +136,7 @@ export default {
title: "新增",
detail: null,
curId: 0,
downUrl: fileUrlDown,
columns: [
{
type: "selection",
......
......@@ -66,6 +66,8 @@ import ViewerImg from '@/components/page/viewer.vue'
import ImportExcel from '@/components/page/import/process.vue'
import CustomProperties from '@/components/page/customProperties.vue'
import InputCode from '@/components/page/inputCode.vue'
import Pictrue from '@/components/page/pictrue.vue'
......@@ -138,6 +140,9 @@ Vue.component("StoreSelect", StoreSelect)
Vue.component("ImportExcel",ImportExcel)
Vue.component("CustomProperties",CustomProperties)
Vue.component("InputCode",InputCode)
Vue.component("Pictrue",Pictrue)
//注入mock
// require("../mock")
......
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