清屏等完善

dev_2022-03-03
Jo 3 years ago
parent ae36804dee
commit 094121935b
  1. 23
      src/components/codemirror.vue
  2. 2
      src/config/index.js
  3. 3
      src/styles/theme/theme1.scss

@ -10,11 +10,10 @@
></codemirror>
<div v-if="isSubmit" class="code-mask"></div>
<div class="btns">
<el-button
class="btn"
type="info"
<span
class="el-icon-delete del"
@click="clearCode"
>清屏</el-button>
></span>
<el-button
v-if="modelIsShow"
class="btn"
@ -222,6 +221,7 @@ export default {
const promises = []
const addType = list => {
list.map(e => {
e.disabled = true
// promise
promises.push(new Promise((resolve,reject) => {
this.$post(this.api.referenceDemoList, {
@ -262,7 +262,7 @@ export default {
const id = this.$refs.tree.getCheckedKeys()
if (!id.length) return this.$message.error('请选择模型!')
this.$post(`${this.api.referenceFindById}?id=${id[0]}`).then(res => {
// this.codeVal = ''
this.codeVal += '\n' + res.data.modelDemo
this.modelVisible = false
}).catch(res => {})
},
@ -534,6 +534,19 @@ export default {
}
}
}
.del {
width: 40px;
margin-right: 10px;
line-height: 40px;
color: #fff;
text-align: center;
border-radius: 50%;
background-color: #f00;
cursor: pointer;
&:hover {
opacity: .9;
}
}
/deep/.CodeMirror-wrap pre.CodeMirror-line,
.CodeMirror-wrap pre.CodeMirror-line-like {
height: 30px;

@ -4,7 +4,7 @@ const isHh = location.host.includes('10.196.131.73') //是否是河海版本
const isBeta = process.env.NODE_ENV === 'development' || location.host.includes('39.108.250.202') //是否是职站测试
let host = location.origin + ':9000/'
if (process.env.NODE_ENV === 'development') host = 'http://192.168.31.151:9000'
if (process.env.NODE_ENV === 'development') host = 'http://39.108.250.202:9000'
/**
* python8个系统的id和名称
* id即systemId从cookie里取

@ -14,9 +14,6 @@ $--font-path: '~element-ui/lib/theme-chalk/fonts';
color: #333 !important;
}
}
.btn {
color:#333 !important;
}
.el-tabs__item.is-active {
color: #333 !important;
background-color: $--color-primary;

Loading…
Cancel
Save