|
@@ -2104,7 +2104,8 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
moveApp(id, type) {
|
|
|
- let _index = this.form.admin.cocoFlow.findIndex((i) => i.id == id);
|
|
|
+ if(this.tagType=='admin-cocoFlow'){
|
|
|
+ let _index = this.form.admin.cocoFlow.findIndex((i) => i.id == id);
|
|
|
if (type == 0 && _index != 0) {
|
|
|
//上移
|
|
|
let temp = this.form.admin.cocoFlow[_index - 1];
|
|
@@ -2115,6 +2116,19 @@ export default {
|
|
|
this.form.admin.cocoFlow[_index + 1] = this.form.admin.cocoFlow[_index];
|
|
|
this.form.admin.cocoFlow[_index] = temp;
|
|
|
}
|
|
|
+ }else if(this.tagType=='admin-cocoFlow2'){
|
|
|
+ let _index = this.form.admin.cocoFlow2.findIndex((i) => i.id == id);
|
|
|
+ if (type == 0 && _index != 0) {
|
|
|
+ //上移
|
|
|
+ let temp = this.form.admin.cocoFlow2[_index - 1];
|
|
|
+ this.form.admin.cocoFlow2[_index - 1] = this.form.admin.cocoFlow2[_index];
|
|
|
+ this.form.admin.cocoFlow2[_index] = temp;
|
|
|
+ } else if (type == 1 && _index != this.form.admin.cocoFlow2.length - 1) {
|
|
|
+ let temp = this.form.admin.cocoFlow2[_index + 1];
|
|
|
+ this.form.admin.cocoFlow2[_index + 1] = this.form.admin.cocoFlow2[_index];
|
|
|
+ this.form.admin.cocoFlow2[_index] = temp;
|
|
|
+ }
|
|
|
+ }
|
|
|
this.$forceUpdate();
|
|
|
},
|
|
|
selectAppSuccess(data) {
|