【优化】优化前端打包、表格组件、按需引入、模块选中问题修复

This commit is contained in:
俞宝山
2025-12-23 21:53:32 +08:00
parent 6b7d2ecbed
commit e4de5d5d2c
14 changed files with 159 additions and 130 deletions

View File

@@ -27,18 +27,18 @@ export default {
},
// 下载${functionName}导入模板
${classNameFirstLower}DownloadTemplate(data) {
return request('downloadImportTemplate', data, 'get', {
responseType: 'blob'
})
return request('downloadImportTemplate', data, 'get', {
responseType: 'blob'
})
},
// 导入${functionName}
${classNameFirstLower}Import(data) {
return request('importData', data)
},
// 导出${functionName}
${classNameFirstLower}Export(data) {
return request('exportData', data, 'post', {
responseType: 'blob'
})
}
// 导入${functionName}
${classNameFirstLower}Import(data) {
return request('importData', data)
},
// 导出${functionName}
${classNameFirstLower}Export(data) {
return request('exportData', data, 'post', {
responseType: 'blob'
})
}
}

View File

@@ -6,7 +6,7 @@
<% for(var i = 0; i < configList.~size; i++) { %>
<% if(!configList[i].needTableId && configList[i].needPage) { searchCount ++; }%>
<% } %>
<a-card :bordered="false" style="width: 100%">
<xn-panel>
<% if (searchCount > 0) { %>
<a-form ref="searchFormRef" :model="searchFormState">
<a-row :gutter="10">
@@ -154,7 +154,7 @@
</template>
</template>
</s-table>
</a-card>
</xn-panel>
<ImportModel ref="importModelRef" />
<Form ref="formRef" @successful="tableRef.refresh()" />
</template>