低代码前端完成
This commit is contained in:
@@ -1,7 +1,11 @@
|
||||
<template>
|
||||
<section class="acAdd">
|
||||
<ai-detail list>
|
||||
<ai-title slot="title" :title="pageTitle"/>
|
||||
<ai-title slot="title" :title="pageTitle">
|
||||
<template #rightBtn>
|
||||
<el-button type="primary" v-if="isEdit" @click="top.handleGetCode($route.query.id)">生成代码</el-button>
|
||||
</template>
|
||||
</ai-title>
|
||||
<template #content>
|
||||
<el-form ref="AcForm" :model="form" size="small" label-width="120px" :rules="rules">
|
||||
<el-tabs tab-position="left" @tab-click="handleSyncProps">
|
||||
@@ -88,6 +92,9 @@ export default {
|
||||
dict: Object,
|
||||
permissions: Function
|
||||
},
|
||||
inject: {
|
||||
top: {}
|
||||
},
|
||||
computed: {
|
||||
isEdit: v => !!v.$route.query.id,
|
||||
pageTitle: v => v.isEdit ? "编辑应用" : "新增应用"
|
||||
@@ -164,7 +171,7 @@ export default {
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
},
|
||||
},
|
||||
created() {
|
||||
this.getDetail()
|
||||
|
||||
Reference in New Issue
Block a user