From bc9757f7b970fda09868617239b34dfe1119f9b9 Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Mon, 19 Apr 2021 17:45:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../iscs_new/iscsDraw/statusCombineEdit.vue | 82 +++++++++++++++++-- 1 file changed, 77 insertions(+), 5 deletions(-) diff --git a/src/views/iscs_new/iscsDraw/statusCombineEdit.vue b/src/views/iscs_new/iscsDraw/statusCombineEdit.vue index 13f82e58a..81371a12e 100644 --- a/src/views/iscs_new/iscsDraw/statusCombineEdit.vue +++ b/src/views/iscs_new/iscsDraw/statusCombineEdit.vue @@ -12,24 +12,64 @@ :expand-row-keys="expandKeys" @expand-change="expandChange" > - + + + + + - + @@ -101,18 +141,46 @@ export default { }, addComposeStatus() { const length = this.formModel.stateList.length; - this.formModel.stateList.push({id:length + 1, status:'', description:'', weight:1, needDefault:false}); + this.formModel.stateList.push({id:length + 1, status:'', description:'', weight:1, needDefault:false, covertStatusList:[], defaultLoop:false}); this.expandKeys.push(length + 1); }, deleteStatus(index, row) { this.formModel.stateList.splice(index, 1); const key = this.expandKeys.findIndex(each=>{ return each == row.id; }); if (key > 0) { this.expandKeys.splice(key, 1); } + }, + addCovertStatus(index) { + debugger; + // const covertStatusList = ; + if (this.formModel.stateList[index].defaultLoop) { + const covertStatusList = this.formModel.stateList[index].covertStatusList; + covertStatusList.push({loop:this.formModel.stateList[index].defaultLoop, + frameList:[], times:1, delay:2, animateTime:10}); + this.$set(this.formModel.stateList[index], 'covertStatusList', covertStatusList); + } else { + this.formModel.stateList[index].covertStatusList.push({loop:this.formModel.stateList[index].defaultLoop, + frameList:[] }); + } + // if (!covertStatusList) { + // this.$set(this.formModel.stateList[index], type, {}); + // } + // const data = this.formModel.stateList[index]; + // const dataName = 'default' + type.replace(type[0], type[0].toUpperCase()) + 'Select'; + // if (!data[type][data[dataName]] && data[dataName]) { + // const other = utils.deepClone(this.formModel[type][data[dataName]]); + // this.$set(this.formModel.stateList[index][type], data[dataName], other); + // } } } }; +