版本测试功能
parent
7a05e6d0cb
commit
6241f0f6b1
|
@ -137,6 +137,21 @@ export function getVersionData(id){
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//数据库查询
|
||||||
|
export function selectDataBase(){
|
||||||
|
return request({
|
||||||
|
url: "/engine/version/selectDataBase",
|
||||||
|
method: "post",
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
//数据字段查询
|
||||||
|
export function selectData(){
|
||||||
|
return request({
|
||||||
|
url: "/engine/version/selectData",
|
||||||
|
method: "post",
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -216,6 +216,35 @@
|
||||||
|
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
|
||||||
|
<!--测试规则-->
|
||||||
|
<el-button type="text" @click="dialogFormVisible = true">测试</el-button>
|
||||||
|
|
||||||
|
<el-dialog title="选择数据库" :visible.sync="dialogFormVisible">
|
||||||
|
|
||||||
|
<el-form :model="datas">
|
||||||
|
|
||||||
|
<el-form-item label="请选择数据库" :label-width="formLabelWidth">
|
||||||
|
|
||||||
|
<el-select v-model="datas.source" autocomplete="off">
|
||||||
|
|
||||||
|
<el-options :label="sources.name" :value="sources.id" v-for="sources in source"></el-options>
|
||||||
|
|
||||||
|
</el-select>
|
||||||
|
|
||||||
|
</el-form-item>
|
||||||
|
|
||||||
|
</el-form>
|
||||||
|
|
||||||
|
<div slot="footer" class="dialog-footer">
|
||||||
|
|
||||||
|
<el-button @click="dialogFormVisible = false">取 消</el-button>
|
||||||
|
|
||||||
|
<el-button type="primary" @click="dialogFormVisible = false">确 定</el-button>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</el-dialog>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
|
@ -228,7 +257,6 @@ import {
|
||||||
findById,
|
findById,
|
||||||
forbiddenEngine,
|
forbiddenEngine,
|
||||||
generate,
|
generate,
|
||||||
getVersionData,
|
|
||||||
onEngine,
|
onEngine,
|
||||||
sel,
|
sel,
|
||||||
selectEngineById
|
selectEngineById
|
||||||
|
@ -238,11 +266,17 @@ import Java from "@/components/JavaIDE.vue/java.vue";
|
||||||
|
|
||||||
import {codemirror} from 'vue-codemirror'
|
import {codemirror} from 'vue-codemirror'
|
||||||
|
|
||||||
import "codemirror/theme/ambiance.css"; // 这里引入的是主题样式,根据设置的theme的主题引入,一定要引入!!
|
import "codemirror/theme/ambiance.css";
|
||||||
|
import source from "@/views/assets/source/index.vue"; // 这里引入的是主题样式,根据设置的theme的主题引入,一定要引入!!
|
||||||
|
|
||||||
require("codemirror/mode/javascript/javascript"); // 这里引入的模式的js,根据设置的mode引入,一定要引入!!
|
require("codemirror/mode/javascript/javascript"); // 这里引入的模式的js,根据设置的mode引入,一定要引入!!
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
computed: {
|
||||||
|
source() {
|
||||||
|
return source
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
dicts: ['rule_engine_activate_status', 'rule_engine_type', 'sys_normal_disable', 'rule_engine_level'],
|
dicts: ['rule_engine_activate_status', 'rule_engine_type', 'sys_normal_disable', 'rule_engine_level'],
|
||||||
|
|
||||||
|
@ -256,7 +290,9 @@ export default {
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
props: {},
|
props: {
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
data() {
|
data() {
|
||||||
|
|
||||||
|
@ -264,6 +300,12 @@ export default {
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
|
versionFormVisibles:false,
|
||||||
|
|
||||||
|
datas:{
|
||||||
|
source:[]
|
||||||
|
},
|
||||||
|
|
||||||
dialogTableVisible:false,
|
dialogTableVisible:false,
|
||||||
|
|
||||||
direction: 'rtl',
|
direction: 'rtl',
|
||||||
|
@ -326,8 +368,6 @@ export default {
|
||||||
|
|
||||||
testEngine(){
|
testEngine(){
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
closes() {
|
closes() {
|
||||||
|
@ -384,8 +424,6 @@ export default {
|
||||||
|
|
||||||
selectEngineById(id) {
|
selectEngineById(id) {
|
||||||
|
|
||||||
// this.opens = true;
|
|
||||||
|
|
||||||
this.versionFormVisible = true;
|
this.versionFormVisible = true;
|
||||||
|
|
||||||
sel(id).then(res => {
|
sel(id).then(res => {
|
||||||
|
@ -406,11 +444,8 @@ export default {
|
||||||
|
|
||||||
this.versions.status = 1
|
this.versions.status = 1
|
||||||
|
|
||||||
console.log(this.versions)
|
|
||||||
|
|
||||||
add(this.versions).then(res => {
|
add(this.versions).then(res => {
|
||||||
|
|
||||||
|
|
||||||
this.$message.success(res.msg || "新增成功")
|
this.$message.success(res.msg || "新增成功")
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue