|
@@ -476,13 +476,13 @@ export default {
|
|
|
})
|
|
|
}
|
|
|
if (btnItem.value === '分析反馈') {
|
|
|
- console.log(293, btnItem, scope)
|
|
|
+ // console.log(293, btnItem, scope)
|
|
|
this.$refs.Analysis.open(scope.row.analyticFeedback, scope.$index)
|
|
|
}
|
|
|
},
|
|
|
// 另存为
|
|
|
saveAsRow(command, row, item) {
|
|
|
- console.log(414)
|
|
|
+ // console.log(414)
|
|
|
this.$store.commit('monthlyReportEditV2/SAVE_AS', {
|
|
|
tableHeaders: this.columns,
|
|
|
tableRows: row,
|
|
@@ -491,13 +491,18 @@ export default {
|
|
|
},
|
|
|
// 分析反馈问题更新
|
|
|
upDataAnalysis({ rowIndex, analyticFeedback }) {
|
|
|
+ // console.log({ rowIndex, analyticFeedback })
|
|
|
if (this.pageType.search(/edit/) < 0) {
|
|
|
- console.log(rowIndex, analyticFeedback)
|
|
|
+ // console.log(rowIndex, analyticFeedback)
|
|
|
this.feedbackIndex = rowIndex
|
|
|
this.tableData[rowIndex].analyticFeedback = _.cloneDeep(
|
|
|
analyticFeedback
|
|
|
)
|
|
|
- this.setAnalyticFeedback()
|
|
|
+ let feedbackType = ''
|
|
|
+ if (analyticFeedback.hasOwnProperty('feedbackType')) {
|
|
|
+ feedbackType = 'feedbackType'
|
|
|
+ }
|
|
|
+ this.setAnalyticFeedback(feedbackType)
|
|
|
}
|
|
|
},
|
|
|
addTableData() {
|
|
@@ -576,7 +581,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
// 查看页面数据分析
|
|
|
- setAnalyticFeedback() {
|
|
|
+ setAnalyticFeedback(key = '') {
|
|
|
if (
|
|
|
// this.pageType.search(/edit/) < 0 &&
|
|
|
// this.pageDate.status > 10 &&
|
|
@@ -588,13 +593,13 @@ export default {
|
|
|
const run = (arr) => {
|
|
|
arr.forEach((elm) => {
|
|
|
if (elm.domKey === this.domKey) {
|
|
|
- console.log(elm)
|
|
|
+ // console.log(elm)
|
|
|
obj = _.cloneDeep(elm)
|
|
|
}
|
|
|
if (elm.content.length) {
|
|
|
elm.content.forEach((item) => {
|
|
|
if (item.domKey === this.domKey) {
|
|
|
- console.log(elm)
|
|
|
+ // console.log(elm)
|
|
|
obj = _.cloneDeep(elm)
|
|
|
}
|
|
|
})
|
|
@@ -617,6 +622,9 @@ export default {
|
|
|
// console.log(params)
|
|
|
// 提交数据
|
|
|
if (obj && obj.content[0].tableRows.length) {
|
|
|
+ if (key && key === 'feedbackType') {
|
|
|
+ params[key] = 'feedback_commit'
|
|
|
+ }
|
|
|
updateAnalyticFeedback(params).then((res) => {
|
|
|
if (res.code === 200) {
|
|
|
this.analyticFeedback = res.data
|
|
@@ -698,12 +706,12 @@ export default {
|
|
|
},
|
|
|
// 修改链接
|
|
|
linkEditChange({ rowIndex, addresLink }) {
|
|
|
- console.log(rowIndex, addresLink)
|
|
|
+ // console.log(rowIndex, addresLink)
|
|
|
this.tableData[rowIndex].operationTarget = addresLink
|
|
|
},
|
|
|
// 页面跳转
|
|
|
goto(url) {
|
|
|
- console.log(url)
|
|
|
+ // console.log(url)
|
|
|
url && window.open(url, '_blank')
|
|
|
}
|
|
|
}
|