From 094121935bab90f3559170ab093d3dcf65329aac Mon Sep 17 00:00:00 2001
From: Jo <479214531@qq.com>
Date: Fri, 18 Mar 2022 18:16:33 +0800
Subject: [PATCH] =?UTF-8?q?=E6=B8=85=E5=B1=8F=E7=AD=89=E5=AE=8C=E5=96=84?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/codemirror.vue | 23 ++++++++++++++++++-----
src/config/index.js | 2 +-
src/styles/theme/theme1.scss | 3 ---
3 files changed, 19 insertions(+), 9 deletions(-)
diff --git a/src/components/codemirror.vue b/src/components/codemirror.vue
index 4742648..667d2c9 100644
--- a/src/components/codemirror.vue
+++ b/src/components/codemirror.vue
@@ -10,11 +10,10 @@
>
- 清屏
+ >
{
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;
diff --git a/src/config/index.js b/src/config/index.js
index 1c24bd4..e91769b 100644
--- a/src/config/index.js
+++ b/src/config/index.js
@@ -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里取
diff --git a/src/styles/theme/theme1.scss b/src/styles/theme/theme1.scss
index 37a8132..58daa32 100644
--- a/src/styles/theme/theme1.scss
+++ b/src/styles/theme/theme1.scss
@@ -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;