电子档案文件上传优化

main
cyl 1 year ago
parent bf665371bf
commit c103785f50

@ -648,10 +648,9 @@ export default {
handleSuccess(res) { handleSuccess(res) {
console.log(res); console.log(res);
this.form.contractAttachment = res.data.url; this.form.contractAttachment = res.data.url;
this.$refs.upload.clearFiles();
this.$message({ this.$message({
showClose: true, showClose: true,
message: res.data.name+"上传成功", message: res.data.name + "上传成功",
type: "success", type: "success",
}); });
}, },
@ -850,6 +849,7 @@ export default {
if (this.form.id != null) { if (this.form.id != null) {
updateElectronicAssets(this.form).then((response) => { updateElectronicAssets(this.form).then((response) => {
this.$modal.msgSuccess("修改成功"); this.$modal.msgSuccess("修改成功");
this.$refs.upload.clearFiles();
this.open = false; this.open = false;
this.getList(); this.getList();
}); });
@ -858,6 +858,7 @@ export default {
// //
createElectronicAssets(this.form).then((response) => { createElectronicAssets(this.form).then((response) => {
this.$modal.msgSuccess("新增成功"); this.$modal.msgSuccess("新增成功");
this.$refs.upload.clearFiles();
this.open = false; this.open = false;
this.getList(); this.getList();
}); });

@ -418,7 +418,7 @@ export default {
handleSuccess(res) { handleSuccess(res) {
console.log(res); console.log(res);
this.form.fileUrl = res.data.url; this.form.fileUrl = res.data.url;
this.$refs.upload.clearFiles();
this.$message({ this.$message({
showClose: true, showClose: true,
message: res.data.name+"上传成功", message: res.data.name+"上传成功",
@ -468,6 +468,7 @@ export default {
if (this.form.id != null) { if (this.form.id != null) {
updateElectronicAttachment(this.form).then((response) => { updateElectronicAttachment(this.form).then((response) => {
this.$modal.msgSuccess("修改成功"); this.$modal.msgSuccess("修改成功");
this.$refs.upload.clearFiles();
this.open = false; this.open = false;
this.getList(); this.getList();
}); });
@ -476,6 +477,7 @@ export default {
// //
createElectronicAttachment(this.form).then((response) => { createElectronicAttachment(this.form).then((response) => {
this.$modal.msgSuccess("新增成功"); this.$modal.msgSuccess("新增成功");
this.$refs.upload.clearFiles();
this.open = false; this.open = false;
this.getList(); this.getList();
}); });

@ -689,7 +689,7 @@ export default {
handleSuccess(res) { handleSuccess(res) {
console.log(res); console.log(res);
this.form.contractAttachment = res.data.url; this.form.contractAttachment = res.data.url;
this.$refs.upload.clearFiles();
this.$message({ this.$message({
showClose: true, showClose: true,
message: res.data.name+"上传成功", message: res.data.name+"上传成功",
@ -870,6 +870,7 @@ export default {
if (this.form.id != null) { if (this.form.id != null) {
updateElectronicConsultation(this.form).then((response) => { updateElectronicConsultation(this.form).then((response) => {
this.$modal.msgSuccess("修改成功"); this.$modal.msgSuccess("修改成功");
this.$refs.upload.clearFiles();
this.open = false; this.open = false;
this.getList(); this.getList();
}); });
@ -879,6 +880,7 @@ export default {
this.form.cherks = 0; this.form.cherks = 0;
createElectronicConsultation(this.form).then((response) => { createElectronicConsultation(this.form).then((response) => {
this.$modal.msgSuccess("新增成功"); this.$modal.msgSuccess("新增成功");
this.$refs.upload.clearFiles();
this.open = false; this.open = false;
this.getList(); this.getList();
}); });

@ -814,7 +814,7 @@ export default {
console.log(res); console.log(res);
console.log(this.$refs.upload + "*******"); console.log(this.$refs.upload + "*******");
this.form.contractAttachment = res.data.url; this.form.contractAttachment = res.data.url;
this.$refs.upload.clearFiles();
this.$message({ this.$message({
showClose: true, showClose: true,
message: res.data.name+"上传成功", message: res.data.name+"上传成功",
@ -970,6 +970,7 @@ export default {
if (this.form.id != null) { if (this.form.id != null) {
updateElectronicContracts(this.form).then((response) => { updateElectronicContracts(this.form).then((response) => {
this.$modal.msgSuccess("修改成功"); this.$modal.msgSuccess("修改成功");
this.$refs.upload.clearFiles();
this.open = false; this.open = false;
this.getList(); this.getList();
}); });
@ -979,6 +980,7 @@ export default {
this.form.cherks = 0; this.form.cherks = 0;
createElectronicContracts(this.form).then((response) => { createElectronicContracts(this.form).then((response) => {
this.$modal.msgSuccess("新增成功"); this.$modal.msgSuccess("新增成功");
this.$refs.upload.clearFiles();
this.open = false; this.open = false;
this.getList(); this.getList();
}); });

@ -709,7 +709,7 @@ export default {
handleSuccess(res) { handleSuccess(res) {
console.log(res); console.log(res);
this.form.contractAttachment = res.data.url; this.form.contractAttachment = res.data.url;
this.$refs.upload.clearFiles();
this.$message({ this.$message({
showClose: true, showClose: true,
message: res.data.name+"上传成功", message: res.data.name+"上传成功",
@ -896,6 +896,7 @@ export default {
if (this.form.id != null) { if (this.form.id != null) {
updateElectronicCustomerComplaint(this.form).then((response) => { updateElectronicCustomerComplaint(this.form).then((response) => {
this.$modal.msgSuccess("修改成功"); this.$modal.msgSuccess("修改成功");
this.$refs.upload.clearFiles();
this.open = false; this.open = false;
this.getList(); this.getList();
}); });
@ -905,6 +906,7 @@ export default {
this.form.cherks = 0; this.form.cherks = 0;
createElectronicCustomerComplaint(this.form).then((response) => { createElectronicCustomerComplaint(this.form).then((response) => {
this.$modal.msgSuccess("新增成功"); this.$modal.msgSuccess("新增成功");
this.$refs.upload.clearFiles();
this.open = false; this.open = false;
this.getList(); this.getList();
}); });

@ -844,7 +844,7 @@ export default {
handleSuccess(res) { handleSuccess(res) {
console.log(res); console.log(res);
this.form.contractAttachment = res.data.url; this.form.contractAttachment = res.data.url;
this.$refs.upload.clearFiles();
this.$message({ this.$message({
showClose: true, showClose: true,
message: res.data.name+"上传成功", message: res.data.name+"上传成功",
@ -1048,6 +1048,7 @@ export default {
if (this.form.id != null) { if (this.form.id != null) {
updateElectronicEmployee(this.form).then((response) => { updateElectronicEmployee(this.form).then((response) => {
this.$modal.msgSuccess("修改成功"); this.$modal.msgSuccess("修改成功");
this.$refs.upload.clearFiles();
this.open = false; this.open = false;
this.getList(); this.getList();
}); });
@ -1057,6 +1058,7 @@ export default {
this.form.cherks = 0; this.form.cherks = 0;
createElectronicEmployee(this.form).then((response) => { createElectronicEmployee(this.form).then((response) => {
this.$modal.msgSuccess("新增成功"); this.$modal.msgSuccess("新增成功");
this.$refs.upload.clearFiles();
this.open = false; this.open = false;
this.getList(); this.getList();
}); });

@ -543,7 +543,6 @@ export default {
handleSuccess(res) { handleSuccess(res) {
console.log(res); console.log(res);
this.form.contractAttachment = res.data.url; this.form.contractAttachment = res.data.url;
this.$refs.upload.clearFiles();
this.$message({ this.$message({
showClose: true, showClose: true,
message: res.data.name+"上传成功", message: res.data.name+"上传成功",
@ -598,6 +597,7 @@ export default {
if (this.form.id != null) { if (this.form.id != null) {
updateElectronicOther(this.form).then((response) => { updateElectronicOther(this.form).then((response) => {
this.$modal.msgSuccess("修改成功"); this.$modal.msgSuccess("修改成功");
this.$refs.upload.clearFiles();
this.open = false; this.open = false;
this.getList(); this.getList();
}); });
@ -607,6 +607,7 @@ export default {
this.form.fileStatus = 0; this.form.fileStatus = 0;
createElectronicOther(this.form).then((response) => { createElectronicOther(this.form).then((response) => {
this.$modal.msgSuccess("新增成功"); this.$modal.msgSuccess("新增成功");
this.$refs.upload.clearFiles();
this.open = false; this.open = false;
this.getList(); this.getList();
}); });

Loading…
Cancel
Save