From ae0de0617298a3d276622421c77c72435f4ec068 Mon Sep 17 00:00:00 2001 From: kongdeqiang <123456> Date: 星期一, 31 七月 2023 16:32:00 +0800 Subject: [PATCH] 提交文件 --- src/pages/show/showIndex/YunweiBlock.vue | 59 +++++++++++++++++++++++++++++++++-------------------------- 1 files changed, 33 insertions(+), 26 deletions(-) diff --git a/src/pages/show/showIndex/YunweiBlock.vue b/src/pages/show/showIndex/YunweiBlock.vue index da0a883..8c82814 100644 --- a/src/pages/show/showIndex/YunweiBlock.vue +++ b/src/pages/show/showIndex/YunweiBlock.vue @@ -155,25 +155,16 @@ ], 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() { clearInterval(this.timer) }, mounted() { - this.loading() + //this.loading() this.resizeLsit() this.timer = setInterval(() => { this.getTaskByDate() @@ -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,28 +215,46 @@ 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) } }) }, - loading() { + loading() { //鍑烘潵 const tl = this.gsap.timeline({defaults: {duration: 0.8}}) animateShanFlash('.zhuangshi span',{ duration: 1, }) - tl.from('.YunweiBlock-wrap',{ - x: '-200', - autoAlpha: 0, - duration:0.8, - // ease: 'power2.out', - delay:0.5, - ease:'back.out(1.7)', + tl.fromTo('.YunweiBlock-wrap',{ + x: '-110%', + },{ + x: '0', + //autoAlpha: 0, + duration:1, + // ease: 'power2.out', + delay:0.5, + ease:'back.out(1.7)', }) }, + loading2() { //鍑烘潵 + const tl = this.gsap.timeline({defaults: {duration: 0.8}}) + animateShanFlash('.zhuangshi span',{ + duration: 1, + }) + tl.fromTo('.YunweiBlock-wrap',{ + x: '0', + },{ + x: '-110%', + //autoAlpha: 0, + duration:1, + // ease: 'power2.out', + delay:0.5, + ease:'back.out(1.7)', + }) + }, headerCellName(obj) { return 'kehuxinxiBox' }, -- Gitblit v1.9.1