From 864ad75ce3f03cd94172b4330e8a71f7848451cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=BB=E7=8F=AE=E5=AE=87?= Date: Mon, 5 Feb 2024 14:41:21 +0800 Subject: [PATCH 1/5] =?UTF-8?q?=E5=A4=84=E7=90=86=20Database=20Monitor=20?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E8=B7=B3=E8=BD=AC=E5=90=8E=EF=BC=8C=E4=B8=8B?= =?UTF-8?q?=E6=8B=89=E6=A1=86=E4=B8=8D=E5=AF=B9=E5=BA=94=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../abnormalAlarm/components/tableList.vue | 4 ++- .../instances/conditionBox.vue | 12 ++++++--- .../instances/serviceProcess.vue | 25 +++---------------- 3 files changed, 15 insertions(+), 26 deletions(-) diff --git a/src/views/abnormalAlarm/components/tableList.vue b/src/views/abnormalAlarm/components/tableList.vue index d96aa11..f9b8f58 100644 --- a/src/views/abnormalAlarm/components/tableList.vue +++ b/src/views/abnormalAlarm/components/tableList.vue @@ -11,8 +11,9 @@ :customRow="customRow" :rowClassName="() => (canSelect ? 'custom-table-row' : '')" @change="handleTableChange" - :scroll="{ y: 186 }" + :scroll="scroll" > + + + + + @@ -163,11 +167,24 @@ const columns = [ dataIndex: 'status', }, ] +const columnsModal = [ + { + title: 'Index', + dataIndex: 'rowCount', + align: 'center', + }, + { + title: 'Information', + dataIndex: 'info', + align: 'left', + }, +] export default { mixins: [JeecgListMixin], data() { this.columns = columns + this.columnsModal = columnsModal return { queryParam: { collectStart: this.getBeforeDate(6), @@ -183,6 +200,8 @@ export default { }, stationList: [], detectorList: [], + visibleInfo: false, + dataInfo: [], } }, created() { @@ -264,7 +283,7 @@ export default { cancelText: 'Cancel', onOk: async () => { try { - const { success, message } = await deleteAction('/gardsSampleData/deleteById', { + const { success, message, result } = await deleteAction('/gardsSampleData/deleteById', { sampleId: this.selectedRowKeys[0], ...this.delParams, }) @@ -273,6 +292,13 @@ export default { that.loadData() } else { this.$message.error(message) + this.visibleInfo = true + this.dataInfo = result.map((item, index) => { + return { + rowCount: `${index + 1}`, + info: item, + } + }) } } catch (error) { console.error(error) From c87c4ba6f7369cde633abd844c346bc7486b80cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=BB=E7=8F=AE=E5=AE=87?= Date: Mon, 5 Feb 2024 18:35:28 +0800 Subject: [PATCH 5/5] =?UTF-8?q?log=20=E6=A8=A1=E5=9D=97=E7=9A=84=E5=BC=B9?= =?UTF-8?q?=E7=AA=97=E6=A0=B7=E5=BC=8F=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/logManage/index.vue | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/src/views/logManage/index.vue b/src/views/logManage/index.vue index 2a71486..f489570 100644 --- a/src/views/logManage/index.vue +++ b/src/views/logManage/index.vue @@ -17,7 +17,7 @@ - + -
+
{{ logItem }}
@@ -74,42 +74,42 @@ const columns = [ title: 'NAME', align: 'center', width: 320, - dataIndex: 'fileName' + dataIndex: 'fileName', }, { title: 'DATE', align: 'center', width: 200, - dataIndex: 'fileDate' + dataIndex: 'fileDate', }, { title: 'SIZE', align: 'center', width: 220, - dataIndex: 'fileSize' + dataIndex: 'fileSize', }, { title: 'OPERATE', align: 'center', width: 200, scopedSlots: { - customRender: 'operate' - } - } + customRender: 'operate', + }, + }, ] export default { name: 'LogManage', mixins: [JeecgListMixin], components: { - TreeWithLine + TreeWithLine, }, data() { this.columns = columns return { disableMixinCreated: true, url: { - list: '/logManage/findFiles' + list: '/logManage/findFiles', }, isGettingTreeData: false, // 正在获取左侧树信息 treeData: [], @@ -119,7 +119,7 @@ export default { visible: false, isGettingDetail: false, - logInfo: [] + logInfo: [], } }, created() { @@ -148,11 +148,11 @@ export default { */ buildTreeData(treeJson) { const tree = [] - treeJson.forEach(item => { + treeJson.forEach((item) => { const treeNode = { title: item.name, key: item.path, - children: [] + children: [], } if (item.children && item.children.length) { treeNode.children.push(...this.buildTreeData(item.children)) @@ -180,7 +180,7 @@ export default { var params = this.getQueryParams() //查询条件 this.loading = true getAction(this.url.list, params) - .then(res => { + .then((res) => { this.dataSource = res }) .finally(() => { @@ -216,8 +216,8 @@ export default { formData.append('fileName', fileName) formData.append('localPath', filePath) downloadFile('/logManage/downloadFile', fileName, formData, 'post') - } - } + }, + }, }