按测试意见调整
This commit is contained in:
@@ -15,14 +15,15 @@ export default {
|
||||
currentPage() {
|
||||
let {hash} = this.$route
|
||||
return hash == "#add" ? Add : List
|
||||
}
|
||||
},
|
||||
appName: v => v.menuName || v.$options.label
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<section class="AppCopilotConfig">
|
||||
<component :is="currentPage" v-bind="$props"/>
|
||||
<component :is="currentPage" v-bind="$props" :appName="appName"/>
|
||||
</section>
|
||||
|
||||
</template>
|
||||
|
||||
@@ -41,7 +41,7 @@ export default {
|
||||
},
|
||||
handleAdd(row = {}) {
|
||||
const {appIconUrl: url, fileId} = row
|
||||
this.form = this.$copy({...row, appIconUrl: [{url, fileId}]})
|
||||
this.form = this.$copy({...row, appIconUrl: url ? [{url, fileId}] : []})
|
||||
this.dialog = true
|
||||
// this.$router.push({hash: "#add", query: {id}})
|
||||
},
|
||||
@@ -94,14 +94,14 @@ export default {
|
||||
<template>
|
||||
<section class="ccList">
|
||||
<ai-list>
|
||||
<ai-title slot="title" title="定制方案" isShowBottomBorder/>
|
||||
<ai-title slot="title" :title="$attrs.appName" isShowBottomBorder/>
|
||||
<template #content>
|
||||
<ai-search-bar>
|
||||
<template #left>
|
||||
<el-button type="primary" icon="iconfont iconAdd" @click="handleAdd()">添加</el-button>
|
||||
</template>
|
||||
<template #right>
|
||||
<el-input size="small" placeholder="搜索" v-model="search.appName" clearable
|
||||
<el-input size="small" placeholder="请输入应用名称" v-model="search.appName" clearable
|
||||
@change="page.current=1,getTableData()"/>
|
||||
</template>
|
||||
</ai-search-bar>
|
||||
|
||||
Reference in New Issue
Block a user