Browse Source

用接口

feature
zhangyuan 3 years ago
parent
commit
96508e564b
  1. 556
      src/views/modules/base/community/communityExportInfo.vue
  2. 114
      src/views/modules/base/community/communityTable.vue
  3. 32
      src/views/modules/base/diyInfo.vue
  4. 4
      src/views/modules/base/resi copy.vue
  5. 4
      src/views/modules/base/resi.vue

556
src/views/modules/base/community/communityExportInfo.vue

@ -104,6 +104,8 @@
<el-input v-model="form.name" <el-input v-model="form.name"
maxlength="20" maxlength="20"
class="wd200 mr10" /> class="wd200 mr10" />
<div>自定义表头</div>
<el-input v-model="form.title" maxlength="20" class="wd200 mr10" />
<el-checkbox v-model="form.isSaveTemp">保存为常用模板</el-checkbox> <el-checkbox v-model="form.isSaveTemp">保存为常用模板</el-checkbox>
</div> </div>
</div> </div>
@ -371,7 +373,7 @@ export default {
}, },
async getTemplateList () { async getTemplateList () {
let params = { let params = {
formCode: 'resi_base_info' formCode: 'community_info'
} }
await this.$http await this.$http
.post('/oper/customize/icExportTemplate/templateList', params) .post('/oper/customize/icExportTemplate/templateList', params)
@ -427,277 +429,291 @@ export default {
let params = {} let params = {}
const { data, code, msg } = await requestPost(url, params) const { data, code, msg } = await requestPost(url, params)
if (code === 0) { if (code === 0) {
let dataTemp = [] data.forEach((item) => {
(async (id) => {
if (groupId === '45687aa479955f9d06204d415238f7cc_0') { // item.queryItemList = await this.getExportChildList(id)
dataTemp = [ item.queryItemList = [];
{ })(item.id);
columnName: "GRID_ID", });
customerId: "45687aa479955f9d06204d415238f7cc", this.exportList = [...data];
itemGroupId: "45687aa479955f9d06204d415238f7cc_0", this.$nextTick(() => {
itemId: "20220422102809_1001", this.diyDialog = true;
itemType: null, });
label: "所属组织", console.log("获取详情成功getExportList----", this.exportList);
optionSourceType: "remote",
optionSourceValue: "/gov/org/customergrid/gridoption",
options: null,
sort: 0,
supportAdd: false,
tableName: "ic_resi_user",
},
{
columnName: "VILLAGE_ID",
customerId: "45687aa479955f9d06204d415238f7cc",
itemGroupId: "45687aa479955f9d06204d415238f7cc_0",
itemId: "20220422102809_1002",
itemType: null,
label: "所属网格",
optionSourceType: "remote",
optionSourceValue: "/actual/base/communityQuarters/listQuartersOptions?20220422102809_1001",
options: null,
sort: 1,
supportAdd: false,
tableName: "ic_resi_user",
},
{
columnName: "BUILD_ID",
customerId: "45687aa479955f9d06204d415238f7cc",
itemGroupId: "45687aa479955f9d06204d415238f7cc_0",
itemId: "20220422102809_1003",
itemType: null,
label: "小区名称",
optionSourceType: "remote",
optionSourceValue: "/actual/base/communityBuilding/buildingoption?20220422102809_1002",
options: null,
sort: 2,
supportAdd: false,
tableName: "ic_resi_user",
},
{
columnName: "UNIT_ID",
customerId: "45687aa479955f9d06204d415238f7cc",
itemGroupId: "45687aa479955f9d06204d415238f7cc_0",
itemId: "20220422102809_10031",
itemType: null,
label: "关联物业",
optionSourceType: "remote",
optionSourceValue: "/actual/base/communityBuildingUnit/unitoption?20220422102809_1003",
options: null,
sort: 3,
supportAdd: false,
tableName: "ic_resi_user",
},
{
columnName: "HOME_ID",
customerId: "45687aa479955f9d06204d415238f7cc",
itemGroupId: "45687aa479955f9d06204d415238f7cc_0",
itemId: "20220422102809_1004",
itemType: null,
label: "详细地址",
optionSourceType: "remote",
optionSourceValue: "/actual/base/communityHouse/houseoption?20220422102809_10031",
options: null,
sort: 4,
supportAdd: false,
tableName: "ic_resi_user",
},
{
columnName: "IS_BDHJ",
customerId: "45687aa479955f9d06204d415238f7cc",
itemGroupId: "45687aa479955f9d06204d415238f7cc_0",
itemId: "20220422102809_1005",
itemType: null,
label: "备注",
optionSourceType: "local",
optionSourceValue: "options表取",
options: null,
sort: 5,
supportAdd: false,
tableName: "ic_resi_user",
},
]
}
if (groupId === '20220422102809_101') {
dataTemp = [
{
columnName: "GRID_ID",
customerId: "45687aa479955f9d06204d415238f7cc",
itemGroupId: "20220422102809_101",
itemId: "20220422102809_1001",
itemType: null,
label: "所属小区",
optionSourceType: "remote",
optionSourceValue: "/gov/org/customergrid/gridoption",
options: null,
sort: 0,
supportAdd: false,
tableName: "ic_resi_user",
},
{
columnName: "VILLAGE_ID",
customerId: "45687aa479955f9d06204d415238f7cc",
itemGroupId: "20220422102809_101",
itemId: "20220422102809_1002",
itemType: null,
label: "楼栋名称",
optionSourceType: "remote",
optionSourceValue: "/actual/base/communityQuarters/listQuartersOptions?20220422102809_1001",
options: null,
sort: 1,
supportAdd: false,
tableName: "ic_resi_user",
},
{
columnName: "BUILD_ID",
customerId: "45687aa479955f9d06204d415238f7cc",
itemGroupId: "20220422102809_101",
itemId: "20220422102809_1003",
itemType: null,
label: "楼栋类型",
optionSourceType: "remote",
optionSourceValue: "/actual/base/communityBuilding/buildingoption?20220422102809_1002",
options: null,
sort: 2,
supportAdd: false,
tableName: "ic_resi_user",
},
{
columnName: "UNIT_ID",
customerId: "45687aa479955f9d06204d415238f7cc",
itemGroupId: "20220422102809_101",
itemId: "20220422102809_10031",
itemType: null,
label: "单元数",
optionSourceType: "remote",
optionSourceValue: "/actual/base/communityBuildingUnit/unitoption?20220422102809_1003",
options: null,
sort: 3,
supportAdd: false,
tableName: "ic_resi_user",
},
{
columnName: "HOME_ID",
customerId: "45687aa479955f9d06204d415238f7cc",
itemGroupId: "20220422102809_101",
itemId: "20220422102809_1004",
itemType: null,
label: "楼栋地址",
optionSourceType: "remote",
optionSourceValue: "/actual/base/communityHouse/houseoption?20220422102809_10031",
options: null,
sort: 4,
supportAdd: false,
tableName: "ic_resi_user",
},
]
}
if (groupId === '20220422102809_102') {
dataTemp = [
{
columnName: "GRID_ID",
customerId: "45687aa479955f9d06204d415238f7cc",
itemGroupId: "20220422102809_102",
itemId: "20220422102809_1001",
itemType: null,
label: "所属楼栋",
optionSourceType: "remote",
optionSourceValue: "/gov/org/customergrid/gridoption",
options: null,
sort: 0,
supportAdd: false,
tableName: "ic_resi_user",
},
{
columnName: "VILLAGE_ID",
customerId: "45687aa479955f9d06204d415238f7cc",
itemGroupId: "20220422102809_102",
itemId: "20220422102809_1002",
itemType: null,
label: "单元号",
optionSourceType: "remote",
optionSourceValue: "/actual/base/communityQuarters/listQuartersOptions?20220422102809_1001",
options: null,
sort: 1,
supportAdd: false,
tableName: "ic_resi_user",
},
{
columnName: "BUILD_ID",
customerId: "45687aa479955f9d06204d415238f7cc",
itemGroupId: "20220422102809_102",
itemId: "20220422102809_1003",
itemType: null,
label: "门牌号",
optionSourceType: "remote",
optionSourceValue: "/actual/base/communityBuilding/buildingoption?20220422102809_1002",
options: null,
sort: 2,
supportAdd: false,
tableName: "ic_resi_user",
},
{
columnName: "UNIT_ID",
customerId: "45687aa479955f9d06204d415238f7cc",
itemGroupId: "20220422102809_102",
itemId: "20220422102809_10031",
itemType: null,
label: "房屋类型",
optionSourceType: "remote",
optionSourceValue: "/actual/base/communityBuildingUnit/unitoption?20220422102809_1003",
options: null,
sort: 3,
supportAdd: false,
tableName: "ic_resi_user",
},
{
columnName: "HOME_ID",
customerId: "45687aa479955f9d06204d415238f7cc",
itemGroupId: "20220422102809_102",
itemId: "20220422102809_1004",
itemType: null,
label: "房屋用途",
optionSourceType: "remote",
optionSourceValue: "/actual/base/communityHouse/houseoption?20220422102809_10031",
options: null,
sort: 4,
supportAdd: false,
tableName: "ic_resi_user",
},
{
columnName: "IS_BDHJ",
customerId: "45687aa479955f9d06204d415238f7cc",
itemGroupId: "20220422102809_102",
itemId: "20220422102809_1005",
itemType: null,
label: "房屋状态",
optionSourceType: "local",
optionSourceValue: "options表取",
options: null,
sort: 5,
supportAdd: false,
tableName: "ic_resi_user",
},
]
}
return dataTemp
} else { } else {
this.$message.error(msg) this.$message.error(msg);
} }
// if (code === 0) {
// let dataTemp = []
//
// if (groupId === '45687aa479955f9d06204d415238f7cc_0') {
// dataTemp = [
// {
// columnName: "GRID_ID",
// customerId: "45687aa479955f9d06204d415238f7cc",
// itemGroupId: "45687aa479955f9d06204d415238f7cc_0",
// itemId: "20220422102809_1001",
// itemType: null,
// label: "",
// optionSourceType: "remote",
// optionSourceValue: "/gov/org/customergrid/gridoption",
// options: null,
// sort: 0,
// supportAdd: false,
// tableName: "ic_resi_user",
// },
// {
// columnName: "VILLAGE_ID",
// customerId: "45687aa479955f9d06204d415238f7cc",
// itemGroupId: "45687aa479955f9d06204d415238f7cc_0",
// itemId: "20220422102809_1002",
// itemType: null,
// label: "",
// optionSourceType: "remote",
// optionSourceValue: "/actual/base/communityQuarters/listQuartersOptions?20220422102809_1001",
// options: null,
// sort: 1,
// supportAdd: false,
// tableName: "ic_resi_user",
// },
// {
// columnName: "BUILD_ID",
// customerId: "45687aa479955f9d06204d415238f7cc",
// itemGroupId: "45687aa479955f9d06204d415238f7cc_0",
// itemId: "20220422102809_1003",
// itemType: null,
// label: "",
// optionSourceType: "remote",
// optionSourceValue: "/actual/base/communityBuilding/buildingoption?20220422102809_1002",
// options: null,
// sort: 2,
// supportAdd: false,
// tableName: "ic_resi_user",
// },
// {
// columnName: "UNIT_ID",
// customerId: "45687aa479955f9d06204d415238f7cc",
// itemGroupId: "45687aa479955f9d06204d415238f7cc_0",
// itemId: "20220422102809_10031",
// itemType: null,
// label: "",
// optionSourceType: "remote",
// optionSourceValue: "/actual/base/communityBuildingUnit/unitoption?20220422102809_1003",
// options: null,
// sort: 3,
// supportAdd: false,
// tableName: "ic_resi_user",
// },
// {
// columnName: "HOME_ID",
// customerId: "45687aa479955f9d06204d415238f7cc",
// itemGroupId: "45687aa479955f9d06204d415238f7cc_0",
// itemId: "20220422102809_1004",
// itemType: null,
// label: "",
// optionSourceType: "remote",
// optionSourceValue: "/actual/base/communityHouse/houseoption?20220422102809_10031",
// options: null,
// sort: 4,
// supportAdd: false,
// tableName: "ic_resi_user",
// },
// {
// columnName: "IS_BDHJ",
// customerId: "45687aa479955f9d06204d415238f7cc",
// itemGroupId: "45687aa479955f9d06204d415238f7cc_0",
// itemId: "20220422102809_1005",
// itemType: null,
// label: "",
// optionSourceType: "local",
// optionSourceValue: "options",
// options: null,
// sort: 5,
// supportAdd: false,
// tableName: "ic_resi_user",
// },
//
// ]
// }
//
// if (groupId === '20220422102809_101') {
// dataTemp = [
// {
// columnName: "GRID_ID",
// customerId: "45687aa479955f9d06204d415238f7cc",
// itemGroupId: "20220422102809_101",
// itemId: "20220422102809_1001",
// itemType: null,
// label: "",
// optionSourceType: "remote",
// optionSourceValue: "/gov/org/customergrid/gridoption",
// options: null,
// sort: 0,
// supportAdd: false,
// tableName: "ic_resi_user",
// },
//
// {
// columnName: "VILLAGE_ID",
// customerId: "45687aa479955f9d06204d415238f7cc",
// itemGroupId: "20220422102809_101",
// itemId: "20220422102809_1002",
// itemType: null,
// label: "",
// optionSourceType: "remote",
// optionSourceValue: "/actual/base/communityQuarters/listQuartersOptions?20220422102809_1001",
// options: null,
// sort: 1,
// supportAdd: false,
// tableName: "ic_resi_user",
// },
//
// {
// columnName: "BUILD_ID",
// customerId: "45687aa479955f9d06204d415238f7cc",
// itemGroupId: "20220422102809_101",
// itemId: "20220422102809_1003",
// itemType: null,
// label: "",
// optionSourceType: "remote",
// optionSourceValue: "/actual/base/communityBuilding/buildingoption?20220422102809_1002",
// options: null,
// sort: 2,
// supportAdd: false,
// tableName: "ic_resi_user",
// },
//
// {
// columnName: "UNIT_ID",
// customerId: "45687aa479955f9d06204d415238f7cc",
// itemGroupId: "20220422102809_101",
// itemId: "20220422102809_10031",
// itemType: null,
// label: "",
// optionSourceType: "remote",
// optionSourceValue: "/actual/base/communityBuildingUnit/unitoption?20220422102809_1003",
// options: null,
// sort: 3,
// supportAdd: false,
// tableName: "ic_resi_user",
// },
//
// {
// columnName: "HOME_ID",
// customerId: "45687aa479955f9d06204d415238f7cc",
// itemGroupId: "20220422102809_101",
// itemId: "20220422102809_1004",
// itemType: null,
// label: "",
// optionSourceType: "remote",
// optionSourceValue: "/actual/base/communityHouse/houseoption?20220422102809_10031",
// options: null,
// sort: 4,
// supportAdd: false,
// tableName: "ic_resi_user",
// },
// ]
// }
//
// if (groupId === '20220422102809_102') {
// dataTemp = [
// {
// columnName: "GRID_ID",
// customerId: "45687aa479955f9d06204d415238f7cc",
// itemGroupId: "20220422102809_102",
// itemId: "20220422102809_1001",
// itemType: null,
// label: "",
// optionSourceType: "remote",
// optionSourceValue: "/gov/org/customergrid/gridoption",
// options: null,
// sort: 0,
// supportAdd: false,
// tableName: "ic_resi_user",
// },
//
// {
// columnName: "VILLAGE_ID",
// customerId: "45687aa479955f9d06204d415238f7cc",
// itemGroupId: "20220422102809_102",
// itemId: "20220422102809_1002",
// itemType: null,
// label: "",
// optionSourceType: "remote",
// optionSourceValue: "/actual/base/communityQuarters/listQuartersOptions?20220422102809_1001",
// options: null,
// sort: 1,
// supportAdd: false,
// tableName: "ic_resi_user",
// },
//
// {
// columnName: "BUILD_ID",
// customerId: "45687aa479955f9d06204d415238f7cc",
// itemGroupId: "20220422102809_102",
// itemId: "20220422102809_1003",
// itemType: null,
// label: "",
// optionSourceType: "remote",
// optionSourceValue: "/actual/base/communityBuilding/buildingoption?20220422102809_1002",
// options: null,
// sort: 2,
// supportAdd: false,
// tableName: "ic_resi_user",
// },
//
// {
// columnName: "UNIT_ID",
// customerId: "45687aa479955f9d06204d415238f7cc",
// itemGroupId: "20220422102809_102",
// itemId: "20220422102809_10031",
// itemType: null,
// label: "",
// optionSourceType: "remote",
// optionSourceValue: "/actual/base/communityBuildingUnit/unitoption?20220422102809_1003",
// options: null,
// sort: 3,
// supportAdd: false,
// tableName: "ic_resi_user",
// },
//
// {
// columnName: "HOME_ID",
// customerId: "45687aa479955f9d06204d415238f7cc",
// itemGroupId: "20220422102809_102",
// itemId: "20220422102809_1004",
// itemType: null,
// label: "",
// optionSourceType: "remote",
// optionSourceValue: "/actual/base/communityHouse/houseoption?20220422102809_10031",
// options: null,
// sort: 4,
// supportAdd: false,
// tableName: "ic_resi_user",
// },
// {
// columnName: "IS_BDHJ",
// customerId: "45687aa479955f9d06204d415238f7cc",
// itemGroupId: "20220422102809_102",
// itemId: "20220422102809_1005",
// itemType: null,
// label: "",
// optionSourceType: "local",
// optionSourceValue: "options",
// options: null,
// sort: 5,
// supportAdd: false,
// tableName: "ic_resi_user",
// },
// ]
// }
//
// return dataTemp
//
// } else {
// this.$message.error(msg)
// }
}, },
formatData (res) { formatData (res) {
const fileReader = new FileReader() const fileReader = new FileReader()
@ -815,4 +831,4 @@ export default {
.wd200 { .wd200 {
width: 200px; width: 200px;
} }
</style> </style>

114
src/views/modules/base/community/communityTable.vue

@ -756,66 +756,21 @@ export default {
}, },
async getExportList (type) { async getExportList (type) {
const url = "/oper/customize//icformitemgroup/list"; const url = "/oper/customize/icformitemgroup/list";
let params = { let params = {
formCode: "resi_base_info", formCode: "community_info",
}; };
const { data, code, msg } = await requestPost(url, params); const { data, code, msg } = await requestPost(url, params);
if (code === 0) { if (code === 0) {
// data.forEach((item) => {
let dataTemp = [
{
childShowFlag: "0",
customerId: "45687aa479955f9d06204d415238f7cc",
display: false,
formCode: "resi_base_info",
formId: "20220422102809_1",
groupCode: "jcxx",
id: "45687aa479955f9d06204d415238f7cc_0",
label: "小区信息",
policyFlag: "1",
sort: 0,
supportAdd: false,
tableName: "ic_resi_user"
},
{
childShowFlag: "0",
customerId: "45687aa479955f9d06204d415238f7cc",
display: true,
formCode: "resi_base_info",
formId: "20220422102809_1",
groupCode: "jyxx",
id: "20220422102809_101",
label: "楼栋信息",
policyFlag: "1",
sort: 1,
supportAdd: false,
tableName: "ic_resi_user",
},
{
childShowFlag: "0",
customerId: "45687aa479955f9d06204d415238f7cc",
display: true,
formCode: "resi_base_info",
formId: "20220422102809_1",
groupCode: "xqah",
id: "20220422102809_102",
label: "房屋信息",
policyFlag: "1",
sort: 2,
supportAdd: false,
tableName: "ic_resi_user",
}
]
dataTemp.forEach((item) => {
(async (id) => { (async (id) => {
// item.queryItemList = await this.getExportChildList(id) // item.queryItemList = await this.getExportChildList(id)
item.queryItemList = []; item.queryItemList = [];
})(item.id); })(item.id);
}); });
this.exportList = [...dataTemp]; this.exportList = [...data];
this.$nextTick(() => { this.$nextTick(() => {
this.diyDialog = true; this.diyDialog = true;
}); });
@ -823,6 +778,67 @@ export default {
} else { } else {
this.$message.error(msg); this.$message.error(msg);
} }
// if (code === 0) {
// //
// let dataTemp = [
// {
// childShowFlag: "0",
// customerId: "45687aa479955f9d06204d415238f7cc",
// display: false,
// formCode: "resi_base_info",
// formId: "20220422102809_1",
// groupCode: "jcxx",
// id: "45687aa479955f9d06204d415238f7cc_0",
// label: "",
// policyFlag: "1",
// sort: 0,
// supportAdd: false,
// tableName: "ic_resi_user"
// },
// {
// childShowFlag: "0",
// customerId: "45687aa479955f9d06204d415238f7cc",
// display: true,
// formCode: "resi_base_info",
// formId: "20220422102809_1",
// groupCode: "jyxx",
// id: "20220422102809_101",
// label: "",
// policyFlag: "1",
// sort: 1,
// supportAdd: false,
// tableName: "ic_resi_user",
// },
// {
// childShowFlag: "0",
// customerId: "45687aa479955f9d06204d415238f7cc",
// display: true,
// formCode: "resi_base_info",
// formId: "20220422102809_1",
// groupCode: "xqah",
// id: "20220422102809_102",
// label: "",
// policyFlag: "1",
// sort: 2,
// supportAdd: false,
// tableName: "ic_resi_user",
// }
// ]
// dataTemp.forEach((item) => {
// (async (id) => {
// // item.queryItemList = await this.getExportChildList(id)
// item.queryItemList = [];
// })(item.id);
// });
// this.exportList = [...dataTemp];
// this.$nextTick(() => {
// this.diyDialog = true;
// });
// console.log("getExportList----", this.exportList);
// } else {
// this.$message.error(msg);
// }
}, },
// //
async handleExport () { async handleExport () {

32
src/views/modules/base/diyInfo.vue

@ -7,11 +7,11 @@
<el-tabs v-model="leftActive" tab-position="left" class="left-h" @tab-click="handleTabsClick"> <el-tabs v-model="leftActive" tab-position="left" class="left-h" @tab-click="handleTabsClick">
<el-tab-pane v-for="item in leftList" :key="item.id" :label="item.label" :name="item.id"> <el-tab-pane v-for="item in leftList" :key="item.id" :label="item.label" :name="item.id">
<div class="pd10 check-boxwr scroll-h"> <div class="pd10 check-boxwr scroll-h">
<checkBox v-if="item.queryItemList.length > 0" :ref="'checkbox' + item.id" <checkBox v-if="item.queryItemList.length > 0" :ref="'checkbox' + item.id"
:list="item.queryItemList" @change="handleChangeBox" /> :list="item.queryItemList" @change="handleChangeBox" />
</div> </div>
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
</div> </div>
<div class="right"> <div class="right">
@ -21,7 +21,7 @@
</div> </div>
<div class="h80 scroll-h"> <div class="h80 scroll-h">
<el-collapse v-model="activeCollapse" id="collapsWr"> <el-collapse v-model="activeCollapse" id="collapsWr">
<el-collapse-item v-for="item in rightList" :key="item.id" <el-collapse-item v-for="item in rightList" :key="item.id"
:title="item.label" :name="item.id" class="col-h"> :title="item.label" :name="item.id" class="col-h">
<dragItem :ref="'drag' + item.id" :list="item.queryItemList" :id="item.id" <dragItem :ref="'drag' + item.id" :list="item.queryItemList" :id="item.id"
@del="handleDelItem" @del="handleDelItem"
@ -68,9 +68,9 @@
<template slot-scope="scope"> <template slot-scope="scope">
<el-button v-if="scope.row.isSelf" type="text" size="small" class="div-table-button--delete" <el-button v-if="scope.row.isSelf" type="text" size="small" class="div-table-button--delete"
@click="handleDeltemplate(scope.row.id)">删除</el-button> @click="handleDeltemplate(scope.row.id)">删除</el-button>
<el-button type="text" size="small" class="div-table-button--detail" <el-button type="text" size="small" class="div-table-button--detail"
@click="handlePreview(scope.row.id)">预览</el-button> @click="handlePreview(scope.row.id)">预览</el-button>
<el-button <el-button
type="text" type="text"
size="small" size="small"
class="div-table-button--edit" @click="handleExportTemplate(scope.row.id)">导出</el-button> class="div-table-button--edit" @click="handleExportTemplate(scope.row.id)">导出</el-button>
@ -84,6 +84,8 @@
<div class="flex-div"> <div class="flex-div">
<div>模板名称</div> <div>模板名称</div>
<el-input v-model="form.name" maxlength="20" class="wd200 mr10" /> <el-input v-model="form.name" maxlength="20" class="wd200 mr10" />
<div>自定义表头</div>
<el-input v-model="form.title" maxlength="20" class="wd200 mr10" />
<el-checkbox v-model="form.isSaveTemp">保存为常用模板</el-checkbox> <el-checkbox v-model="form.isSaveTemp">保存为常用模板</el-checkbox>
</div> </div>
</div> </div>
@ -115,10 +117,10 @@
:key="i" :key="i"
align="center" align="center"
min-width="120"> min-width="120">
</el-table-column> </el-table-column>
</el-table-column> </el-table-column>
</el-table> </el-table>
</div> </div>
</el-dialog> </el-dialog>
@ -178,7 +180,7 @@ export default {
rightList: { rightList: {
handler(val) { handler(val) {
if (val.length > 0) this.dragSort() if (val.length > 0) this.dragSort()
}, },
deep: true deep: true
}, },
@ -211,7 +213,7 @@ export default {
}) })
} else { } else {
this.rightList.push(obj) this.rightList.push(obj)
this.$nextTick(() => { this.$nextTick(() => {
console.log('itemttt------', this.$refs[`drag${pid}`]) console.log('itemttt------', this.$refs[`drag${pid}`])
this.$refs[`drag${pid}`][0].dragSort() this.$refs[`drag${pid}`][0].dragSort()
@ -235,7 +237,7 @@ export default {
if (n == item.itemId) { if (n == item.itemId) {
checkList.splice(i, 1) checkList.splice(i, 1)
this.$refs[`checkbox${item.itemGroupId}`][0].handleChange(checkList) this.$refs[`checkbox${item.itemGroupId}`][0].handleChange(checkList)
} }
}) })
this.rightList.forEach((n, i) => { this.rightList.forEach((n, i) => {
if (n.id === item.itemGroupId) { if (n.id === item.itemGroupId) {
@ -281,7 +283,7 @@ export default {
this.$message({ this.$message({
type: 'info', type: 'info',
message: '已取消删除' message: '已取消删除'
}); });
}) })
}, },
handlePreview(id) { handlePreview(id) {
@ -337,13 +339,13 @@ export default {
console.log('res----dddd', res) console.log('res----dddd', res)
// this.download(res.data, title + '.xls') // this.download(res.data, title + '.xls')
// this.getTemplateList() // this.getTemplateList()
this.exportLoading = false this.exportLoading = false
// if (res.data.code && res.data.code == 9999) { // if (res.data.code && res.data.code == 9999) {
// return this.$message.error(res.data.msg) // return this.$message.error(res.data.msg)
// } // }
this.formatData(res) this.formatData(res)
}) })
.catch(err => { .catch(err => {
console.log('err', err) console.log('err', err)
@ -519,7 +521,7 @@ export default {
// max-height: calc(80vh - 220px); // max-height: calc(80vh - 220px);
// // overflow: auto; // // overflow: auto;
// } // }
// } // }
// } // }
.mb10 { .mb10 {
@ -534,4 +536,4 @@ export default {
.wd200 { .wd200 {
width: 200px; width: 200px;
} }
</style> </style>

4
src/views/modules/base/resi copy.vue

@ -142,7 +142,7 @@
type="text" type="text"
size="small" size="small"
class="btn-color-look">查看</el-button> --> class="btn-color-look">查看</el-button> -->
<!-- <el-button @click="handleTransfer(scope.row)" <!-- <el-button @click="handleTransfer(scope.row)"
type="text" type="text"
size="small" size="small"
class="div-table-button--detail">变动</el-button> --> class="div-table-button--detail">变动</el-button> -->
@ -1335,7 +1335,7 @@ export default {
}); });
}, },
async getExportList (type) { async getExportList (type) {
const url = "/oper/customize//icformitemgroup/list"; const url = "/oper/customize/icformitemgroup/list";
let params = { let params = {
formCode: "resi_base_info", formCode: "resi_base_info",
}; };

4
src/views/modules/base/resi.vue

@ -822,7 +822,7 @@ export default {
obj.agencyId = obj.agencyId.join(',') obj.agencyId = obj.agencyId.join(',')
} else { } else {
obj.agencyId = ""; obj.agencyId = "";
} }
this.currentPage = val; this.currentPage = val;
this.getTableData(obj); this.getTableData(obj);
}, },
@ -1492,7 +1492,7 @@ export default {
}); });
}, },
async getExportList(type) { async getExportList(type) {
const url = "/oper/customize//icformitemgroup/list"; const url = "/oper/customize/icformitemgroup/list";
let params = { let params = {
formCode: "resi_base_info", formCode: "resi_base_info",
}; };

Loading…
Cancel
Save