|
|
|
@ -156,7 +156,7 @@
|
|
|
|
|
:on-change="uploadJrxmlOnchange"
|
|
|
|
|
:on-success="uploadJrxmlHandleSuccess"
|
|
|
|
|
:file-list="jrxmlFileList"
|
|
|
|
|
:auto-upload="false">
|
|
|
|
|
:auto-upload="true">
|
|
|
|
|
<el-button slot="trigger" size="small" type="primary" :disabled="uploadDisabled">选取文件
|
|
|
|
|
</el-button>
|
|
|
|
|
<div slot="tip" class="el-upload__tip" v-if="formData.jrxmlPath==null">只能上传 jrxml
|
|
|
|
@ -253,7 +253,7 @@ import {
|
|
|
|
|
systemPDFModuleSave,
|
|
|
|
|
getSystemPDFModules
|
|
|
|
|
} from "@/api/system/systemPDFTemplate";
|
|
|
|
|
|
|
|
|
|
import store from "@/store";
|
|
|
|
|
import {saveAs} from 'file-saver';
|
|
|
|
|
import {demoPrint} from "@/api/system/itextpdf";
|
|
|
|
|
|
|
|
|
@ -613,7 +613,7 @@ export default {
|
|
|
|
|
console.log(response)
|
|
|
|
|
if (response.code === 20000) {
|
|
|
|
|
this.formData.path = response.data.path;
|
|
|
|
|
// this.submitTemplate();
|
|
|
|
|
this.submitTemplate();
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error("上传失败:" + response.message);
|
|
|
|
|
}
|
|
|
|
@ -790,8 +790,8 @@ export default {
|
|
|
|
|
this.uploadUrl = this.BASE_URL + "/udiwms/upload/pdf/template/jasper";
|
|
|
|
|
this.uploadJrxmlUrl = this.BASE_URL + "/udiwms/upload/pdf/template/jrxml";
|
|
|
|
|
this.headers = {
|
|
|
|
|
ADMIN_ID: store.getters.adminId,
|
|
|
|
|
ADMIN_TOKEN: store.getters.token,
|
|
|
|
|
ADMIN_ID: this.$store.getters.adminId,
|
|
|
|
|
ADMIN_TOKEN: this.$store.getters.token,
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|