mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-11-02 07:50:37 +00:00
80 lines
3.1 KiB
Vue
80 lines
3.1 KiB
Vue
<template>
|
||
<div class="main">
|
||
<Alert closable>
|
||
crud生成文件位置说明
|
||
<template #desc>
|
||
<p>1、生成的文件位置尽量不要修改,可以在创建后自行移动</p>
|
||
<p>2、生成的文件位置不会包含文件的绝对路径,在创建时会携带提前预设的绝对路径</p>
|
||
<p>3、前端模板文件默认位置在:config/app.php的admin_template_path中配置</p>
|
||
<p>4、后端默认生成位置为:网站根目录</p>
|
||
<p>5、确保前端/admin/src目录、后端app目录有写入创建文件权限</p>
|
||
</template>
|
||
</Alert>
|
||
<Form ref="foundation" :model="storage" :rules="storageRules" :label-width="130">
|
||
<FormItem label="生成controller位置">
|
||
<Input class="form-width" v-model="storage.controller" readonly placeholder="请输入"></Input>
|
||
<div class="tip">生成后端控制器文件存放位置</div>
|
||
</FormItem>
|
||
<FormItem label="生成service位置">
|
||
<Input class="form-width" v-model="storage.service" readonly placeholder="请输入"></Input>
|
||
<div class="tip">生成后端service文件存放位置</div>
|
||
</FormItem>
|
||
<FormItem label="生成dao位置">
|
||
<Input class="form-width" v-model="storage.dao" readonly placeholder="请输入"></Input>
|
||
<div class="tip">生成后端dao文件存放位置</div>
|
||
</FormItem>
|
||
<FormItem label="生成model位置">
|
||
<Input class="form-width" v-model="storage.model" readonly placeholder="请输入"></Input>
|
||
<div class="tip">生成后端model文件存放位置</div>
|
||
</FormItem>
|
||
<FormItem label="生成route位置">
|
||
<Input class="form-width" v-model="storage.route" readonly placeholder="请输入"></Input>
|
||
<div class="tip">生成后端路由存放位置</div>
|
||
</FormItem>
|
||
<FormItem label="生成validate位置">
|
||
<Input class="form-width" v-model="storage.validate" readonly placeholder="请输入"></Input>
|
||
<div class="tip">生成后端验证器存放位置</div>
|
||
</FormItem>
|
||
<FormItem label="生成pages位置">
|
||
<Input class="form-width" v-model="storage.pages" readonly placeholder="请输入"></Input>
|
||
<div class="tip">生成前端页面文件存放位置</div>
|
||
</FormItem>
|
||
<FormItem label="生成api位置">
|
||
<Input class="form-width" v-model="storage.api" readonly placeholder="请输入"></Input>
|
||
<div class="tip">生成前端api接口文件存放位置</div>
|
||
</FormItem>
|
||
<FormItem label="生成router位置">
|
||
<Input class="form-width" v-model="storage.router" readonly placeholder="请输入"></Input>
|
||
<div class="tip">生成前端路由存放位置</div>
|
||
</FormItem>
|
||
</Form>
|
||
</div>
|
||
</template>
|
||
|
||
<script>
|
||
export default {
|
||
name: '',
|
||
props: {
|
||
storage: {
|
||
type: Object,
|
||
default: () => {
|
||
return {};
|
||
},
|
||
},
|
||
},
|
||
data() {
|
||
return {
|
||
storageRules: {},
|
||
};
|
||
},
|
||
created() {},
|
||
mounted() {},
|
||
methods: {},
|
||
};
|
||
</script>
|
||
<style lang="stylus" scoped>
|
||
.form-width {
|
||
width: 500px;
|
||
}
|
||
</style>
|