.class工具类测试
parent
3bd35b2d60
commit
3acd5ebd74
|
@ -52,7 +52,7 @@
|
||||||
|
|
||||||
<div v-show="opens">
|
<div v-show="opens">
|
||||||
|
|
||||||
<codemirror v-model="versions.ruleContent" :value="this.versions.ruleContent" :options="cmOptions" >
|
<codemirror v-model="versions.ruleContent" :value="this.versions.ruleContent" :options="cmOptions">
|
||||||
|
|
||||||
</codemirror>
|
</codemirror>
|
||||||
|
|
||||||
|
@ -122,12 +122,6 @@
|
||||||
|
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
|
|
||||||
<!-- <el-button v-show="scope.row.isActivate==1" @click="del(scope.row.id)" type="text" size="small">-->
|
|
||||||
|
|
||||||
<!-- 删除引擎-->
|
|
||||||
|
|
||||||
<!-- </el-button>-->
|
|
||||||
|
|
||||||
<el-button v-show="scope.row.isActivate==1" @click="forbiddenEngines(scope.row.id)" type="text" size="small">
|
<el-button v-show="scope.row.isActivate==1" @click="forbiddenEngines(scope.row.id)" type="text" size="small">
|
||||||
|
|
||||||
关闭引擎
|
关闭引擎
|
||||||
|
@ -158,7 +152,6 @@
|
||||||
|
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
||||||
|
|
||||||
</el-table>
|
</el-table>
|
||||||
|
|
||||||
<!--回显-->
|
<!--回显-->
|
||||||
|
@ -203,7 +196,6 @@
|
||||||
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
|
|
||||||
</el-form>
|
</el-form>
|
||||||
|
|
||||||
<div slot="footer" class="dialog-footer">
|
<div slot="footer" class="dialog-footer">
|
||||||
|
@ -237,8 +229,11 @@ export default {
|
||||||
//import引入的组件需要注入到对象中才能使用"
|
//import引入的组件需要注入到对象中才能使用"
|
||||||
|
|
||||||
components: {
|
components: {
|
||||||
|
|
||||||
codemirror,
|
codemirror,
|
||||||
|
|
||||||
Java
|
Java
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
props: {},
|
props: {},
|
||||||
|
@ -275,7 +270,7 @@ export default {
|
||||||
|
|
||||||
status: '初始化',
|
status: '初始化',
|
||||||
|
|
||||||
ruleContent:''
|
ruleContent: ''
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -307,7 +302,7 @@ export default {
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
|
|
||||||
closes(){
|
closes() {
|
||||||
|
|
||||||
this.dialogFormVisible = false;
|
this.dialogFormVisible = false;
|
||||||
|
|
||||||
|
@ -315,7 +310,7 @@ export default {
|
||||||
|
|
||||||
showCode() {
|
showCode() {
|
||||||
|
|
||||||
this.opens=true
|
this.opens = true
|
||||||
|
|
||||||
this.versions.isActivate = 1
|
this.versions.isActivate = 1
|
||||||
|
|
||||||
|
@ -325,9 +320,9 @@ export default {
|
||||||
|
|
||||||
this.versions.id = this.$route.query.id
|
this.versions.id = this.$route.query.id
|
||||||
|
|
||||||
generate(this.versions).then(res =>{
|
generate(this.versions).then(res => {
|
||||||
|
|
||||||
this.versions.ruleContent=res.ruleContent;
|
this.versions.ruleContent = res.ruleContent;
|
||||||
|
|
||||||
this.$message.success(res.msg || "成功");
|
this.$message.success(res.msg || "成功");
|
||||||
|
|
||||||
|
@ -440,8 +435,7 @@ export default {
|
||||||
|
|
||||||
del(id) {
|
del(id) {
|
||||||
|
|
||||||
if (confirm("你确定" +
|
if (confirm("你确定删除吗?")) {
|
||||||
"删除吗?")) {
|
|
||||||
|
|
||||||
dels(id).then(res => {
|
dels(id).then(res => {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue