Commit b029236b authored by 姬鋆屾's avatar 姬鋆屾

tui

parent e3aa41a5
......@@ -68,10 +68,21 @@
{{ form.deductPerson ? form.deductPerson : "--" }}</el-col
>
<el-col :span="12"
>图片凭证:{{
form.filePaths ? picMatter(form.filePaths) : "--"
}}</el-col
>图片凭证:
<el-image
style="width: 100px; height: 100px"
:src="
`${
form.filePaths.indexOf('http') == -1
? baseUrl + form.filePaths
: form.filePaths
}`
"
:preview-src-list="form.filePaths"
>
</el-image>
</el-col>
</el-row>
</div>
</div>
......@@ -391,7 +402,7 @@ export default {
this.$forceUpdate(this.form);
},
picMatter(val) {
if (val || val !== "--") {
if (val) {
return (
<el-image
src={val.indexOf("http") == -1 ? this.baseUrl + val : val}
......
......@@ -84,10 +84,20 @@
{{ form.deductTime ? form.deductTime : "--" }}</el-col
>
<el-col :span="12"
>图片凭证:{{
form.filePaths ? picMatter(form.filePaths) : "--"
}}</el-col
>图片凭证:
<el-image
style="width: 100px; height: 100px"
:src="
`${
form.filePaths.indexOf('http') == -1
? baseUrl + form.filePaths
: form.filePaths
}`
"
:preview-src-list="form.filePaths"
>
</el-image
></el-col>
</el-row>
</div>
</div>
......
......@@ -61,10 +61,20 @@
</el-row>
<el-row>
<el-col :span="24">
图片凭证:{{
form.filePaths ? picMatter(form.filePaths) : "--"
}}</el-col
图片凭证:
<el-image
style="width: 100px; height: 100px"
:src="
`${
form.filePaths.indexOf('http') == -1
? baseUrl + form.filePaths
: form.filePaths
}`
"
:preview-src-list="form.filePaths"
>
</el-image
></el-col>
</el-row>
</div>
</div>
......
......@@ -63,10 +63,20 @@
</el-row>
<el-row>
<el-col :span="24">
图片凭证:{{
form.filePaths ? picMatter(form.filePaths) : "--"
}}</el-col
图片凭证:
<el-image
style="width: 100px; height: 100px"
:src="
`${
form.filePaths.indexOf('http') == -1
? baseUrl + form.filePaths
: form.filePaths
}`
"
:preview-src-list="form.filePaths"
>
</el-image
></el-col>
</el-row>
</div>
</div>
......
......@@ -59,10 +59,20 @@
</el-row>
<el-row>
<el-col :span="24"
>图片凭证:{{
form.filePaths ? picMatter(form.filePaths) : "--"
}}</el-col
>图片凭证:
<el-image
style="width: 100px; height: 100px"
:src="
`${
form.filePaths.indexOf('http') == -1
? baseUrl + form.filePaths
: form.filePaths
}`
"
:preview-src-list="form.filePaths"
>
</el-image
></el-col>
</el-row>
</div>
</div>
......
......@@ -64,10 +64,20 @@
<el-row>
<el-col :span="12"
>图片凭证:{{
form.filePaths ? picMatter(form.filePaths) : "--"
}}</el-col
>图片凭证:
<el-image
style="width: 100px; height: 100px"
:src="
`${
form.filePaths.indexOf('http') == -1
? baseUrl + form.filePaths
: form.filePaths
}`
"
:preview-src-list="form.filePaths"
>
</el-image
></el-col>
</el-row>
</div>
</div>
......
......@@ -122,7 +122,18 @@
<el-col :span="22">
<el-form-item label="图片凭证:">
<div v-if="form.view == '查看'">
{{ form.filePaths ? picMatter(form.filePaths) : "--" }}
<el-image
style="width: 100px; height: 100px"
:src="
`${
form.filePaths.indexOf('http') == -1
? baseUrl + form.filePaths
: form.filePaths
}`
"
:preview-src-list="form.filePaths"
>
</el-image>
</div>
<ImageUpload
v-else
......
......@@ -174,7 +174,18 @@
<el-col :span="22">
<el-form-item label="图片凭证:">
<div v-if="form.view == '查看'">
{{ form.filePaths ? picMatter(form.filePaths) : "--" }}
<el-image
style="width: 100px; height: 100px"
:src="
`${
form.filePaths.indexOf('http') == -1
? baseUrl + form.filePaths
: form.filePaths
}`
"
:preview-src-list="form.filePaths"
>
</el-image>
</div>
<ImageUpload
v-else
......@@ -505,7 +516,6 @@ export default {
this.form.filePaths = val;
this.$forceUpdate(this.form);
},
staffChange(val) {
let arr = this.staffArr.filter((v) => v.id == val);
......
......@@ -148,7 +148,18 @@
<el-col :span="22">
<el-form-item label="图片凭证:">
<div v-if="form.view == '查看'">
{{ form.filePaths ? picMatter(form.filePaths) : "--" }}
<el-image
style="width: 100px; height: 100px"
:src="
`${
form.filePaths.indexOf('http') == -1
? baseUrl + form.filePaths
: form.filePaths
}`
"
:preview-src-list="form.filePaths"
>
</el-image>
</div>
<ImageUpload
v-else
......
......@@ -126,7 +126,18 @@
<el-col :span="22">
<el-form-item label="图片凭证:">
<div v-if="form.view == '查看'">
{{ form.filePaths ? picMatter(form.filePaths) : "--" }}
<el-image
style="width: 100px; height: 100px"
:src="
`${
form.filePaths.indexOf('http') == -1
? baseUrl + form.filePaths
: form.filePaths
}`
"
:preview-src-list="form.filePaths"
>
</el-image>
</div>
<ImageUpload
v-else
......@@ -445,7 +456,6 @@ export default {
this.form.filePaths = val;
this.$forceUpdate(this.form);
},
staffChange(val) {
console.log(val);
......
......@@ -86,7 +86,18 @@
<el-col :span="22">
<el-form-item label="图片凭证:">
<div v-if="form.view == '查看'">
{{ form.filePaths ? picMatter(form.filePaths) : "--" }}
<el-image
style="width: 100px; height: 100px"
:src="
`${
form.filePaths.indexOf('http') == -1
? baseUrl + form.filePaths
: form.filePaths
}`
"
:preview-src-list="form.filePaths"
>
</el-image>
</div>
<ImageUpload
v-else
......
......@@ -139,7 +139,18 @@
<el-col :span="22">
<el-form-item label="图片凭证:">
<div v-if="form.view == '查看'">
{{ form.filePaths ? picMatter(form.filePaths) : "--" }}
<el-image
style="width: 100px; height: 100px"
:src="
`${
form.filePaths.indexOf('http') == -1
? baseUrl + form.filePaths
: form.filePaths
}`
"
:preview-src-list="form.filePaths"
>
</el-image>
</div>
<ImageUpload
v-else
......@@ -460,7 +471,6 @@ export default {
this.form.filePaths = val;
this.$forceUpdate(this.form);
},
staffChange(val) {
console.log(val);
......
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