|
|
|
@ -36,7 +36,6 @@ |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
import {crudCodeGen} from '@/api/mdp/lcode/dev.js' |
|
|
|
export default { |
|
|
|
computed: { |
|
|
|
}, |
|
|
|
@ -59,9 +58,15 @@ export default { |
|
|
|
},//end data |
|
|
|
methods: { |
|
|
|
genCode(){ |
|
|
|
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("表单验证不通过") |
|
|
|
} |
|
|
|
}) |
|
|
|
|
|
|
|
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) |
|
|
|
} |
|
|
|
},//end method |
|
|
|
components: { |
|
|
|
|