提交 377ecdd8 编写于 作者: yi.li's avatar yi.li

提交量表提示语修改

上级 30b4cc70
......@@ -321,10 +321,27 @@
});
this.medication = [...this.medication,...arrNew];
this.formData.h_s_002 = this.medication
//判断是否放开敏感字段
let hasDisabled = false;
this.addComponents.forEach((item,index)=>{
if (item.disabled === true) {
hasDisabled = true
}
})
postScale(this.domain,this.formData).then(res=>{
if(res.code=='000000'){
// let doMsg = (this.saveWay==1) ? '提交成功' : '保存成功';
let doMsg = (this.saveWay==1) ? '非敏感信息提交成功' : '保存成功';
// let doMsg = (this.saveWay==1 && hasDisabled === true) ? '非敏感信息提交成功' : '保存成功';
let doMsg = '';
if (this.saveWay==1) {
if(hasDisabled === true){
doMsg = '非敏感信息提交成功'
}else {
doMsg = '提交成功'
}
}else {
doMsg = '保存成功'
}
this.$message({
message: doMsg,
type: 'success'
......
......@@ -340,9 +340,26 @@
}
this.formData.hypertension_001.symptom = JSON.stringify(this.formData.hypertension_001.symptom);
// console.log(this.formData)
//判断是否放开敏感字段
let hasDisabled = false;
this.addComponents.forEach((item,index)=>{
if (item.disabled === true) {
hasDisabled = true
}
})
postScale(this.domain,this.formData).then(res=>{
if(res.code=='000000'){
let doMsg = (this.saveWay==1) ? '非敏感信息提交成功' : '保存成功';
// let doMsg = (this.saveWay==1) ? '非敏感信息提交成功' : '保存成功';
let doMsg = '';
if (this.saveWay==1) {
if(hasDisabled === true){
doMsg = '非敏感信息提交成功'
}else {
doMsg = '提交成功'
}
}else {
doMsg = '保存成功'
}
this.$message({
message: doMsg,
type: 'success'
......
......@@ -320,9 +320,26 @@
this.formData.scaleNo = this.scaleNo;
this.formData.isLine = 2;
// console.log(JSON.stringify(this.formData))
//判断是否放开敏感字段
let hasDisabled = false;
this.addComponents.forEach((item,index)=>{
if (item.disabled === true) {
hasDisabled = true
}
})
postScale(this.domain,this.formData).then(res=>{
if(res.code=='000000'){
let doMsg = (this.saveWay==1) ? '非敏感信息提交成功' : '保存成功';
// let doMsg = (this.saveWay==1) ? '非敏感信息提交成功' : '保存成功';
let doMsg = '';
if (this.saveWay==1) {
if(hasDisabled === true){
doMsg = '非敏感信息提交成功'
}else {
doMsg = '提交成功'
}
}else {
doMsg = '保存成功'
}
this.$message({
message: doMsg,
type: 'success'
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册