mirror of https://gitee.com/xiaonuobase/snowy
【更新】解决代码生成前端多生成tool工具类导入跟配置时不显示上级目录问题
parent
892ae19176
commit
f38c2bc0b8
|
@ -192,7 +192,6 @@
|
||||||
tableColumns: []
|
tableColumns: []
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
|
||||||
if (record) {
|
if (record) {
|
||||||
const params = {
|
const params = {
|
||||||
id: record.id
|
id: record.id
|
||||||
|
@ -217,6 +216,7 @@
|
||||||
gridWhether: 'N'
|
gridWhether: 'N'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
// 默认要校验的
|
// 默认要校验的
|
||||||
const formRules = {
|
const formRules = {
|
||||||
|
|
|
@ -132,15 +132,21 @@
|
||||||
|
|
||||||
<script setup name="${busName}">
|
<script setup name="${busName}">
|
||||||
import { message } from 'ant-design-vue'
|
import { message } from 'ant-design-vue'
|
||||||
<% if (searchCount > 0) { %>
|
<%
|
||||||
<% for(var i = 0; i < configList.~size; i++) { %>
|
var iptTool = 0;
|
||||||
<% if(!configList[i].needTableId && configList[i].needPage) { %>
|
if (searchCount > 0) {
|
||||||
<% if (configList[i].effectType == 'select' || configList[i].effectType == 'radio' || configList[i].effectType == 'checkbox') { %>
|
for(var i = 0; i < configList.~size; i++) {
|
||||||
|
if(!configList[i].needTableId) {
|
||||||
|
if(configList[i].effectType == 'select' || configList[i].effectType == 'radio' || configList[i].effectType == 'checkbox') {
|
||||||
|
iptTool++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
%>
|
||||||
|
<% if(iptTool > 0) { %>
|
||||||
import tool from '@/utils/tool'
|
import tool from '@/utils/tool'
|
||||||
<% } %>
|
<% } %>
|
||||||
<% } %>
|
|
||||||
<% } %>
|
|
||||||
<% } %>
|
|
||||||
import Form from './form.vue'
|
import Form from './form.vue'
|
||||||
import ${classNameFirstLower}Api from '@/api/${moduleName}/${classNameFirstLower}Api'
|
import ${classNameFirstLower}Api from '@/api/${moduleName}/${classNameFirstLower}Api'
|
||||||
<% if (searchCount > 0) { %>
|
<% if (searchCount > 0) { %>
|
||||||
|
|
Loading…
Reference in New Issue