|
@@ -74,7 +74,8 @@ export default {
|
|
|
loading: false,
|
|
|
clientTypeList: [],
|
|
|
// 单业务线编辑时,数据迁移
|
|
|
- saveAsTargetList: []
|
|
|
+ saveAsTargetList: [],
|
|
|
+ isLoading: [] // 是否显示刷新组件
|
|
|
// saveAsData: {
|
|
|
// tableRow: '',
|
|
|
// targetSubReportId: ''
|
|
@@ -385,6 +386,7 @@ export default {
|
|
|
state.clientTypeList = []
|
|
|
// 单业务线编辑时,数据迁移
|
|
|
state.saveAsTargetList = []
|
|
|
+ state.isLoading = [] // 是否显示刷新组件
|
|
|
},
|
|
|
// tabPageData
|
|
|
SET_TAB_PAGE_DATA(state, { data, id, tabsActive }) {
|
|
@@ -935,41 +937,28 @@ export default {
|
|
|
arr &&
|
|
|
arr.length &&
|
|
|
arr.forEach((elm) => {
|
|
|
+ const newDomKey = uuid10(4)
|
|
|
if (elm.domKey === domKey) {
|
|
|
- // console.log(elm, res.data)
|
|
|
if (title.search(/上月问题跟进/) > -1) {
|
|
|
- elm.content = [{ ...res.data.content[0] }]
|
|
|
+ elm.content = [{ ...res.data.content[0], domKey: newDomKey }]
|
|
|
} else if (title.search(/线上问题/) > -1) {
|
|
|
- // console.log(res, 937)
|
|
|
- // console.log(elm.content, 938)
|
|
|
const value = `${elm.content[0].value || ''}`
|
|
|
elm.subTitles = _.cloneDeep(res.data.subTitles)
|
|
|
elm.content = _.cloneDeep(res.data.content)
|
|
|
elm.content[0].value = value
|
|
|
- // elm.subTitles = [...res.data.subTitles]
|
|
|
- // elm.content[1].tableRows = [...res.data.content[1].tableRows]
|
|
|
+ elm.content[1].domKey = newDomKey
|
|
|
} else if (title.search(/线下缺陷/) > -1) {
|
|
|
- // elm = _.cloneDeep(res.data)
|
|
|
elm.content[0] = _.cloneDeep(res.data.content[0])
|
|
|
- // console.log(952, elm)
|
|
|
- // console.log(953, res)
|
|
|
+ elm.content[0].domKey = newDomKey
|
|
|
elm.subTitles = [...res.data.subTitles]
|
|
|
} else if (title.search(/发布&回滚/) > -1) {
|
|
|
const value = `${elm.content[0].value || ''}`
|
|
|
- elm.content = [{ ...res.data.content[0], value }]
|
|
|
+ elm.content = [{ ...res.data.content[0], value, domKey: newDomKey }]
|
|
|
elm.subTitles = [...res.data.subTitles]
|
|
|
} else {
|
|
|
- elm.content = [{ ...res.data.content[0] }]
|
|
|
+ elm.content = [{ ...res.data.content[0], domKey: newDomKey }]
|
|
|
}
|
|
|
- }
|
|
|
- if (elm.content && elm.content.length) {
|
|
|
- elm.content.forEach((item) => {
|
|
|
- if (title.search(/上月问题跟进|发布&回滚|线上问题|项目延期提测|项目提测打回|提测打回\/准出不通过|提测打回\/发版撤回/) > -1) {
|
|
|
- item.content = [...res.data.content]
|
|
|
- } else {
|
|
|
- item.content = [{ ...res.data }]
|
|
|
- }
|
|
|
- })
|
|
|
+ state.isLoading = [newDomKey]
|
|
|
}
|
|
|
if (elm.children && elm.children.length) {
|
|
|
setDomData(elm.children)
|