|
|
@@ -12,7 +12,7 @@
|
|
|
<van-cell-group v-if="!disable" :border="false">
|
|
|
<van-cell title="NFC编码" :value="formData.code" />
|
|
|
<!-- <van-cell title="所属机构" value="内容" is-link/>-->
|
|
|
- <van-cell required title="选择所属机构" :label="orgName" is-link @click="clickItem"/>
|
|
|
+ <van-cell required title="选择所属机构" :label="formData.orgName" is-link @click="clickItem"/>
|
|
|
<select-cell required :disabled="areaList.length == 0" v-model="formData.areaId" title="选择区域" :prop="props" :dataList="areaList"></select-cell>
|
|
|
<select-cell required :disabled="pointList.length == 0" v-model="formData.checkId" title="选择采集点" :prop="checkProps" :dataList="pointList"></select-cell>
|
|
|
</van-cell-group>
|
|
|
@@ -64,7 +64,6 @@ export default {
|
|
|
},
|
|
|
areaList:[],
|
|
|
pointList:[],
|
|
|
- orgName:'',
|
|
|
nfcInfo:{
|
|
|
code:null,
|
|
|
orgName: '无',
|
|
|
@@ -72,6 +71,7 @@ export default {
|
|
|
collectionAreaName:'无',
|
|
|
},
|
|
|
formData:{
|
|
|
+ orgName:'',
|
|
|
code:null,
|
|
|
orgId: null,
|
|
|
areaId:null,
|
|
|
@@ -104,8 +104,8 @@ export default {
|
|
|
unbinding(this.nfcInfo.code).then(res=>{
|
|
|
this.$toast('解绑成功');
|
|
|
this.disable = false;
|
|
|
- let {code,orgId,areaId,checkId} = JSON.parse(JSON.stringify(this.nfcInfo));
|
|
|
- this.formData = {code,orgId};
|
|
|
+ let {code,orgId,orgName,areaId,checkId} = JSON.parse(JSON.stringify(this.nfcInfo));
|
|
|
+ this.formData = {code,orgId,orgName};
|
|
|
console.log('orgid改变')
|
|
|
this.getAreaList();
|
|
|
this.getCheckList();
|
|
|
@@ -146,7 +146,7 @@ export default {
|
|
|
},
|
|
|
changeOrg(selected){
|
|
|
this.showPicker = false;
|
|
|
- this.orgName = selected[0].text;
|
|
|
+ this.formData.orgName = selected[0].text;
|
|
|
this.formData.orgId = selected[0].id;
|
|
|
console.log(selected,'id')
|
|
|
this.getAreaList();
|