apply-clients 4.1.47-weinan → 4.1.48-weinan

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apply-clients",
3
- "version": "4.1.47-weinan",
3
+ "version": "4.1.48-weinan",
4
4
  "description": "报建前端模块",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -629,7 +629,12 @@ export default {
629
629
  userinfo: this.userinfo,
630
630
  selectdata: this.selectdata
631
631
  }
632
- data.userinfo.devices[0].f_state = '有效'
632
+ if (data.userinfo.devices.length > 0){
633
+ let a = data.userinfo.devices.length
634
+ for (let i = 0; i<a;i++){
635
+ data.userinfo.devices[i].f_state = '有效'
636
+ }
637
+ }
633
638
  let res = await this.$resetpost(this.$androidUtil.getProxyUrl() +'/rs/logic/addInstallationDetailsDevices', {data:data}, {
634
639
  resolveMsg: null,
635
640
  rejectMsg: '设备添加失败!!!'