修改装表提交的时候提示问题和互感器显示问题
This commit is contained in:
@@ -237,19 +237,19 @@ Page({
|
||||
if (collection === "A") {
|
||||
newData = {
|
||||
collectionA: data.id,
|
||||
collectionAName: data.name,
|
||||
collectionAName: `${item.transformerId}-倍率:${item.ratio}-${item.manufacturer}`,
|
||||
}
|
||||
}
|
||||
if (collection === "B") {
|
||||
newData = {
|
||||
collectionB: data.id,
|
||||
collectionBName: data.name,
|
||||
collectionBName: `${item.transformerId}-倍率:${item.ratio}-${item.manufacturer}`,
|
||||
}
|
||||
}
|
||||
if (collection === "C") {
|
||||
newData = {
|
||||
collectionC: data.id,
|
||||
collectionCName: data.name,
|
||||
collectionCName: `${item.transformerId}-倍率:${item.ratio}-${item.manufacturer}`,
|
||||
}
|
||||
}
|
||||
this.setData(newData);
|
||||
@@ -323,7 +323,7 @@ Page({
|
||||
ratio, area, card, collectionA, collectionB, collectionC,
|
||||
tenement, sharp, peak, flat, valley, overall, url
|
||||
} = this.data;
|
||||
if (!park || !meter || !address) {
|
||||
if (!park || !meter || !address || !meterType) {
|
||||
alertInfo("请填写必填项后保存")
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user