Commit 9e63f910 by 前端

Merge branch 'v1.28.1' into 'master'

V1.28.1

See merge request !74
2 parents 753ff0d6 dd1cc564
...@@ -202,7 +202,7 @@ export default { ...@@ -202,7 +202,7 @@ export default {
}, },
data() { data() {
return { return {
searchForm: { alarmType: "" }, searchForm: { alarmType: "",source:"" },
currentPage: 1, currentPage: 1,
pageSizes: [10, 20, 30, 40], pageSizes: [10, 20, 30, 40],
pageSize: 10, pageSize: 10,
......
...@@ -932,9 +932,9 @@ export default { ...@@ -932,9 +932,9 @@ export default {
if (sn) { if (sn) {
//this._timeoutId && clearTimeout(this._timeoutId) //this._timeoutId && clearTimeout(this._timeoutId)
//this._timeoutId = setTimeout(()=>{ //this._timeoutId = setTimeout(()=>{
verifydevice({ sn }).then((res) => { verifydevice({ sn:sn.trim() }).then((res) => {
if (res.code == 200) { if (res.code == 200) {
checkSn({ sn }).then((res) => { checkSn({ sn:sn.trim() }).then((res) => {
if (res.data) { if (res.data) {
this.snForm.deviceArr[i].deviceType = res.data; this.snForm.deviceArr[i].deviceType = res.data;
} }
...@@ -1487,6 +1487,7 @@ export default { ...@@ -1487,6 +1487,7 @@ export default {
]; ];
} }
data.deviceInfoDtos.map((k) => { data.deviceInfoDtos.map((k) => {
k.sn.trim();
k.edit = true; k.edit = true;
k.disabled = true; k.disabled = true;
return k; return k;
...@@ -2166,13 +2167,13 @@ export default { ...@@ -2166,13 +2167,13 @@ export default {
let i = rule.field.split(".")[1]; let i = rule.field.split(".")[1];
let oParams = {}; let oParams = {};
oParams.sn = value; oParams.sn = value.trim();
if (_this.snForm.id) { if (_this.snForm.id) {
oParams.vehicleId = _this.snForm.id; oParams.vehicleId = _this.snForm.id;
} }
verifydevice(oParams).then((res) => { verifydevice(oParams).then((res) => {
if (res.code == 200) { if (res.code == 200) {
checkSn({ sn: value }).then((res) => { checkSn({ sn: value.trim() }).then((res) => {
if (res.data) { if (res.data) {
let o = _this.snForm.deviceInfoDtos[i]; let o = _this.snForm.deviceInfoDtos[i];
o.deviceClassifyName = res.data; o.deviceClassifyName = res.data;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!