提交 7e20ba05 authored 作者: JaxBBLL's avatar JaxBBLL

fix: bugs

上级 153de0df
...@@ -101,7 +101,15 @@ export default { ...@@ -101,7 +101,15 @@ export default {
this.summary += word + " "; // 将选中的词添加到输入框 this.summary += word + " "; // 将选中的词添加到输入框
}, },
// 确认 // 确认
handleConfirm() { handleConfirm() {
if(!this.summary || !this.summary.toString().trim()) {
uni.showToast({
title: "不能为空",
icon: "none",
duration: 2000,
});
return;
}
this.$emit("confirm", this.summary); // 将情况摘要回传给父组件 this.$emit("confirm", this.summary); // 将情况摘要回传给父组件
this.handleClose(); this.handleClose();
}, },
...@@ -117,7 +125,7 @@ export default { ...@@ -117,7 +125,7 @@ export default {
"正常", "正常",
"异常", "异常",
"需处理", "需处理",
"已处理" "已处理"
]; ];
}, },
}, },
......
...@@ -7,7 +7,8 @@ export default { ...@@ -7,7 +7,8 @@ export default {
}, },
setNormal() { setNormal() {
this.itemData.detail.forEach((item) => { this.itemData.detail.forEach((item) => {
item.inspectionResult = 0; item.inspectionResult = 0;
item.inspectionResultLable = '正常'
}); });
console.log("this.isQt", this.isQt); console.log("this.isQt", this.isQt);
if (!this.isQt) { if (!this.isQt) {
......
...@@ -80,6 +80,14 @@ export default { ...@@ -80,6 +80,14 @@ export default {
}, },
// 确认 // 确认
handleConfirm() { handleConfirm() {
if(!this.summary || !this.summary.toString().trim()) {
uni.showToast({
title: "不能为空",
icon: "none",
duration: 2000,
});
return;
}
this.$emit("confirm", this.summary); // 将情况摘要回传给父组件 this.$emit("confirm", this.summary); // 将情况摘要回传给父组件
this.handleClose(); this.handleClose();
}, },
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论