公章bug
This commit is contained in:
@@ -6,6 +6,12 @@
|
||||
<el-form-item label="模板名称" prop="temName">
|
||||
<el-input v-model="ruleForm.temName"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="模板类型" prop="temType">
|
||||
<el-select v-model="ruleForm.temType" placeholder="请选择">
|
||||
<el-option v-for="dict in dict.type.template_type" :key="dict.value" :label="dict.label"
|
||||
:value="dict.value"></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="当前模板">
|
||||
<span style="color: #0e5ce3;cursor:pointer" @click="openUrl(editData.temOrigPath)">{{ editData.fileName
|
||||
}}</span>
|
||||
@@ -27,6 +33,7 @@
|
||||
import { getToken } from "@/utils/auth";
|
||||
export default {
|
||||
props: ["editVisable", "editData", "queryParams"],
|
||||
dicts: ["template_type"],
|
||||
data() {
|
||||
return {
|
||||
fileList: [],
|
||||
@@ -42,6 +49,9 @@ export default {
|
||||
temName: [
|
||||
{ required: true, message: '请输入模板名称', trigger: 'blur' },
|
||||
],
|
||||
temType: [
|
||||
{ required: true, message: '请输入模板名称', trigger: 'blur' },
|
||||
],
|
||||
}
|
||||
};
|
||||
},
|
||||
@@ -49,6 +59,7 @@ export default {
|
||||
editData(val) {
|
||||
if (val) {
|
||||
this.ruleForm = val;
|
||||
this.ruleForm.temType = this.ruleForm.temType + '';
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -65,8 +76,7 @@ export default {
|
||||
this.$emit("cancelEdit");
|
||||
},
|
||||
handleChange(file, fileList) {
|
||||
debugger
|
||||
this.isImg = (file.type === '.doc' || file.type === '.docx') ? true:false;
|
||||
this.isImg = file.type === '.doc' || '.docx';
|
||||
},
|
||||
UploadUrl() {
|
||||
return window.location.origin + "/API/deptIdentify/updateTemplate";
|
||||
@@ -88,7 +98,7 @@ export default {
|
||||
console.log(file, fileList);
|
||||
},
|
||||
beforeUpload(file) {
|
||||
this.isImg = file.type === '.doc' || '.docx'
|
||||
// this.isImg = file.type === '.doc' || '.docx'
|
||||
},
|
||||
handleSuccess() {
|
||||
this.$message.success('上传成功');
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
<el-table-column label="印章图片" align="center" prop="annexPath">
|
||||
<template slot-scope="scope">
|
||||
<el-image style="width: 40px; height: 40px;" :src="imgUrl + scope.row.annexPath"
|
||||
:preview-src-list="srcList">
|
||||
:preview-src-list="[imgUrl + scope.row.annexPath]">
|
||||
</el-image>
|
||||
<!-- <span>{{ imgUrl + scope.row.annexPath }}</span> -->
|
||||
</template>
|
||||
@@ -51,7 +51,7 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
loading: false,
|
||||
srcList: ["https://img2.baidu.com/it/u=1814561676,2470063876&fm=253&fmt=auto&app=138&f=JPEG?w=750&h=500"],
|
||||
srcList: [],
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
@@ -76,7 +76,7 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
UploadUrl() {
|
||||
this.imgUrl = window.location.origin;
|
||||
this.imgUrl = window.location.origin + '/API';
|
||||
},
|
||||
// 查询列表数据
|
||||
sealListFn(data) {
|
||||
|
||||
Reference in New Issue
Block a user