|
@@ -450,7 +450,7 @@ export default {
|
|
this.tableData.splice(scope.$index, 1)
|
|
this.tableData.splice(scope.$index, 1)
|
|
}
|
|
}
|
|
if (btnItem.value === '链接') {
|
|
if (btnItem.value === '链接') {
|
|
- console.log(scope)
|
|
|
|
|
|
+ // console.log(scope)
|
|
this.$refs['LinkEdit'].open(scope.row.operationTarget || '', scope.$index)
|
|
this.$refs['LinkEdit'].open(scope.row.operationTarget || '', scope.$index)
|
|
// console.log(btnItem, scope, this.columns)
|
|
// console.log(btnItem, scope, this.columns)
|
|
}
|
|
}
|
|
@@ -466,13 +466,13 @@ export default {
|
|
})
|
|
})
|
|
}
|
|
}
|
|
if (btnItem.value === '分析反馈') {
|
|
if (btnItem.value === '分析反馈') {
|
|
- console.log(293, btnItem, scope)
|
|
|
|
|
|
+ // console.log(293, btnItem, scope)
|
|
this.$refs.Analysis.open(scope.row.analyticFeedback, scope.$index)
|
|
this.$refs.Analysis.open(scope.row.analyticFeedback, scope.$index)
|
|
}
|
|
}
|
|
},
|
|
},
|
|
// 另存为
|
|
// 另存为
|
|
saveAsRow(command, row, item) {
|
|
saveAsRow(command, row, item) {
|
|
- console.log(414)
|
|
|
|
|
|
+ // console.log(414)
|
|
this.$store.commit('monthlyReportEdit/SAVE_AS', {
|
|
this.$store.commit('monthlyReportEdit/SAVE_AS', {
|
|
tableHeaders: this.columns,
|
|
tableHeaders: this.columns,
|
|
tableRows: row,
|
|
tableRows: row,
|
|
@@ -488,7 +488,11 @@ export default {
|
|
this.tableData[rowIndex].analyticFeedback = _.cloneDeep(
|
|
this.tableData[rowIndex].analyticFeedback = _.cloneDeep(
|
|
analyticFeedback
|
|
analyticFeedback
|
|
)
|
|
)
|
|
- this.setAnalyticFeedback('feedbackType')
|
|
|
|
|
|
+ let feedbackType = ''
|
|
|
|
+ if (analyticFeedback.hasOwnProperty('feedbackType')) {
|
|
|
|
+ feedbackType = 'feedbackType'
|
|
|
|
+ }
|
|
|
|
+ this.setAnalyticFeedback(feedbackType)
|
|
}
|
|
}
|
|
},
|
|
},
|
|
addTableData() {
|
|
addTableData() {
|
|
@@ -578,13 +582,13 @@ export default {
|
|
const run = (arr) => {
|
|
const run = (arr) => {
|
|
arr.forEach((elm) => {
|
|
arr.forEach((elm) => {
|
|
if (elm.domKey === this.domKey) {
|
|
if (elm.domKey === this.domKey) {
|
|
- console.log(elm)
|
|
|
|
|
|
+ // console.log(elm)
|
|
obj = _.cloneDeep(elm)
|
|
obj = _.cloneDeep(elm)
|
|
}
|
|
}
|
|
if (elm.content.length) {
|
|
if (elm.content.length) {
|
|
elm.content.forEach((item) => {
|
|
elm.content.forEach((item) => {
|
|
if (item.domKey === this.domKey) {
|
|
if (item.domKey === this.domKey) {
|
|
- console.log(elm)
|
|
|
|
|
|
+ // console.log(elm)
|
|
obj = _.cloneDeep(elm)
|
|
obj = _.cloneDeep(elm)
|
|
}
|
|
}
|
|
})
|
|
})
|
|
@@ -691,12 +695,12 @@ export default {
|
|
},
|
|
},
|
|
// 修改链接
|
|
// 修改链接
|
|
linkEditChange({ rowIndex, addresLink }) {
|
|
linkEditChange({ rowIndex, addresLink }) {
|
|
- console.log(rowIndex, addresLink)
|
|
|
|
|
|
+ // console.log(rowIndex, addresLink)
|
|
this.tableData[rowIndex].operationTarget = addresLink
|
|
this.tableData[rowIndex].operationTarget = addresLink
|
|
},
|
|
},
|
|
// 页面跳转
|
|
// 页面跳转
|
|
goto(url) {
|
|
goto(url) {
|
|
- console.log(url)
|
|
|
|
|
|
+ // console.log(url)
|
|
url && window.open(url, '_blank')
|
|
url && window.open(url, '_blank')
|
|
}
|
|
}
|
|
}
|
|
}
|