system-clients 3.1.95 → 3.1.98

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.
@@ -64,8 +64,9 @@
64
64
  <template partial='body'>
65
65
  <td style="text-align:center">{{$index+1}}</td>
66
66
  <td style="text-align:center">{{row.name}}</td>
67
- <td class="flex-around">
68
- <button type="button" name="button" class="button_search button_spacing width-60" @click.stop="$parent.$parent.modifyParam(row, 't_paramvalue')">修改</button>
67
+ <td class="flex-around col-sm-3">
68
+ <button type="button" name="button" class="button_search" @click.stop="$parent.$parent.modifyParam(row, 't_paramvalue')">修改</button>
69
+ <button type="button" name="button" class="button_search" v-if="$index!=0" @click.stop="$parent.$parent.move(row,$index)">上移</button>
69
70
  <button type="button" name="button" class="btn btn-danger" @click.stop="$parent.$parent.deleteParam(row, 't_paramvalue')">删除</button>
70
71
  </td>
71
72
  </template>
@@ -164,6 +165,27 @@
164
165
  }
165
166
  },
166
167
  methods: {
168
+ async move(row,index){
169
+ var temp=Object.assign({}, row)
170
+ row.name=this.params.rows[index-1].name
171
+ row.code=this.params.rows[index-1].code
172
+ row.processid=this.params.rows[index-1].processid
173
+ var param1=row
174
+
175
+ this.params.rows[index-1].name=temp.name
176
+ this.params.rows[index-1].code=temp.code
177
+ this.params.rows[index-1].processid=temp.processid
178
+ var param2=this.params.rows[index-1]
179
+ let http = new HttpResetClass()
180
+ try {
181
+ await http.load('POST', 'rs/entity/t_paramvalue', param1, {resolveMsg: null, rejectMsg: null})
182
+ await http.load('POST', 'rs/entity/t_paramvalue', param2, {resolveMsg: null, rejectMsg: null})
183
+ this.$showAlert('上移成功', 'success', 2000)
184
+ }catch (e) {
185
+ console.log(e)
186
+ this.$showAlert('上移失败', 'warning', 2000)
187
+ }
188
+ },
167
189
  // 加载全部参数
168
190
  loadParams () {
169
191
  let param = {