From 27789601f65f0923b1e943409843d01954008697 Mon Sep 17 00:00:00 2001
From: yujialong <479214531@qq.com>
Date: Wed, 20 Mar 2024 14:07:06 +0800
Subject: [PATCH] fix
---
src/assets/css/main.css | 10 --------
src/components/Header.vue | 2 +-
src/components/quill/index.vue | 2 +-
src/setting.js | 2 +-
src/views/serve/projectAdd.vue | 44 +++++++++++++++++++---------------
5 files changed, 28 insertions(+), 32 deletions(-)
diff --git a/src/assets/css/main.css b/src/assets/css/main.css
index c7c96cf..02760b7 100644
--- a/src/assets/css/main.css
+++ b/src/assets/css/main.css
@@ -270,16 +270,6 @@ li {
font-style: normal;
}
-/* .link_upload .el-upload-list{
- width: 30%;
-} */
-
-/*VueEditor*/
-
-.ql-container {
- min-height: 400px;
-}
-
.ql-snow .ql-tooltip {
transform: translateX(117.5px) translateY(10px) !important;
}
diff --git a/src/components/Header.vue b/src/components/Header.vue
index f6ccb75..908ae13 100644
--- a/src/components/Header.vue
+++ b/src/components/Header.vue
@@ -32,7 +32,6 @@ export default {
},
mounted () {
this.getUserInfo()
- this.heartbeatDetection()
},
methods: {
toPerson () {
@@ -101,6 +100,7 @@ export default {
id && this.$store.commit('SET_ACCOUNTID', id)
this.$store.commit('SET_USERNAME', this.userName)
this.initSocket(result.userAccount)
+ this.heartbeatDetection()
}).catch(err => { })
},
},
diff --git a/src/components/quill/index.vue b/src/components/quill/index.vue
index 1117f09..2800784 100644
--- a/src/components/quill/index.vue
+++ b/src/components/quill/index.vue
@@ -185,7 +185,7 @@ export default {
children.padding = '0'
children.overflow = 'hidden'
children.height = '0'
- children.borderTop = '0'
+ children.border = '0'
}
},
beforeDestroy () {
diff --git a/src/setting.js b/src/setting.js
index bc180b3..15214ce 100644
--- a/src/setting.js
+++ b/src/setting.js
@@ -14,7 +14,7 @@ if (isDev) {
sandPath = `http://${location.hostname}:9520`
host = 'http://121.37.12.51/'
// host = 'https://huorantech.cn/'
- host = 'http://192.168.31.217:9000/'
+ // host = 'http://192.168.31.217:9000/'
} else if (isPro) {
jumpPath = 'https://judgment.huorantech.cn/'
}
diff --git a/src/views/serve/projectAdd.vue b/src/views/serve/projectAdd.vue
index 3aa42b2..cdcffe3 100644
--- a/src/views/serve/projectAdd.vue
+++ b/src/views/serve/projectAdd.vue
@@ -163,9 +163,9 @@
class="table"
stripe
header-align="center"
- use-virtual
- :max-height="400"
- :row-height="120"
+ :use-virtual="isLc"
+ :max-height="600"
+ :row-height="60"
:border="false"
@selection-change="handleSelectionProjectJudgment"
row-key="judgmentId"
@@ -183,20 +183,21 @@
+ align="center"
+ show-overflow-tooltip
+ min-width="140">
+ align="center"
+ show-overflow-tooltip
+ min-width="140">
-
@@ -320,6 +321,7 @@
class="dialog-footer">
取 消
确 定
@@ -383,7 +385,8 @@ export default {
visibleLoading: false, // 加载判分点数据
listLoading: false,// 列表加载
submiting: false, // 新增编辑防抖标识
- updateTime: 0
+ updateTime: 0,
+ savingJud: false
};
},
computed: {
@@ -406,7 +409,12 @@ export default {
this.$message.error("分配的数值已超过100");
}
return score;
- }
+ },
+ // 是否流程点分类
+ isLc () {
+ const systemId = +this.$route.query.systemId
+ return systemId === 11 || systemId === 12 || systemId === 19
+ },
},
watch: {
// 监听信息是否有更改,有的话页面离开的时候要询问是否要保存
@@ -681,10 +689,6 @@ export default {
this.dialogVisible = true;
this.handleQueryJudgment();
},
- // 根据系统id判断是否流程类
- isLc (systemId) {
- return systemId == 11 || systemId == 12 || systemId == 19
- },
handleQueryJudgment () { // 查询判分点数据
let { systemId } = this.projectManage;
this.$nextTick(() => {
@@ -699,7 +703,7 @@ export default {
};
if (systemId == 2 || systemId == 3) {
console.log("系统id:", systemId);
- } else if (this.isLc(systemId)) {
+ } else if (this.isLc) {
// (流程)交易类
this.rowKey = "lcId";
this.getProcessClassData(params);
@@ -752,6 +756,7 @@ export default {
},
saveJudgment () { // 确认选择判分点
if (this.selectedJudgment.length) {
+ this.savingJud = true
this.judgementpointsquery = "";
this.dialogVisible = false;
let tempArr = this.selectedJudgment.map(i => {
@@ -763,6 +768,7 @@ export default {
e.sort = i + 1;
});
this.$nextTick(() => {
+ this.savingJud = false
this.$refs.projectJudgementTable.clearSelection();
});
} else {
@@ -842,7 +848,7 @@ export default {
console.log(systemId);
} else if (systemId == 3) {
console.log(systemId);
- } else if (this.isLc(systemId)) {
+ } else if (this.isLc) {
// 交易类判分点(银行综合系统)
href = `${jumpPath}/#/Transaction?isView=true&systemId=${systemId}&lcId=${row.judgmentId}&token=${this.token}&referrer=${btoa(location.href)}`;
} else {
@@ -855,7 +861,7 @@ export default {
console.log(systemId);
} else if (systemId == 3) {
console.log(systemId);
- } else if (this.isLc(systemId)) {
+ } else if (this.isLc) {
// 交易类判分点(银行综合系统)
href = `${jumpPath}/#/Transaction?isEdit=true&systemId=${systemId}&lcId=${row.judgmentId}&token=${this.token}&referrer=${btoa(location.href)}`;
} else {
@@ -905,6 +911,6 @@ export default {
.main {
overflow: auto;
overflow-x: hidden;
- height: calc(100vh - 152px);
+ height: calc(100vh - 161px);
}
\ No newline at end of file