|
|
|
@ -559,8 +559,6 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
jumpDl(row) {
|
|
|
|
|
console.log(BASE_URL);
|
|
|
|
|
console.log(row.templateDlUrl + "----" + SERVER_IP);
|
|
|
|
|
this.handleDownload(BASE_URL + "/udiwms/donwload/file?fileName=" + row.templateDlUrl, row.name + ".jrxml");
|
|
|
|
|
},
|
|
|
|
|
getModuleList() {
|
|
|
|
@ -627,7 +625,6 @@ export default {
|
|
|
|
|
page: 1,
|
|
|
|
|
limit: 10
|
|
|
|
|
};
|
|
|
|
|
console.log("this.selectTemplateQuery.busRlId =" + this.selectTemplateQuery.busRlId);
|
|
|
|
|
|
|
|
|
|
this.selectTemplateGetList();
|
|
|
|
|
},
|
|
|
|
@ -650,9 +647,6 @@ export default {
|
|
|
|
|
this.selectTemplateTotal = 0;
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
previewTemplate(row) {
|
|
|
|
|
console.log(row)
|
|
|
|
|
},
|
|
|
|
|
showFieldExpain(row) {
|
|
|
|
|
|
|
|
|
|
this.currentRow = row.fieldExplain.replace('\\\n', '<br>');
|
|
|
|
@ -694,7 +688,6 @@ export default {
|
|
|
|
|
if (this.$refs.upload.uploadFiles.length < 1 && !this.uploadDisabled) {
|
|
|
|
|
this.$message.warning(`请选择jasper文件`);
|
|
|
|
|
}
|
|
|
|
|
console.log(this.formName)
|
|
|
|
|
this.$refs["dataForm"].validate(valid => {
|
|
|
|
|
if (valid) {
|
|
|
|
|
if (!this.uploadDisabled) {
|
|
|
|
@ -706,11 +699,8 @@ export default {
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
uploadHandleRemove(file, fileList) {
|
|
|
|
|
console.log(file, fileList);
|
|
|
|
|
},
|
|
|
|
|
uploadHandlePreview(file) {
|
|
|
|
|
console.log(file);
|
|
|
|
|
console.log(this.fileList);
|
|
|
|
|
},
|
|
|
|
|
uploadHandleExceed(files, fileList) {
|
|
|
|
|
this.$message.warning(`当前限制选择 1 个文件,本次选择了 ${files.length} 个文件,共选择了 ${files.length + fileList.length} 个文件`);
|
|
|
|
@ -742,7 +732,6 @@ export default {
|
|
|
|
|
return isLt;
|
|
|
|
|
},
|
|
|
|
|
uploadHandleSuccess(response, file, fileList) {
|
|
|
|
|
console.log(response)
|
|
|
|
|
if (response.code === 20000) {
|
|
|
|
|
this.formData.path = response.data.path;
|
|
|
|
|
this.submitTemplate();
|
|
|
|
@ -754,7 +743,6 @@ export default {
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
submitTemplate() {
|
|
|
|
|
console.log(this.formData)
|
|
|
|
|
this.$refs["dataForm"].validate(valid => {
|
|
|
|
|
if (valid) {
|
|
|
|
|
this.formLoading = true;
|
|
|
|
@ -797,7 +785,6 @@ export default {
|
|
|
|
|
}).then(() => {
|
|
|
|
|
systemPDFTemplateDeleteById({id: row.id, path: row.path})
|
|
|
|
|
.then(response => {
|
|
|
|
|
console.log(response)
|
|
|
|
|
if (response.code === 20000) {
|
|
|
|
|
this.$message.success(response.data);
|
|
|
|
|
// 刷新表单
|
|
|
|
@ -819,8 +806,6 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
moduleSelectHandleCurrentChange(val) {
|
|
|
|
|
this.moduleFormData.templateId = val.id;
|
|
|
|
|
console.log(val)
|
|
|
|
|
console.log(this.moduleFormData)
|
|
|
|
|
},
|
|
|
|
|
moduleSubmitSelectTemplate() {
|
|
|
|
|
|
|
|
|
@ -830,7 +815,6 @@ export default {
|
|
|
|
|
if (this.selectTemplateQuery.type == 1) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
console.log("this.selectTemplateQuery.busRlId =" + this.selectTemplateQuery.busRlId);
|
|
|
|
|
let query = {
|
|
|
|
|
id: this.selectTemplateQuery.busRlId,
|
|
|
|
|
templateId: data.templateId,
|
|
|
|
@ -878,10 +862,8 @@ export default {
|
|
|
|
|
this.moduleNameList = response.data.list;
|
|
|
|
|
this.moduleNameMap = {};
|
|
|
|
|
this.moduleNameList.forEach((obj, index) => {
|
|
|
|
|
console.log(obj)
|
|
|
|
|
this.moduleNameMap[obj.id] = obj.name;
|
|
|
|
|
});
|
|
|
|
|
console.log(this.moduleNameMap)
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {
|
|
|
|
|
});
|
|
|
|
@ -889,7 +871,6 @@ export default {
|
|
|
|
|
|
|
|
|
|
handleEdit(index, row) {
|
|
|
|
|
this.currentCheckIndex = index;
|
|
|
|
|
console.log(this.currentCheckIndex)
|
|
|
|
|
},
|
|
|
|
|
handleSave(index, row) {
|
|
|
|
|
this.currentCheckIndex = -1;
|
|
|
|
|