From 96ea25d0a6d03a7030ad52047b732ad9eab3ae70 Mon Sep 17 00:00:00 2001 From: GGJ <357021191@qq.com> Date: Thu, 17 Oct 2024 13:29:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8A=80=E6=9C=AF=E7=9B=91?= =?UTF-8?q?=E7=9D=A3=E6=8C=89=E9=92=AE=E9=87=8D=E5=A4=8D=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/echarts/rmsboxi.vue | 12 ++-- src/components/echarts/shushiboxi.vue | 12 ++-- .../database/algorithm/components/form.vue | 13 ++-- .../pqs/database/case/components/form.vue | 62 +++++++------------ .../database/standard/components/addTree.vue | 9 ++- .../pqs/database/stencil/components/form.vue | 7 ++- 6 files changed, 57 insertions(+), 58 deletions(-) diff --git a/src/components/echarts/rmsboxi.vue b/src/components/echarts/rmsboxi.vue index b7b647bc..841a17d5 100644 --- a/src/components/echarts/rmsboxi.vue +++ b/src/components/echarts/rmsboxi.vue @@ -1061,7 +1061,7 @@ export default { type: "line", smooth: true, symbol: "none", - sampling: "lttb", + sampling: "average", itemStyle: { color: "#FFCC00", }, @@ -1072,7 +1072,7 @@ export default { type: "line", smooth: true, symbol: "none", - sampling: "lttb", + sampling: "average", itemStyle: { color: "#009900", }, @@ -1083,7 +1083,7 @@ export default { type: "line", smooth: true, symbol: "none", - sampling: "lttb", + sampling: "average", itemStyle: { color: "#CC0000", }, @@ -1479,7 +1479,7 @@ export default { type: "line", smooth: true, symbol: "none", - sampling: "lttb", + sampling: "average", itemStyle: { color: "#FFCC00", }, @@ -1490,7 +1490,7 @@ export default { type: "line", smooth: true, symbol: "none", - sampling: "lttb", + sampling: "average", itemStyle: { color: "#009900", }, @@ -1501,7 +1501,7 @@ export default { type: "line", smooth: true, symbol: "none", - sampling: "lttb", + sampling: "average", itemStyle: { color: "#CC0000", }, diff --git a/src/components/echarts/shushiboxi.vue b/src/components/echarts/shushiboxi.vue index 9807a4a1..eb6a39b6 100644 --- a/src/components/echarts/shushiboxi.vue +++ b/src/components/echarts/shushiboxi.vue @@ -729,7 +729,7 @@ export default { type: 'line', smooth: true, symbol: 'none', - sampling: 'lttb', + sampling: 'average', itemStyle: { color: '#FFCC00' }, @@ -740,7 +740,7 @@ export default { type: 'line', smooth: true, symbol: 'none', - sampling: 'lttb', + sampling: 'average', itemStyle: { color: '#009900' }, @@ -751,7 +751,7 @@ export default { type: 'line', smooth: true, symbol: 'none', - sampling: 'lttb', + sampling: 'average', itemStyle: { color: '#CC0000' }, @@ -1083,7 +1083,7 @@ export default { type: 'line', smooth: true, symbol: 'none', - sampling: 'lttb', + sampling: 'average', itemStyle: { color: '#FFCC00' }, @@ -1094,7 +1094,7 @@ export default { type: 'line', smooth: true, symbol: 'none', - sampling: 'lttb', + sampling: 'average', itemStyle: { color: '#009900' }, @@ -1105,7 +1105,7 @@ export default { type: 'line', smooth: true, symbol: 'none', - sampling: 'lttb', + sampling: 'average', itemStyle: { color: '#CC0000' }, diff --git a/src/views/pqs/database/algorithm/components/form.vue b/src/views/pqs/database/algorithm/components/form.vue index cee0944f..50c8d756 100644 --- a/src/views/pqs/database/algorithm/components/form.vue +++ b/src/views/pqs/database/algorithm/components/form.vue @@ -36,7 +36,7 @@ @@ -51,6 +51,7 @@ const emit = defineEmits(['getTree']) const dialogVisible = ref(false) const title = ref('') const formRef = ref() +const loading = ref(false) const dataTree = ref([]) const TreeList: any = ref({}) const List = ref({}) @@ -110,7 +111,8 @@ const open = (row: any) => { // row.row } } -const submit = () => { +const submit = async () => { + loading.value = true formRef.value.validate(async (valid: boolean) => { if (valid) { if (title.value == '新增算法') { @@ -121,7 +123,7 @@ const submit = () => { forms.name = form.name forms.pid = form.pid } - addAlgorithm(forms).then(res => { + await addAlgorithm(forms).then(res => { ElMessage.success('新增成功') dialogVisible.value = false emit('getTree') @@ -135,7 +137,7 @@ const submit = () => { forms.id = form.id } forms.pid = null - updateAlgorithmLibrary(forms).then(res => { + await updateAlgorithmLibrary(forms).then(res => { ElMessage.success('修改成功') dialogVisible.value = false emit('getTree') @@ -143,6 +145,9 @@ const submit = () => { } } }) + await setTimeout(() => { + loading.value=false + },0) } const getTheTree = () => { queryAllAlgorithmLibrary().then(res => { diff --git a/src/views/pqs/database/case/components/form.vue b/src/views/pqs/database/case/components/form.vue index 66b8e70a..92f0fa88 100644 --- a/src/views/pqs/database/case/components/form.vue +++ b/src/views/pqs/database/case/components/form.vue @@ -1,12 +1,6 @@