diff --git a/packages/3.0.0/AppNavConfig/components/List.vue b/packages/3.0.0/AppNavConfig/components/List.vue index 547af565..0562f36a 100644 --- a/packages/3.0.0/AppNavConfig/components/List.vue +++ b/packages/3.0.0/AppNavConfig/components/List.vue @@ -19,19 +19,21 @@

{{ group.name }}

-
+
+

{{ item.name }}

+
v.id).indexOf(item.id) > -1 + + return this.isEdit && item.type !== '0' && item.picked !== '1' && !isHas + }, + + addApp (e) { + this.isRemove = false + this.picked.push(e) + }, + eidt () { if (this.isEdit) { this.$confirm('确定退出编辑?').then(() => { this.isEdit = false + + this.getList() }) return false @@ -146,12 +162,20 @@ removeChoose (index) { this.picked.splice(index, 1) + + this.isRest = false + + this.$nextTick(() => { + this.isRest = true + }) }, save () { this.instance.post(`/app/appminihomeconfig/updatePick?ids=${this.picked.map(v => v.id).join(',')}`).then(res => { if (res.code === 0) { this.$message.success('保存成功') + this.isEdit = false + this.isRemove = false this.getList() }