清屏等完善

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> ></codemirror>
<div v-if="isSubmit" class="code-mask"></div> <div v-if="isSubmit" class="code-mask"></div>
<div class="btns"> <div class="btns">
<el-button <span
class="btn" class="el-icon-delete del"
type="info"
@click="clearCode" @click="clearCode"
>清屏</el-button> ></span>
<el-button <el-button
v-if="modelIsShow" v-if="modelIsShow"
class="btn" class="btn"
@ -222,6 +221,7 @@ export default {
const promises = [] const promises = []
const addType = list => { const addType = list => {
list.map(e => { list.map(e => {
e.disabled = true
// promise // promise
promises.push(new Promise((resolve,reject) => { promises.push(new Promise((resolve,reject) => {
this.$post(this.api.referenceDemoList, { this.$post(this.api.referenceDemoList, {
@ -262,7 +262,7 @@ export default {
const id = this.$refs.tree.getCheckedKeys() const id = this.$refs.tree.getCheckedKeys()
if (!id.length) return this.$message.error('请选择模型!') if (!id.length) return this.$message.error('请选择模型!')
this.$post(`${this.api.referenceFindById}?id=${id[0]}`).then(res => { this.$post(`${this.api.referenceFindById}?id=${id[0]}`).then(res => {
// this.codeVal = '' this.codeVal += '\n' + res.data.modelDemo
this.modelVisible = false this.modelVisible = false
}).catch(res => {}) }).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, /deep/.CodeMirror-wrap pre.CodeMirror-line,
.CodeMirror-wrap pre.CodeMirror-line-like { .CodeMirror-wrap pre.CodeMirror-line-like {
height: 30px; 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') //是否是职站测试 const isBeta = process.env.NODE_ENV === 'development' || location.host.includes('39.108.250.202') //是否是职站测试
let host = location.origin + ':9000/' 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和名称 * python8个系统的id和名称
* id即systemId从cookie里取 * id即systemId从cookie里取

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

Loading…
Cancel
Save