代码生成支持选择前端模板类型

master
RuoYi 12 months ago
parent 0b124ef12b
commit 51db1ec865
  1. 42
      src/views/tool/gen/genInfoForm.vue

@ -12,6 +12,16 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12">
<el-form-item prop="tplWebType">
<template #label>前端类型</template>
<el-select v-model="info.tplWebType">
<el-option label="Vue2 Element UI 模版" value="element-ui" />
<el-option label="Vue3 Element Plus 模版" value="element-plus" />
</el-select>
</el-form-item>
</el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item prop="packageName"> <el-form-item prop="packageName">
<template #label> <template #label>
@ -60,6 +70,19 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12">
<el-form-item prop="genType">
<template #label>
生成代码方式
<el-tooltip content="默认为zip压缩包下载也可以自定义生成路径" placement="top">
<el-icon><question-filled /></el-icon>
</el-tooltip>
</template>
<el-radio v-model="info.genType" label="0">zip</el-radio>
<el-radio v-model="info.genType" label="1"></el-radio>
</el-form-item>
</el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item> <el-form-item>
<template #label> <template #label>
@ -77,19 +100,6 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12">
<el-form-item prop="genType">
<template #label>
生成代码方式
<el-tooltip content="默认为zip压缩包下载也可以自定义生成路径" placement="top">
<el-icon><question-filled /></el-icon>
</el-tooltip>
</template>
<el-radio v-model="info.genType" label="0">zip</el-radio>
<el-radio v-model="info.genType" label="1"></el-radio>
</el-form-item>
</el-col>
<el-col :span="24" v-if="info.genType == '1'"> <el-col :span="24" v-if="info.genType == '1'">
<el-form-item prop="genPath"> <el-form-item prop="genPath">
<template #label> <template #label>
@ -277,5 +287,11 @@ watch(() => props.info.subTableName, val => {
setSubTableColumns(val); setSubTableColumns(val);
}); });
watch(() => props.info.tplWebType, val => {
if (val === '') {
props.info.tplWebType = "element-plus";
}
});
getMenuTreeselect(); getMenuTreeselect();
</script> </script>

Loading…
Cancel
Save