From b3aaeffd19122233004b65a9d715baebfb278a72 Mon Sep 17 00:00:00 2001 From: zhangxiaoxu123 <819527061@qq.com> Date: 星期四, 06 七月 2023 16:04:43 +0800 Subject: [PATCH] bug修改 --- src/pages/show/showIndex/YunweiBlock.vue | 23 ++++++----------------- 1 files changed, 6 insertions(+), 17 deletions(-) diff --git a/src/pages/show/showIndex/YunweiBlock.vue b/src/pages/show/showIndex/YunweiBlock.vue index da0a883..80574fb 100644 --- a/src/pages/show/showIndex/YunweiBlock.vue +++ b/src/pages/show/showIndex/YunweiBlock.vue @@ -155,18 +155,9 @@ ], rowNum: 14 }, - tableData: [{ - content1:'3鍙锋湇鍔″櫒寮傚父锛屾姤璀﹂敊璇�', - data:'2023-03-06' - },{ - content1:'3鍙锋湇鍔″櫒寮傚父锛屾姤璀﹂敊璇�', - data:'2023-03-06' - },{ - content1:'3鍙锋湇鍔″櫒寮傚父锛屾姤璀﹂敊璇�', - data:'2023-03-06' - }], YunweiBlockVisable: false, - timer: null + timer: null, + tableData:[] } }, destroyed() { @@ -191,12 +182,10 @@ this.getTaskByDate() }, handleClickRow(config) { //纰橀厭琛屼俊鎭� - console.log(config.row[2],'config===') - console.log(document.querySelector('.configSpan').innerHTML,'document.querySelector(\'.configSpan\')') - + console.log(this.tableData[config.rowIndex].id,'id======') this.YunweiBlockVisable = true this.$nextTick(() => { - this.$refs.YunweiBlockForm.init(document.querySelector('.configSpan').innerHTML) + this.$refs.YunweiBlockForm.init(this.tableData[config.rowIndex].id) }) }, @@ -226,9 +215,9 @@ columnWidth: [180,120,0], data:[] } + this.tableData = res.data let data = res.data.map(item => { - let tempStr = `<span class="configSpan" style="display:none">${item.id}</span>` - return [`${item.title}`,`${item.startDate}`,tempStr] + return [`${item.title}`,`${item.startDate}`] }) this.$set(this.ywTableConfig,'data',data) } -- Gitblit v1.9.1