问题修改
This commit is contained in:
parent
79a2663f71
commit
df164c518d
|
|
@ -3,7 +3,6 @@ import {encryptWithSM4} from '@/utils/sm';
|
||||||
|
|
||||||
export async function getSystemConfigApi() {
|
export async function getSystemConfigApi() {
|
||||||
await getNoAuthConfig().then(res => {
|
await getNoAuthConfig().then(res => {
|
||||||
console.log(res.data);
|
|
||||||
sessionStorage.setItem('systemConfig', encryptWithSM4(JSON.stringify(res.data)));
|
sessionStorage.setItem('systemConfig', encryptWithSM4(JSON.stringify(res.data)));
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
console.error('Failed to fetch config:', error);
|
console.error('Failed to fetch config:', error);
|
||||||
|
|
|
||||||
|
|
@ -93,6 +93,12 @@ export default {
|
||||||
{ required: true, message: '请选择文件分类标记', trigger: 'change' }
|
{ required: true, message: '请选择文件分类标记', trigger: 'change' }
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
errorObj: {
|
||||||
|
contentName: '文件题名',
|
||||||
|
term: '案卷期限',
|
||||||
|
unitName:'归档责任单位',
|
||||||
|
major:'所属专业',
|
||||||
|
},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
|
@ -193,7 +199,7 @@ export default {
|
||||||
}
|
}
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
this.loading.close();
|
this.loading.close();
|
||||||
// this.$modal.msgError('提交失败,请重试');
|
this.$modal.msgError(this.errorMsg(error));
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
editArchiveRightApi(params).then(res => {
|
editArchiveRightApi(params).then(res => {
|
||||||
|
|
@ -205,11 +211,22 @@ export default {
|
||||||
}
|
}
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
this.loading.close();
|
this.loading.close();
|
||||||
// this.$modal.msgError('提交失败,请重试');
|
this.$modal.msgError(this.errorMsg(error));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
},
|
||||||
|
errorMsg(error) {
|
||||||
|
const errorMessage = error.message;
|
||||||
|
const errorArr = errorMessage.split(':');
|
||||||
|
const errorObjData = errorArr.length > 1 ? JSON.parse(errorArr[1]) : '';
|
||||||
|
if(errorObjData){
|
||||||
|
return this.errorObj[errorObjData.paramName] + errorArr[0] + ':' + errorObjData.originalValue;
|
||||||
|
}else{
|
||||||
|
return errorMessage;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -64,6 +64,10 @@ export default {
|
||||||
{ required: true, message: '分类号不能为空', trigger: 'blur' }
|
{ required: true, message: '分类号不能为空', trigger: 'blur' }
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
errorObj: {
|
||||||
|
contentName: '分类名称',
|
||||||
|
sort: '分类号',
|
||||||
|
},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
|
@ -104,14 +108,18 @@ export default {
|
||||||
const isNonRootParent = this.form && this.form.parentId !== 0 && this.form.parentId !== undefined && this.form.parentId !== null;
|
const isNonRootParent = this.form && this.form.parentId !== 0 && this.form.parentId !== undefined && this.form.parentId !== null;
|
||||||
if (isNonRootParent) {
|
if (isNonRootParent) {
|
||||||
if (field === 'contentName') {
|
if (field === 'contentName') {
|
||||||
|
this.errorObj.contentName = '案卷题名';
|
||||||
return '案卷题名';
|
return '案卷题名';
|
||||||
} else if (field === 'sort') {
|
} else if (field === 'sort') {
|
||||||
|
this.errorObj.sort = '案卷排序号';
|
||||||
return '案卷排序号';
|
return '案卷排序号';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (field === 'contentName') {
|
if (field === 'contentName') {
|
||||||
|
this.errorObj.contentName = '分类名称';
|
||||||
return '分类名称';
|
return '分类名称';
|
||||||
} else if (field === 'sort') {
|
} else if (field === 'sort') {
|
||||||
|
this.errorObj.sort = '分类号';
|
||||||
return '分类号';
|
return '分类号';
|
||||||
}
|
}
|
||||||
return '';
|
return '';
|
||||||
|
|
@ -285,7 +293,7 @@ export default {
|
||||||
}
|
}
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
this.loading.close();
|
this.loading.close();
|
||||||
// this.$modal.msgError('提交失败,请重试');
|
this.$modal.msgError(this.errorMsg(error));
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
editArchiveLeftApi(params).then(res => {
|
editArchiveLeftApi(params).then(res => {
|
||||||
|
|
@ -297,11 +305,22 @@ export default {
|
||||||
}
|
}
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
this.loading.close();
|
this.loading.close();
|
||||||
// this.$modal.msgError('提交失败,请重试');
|
this.$modal.msgError(this.errorMsg(error));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
},
|
||||||
|
errorMsg(error) {
|
||||||
|
const errorMessage = error.message;
|
||||||
|
const errorArr = errorMessage.split(':');
|
||||||
|
const errorObjData = errorArr.length > 1 ? JSON.parse(errorArr[1]) : '';
|
||||||
|
if(errorObjData){
|
||||||
|
return this.errorObj[errorObjData.paramName] + errorArr[0] + ':' + errorObjData.originalValue;
|
||||||
|
}else{
|
||||||
|
return errorMessage;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -179,7 +179,12 @@ export default {
|
||||||
const errorMessage = error.message;
|
const errorMessage = error.message;
|
||||||
const errorArr = errorMessage.split(':');
|
const errorArr = errorMessage.split(':');
|
||||||
const errorObjData = errorArr.length > 1 ? JSON.parse(errorArr[1]) : '';
|
const errorObjData = errorArr.length > 1 ? JSON.parse(errorArr[1]) : '';
|
||||||
return this.errorObj[errorObjData.paramName] + errorArr[0] + ':' + errorObjData.originalValue;
|
if(errorObjData){
|
||||||
|
return this.errorObj[errorObjData.paramName] + errorArr[0] + ':' + errorObjData.originalValue;
|
||||||
|
}else{
|
||||||
|
return errorMessage;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -46,6 +46,10 @@ export default {
|
||||||
{ required: true, message: '自定义分类名称不能为空', trigger: 'blur' }
|
{ required: true, message: '自定义分类名称不能为空', trigger: 'blur' }
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
errorObj: {
|
||||||
|
customizeClassifyName: '自定义分类名称',
|
||||||
|
classifyDesc: '分类描述',
|
||||||
|
},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
|
@ -122,7 +126,7 @@ export default {
|
||||||
}
|
}
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
this.loading.close();
|
this.loading.close();
|
||||||
// this.$modal.msgError('提交失败,请重试');
|
this.$modal.msgError(this.errorMsg(error));
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
updateKyFilesCustomizeClassifyAPI(params).then(res => {
|
updateKyFilesCustomizeClassifyAPI(params).then(res => {
|
||||||
|
|
@ -134,11 +138,22 @@ export default {
|
||||||
}
|
}
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
this.loading.close();
|
this.loading.close();
|
||||||
// this.$modal.msgError('提交失败,请重试');
|
this.$modal.msgError(this.errorMsg(error));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
},
|
||||||
|
errorMsg(error) {
|
||||||
|
const errorMessage = error.message;
|
||||||
|
const errorArr = errorMessage.split(':');
|
||||||
|
const errorObjData = errorArr.length > 1 ? JSON.parse(errorArr[1]) : '';
|
||||||
|
if(errorObjData){
|
||||||
|
return this.errorObj[errorObjData.paramName] + errorArr[0] + ':' + errorObjData.originalValue;
|
||||||
|
}else{
|
||||||
|
return errorMessage;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -57,6 +57,10 @@ export default {
|
||||||
{ required: true, message: '规范识别值不能为空', trigger: 'blur' }
|
{ required: true, message: '规范识别值不能为空', trigger: 'blur' }
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
errorObj: {
|
||||||
|
standardName: '规范识别值',
|
||||||
|
remark: '备注',
|
||||||
|
},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
|
@ -135,7 +139,7 @@ export default {
|
||||||
}
|
}
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
this.loading.close();
|
this.loading.close();
|
||||||
// this.$modal.msgError('提交失败,请重试');
|
this.$modal.msgError(this.errorMsg(error));
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
editClassifyNameStandardAPI(params).then(res => {
|
editClassifyNameStandardAPI(params).then(res => {
|
||||||
|
|
@ -147,11 +151,22 @@ export default {
|
||||||
}
|
}
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
this.loading.close();
|
this.loading.close();
|
||||||
// this.$modal.msgError('提交失败,请重试');
|
this.$modal.msgError(this.errorMsg(error));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
},
|
||||||
|
errorMsg(error) {
|
||||||
|
const errorMessage = error.message;
|
||||||
|
const errorArr = errorMessage.split(':');
|
||||||
|
const errorObjData = errorArr.length > 1 ? JSON.parse(errorArr[1]) : '';
|
||||||
|
if(errorObjData){
|
||||||
|
return this.errorObj[errorObjData.paramName] + errorArr[0] + ':' + errorObjData.originalValue;
|
||||||
|
}else{
|
||||||
|
return errorMessage;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -46,6 +46,10 @@ export default {
|
||||||
{ required: true, message: '文件分类标记名称不能为空', trigger: 'blur' }
|
{ required: true, message: '文件分类标记名称不能为空', trigger: 'blur' }
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
errorObj: {
|
||||||
|
classifyMarkName: '文件分类标记名称',
|
||||||
|
remark: '备注',
|
||||||
|
},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
|
@ -121,7 +125,7 @@ export default {
|
||||||
}
|
}
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
this.loading.close();
|
this.loading.close();
|
||||||
// this.$modal.msgError('提交失败,请重试');
|
this.$modal.msgError(this.errorMsg(error));
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
editArchivalCatalogueAPI(params).then(res => {
|
editArchivalCatalogueAPI(params).then(res => {
|
||||||
|
|
@ -133,11 +137,22 @@ export default {
|
||||||
}
|
}
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
this.loading.close();
|
this.loading.close();
|
||||||
// this.$modal.msgError('提交失败,请重试');
|
this.$modal.msgError(this.errorMsg(error));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
},
|
||||||
|
errorMsg(error) {
|
||||||
|
const errorMessage = error.message;
|
||||||
|
const errorArr = errorMessage.split(':');
|
||||||
|
const errorObjData = errorArr.length > 1 ? JSON.parse(errorArr[1]) : '';
|
||||||
|
if(errorObjData){
|
||||||
|
return this.errorObj[errorObjData.paramName] + errorArr[0] + ':' + errorObjData.originalValue;
|
||||||
|
}else{
|
||||||
|
return errorMessage;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -64,6 +64,10 @@ export default {
|
||||||
{ required: true, message: '分类号不能为空', trigger: 'blur' }
|
{ required: true, message: '分类号不能为空', trigger: 'blur' }
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
errorObj: {
|
||||||
|
contentName: '分类名称',
|
||||||
|
sort: '分类号',
|
||||||
|
},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
|
@ -104,14 +108,18 @@ export default {
|
||||||
const isNonRootParent = this.form && this.form.parentId !== 0 && this.form.parentId !== undefined && this.form.parentId !== null;
|
const isNonRootParent = this.form && this.form.parentId !== 0 && this.form.parentId !== undefined && this.form.parentId !== null;
|
||||||
if (isNonRootParent) {
|
if (isNonRootParent) {
|
||||||
if (field === 'contentName') {
|
if (field === 'contentName') {
|
||||||
|
this.errorObj.contentName = '案卷题名';
|
||||||
return '案卷题名';
|
return '案卷题名';
|
||||||
} else if (field === 'sort') {
|
} else if (field === 'sort') {
|
||||||
|
this.errorObj.sort = '案卷排序号';
|
||||||
return '案卷排序号';
|
return '案卷排序号';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (field === 'contentName') {
|
if (field === 'contentName') {
|
||||||
|
this.errorObj.contentName = '分类名称';
|
||||||
return '分类名称';
|
return '分类名称';
|
||||||
} else if (field === 'sort') {
|
} else if (field === 'sort') {
|
||||||
|
this.errorObj.sort = '分类号';
|
||||||
return '分类号';
|
return '分类号';
|
||||||
}
|
}
|
||||||
return '';
|
return '';
|
||||||
|
|
@ -287,7 +295,7 @@ export default {
|
||||||
}
|
}
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
this.loading.close();
|
this.loading.close();
|
||||||
// this.$modal.msgError('提交失败,请重试');
|
this.$modal.msgError(this.errorMsg(error));
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
updateFileManageLeftApi(params).then(res => {
|
updateFileManageLeftApi(params).then(res => {
|
||||||
|
|
@ -299,11 +307,22 @@ export default {
|
||||||
}
|
}
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
this.loading.close();
|
this.loading.close();
|
||||||
// this.$modal.msgError('提交失败,请重试');
|
this.$modal.msgError(this.errorMsg(error));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
},
|
||||||
|
errorMsg(error) {
|
||||||
|
const errorMessage = error.message;
|
||||||
|
const errorArr = errorMessage.split(':');
|
||||||
|
const errorObjData = errorArr.length > 1 ? JSON.parse(errorArr[1]) : '';
|
||||||
|
if(errorObjData){
|
||||||
|
return this.errorObj[errorObjData.paramName] + errorArr[0] + ':' + errorObjData.originalValue;
|
||||||
|
}else{
|
||||||
|
return errorMessage;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -57,6 +57,10 @@ export default {
|
||||||
{ required: true, message: '数据类型名称不能为空', trigger: 'blur' }
|
{ required: true, message: '数据类型名称不能为空', trigger: 'blur' }
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
errorObj: {
|
||||||
|
dataTypeName: '数据类型名称',
|
||||||
|
remark: '备注',
|
||||||
|
},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
|
@ -136,7 +140,7 @@ export default {
|
||||||
}
|
}
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
this.loading.close();
|
this.loading.close();
|
||||||
// this.$modal.msgError('提交失败,请重试');
|
this.$modal.msgError(this.errorMsg(error));
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
|
|
@ -149,11 +153,22 @@ export default {
|
||||||
}
|
}
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
this.loading.close();
|
this.loading.close();
|
||||||
// this.$modal.msgError('提交失败,请重试');
|
this.$modal.msgError(this.errorMsg(error));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
},
|
||||||
|
errorMsg(error) {
|
||||||
|
const errorMessage = error.message;
|
||||||
|
const errorArr = errorMessage.split(':');
|
||||||
|
const errorObjData = errorArr.length > 1 ? JSON.parse(errorArr[1]) : '';
|
||||||
|
if(errorObjData){
|
||||||
|
return this.errorObj[errorObjData.paramName] + errorArr[0] + ':' + errorObjData.originalValue;
|
||||||
|
}else{
|
||||||
|
return errorMessage;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -249,7 +249,7 @@ export default {
|
||||||
}
|
}
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
this.loading.close();
|
this.loading.close();
|
||||||
// this.$modal.msgError('提交失败,请重试');
|
this.$modal.msgError(this.errorMsg(error));
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
editTransferApplyApi(params).then(res => {
|
editTransferApplyApi(params).then(res => {
|
||||||
|
|
@ -261,12 +261,23 @@ export default {
|
||||||
}
|
}
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
this.loading.close();
|
this.loading.close();
|
||||||
// this.$modal.msgError('提交失败,请重试');
|
this.$modal.msgError(this.errorMsg(error));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
errorMsg(error) {
|
||||||
|
const errorMessage = error.message;
|
||||||
|
const errorArr = errorMessage.split(':');
|
||||||
|
const errorObjData = errorArr.length > 1 ? JSON.parse(errorArr[1]) : '';
|
||||||
|
if(errorObjData){
|
||||||
|
return this.errorObj[errorObjData.paramName] + errorArr[0] + ':' + errorObjData.originalValue;
|
||||||
|
}else{
|
||||||
|
return errorMessage;
|
||||||
|
}
|
||||||
|
|
||||||
|
},
|
||||||
// 树数据过滤 - 支持无限层级转换
|
// 树数据过滤 - 支持无限层级转换
|
||||||
convertToVueTree(data, level = 1) {
|
convertToVueTree(data, level = 1) {
|
||||||
if (!data || !Array.isArray(data)) {
|
if (!data || !Array.isArray(data)) {
|
||||||
|
|
|
||||||
|
|
@ -136,6 +136,9 @@ export default {
|
||||||
isViewflag: false,
|
isViewflag: false,
|
||||||
row: {},
|
row: {},
|
||||||
title: "",
|
title: "",
|
||||||
|
errorObj: {
|
||||||
|
approvalComment: '审批意见',
|
||||||
|
},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
|
@ -258,15 +261,37 @@ export default {
|
||||||
},
|
},
|
||||||
// 审核
|
// 审核
|
||||||
auditTransferApply(auditStatus) {
|
auditTransferApply(auditStatus) {
|
||||||
|
// 显示遮罩层
|
||||||
|
this.loading = this.$loading({
|
||||||
|
lock: true,
|
||||||
|
text: "数据提交中,请稍候...",
|
||||||
|
background: 'rgba(0,0,0,0.5)',
|
||||||
|
target: this.$el.querySelector('.el-dialog') || document.body
|
||||||
|
})
|
||||||
auditTransferApplyApi({
|
auditTransferApplyApi({
|
||||||
id: this.id,
|
id: this.id,
|
||||||
auditOpinion: this.approvalComment.trim(),
|
auditOpinion: this.approvalComment.trim(),
|
||||||
auditStatus: auditStatus
|
auditStatus: auditStatus
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
|
this.loading.close();
|
||||||
this.$message.success(res.msg || '审核成功');
|
this.$message.success(res.msg || '审核成功');
|
||||||
this.handleClose();
|
this.handleClose();
|
||||||
|
}).catch(error => {
|
||||||
|
this.loading.close();
|
||||||
|
this.$modal.msgError(this.errorMsg(error));
|
||||||
})
|
})
|
||||||
|
|
||||||
|
},
|
||||||
|
errorMsg(error) {
|
||||||
|
const errorMessage = error.message;
|
||||||
|
const errorArr = errorMessage.split(':');
|
||||||
|
const errorObjData = errorArr.length > 1 ? JSON.parse(errorArr[1]) : '';
|
||||||
|
if(errorObjData){
|
||||||
|
return this.errorObj[errorObjData.paramName] + errorArr[0] + ':' + errorObjData.originalValue;
|
||||||
|
}else{
|
||||||
|
return errorMessage;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -60,6 +60,10 @@ export default {
|
||||||
{ required: true, message: '档案加密参数不能为空', trigger: 'blur' }
|
{ required: true, message: '档案加密参数不能为空', trigger: 'blur' }
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
errorObj: {
|
||||||
|
encryptName: '档案加密名称',
|
||||||
|
encryptParams: '档案加密参数',
|
||||||
|
},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
|
@ -138,7 +142,7 @@ export default {
|
||||||
}
|
}
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
this.loading.close();
|
this.loading.close();
|
||||||
// this.$modal.msgError('提交失败,请重试');
|
this.$modal.msgError(this.errorMsg(error));
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
updateEncryTypeAPI(params).then(res => {
|
updateEncryTypeAPI(params).then(res => {
|
||||||
|
|
@ -150,11 +154,22 @@ export default {
|
||||||
}
|
}
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
this.loading.close();
|
this.loading.close();
|
||||||
// this.$modal.msgError('提交失败,请重试');
|
this.$modal.msgError(this.errorMsg(error));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
},
|
||||||
|
errorMsg(error) {
|
||||||
|
const errorMessage = error.message;
|
||||||
|
const errorArr = errorMessage.split(':');
|
||||||
|
const errorObjData = errorArr.length > 1 ? JSON.parse(errorArr[1]) : '';
|
||||||
|
if(errorObjData){
|
||||||
|
return this.errorObj[errorObjData.paramName] + errorArr[0] + ':' + errorObjData.originalValue;
|
||||||
|
}else{
|
||||||
|
return errorMessage;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -80,6 +80,9 @@ export default {
|
||||||
{ required: true, message: '请选择移交时间', trigger: 'blur' }
|
{ required: true, message: '请选择移交时间', trigger: 'blur' }
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
errorObj: {
|
||||||
|
transferIssue: '移交问题',
|
||||||
|
},
|
||||||
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
@ -192,7 +195,7 @@ export default {
|
||||||
}
|
}
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
this.loading.close();
|
this.loading.close();
|
||||||
// this.$modal.msgError('提交失败,请重试');
|
this.$modal.msgError(this.errorMsg(error));
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
editTransferProblemApi(params).then(res => {
|
editTransferProblemApi(params).then(res => {
|
||||||
|
|
@ -204,7 +207,7 @@ export default {
|
||||||
}
|
}
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
this.loading.close();
|
this.loading.close();
|
||||||
// this.$modal.msgError('提交失败,请重试');
|
this.$modal.msgError(this.errorMsg(error));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -242,6 +245,17 @@ export default {
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
},
|
},
|
||||||
|
errorMsg(error) {
|
||||||
|
const errorMessage = error.message;
|
||||||
|
const errorArr = errorMessage.split(':');
|
||||||
|
const errorObjData = errorArr.length > 1 ? JSON.parse(errorArr[1]) : '';
|
||||||
|
if(errorObjData){
|
||||||
|
return this.errorObj[errorObjData.paramName] + errorArr[0] + ':' + errorObjData.originalValue;
|
||||||
|
}else{
|
||||||
|
return errorMessage;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -54,6 +54,10 @@ export default {
|
||||||
{ required: true, message: '请输入参数编码', trigger: 'blur' }
|
{ required: true, message: '请输入参数编码', trigger: 'blur' }
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
errorObj: {
|
||||||
|
configName: '参数名称',
|
||||||
|
configCode: '参数编码',
|
||||||
|
},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
|
@ -134,7 +138,7 @@ export default {
|
||||||
}
|
}
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
this.loading.close();
|
this.loading.close();
|
||||||
// this.$modal.msgError('提交失败,请重试');
|
this.$modal.msgError(this.errorMsg(error));
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
editAPI(params).then(res => {
|
editAPI(params).then(res => {
|
||||||
|
|
@ -146,11 +150,22 @@ export default {
|
||||||
}
|
}
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
this.loading.close();
|
this.loading.close();
|
||||||
// this.$modal.msgError('提交失败,请重试');
|
this.$modal.msgError(this.errorMsg(error));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
},
|
||||||
|
errorMsg(error) {
|
||||||
|
const errorMessage = error.message;
|
||||||
|
const errorArr = errorMessage.split(':');
|
||||||
|
const errorObjData = errorArr.length > 1 ? JSON.parse(errorArr[1]) : '';
|
||||||
|
if(errorObjData){
|
||||||
|
return this.errorObj[errorObjData.paramName] + errorArr[0] + ':' + errorObjData.originalValue;
|
||||||
|
}else{
|
||||||
|
return errorMessage;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -76,6 +76,11 @@ export default {
|
||||||
{ validator: (rule, value, callback) => this.validateIpRangeEndDes(value, callback), trigger: 'blur' }
|
{ validator: (rule, value, callback) => this.validateIpRangeEndDes(value, callback), trigger: 'blur' }
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
errorObj: {
|
||||||
|
ipAddressDes: '单个IP地址',
|
||||||
|
ipRangeStartDes: 'IP网段起始地址',
|
||||||
|
ipRangeEndDes: 'IP网段结束地址',
|
||||||
|
},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
|
@ -272,7 +277,7 @@ export default {
|
||||||
}
|
}
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
this.loading.close();
|
this.loading.close();
|
||||||
// this.$modal.msgError('提交失败,请重试');
|
this.$modal.msgError(this.errorMsg(error));
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
updateWhiteAPI(params).then(res => {
|
updateWhiteAPI(params).then(res => {
|
||||||
|
|
@ -284,11 +289,22 @@ export default {
|
||||||
}
|
}
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
this.loading.close();
|
this.loading.close();
|
||||||
// this.$modal.msgError('提交失败,请重试');
|
this.$modal.msgError(this.errorMsg(error));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
},
|
||||||
|
errorMsg(error) {
|
||||||
|
const errorMessage = error.message;
|
||||||
|
const errorArr = errorMessage.split(':');
|
||||||
|
const errorObjData = errorArr.length > 1 ? JSON.parse(errorArr[1]) : '';
|
||||||
|
if(errorObjData){
|
||||||
|
return this.errorObj[errorObjData.paramName] + errorArr[0] + ':' + errorObjData.originalValue;
|
||||||
|
}else{
|
||||||
|
return errorMessage;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue