From fda2546b84a2852eb8e24e8ab36db7b9a3e2c641 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=8D=9A=E5=86=89?= Date: Mon, 22 May 2023 15:03:02 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E6=95=B0=E6=8D=AE=E6=98=8E?= =?UTF-8?q?=E7=BB=86=E7=AD=9B=E9=80=89=E5=8F=91=E5=B8=83=E6=96=B9=E5=BC=8F?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E4=B8=BA=E7=A9=BA=EF=BC=8C=E5=9F=BA=E7=A1=80?= =?UTF-8?q?=E5=88=86=E6=9E=90=E5=BA=8F=E5=8F=B7=E6=94=B9=E4=B8=BA=E6=A0=B7?= =?UTF-8?q?=E6=9C=AC=E7=BC=96=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/diagram/newSearch.vue | 41 ++++++++++--------- .../diagram/components/DiagramTableFile.vue | 4 +- 2 files changed, 23 insertions(+), 22 deletions(-) diff --git a/src/views/DataAnalyse/components/diagram/newSearch.vue b/src/views/DataAnalyse/components/diagram/newSearch.vue index dc0fc62a..4dec0bd9 100644 --- a/src/views/DataAnalyse/components/diagram/newSearch.vue +++ b/src/views/DataAnalyse/components/diagram/newSearch.vue @@ -717,10 +717,10 @@ const getFilterData = () => { } // 发布方式 if (!filterData.value?.id) { - for (let i = 0; i < publish_types.value.length; i++) { - const el = publish_types.value[i] - fData.publishVal.push(el.value) - } + // for (let i = 0; i < publish_types.value.length; i++) { + // const el = publish_types.value[i] + // fData.publishVal.push(el.value) + // } } else { if (filterData.value?.publish_type) { console.log('filterData.value?.publish_type', filterData.value) @@ -1103,9 +1103,10 @@ const clearInfo = (type) => { // }) searchData.value.versions = [] // 发布方式 - publish_types.value.map((el) => { - searchData.value.publishVal.push(el.value) - }) + // publish_types.value.map((el) => { + // searchData.value.publishVal.push(el.value) + // }) + searchData.value.publishVal = [] // 作答状态 searchData.value.answerStatus = ['1'] // 标记状态 @@ -1254,7 +1255,7 @@ watch ( } } ) -// 默认全选 +// 默认全选版本号 // watch( // () => versions.value, // (nval) => { @@ -1266,18 +1267,18 @@ watch ( // } // } // ) -// 默认全选 -watch( - () => publish_types.value, - (nval) => { - if (filterData.value?.id) return - searchData.value.publishVal.length = 0 - for (let i = 0; i < nval.length; i++) { - const el = nval[i] - searchData.value.publishVal.push(el.value) - } - } -) +// 默认全选发布方式 +// watch( +// () => publish_types.value, +// (nval) => { +// if (filterData.value?.id) return +// searchData.value.publishVal.length = 0 +// for (let i = 0; i < nval.length; i++) { +// const el = nval[i] +// searchData.value.publishVal.push(el.value) +// } +// } +// ) // 默认全选 watch( () => logics.value, diff --git a/src/views/DataAnalyse/diagram/components/DiagramTableFile.vue b/src/views/DataAnalyse/diagram/components/DiagramTableFile.vue index dc638dcf..073a2dae 100644 --- a/src/views/DataAnalyse/diagram/components/DiagramTableFile.vue +++ b/src/views/DataAnalyse/diagram/components/DiagramTableFile.vue @@ -89,10 +89,10 @@ export default defineComponent({ const tableSource = ref([]); const columns = ref([ { - title: "序号", + title: "样本编码", key: "index", dataIndex: "index", - width: 50, + width: 100, // align: "center", }, {