clay commit : 图片相对路径
This commit is contained in:
@@ -13,11 +13,10 @@
|
||||
:auto-upload="true"
|
||||
>
|
||||
<el-button slot="trigger" size="small" type="primary">选取文件</el-button>
|
||||
<div slot="tip" class="el-upload__tip">只能上传jpg/png文件,且不超过500kb</div>
|
||||
<!-- <div slot="tip" class="el-upload__tip">只能上传jpg/png文件,且不超过500kb</div>-->
|
||||
</el-upload>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { getToken } from '@/utils/auth'
|
||||
import { addFile, delFile } from '../../../../api/sist/file'
|
||||
|
||||
@@ -132,7 +132,7 @@
|
||||
:auto-upload="true"
|
||||
>
|
||||
<el-button slot="trigger" size="small" type="primary">选取文件</el-button>
|
||||
<div slot="tip" class="el-upload__tip">只能上传jpg/png文件,且不超过500kb</div>
|
||||
<!-- <div slot="tip" class="el-upload__tip">只能上传jpg/png文件,且不超过500kb</div>-->
|
||||
</el-upload>
|
||||
|
||||
</el-col>
|
||||
@@ -187,7 +187,7 @@ export default {
|
||||
id: null,
|
||||
title: null,
|
||||
isTop: '2',
|
||||
isEnglish: '1',
|
||||
isEnglish: '0',
|
||||
content: "",
|
||||
imgurl:null,
|
||||
},
|
||||
@@ -343,7 +343,9 @@ export default {
|
||||
url:dataFile.url,
|
||||
fileName:data.fileName,
|
||||
}
|
||||
let fileStr = '<p><a target="_blank" href="'+mapperItem.url+'">'+mapperItem.fileName+'</a><br/></p>'
|
||||
let url = dataFile.uri
|
||||
url = url.replace("/pubfiles","/attached")
|
||||
let fileStr = '<p><a target="_blank" href="'+url+'">'+mapperItem.fileName+'</a><br/></p>'
|
||||
this.formData.content = this.formData.content + fileStr
|
||||
this.fileMapper.push(mapperItem)
|
||||
})
|
||||
|
||||
@@ -170,13 +170,13 @@
|
||||
>审批
|
||||
</el-button>
|
||||
<span v-show="(scope.row.approvalUserId===userId || isAdmin) && scope.row.status === '3'">
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-edit"
|
||||
@click="handlePutIndex(scope.row)"
|
||||
>推首页
|
||||
</el-button>
|
||||
<!-- <el-button-->
|
||||
<!-- size="mini"-->
|
||||
<!-- type="text"-->
|
||||
<!-- icon="el-icon-edit"-->
|
||||
<!-- @click="handlePutIndex(scope.row)"-->
|
||||
<!-- >推首页-->
|
||||
<!-- </el-button>-->
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
|
||||
Reference in New Issue
Block a user