Browse Source

增加了自动添加api入库选项 修改了某些已知的bug

main
QM303176530 5 years ago
parent
commit
dfee07c11c
  1. 2
      web/src/utils/request.js
  2. 6
      web/src/view/systemTools/autoCode/index.vue

2
web/src/utils/request.js

@ -60,7 +60,7 @@ service.interceptors.response.use(
} else {
Message({
showClose: true,
message: response.data.msg,
message: response.data.msg||decodeURI(response.headers.msg),
type: 'error',
onClose: () => {
if (response.data.data && response.data.data.reload) {

6
web/src/view/systemTools/autoCode/index.vue

@ -11,6 +11,9 @@
<el-form-item label="文件名称" prop="packageName">
<el-input v-model="form.packageName"></el-input>
</el-form-item>
<el-form-item label="自行创建api入库">
<el-checkbox v-model="form.autoCreateApiToSql">自动创建api</el-checkbox>
</el-form-item>
</el-form>
<!-- 组件列表 -->
<div class="button-box clearflex">
@ -30,7 +33,7 @@
width="280">
</el-table-column>
<el-table-column
type="fieldDesc"
prop="fieldDesc"
label="中文名"
width="280">
</el-table-column>
@ -97,6 +100,7 @@ export default {
structName:"",
packageName:"",
abbreviation:"",
autoCreateApiToSql:false,
fields:[]
},
rules:{

Loading…
Cancel
Save