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 {
},
data() {
return {
searchForm: { alarmType: "" },
searchForm: { alarmType: "",source:"" },
currentPage: 1,
pageSizes: [10, 20, 30, 40],
pageSize: 10,
......
......@@ -932,9 +932,9 @@ export default {
if (sn) {
//this._timeoutId && clearTimeout(this._timeoutId)
//this._timeoutId = setTimeout(()=>{
verifydevice({ sn }).then((res) => {
verifydevice({ sn:sn.trim() }).then((res) => {
if (res.code == 200) {
checkSn({ sn }).then((res) => {
checkSn({ sn:sn.trim() }).then((res) => {
if (res.data) {
this.snForm.deviceArr[i].deviceType = res.data;
}
......@@ -1487,6 +1487,7 @@ export default {
];
}
data.deviceInfoDtos.map((k) => {
k.sn.trim();
k.edit = true;
k.disabled = true;
return k;
......@@ -2166,13 +2167,13 @@ export default {
let i = rule.field.split(".")[1];
let oParams = {};
oParams.sn = value;
oParams.sn = value.trim();
if (_this.snForm.id) {
oParams.vehicleId = _this.snForm.id;
}
verifydevice(oParams).then((res) => {
if (res.code == 200) {
checkSn({ sn: value }).then((res) => {
checkSn({ sn: value.trim() }).then((res) => {
if (res.data) {
let o = _this.snForm.deviceInfoDtos[i];
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!