Commit 68224c97 by jack

修复设备导入

1 parent f2a0958f
......@@ -141,7 +141,7 @@ import {
EXPORTDEVICECODE,
UNSTOCKDOWNLOADTEMPLATE,
PREDEVICEIMPORT,
DEVICEIMPORT
DEVICEIMPORT,
} from '@/http/interface'
import addDevice from './addDevice'
import { exportExcel } from '@/common/common'
......@@ -172,12 +172,12 @@ export default {
exportLoading: false,
addShow: false,
showDialog: false,
uploadForm: {isOnlyimsi:false},
uploadForm: { isOnlyimsi: false },
uploadFile: {},
uploadError: {},
PREDEVICEIMPORT: PREDEVICEIMPORT,
UNSTOCKDOWNLOADTEMPLATE: UNSTOCKDOWNLOADTEMPLATE,
fileLoading:false
fileLoading: false,
}
},
created() {},
......@@ -351,19 +351,25 @@ export default {
/**手动上传文件 */
uploadInfoToServer: function () {
let _this = this;
let _this = this
let o = this.fileInfo
let m = this.uploadForm;
let m = this.uploadForm
if (!o) {
return false
}
let oParams = JSON.parse(o)
_this.fileLoading = true;
oParams[0].deviceCode = m.deviceCode;
oParams[0].isOnlyimsi = m.isOnlyimsi;
_this.fileLoading = true
oParams[0].deviceCode = m.deviceCode
oParams[0].isOnlyimsi = m.isOnlyimsi
DEVICEIMPORT(oParams).then((res) => {
_this.fileLoading = false;
console.log(res)
_this.fileLoading = false
if (res.returnCode == 0) {
_this.closeDialog()
_this.$Util.Info({
message: '导入成功',
type: 'success',
})
}
})
},
......
......@@ -258,6 +258,13 @@ export default {
let oParams = JSON.parse(o);
DEVICEIMEISTOKEIMPORT(oParams).then(res => {
console.log(res);
if (res.returnCode == 0) {
_this.closeDialog()
_this.$Util.Info({
message: '导入成功',
type: 'success',
})
}
})
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!