山东移动需求变更
This commit is contained in:
16
packages/3.0.0/AppNavConfig/components/List.vue
vendored
16
packages/3.0.0/AppNavConfig/components/List.vue
vendored
@@ -37,7 +37,7 @@
|
||||
<i class="el-icon-error icon" @click="removeApp(item.id)" v-if="isRemove && item.type !== '0' && item.picked !== '1'"></i>
|
||||
<i class="el-icon-circle-plus icon" @click="addApp(item)" v-if="isCanAdd(item)"></i>
|
||||
<h2>{{ item.name }}</h2>
|
||||
<div class="item-setting" v-if="item.type === '0'">
|
||||
<div class="item-setting">
|
||||
<div class="item-mask"></div>
|
||||
<div class="item-wrapper__icon" @click.stop="editApp(item)">
|
||||
<i class="el-icon-setting"></i>
|
||||
@@ -243,6 +243,19 @@
|
||||
},
|
||||
|
||||
editApp (e) {
|
||||
if (e.type !== '0') {
|
||||
this.form = {
|
||||
...e,
|
||||
pictureUrl: [{
|
||||
url: e.pictureUrl
|
||||
}]
|
||||
}
|
||||
this.isShowAdd = true
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
|
||||
this.info = e
|
||||
this.isLoading = true
|
||||
this.instance.post(`/app/appminihomeconfig/queryDetailById?id=${e.id}`).then(res => {
|
||||
@@ -348,7 +361,6 @@
|
||||
if (valid) {
|
||||
this.instance.post(`/app/appminihomeconfig/addOrUpdate`, {
|
||||
...this.form,
|
||||
id: this.id || null,
|
||||
pictureUrl: this.form.pictureUrl[0].url
|
||||
}).then(res => {
|
||||
if (res.code === 0) {
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
</el-tabs>
|
||||
</template>
|
||||
</ai-list>
|
||||
<Detail v-else-if="componentName === 'Detail'" :params="params" :instance="instance" :dict="dict" :permissions="permissions" @change="onChange"></Detail>
|
||||
<Detail v-else-if="component === 'Detail'" :params="params" :instance="instance" :dict="dict" :permissions="permissions" @change="onChange"></Detail>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
||||
Reference in New Issue
Block a user