Browse Source

优化

master
陈裕财 2 years ago
parent
commit
e922f444b4
  1. 2
      index.html
  2. 15
      src/views/mdp/lcode/gen/Index.vue

2
index.html

@ -5,7 +5,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="renderer" content="webkit">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title>唛盟平台-智能表单</title>
<title>唛盟-低代码开发平台</title>
</head>
<body>
<script src="./tinymce/tinymce.min.js"></script>

15
src/views/mdp/lcode/gen/Index.vue

@ -35,8 +35,7 @@
</section>
</template>
<script>
import {crudCodeGen} from '@/api/mdp/lcode/dev.js'
<script>
export default {
computed: {
},
@ -59,9 +58,15 @@ export default {
},//end data
methods: {
genCode(){
var url=`${this.$mdp.getApiBase()}/lcode/mdp/dev/code/gen?tableNames=${this.dbForm.tableNames}&dbOwner=${this.dbForm.dbOwner}&javaPackage=${this.dbForm.javaPackage}&pathFilter=${this.dbForm.pathFilter}&ignoePrefixs=${this.dbForm.ignoePrefixs}&printTableField=${this.dbForm.printTableField}`
location.href=this.$mdp.replaceUrl(url)
this.$refs['dbFormRef'].validate(valid=>{
if(valid){
var url=`${this.$mdp.getApiBase()}/lcode/mdp/dev/code/gen?tableNames=${this.dbForm.tableNames}&dbOwner=${this.dbForm.dbOwner}&javaPackage=${this.dbForm.javaPackage}&pathFilter=${this.dbForm.pathFilter}&ignoePrefixs=${this.dbForm.ignoePrefixs}&printTableField=${this.dbForm.printTableField}`
location.href=this.$mdp.replaceUrl(url)
}else{
this.$notify.error("表单验证不通过")
}
})
}
},//end method
components: {

Loading…
Cancel
Save