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

tui

parent e3aa41a5
...@@ -68,10 +68,21 @@ ...@@ -68,10 +68,21 @@
{{ form.deductPerson ? form.deductPerson : "--" }}</el-col {{ form.deductPerson ? form.deductPerson : "--" }}</el-col
> >
<el-col :span="12" <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> </el-row>
</div> </div>
</div> </div>
...@@ -391,7 +402,7 @@ export default { ...@@ -391,7 +402,7 @@ export default {
this.$forceUpdate(this.form); this.$forceUpdate(this.form);
}, },
picMatter(val) { picMatter(val) {
if (val || val !== "--") { if (val) {
return ( return (
<el-image <el-image
src={val.indexOf("http") == -1 ? this.baseUrl + val : val} src={val.indexOf("http") == -1 ? this.baseUrl + val : val}
......
...@@ -84,10 +84,20 @@ ...@@ -84,10 +84,20 @@
{{ form.deductTime ? form.deductTime : "--" }}</el-col {{ form.deductTime ? form.deductTime : "--" }}</el-col
> >
<el-col :span="12" <el-col :span="12"
>图片凭证:{{ >图片凭证:
form.filePaths ? picMatter(form.filePaths) : "--" <el-image
}}</el-col 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> </el-row>
</div> </div>
</div> </div>
......
...@@ -61,10 +61,20 @@ ...@@ -61,10 +61,20 @@
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="24"> <el-col :span="24">
图片凭证:{{ 图片凭证:
form.filePaths ? picMatter(form.filePaths) : "--" <el-image
}}</el-col 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> </el-row>
</div> </div>
</div> </div>
......
...@@ -63,10 +63,20 @@ ...@@ -63,10 +63,20 @@
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="24"> <el-col :span="24">
图片凭证:{{ 图片凭证:
form.filePaths ? picMatter(form.filePaths) : "--" <el-image
}}</el-col 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> </el-row>
</div> </div>
</div> </div>
......
...@@ -59,10 +59,20 @@ ...@@ -59,10 +59,20 @@
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="24" <el-col :span="24"
>图片凭证:{{ >图片凭证:
form.filePaths ? picMatter(form.filePaths) : "--" <el-image
}}</el-col 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> </el-row>
</div> </div>
</div> </div>
......
...@@ -64,10 +64,20 @@ ...@@ -64,10 +64,20 @@
<el-row> <el-row>
<el-col :span="12" <el-col :span="12"
>图片凭证:{{ >图片凭证:
form.filePaths ? picMatter(form.filePaths) : "--" <el-image
}}</el-col 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> </el-row>
</div> </div>
</div> </div>
......
...@@ -122,7 +122,18 @@ ...@@ -122,7 +122,18 @@
<el-col :span="22"> <el-col :span="22">
<el-form-item label="图片凭证:"> <el-form-item label="图片凭证:">
<div v-if="form.view == '查看'"> <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> </div>
<ImageUpload <ImageUpload
v-else v-else
......
...@@ -174,7 +174,18 @@ ...@@ -174,7 +174,18 @@
<el-col :span="22"> <el-col :span="22">
<el-form-item label="图片凭证:"> <el-form-item label="图片凭证:">
<div v-if="form.view == '查看'"> <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> </div>
<ImageUpload <ImageUpload
v-else v-else
...@@ -502,10 +513,9 @@ export default { ...@@ -502,10 +513,9 @@ export default {
}); });
}, },
replaceImage(val) { replaceImage(val) {
this.form.filePaths = val; this.form.filePaths = val;
this.$forceUpdate(this.form); this.$forceUpdate(this.form);
}, },
staffChange(val) { staffChange(val) {
let arr = this.staffArr.filter((v) => v.id == val); let arr = this.staffArr.filter((v) => v.id == val);
......
...@@ -148,7 +148,18 @@ ...@@ -148,7 +148,18 @@
<el-col :span="22"> <el-col :span="22">
<el-form-item label="图片凭证:"> <el-form-item label="图片凭证:">
<div v-if="form.view == '查看'"> <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> </div>
<ImageUpload <ImageUpload
v-else v-else
......
...@@ -126,7 +126,18 @@ ...@@ -126,7 +126,18 @@
<el-col :span="22"> <el-col :span="22">
<el-form-item label="图片凭证:"> <el-form-item label="图片凭证:">
<div v-if="form.view == '查看'"> <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> </div>
<ImageUpload <ImageUpload
v-else v-else
...@@ -442,10 +453,9 @@ export default { ...@@ -442,10 +453,9 @@ export default {
}); });
}, },
replaceImage(val) { replaceImage(val) {
this.form.filePaths = val; this.form.filePaths = val;
this.$forceUpdate(this.form); this.$forceUpdate(this.form);
}, },
staffChange(val) { staffChange(val) {
console.log(val); console.log(val);
......
...@@ -86,7 +86,18 @@ ...@@ -86,7 +86,18 @@
<el-col :span="22"> <el-col :span="22">
<el-form-item label="图片凭证:"> <el-form-item label="图片凭证:">
<div v-if="form.view == '查看'"> <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> </div>
<ImageUpload <ImageUpload
v-else v-else
......
...@@ -139,7 +139,18 @@ ...@@ -139,7 +139,18 @@
<el-col :span="22"> <el-col :span="22">
<el-form-item label="图片凭证:"> <el-form-item label="图片凭证:">
<div v-if="form.view == '查看'"> <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> </div>
<ImageUpload <ImageUpload
v-else v-else
...@@ -457,10 +468,9 @@ export default { ...@@ -457,10 +468,9 @@ export default {
}); });
}, },
replaceImage(val) { replaceImage(val) {
this.form.filePaths = val; this.form.filePaths = val;
this.$forceUpdate(this.form); this.$forceUpdate(this.form);
}, },
staffChange(val) { staffChange(val) {
console.log(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