Commit 57fe5473 by 王志慧

feat

1 parent e07e865d
<template>
<div class="w-textarea" ref="wTextarea">
<div contenteditable="true" class="w-textarea_input" ref="wTextareaContent" :id="contentId" @keydown="textareaKeydown($event)" @click="inputClick($event)" @focus="onFocus" @blur="onBlur" @keydown.delete="handleDelete($event)" @input="handleInput($event.target)"></div>
<div contenteditable="true" class="w-textarea_input" ref="wTextareaContent" :id="contentId" @click="inputClick($event)" @focus="onFocus" @blur="onBlur" @keydown.delete="handleDelete($event)" @input="handleInput($event.target)"></div>
</div>
</template>
<script>
......
......@@ -224,6 +224,7 @@ export default {
handlePreview(params) {
let { key, data } = params
this.switchList[key] = data
console.log(this.switchList[key])
},
openConfigDialog(componentName) {
this.dialogComponent = componentName
......@@ -265,7 +266,12 @@ export default {
switchList.forEach(item => {
this.groupToType.find(v => {
if (v.type == item.actionReportType) {
this.switchList[v.attr].push(item)
this.switchList[v.attr].push({
actionReportType: item.actionReportType,
switchStatus: item.switchStatus,
switchText: item.switchText,
switchType: item.switchType
})
}
})
})
......
......@@ -64,12 +64,7 @@ export default {
this.switchList.saReport.forEach(i => {
this.params.find(data => {
if (this[data].switchType == i.switchType) {
this[data] = {
actionReportType: i.actionReportType,
switchStatus: i.switchStatus,
switchText: i.switchText,
switchType: i.switchType
}
this[data] = i
this[data].switchStatus = this[data].switchStatus == 'Y' ? true : false
}
})
......
......@@ -104,12 +104,7 @@ export default {
this.switchList.wordReport.forEach(i => {
this.params.find(data => {
if (this[data].switchType == i.switchType) {
this[data] = {
actionReportType: i.actionReportType,
switchStatus: i.switchStatus,
switchText: i.switchText,
switchType: i.switchType
}
this[data] = i
}
})
})
......
......@@ -54,12 +54,7 @@ export default {
this.switchList.zhanReport.forEach(i => {
this.params.find(data => {
if (this[data].switchType == i.switchType) {
this[data] = {
actionReportType: i.actionReportType,
switchStatus: i.switchStatus,
switchText: i.switchText,
switchType: i.switchType
}
this[data] = i
this[data].switchStatus = this[data].switchStatus == 'Y' ? true : false
}
})
......
......@@ -79,7 +79,7 @@ export default {
isDialogVisible(val) {
if (val) {
this.$nextTick(() => {
this.$refs.verbalRef && this.$refs.verbalRef.update(this.verbalType.switchText)
this.$refs.verbalRef&&this.$refs.verbalRef.update(this.verbalType.switchText)
})
}
}
......@@ -92,12 +92,7 @@ export default {
this.switchList.saPerReport.forEach(i => {
this.params.find(data => {
if (this[data].switchType == i.switchType) {
this[data] = {
actionReportType: i.actionReportType,
switchStatus: i.switchStatus,
switchText: i.switchText,
switchType: i.switchType
}
this[data] = i
this[data].switchStatus = this[data].switchStatus == 'Y' ? true : false
}
})
......@@ -107,7 +102,7 @@ export default {
this.isDialogVisible = false
let switchList = []
this.params.forEach(data => {
if (data == 'verbalType') this[data].switchText = this.$refs.verbalRef.getTextValue()
if(data =='verbalType') this[data].switchText = this.$refs.verbalRef.getTextValue()
switchList.push(this[data])
})
console.log(switchList)
......@@ -195,6 +190,7 @@ export default {
/deep/ .el-form-item__content {
width: 448px;
}
}
}
</style>
......@@ -54,12 +54,7 @@ export default {
this.switchList.scheduleReport.forEach(i => {
this.params.find(data => {
if (this[data].switchType == i.switchType) {
this[data] = {
actionReportType: i.actionReportType,
switchStatus: i.switchStatus,
switchText: i.switchText,
switchType: i.switchType
}
this[data] = i
this[data].switchStatus = this[data].switchStatus == 'Y' ? true : false
}
})
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!