diff --git a/src/views/modules/base/smartImport.vue b/src/views/modules/base/smartImport.vue
index 4ab3789ae..7ffe1fb16 100644
--- a/src/views/modules/base/smartImport.vue
+++ b/src/views/modules/base/smartImport.vue
@@ -23,6 +23,7 @@
下载模板
@@ -43,35 +44,43 @@
-
-
-
-
-
- 配置
+
+
+
+
+
+
+
+
+
+
+
+
+ 保 存
+
+
@@ -103,14 +121,6 @@
-
@@ -153,18 +163,6 @@ export default {
pageSize: 20,
pageNo: 0,
- casOptions: [],
- iscascaderShow: 0,
- orgIdArray: [],
- selCateObj: {},
- optionProps: {
- multiple: true,
- value: 'agencyId',
- label: 'agencyName',
- orgType: 'orgType',
- children: 'subAgencyList',
- checkStrictly: true
- },
formShow: false,
formData: {},
@@ -172,13 +170,16 @@ export default {
scopeList: [],
dataSyncConfigId: '',
importLoading: false,
+
+ groupList: [],
+ sHeight: 0,
}
},
computed: {
tableHeight () {
- const h = this.clientHeight - 220 + this.iframeHeigh
- const _h = this.clientHeight - 220
+ const h = this.clientHeight - this.sHeight + this.iframeHeigh
+ const _h = this.clientHeight - this.sHeight
return this.$store.state.inIframe ? h : _h
},
@@ -192,7 +193,9 @@ export default {
},
async mounted () {
await this.loadData()
- await this.getOrgList()
+ await this.loadPersonGroup()
+
+ this.sHeight = this.$refs.divEditBtn.offsetHeight + 300
},
methods: {
@@ -201,27 +204,43 @@ export default {
this.formShow = false
},
- async getOrgList () {
-
- const url = '/gov/org/customeragency/my-subagency-list'
+ async loadPersonGroup () {
+ const url = '/oper/customize/icformitemgroup/list'
+ // const url = 'http://yapi.elinkservice.cn/mock/245/gov/org/isServiceProject/service/serviceScopeTree'
+ let params = {
+ formCode: 'resi_base_info',
+ policyFlag: '1'
+ }
- let params = {};
+ const { data, code, msg } = await requestPost(url, params)
- const { data, code, msg } = await requestPost(url, params);
if (code === 0) {
+ this.groupList = data
+ } else {
+ this.$message.error(msg)
+ }
- //组织级联数据
- ++this.iscascaderShow
- this.casOptions = []
- this.orgIdArray.length = []
+ },
- if (data) {
- this.casOptions.push(data)
+ //选择人员信息第一列下拉框
+ async handleSelGroup (index, item, isSet) {
+ const url = '/oper/customize/icformitem/getItemListV2'
+ // const url = 'http://yapi.elinkservice.cn/mock/245/gov/org/isServiceProject/service/serviceScopeTree'
+ let params = {
+ policyFlag: '1',
+ groupId: item.id,
- }
+ }
+
+ const { data, code, msg } = await requestPost(url, params)
+ if (code === 0) {
+
+ let oneData = this.dataList[index]
+ oneData.itemList = data
+ this.$set(this.dataList, index, oneData)
} else {
- this.$message.error(msg);
+ this.$message.error(msg)
}
},
@@ -275,53 +294,8 @@ export default {
},
- // 开启/启用
- disableCategory (row, index) {
- row.switchStatusShow = row.switchStatus === 'open' ? '关闭' : '开启'
- this.$confirm('确认' + row.switchStatusShow, '提示', {
- confirmButtonText: '确定',
- cancelButtonText: '取消',
- type: 'warning'
- }).then(() => {
- const url = '/epmetuser/dataSyncConfig/configSwitch'
- // const url = 'http://yapi.elinkservice.cn/mock/245/epmetuser/dataSyncConfig/configSwitch'
- const param = {
- deptCode: row.deptCode,
- dataSyncConfigId: row.id,
-
- }
- window.app.ajax.post(url, param,
- (data, rspMsg) => {
- // row.switchStatus = 'open'
- // row.switchStatus = true
- // this.$set(this.dataList, index, row)
-
- this.$message.success('操作成功')
- this.loadData()
- },
- (rspMsg, data) => {
- this.$message.error(rspMsg)
- })
- }).catch(() => {
-
- })
- },
-
-
- // 编辑 customerId,parentCategoryId,dateform
- editShow (row) {
- this.dataSyncConfigId = row.id
-
- this.orgIdArray = []
- row.scopeList.forEach(element => {
- if (element.orgIdPath) {
- this.orgIdArray.push(element.orgIdPath.split(':'))
- }
-
- });
-
- this.formShow = true
-
+ handleComfirm () {
+ console.log(this.dataList)
},
async editDiaOK () {
@@ -485,4 +459,16 @@ export default {