apply-clients 4.1.28-weinan → 4.1.30-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.
@@ -117,7 +117,14 @@
117
117
  </div>
118
118
 
119
119
  <div v-for="(i, item) in userinfo.devices" class="form-group col-sm-12 panel panel-info">
120
- <div class="panel-heading head" style="background-color: #e8f4ff;margin-bottom: 10px">设备{{$index+1}}信息</div>
120
+ <div class="panel-heading head col-sm-12" style="background-color: #e8f4ff;margin-bottom: 10px">
121
+ <div class="col-sm-6 text-left" style="background-color: #e8f4ff;margin-bottom: 10px">表具{{$index+1}}信息</div>
122
+ <div class="col-sm-6 text-right"><button
123
+ class="button_delete button_spacing"
124
+ v-if="!item.f_userfiles_id"
125
+ @click.prevent="deleteUserFile(i)"
126
+ >删除</button></div>
127
+ </div>
121
128
  <div class="form-group col-sm-6">
122
129
  <label class="col-sm-4 control-label">设备类型:</label>
123
130
  <div class="col-sm-8">
@@ -605,6 +612,10 @@ export default {
605
612
  this.search()
606
613
  },
607
614
  methods: {
615
+ // 删除未保存的表具
616
+ async deleteUserFile (index) {
617
+ this.userinfo.devices.splice(index, 1)
618
+ },
608
619
  // 追加表具
609
620
  addUserFile() {
610
621
  this.userinfo.devices.push({})