-
-
+
@@ -162,8 +162,9 @@ export default {
},
created() {
this.list.forEach(item => {
- this.$set(this.info, item.itemGroupId, [])
+ this.$set(this.info, item.id, [])
})
+ console.log('infodiy----', this.list)
this.getTemplateList()
},
watch: {
@@ -181,12 +182,12 @@ export default {
// if (list.length == 0) return
let obj = {}
this.list.forEach(item =>{
- if (item.itemGroupId == pid) obj = { ...item, queryItemList: [...list] }
+ if (item.id == pid) obj = { ...item, queryItemList: [...list] }
})
- const groups = this.rightList.map(item => item.itemGroupId)
+ const groups = this.rightList.map(item => item.id)
if (groups.includes(pid)) {
this.rightList.forEach((item, i) => {
- if (item.itemGroupId == pid ) {
+ if (item.id == pid ) {
item.queryItemList = [...list]
if (list.length == 0) this.rightList.splice(i, 1)
}
@@ -203,13 +204,13 @@ export default {
},
handleDelItem(val) {
const { item, index } = val
- console.log('item------', item, this.$refs[`checkbox${item.itemGroupId}`])
- const checkList = this.$refs[`checkbox${item.itemGroupId}`][0].checkedList
+ console.log('item------', item, this.$refs[`checkbox${item.id}`])
+ const checkList = this.$refs[`checkbox${item.id}`][0].checkedList
checkList.forEach((n, i) => {
- if (n == item.itemId) this.$refs[`checkbox${item.itemGroupId}`][0].checkedList.splice(i, 1)
+ if (n == item.itemId) this.$refs[`checkbox${item.id}`][0].checkedList.splice(i, 1)
})
this.rightList.forEach((n, i) => {
- if (n.itemGroupId === item.itemGroupId) {
+ if (n.id === item.id) {
n.queryItemList.splice(index, 1)
if (n.queryItemList.length === 0) this.rightList.splice(i, 1)
}
@@ -234,7 +235,7 @@ export default {
console.log('drag-----', val)
console.log('drag-----', item)
this.rightList.forEach((n, i) => {
- if (item.itemGroupId == n.itemGroupId) n.queryItemList = [...val]
+ if (item.id == n.id) n.queryItemList = [...val]
})
},
handleClose() {
@@ -261,7 +262,7 @@ export default {
if (this.rightList.length == 0) return this.$message.error('请选择导出信息')
this.previewList = this.rightList.map(item => {
return {
- label: item.groupName,
+ label: item.label,
children: item.queryItemList
}
})
@@ -288,11 +289,11 @@ export default {
formCode: 'resi_base_info',
itemList: this.rightList.map(item => {
return {
- itemId: item.itemGroupId,
- label: item.groupName,
+ itemId: item.id,
+ label: item.label,
tableName: item.queryItemList[0].tableName,
children: item.queryItemList,
- supportAdd: item.itemGroupId == '20220422102809_117' ? true : false
+ supportAdd: item.supportAdd
}
})
}
diff --git a/src/views/modules/base/resi.vue b/src/views/modules/base/resi.vue
index 2e6f90fec..391035b10 100644
--- a/src/views/modules/base/resi.vue
+++ b/src/views/modules/base/resi.vue
@@ -299,7 +299,7 @@
top="5vh"
class="dialog-h"
>
- {
+ (async (id) => {
+ item.queryItemList = await this.getExportChildList(id)
+ })(item.id)
+ })
+ this.exportList = [...data]
+ this.$nextTick(() => {
+ this.diyDialog = true
+ })
+ console.log('获取详情成功getExportList----', this.exportList)
+
+ } else {
+ this.$message.error(msg)
+ }
+ },
+ async getExportChildList (groupId) {
+ const url = `/oper/customize/icformitem/getItemList/${groupId}`
+ let params = {}
+
+ const { data, code, msg } = await requestPost(url, params)
+
+ if (code === 0) {
+
+ return data
+
+ } else {
+ this.$message.error(msg)
+ }
+ },
async deleteresiBatch () {
if (this.selection.length === 0) return this.$message.error('请选择之后进行操作')
let userIds = this.selection.map(item => item.icResiUserId)