|
|
@ -27,7 +27,7 @@ |
|
|
|
</div> |
|
|
|
<div class="div_search"> |
|
|
|
<span>活动举办频次</span> |
|
|
|
<span style="margin-left:30px">每季度一次</span> |
|
|
|
<span style="margin-left:30px">{{selActType.frequencyDesc?selActType.frequencyDesc:'--'}}</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
@ -47,14 +47,14 @@ |
|
|
|
width="50"> |
|
|
|
</el-table-column> |
|
|
|
|
|
|
|
<el-table-column prop="reviewTime" |
|
|
|
<el-table-column prop="holdTime" |
|
|
|
header-align="center" |
|
|
|
align="center" |
|
|
|
label="举办活动时间" |
|
|
|
width="200"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
|
|
|
|
<el-date-picker v-model="scope.row.reviewTime" |
|
|
|
<el-date-picker v-model="scope.row.holdTime" |
|
|
|
style="width: 175px" |
|
|
|
size="small" |
|
|
|
format="yyyy-MM-dd hh:mm" |
|
|
@ -83,14 +83,14 @@ |
|
|
|
</template> |
|
|
|
|
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="theme" |
|
|
|
<el-table-column prop="topic" |
|
|
|
header-align="center" |
|
|
|
align="center" |
|
|
|
label="活动主题" |
|
|
|
width="220"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
|
|
|
|
<el-input v-model="scope.row.theme" |
|
|
|
<el-input v-model="scope.row.topic" |
|
|
|
style="width: 195px" |
|
|
|
size="small" |
|
|
|
placeholder="输入主题"> |
|
|
@ -103,25 +103,43 @@ |
|
|
|
<el-table-column prop="scopeId" |
|
|
|
header-align="center" |
|
|
|
align="center" |
|
|
|
label="参加活动党组织" |
|
|
|
label="发布活动党组织" |
|
|
|
width="220"> |
|
|
|
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
|
|
|
<el-cascader style="width: 195px" |
|
|
|
<el-cascader class="item_width_1" |
|
|
|
ref="myCascader" |
|
|
|
v-model="scope.row.scopeIdArray" |
|
|
|
size="small" |
|
|
|
v-model="scope.row.publichIdArray" |
|
|
|
:key="iscascaderShow" |
|
|
|
:options="orgOptions" |
|
|
|
:props="optionProps" |
|
|
|
:options="publishOptions" |
|
|
|
:props="publichOptionProps" |
|
|
|
:show-all-levels="false" |
|
|
|
@change="handleChangeScope"></el-cascader> |
|
|
|
@change="handleChangeScope(scope.$index)"></el-cascader> |
|
|
|
|
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="scopeId" |
|
|
|
header-align="center" |
|
|
|
align="center" |
|
|
|
label="参加活动党组织" |
|
|
|
width="220"> |
|
|
|
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
|
|
|
<el-cascader class="item_width_1" |
|
|
|
ref="myCascader_join" |
|
|
|
v-model="scope.row.joinIdArray" |
|
|
|
:key="joinIscascaderShow" |
|
|
|
:options="joinOptions" |
|
|
|
:props="joinOptionProps" |
|
|
|
:show-all-levels="false" |
|
|
|
@change="handleChangeJoinOrg(scope.$index)"></el-cascader> |
|
|
|
|
|
|
|
<el-table-column prop="joinPerson" |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
|
|
|
|
<el-table-column prop="joinUserType" |
|
|
|
header-align="center" |
|
|
|
align="center" |
|
|
|
label="参加人员" |
|
|
@ -131,7 +149,7 @@ |
|
|
|
|
|
|
|
<el-select style="width: 115px" |
|
|
|
size="small" |
|
|
|
v-model="scope.row.joinPerson" |
|
|
|
v-model="scope.row.joinUserType" |
|
|
|
placeholder="请选择" |
|
|
|
clearable> |
|
|
|
<el-option v-for="item in joinArray" |
|
|
@ -143,7 +161,7 @@ |
|
|
|
|
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="autoTime" |
|
|
|
<el-table-column prop="autoPublicType" |
|
|
|
header-align="center" |
|
|
|
align="center" |
|
|
|
label="自动发布时间" |
|
|
@ -152,7 +170,7 @@ |
|
|
|
<template slot-scope="scope"> |
|
|
|
|
|
|
|
<el-select style="width: 135px" |
|
|
|
v-model="scope.row.autoTime" |
|
|
|
v-model="scope.row.autoPublicType" |
|
|
|
size="small" |
|
|
|
placeholder="请选择" |
|
|
|
filterable |
|
|
@ -167,7 +185,7 @@ |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
|
|
|
|
<el-table-column prop="autoNotice" |
|
|
|
<el-table-column prop="isAutoInformShow" |
|
|
|
header-align="center" |
|
|
|
align="center" |
|
|
|
label="自动通知" |
|
|
@ -177,7 +195,7 @@ |
|
|
|
|
|
|
|
<el-checkbox :label="'是'" |
|
|
|
size="small" |
|
|
|
v-model="scope.row.autoNotice"></el-checkbox> |
|
|
|
v-model="scope.row.isAutoInformShow"></el-checkbox> |
|
|
|
|
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
@ -202,7 +220,7 @@ |
|
|
|
</div> |
|
|
|
<div class="div_btn"> |
|
|
|
<el-button @click="handleCancle">取 消</el-button> |
|
|
|
<el-button @click="handleCancle">确定</el-button> |
|
|
|
<el-button @click="handleComfirm">确定</el-button> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -212,7 +230,7 @@ |
|
|
|
<script> |
|
|
|
import { mapGetters } from 'vuex' |
|
|
|
import { Loading } from 'element-ui' // 引入Loading服务 |
|
|
|
import { requestPost } from '@/js/dai/request' |
|
|
|
import { requestPost, requestGet } from '@/js/dai/request' |
|
|
|
|
|
|
|
let loading // 加载动画 |
|
|
|
export default { |
|
|
@ -221,155 +239,151 @@ export default { |
|
|
|
tableLoading: false, |
|
|
|
|
|
|
|
tableData: [], |
|
|
|
actTypeArray: [ |
|
|
|
{ |
|
|
|
value: '1', |
|
|
|
label: '支部党员大会', |
|
|
|
fre: 4 |
|
|
|
|
|
|
|
}, |
|
|
|
{ |
|
|
|
value: '2', |
|
|
|
label: '支部委员会', |
|
|
|
fre: 12 |
|
|
|
|
|
|
|
} |
|
|
|
], |
|
|
|
actTypeArray: [], |
|
|
|
selActType: {}, |
|
|
|
actType: "", |
|
|
|
joinArray: [//参加人员 |
|
|
|
{ |
|
|
|
valule: 'all', |
|
|
|
valule: '0', |
|
|
|
label: '全体党员' |
|
|
|
}, |
|
|
|
{ |
|
|
|
valule: 'branch', |
|
|
|
label: '支部委员' |
|
|
|
}, |
|
|
|
], |
|
|
|
|
|
|
|
autoTimeArray: [ |
|
|
|
{ |
|
|
|
valule: '3', |
|
|
|
label: '活动开始前3天' |
|
|
|
}, |
|
|
|
{ |
|
|
|
valule: '5', |
|
|
|
label: '活动开始前5天' |
|
|
|
}, |
|
|
|
{ |
|
|
|
valule: '7', |
|
|
|
label: '活动开始前7天' |
|
|
|
}, |
|
|
|
{ |
|
|
|
valule: '1', |
|
|
|
label: '活动开始前1天' |
|
|
|
label: '支部委员' |
|
|
|
}, |
|
|
|
], |
|
|
|
|
|
|
|
orgOptions: [], |
|
|
|
autoTimeArray: [], |
|
|
|
|
|
|
|
publishOptions: [], |
|
|
|
publichIdArray: [], |
|
|
|
iscascaderShow: 0, |
|
|
|
publichOptionProps: { |
|
|
|
multiple: false, |
|
|
|
value: 'id', |
|
|
|
label: 'partyOrgName', |
|
|
|
children: 'children', |
|
|
|
checkStrictly: true |
|
|
|
}, |
|
|
|
|
|
|
|
optionProps: { |
|
|
|
joinOptions: [], |
|
|
|
joinIdArray: [], |
|
|
|
joinIscascaderShow: 0, |
|
|
|
joinOptionProps: { |
|
|
|
multiple: true, |
|
|
|
value: 'id', |
|
|
|
label: 'partyOrgName', |
|
|
|
children: 'children', |
|
|
|
checkStrictly: true |
|
|
|
checkStrictly: false |
|
|
|
}, |
|
|
|
defaultPublishParty: {} |
|
|
|
|
|
|
|
} |
|
|
|
}, |
|
|
|
components: {}, |
|
|
|
mounted () { |
|
|
|
async mounted () { |
|
|
|
await this.getOrgTreeList() |
|
|
|
await this.getJoinOrgTreeList() |
|
|
|
await this.getCategrayList() |
|
|
|
await this.getAutoTimeArray() |
|
|
|
await this.getDefaultPublishParty() |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
methods: { |
|
|
|
|
|
|
|
handleClickActType (index) { |
|
|
|
|
|
|
|
handleChangeScope (index) { |
|
|
|
let onePublish = this.publishOptions[index] |
|
|
|
let obj = this.$refs["myCascader"].getCheckedNodes()[0].data |
|
|
|
if (obj) { |
|
|
|
onePublish.publishPartyOrgId = obj.id//发布活动党组织id |
|
|
|
onePublish.publishPartyOrgName = obj.partyOrgName//发布活动党组织名称 |
|
|
|
onePublish.publishOrgPid = obj.pid//发布活动党组织ID的上级节点 |
|
|
|
onePublish.publishOrgType = obj.partyOrgType//党组织类型 0省委,1市委,2区委,3党工委,4党委,5支部;6党小组 |
|
|
|
onePublish.publishOrgPath = onePublish.publichIdArray.join(',')//PUBLISH_PARTY_ORG_ID的全路径,包含自身。方便前端回显 |
|
|
|
} else { |
|
|
|
onePublish.publishPartyOrgId = '' |
|
|
|
onePublish.publishPartyOrgName = '' |
|
|
|
onePublish.publishOrgPid = '' |
|
|
|
onePublish.publishOrgType = '' |
|
|
|
onePublish.publishOrgPath = '' |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
async initTable () { |
|
|
|
|
|
|
|
await this.getOrgTreeList() |
|
|
|
handleChangeJoinOrg (index) { |
|
|
|
let oneJoin = this.joinOptions[index] |
|
|
|
console.log('value', value) |
|
|
|
console.log('joinIdArray', this.joinIdArray) |
|
|
|
oneJoin.joinOrgList = [] |
|
|
|
let selArray = this.$refs["myCascader_join"].getCheckedNodes() |
|
|
|
|
|
|
|
// await this.loadTable() |
|
|
|
console.log('selArray', selArray) |
|
|
|
|
|
|
|
}, |
|
|
|
selArray.forEach((element, index) => { |
|
|
|
|
|
|
|
handleAdd () { |
|
|
|
let obj = { |
|
|
|
isNew: true,//是否新增 |
|
|
|
reviewTime: '', |
|
|
|
address: '', |
|
|
|
theme: '', |
|
|
|
scopeIdArray: [], |
|
|
|
joinPerson: '', |
|
|
|
autoTime: '', |
|
|
|
autoNotice: true, |
|
|
|
let obj = { |
|
|
|
joinOrgId: element.data.id, |
|
|
|
orgType: element.data.partyOrgType, |
|
|
|
pid: element.data.pid, |
|
|
|
joinOrgPath: element.path.join(','), |
|
|
|
} |
|
|
|
oneJoin.joinOrgList.push(obj) |
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
this.tableData.push(obj) |
|
|
|
}, |
|
|
|
|
|
|
|
async getOrgTreeList () { |
|
|
|
|
|
|
|
const url = '/resi/partymember/icPartyOrg/getSearchTreelist' |
|
|
|
let params = { |
|
|
|
customerId: localStorage.getItem('customerId'), |
|
|
|
agencyId: localStorage.getItem('agencyId') |
|
|
|
}; |
|
|
|
|
|
|
|
const { data, code, msg } = await requestGet(url, params); |
|
|
|
console.log('data-orgparty----o', data) |
|
|
|
if (code === 0) { |
|
|
|
|
|
|
|
this.orgOptions = data |
|
|
|
async handleClickActType (index) { |
|
|
|
this.selActType = { ...this.actTypeArray[index] } |
|
|
|
|
|
|
|
} else { |
|
|
|
//首先获取当前年份对应活动类型是否有活动 |
|
|
|
await this.getTableData() |
|
|
|
//如果没有活动,根据字典数据,初始化 |
|
|
|
if (this.tableData.length === 0) { |
|
|
|
for (let i = 0; i < this.selActType.yearCount; i++) { |
|
|
|
this.handleAdd() |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
//加载form |
|
|
|
async loadTable () { |
|
|
|
}, |
|
|
|
async getTableData () { |
|
|
|
this.tableLoading = true |
|
|
|
const url = '/gov/org/placepatrolreviewrecord/getlist' |
|
|
|
// const url = 'http://yapi.elinkservice.cn/mock/245/gov/org/placepatrolreviewrecord/getlist' |
|
|
|
// const url = "/icPartyAct/yearSearch"; |
|
|
|
const url = "http://yapi.elinkservice.cn/mock/245/icPartyAct/yearSearch"; |
|
|
|
let params = { |
|
|
|
placePatrolRecordId: this.placePatrolRecordId |
|
|
|
yearId: this.yearId |
|
|
|
} |
|
|
|
|
|
|
|
const { data, code, msg } = await requestPost(url, params) |
|
|
|
const { data, code, msg } = await requestPost(url, params); |
|
|
|
|
|
|
|
this.tableLoading = false |
|
|
|
if (code === 0) { |
|
|
|
let tempArray = [] |
|
|
|
|
|
|
|
if (data.list && data.list.length > 0) { |
|
|
|
data.list.forEach(item => { |
|
|
|
item.isEdit = false |
|
|
|
item.isNew = false |
|
|
|
let arrayInspectors = item.inspectors.split(',') |
|
|
|
item.inspectorArray = [...arrayInspectors] |
|
|
|
data.forEach(item => { |
|
|
|
if (item.type === actType) { |
|
|
|
tempArray = [] |
|
|
|
|
|
|
|
let arrayReviewTime = item.reviewTime.split(' ') |
|
|
|
item.reviewTime = arrayReviewTime[0] |
|
|
|
}); |
|
|
|
item.activityList.forEach(actItem => { |
|
|
|
actItem.joinOrgsShow = actItem.joinOrgs.join(',') |
|
|
|
|
|
|
|
tempArray.push(actItem) |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
this.tableData = tempArray |
|
|
|
|
|
|
|
this.tableData = [...data.list] |
|
|
|
} else { |
|
|
|
this.tableData = [] |
|
|
|
} |
|
|
|
|
|
|
|
} else { |
|
|
|
this.$message.error(msg) |
|
|
|
this.$message.error(msg); |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
async handleComfirm (row, tableIndex) { |
|
|
|
let valiMsg = this.validata(row) |
|
|
|
async handleComfirm () { |
|
|
|
let valiMsg = this.validata() |
|
|
|
if (valiMsg) { |
|
|
|
this.$message({ |
|
|
|
type: 'warning', |
|
|
@ -377,16 +391,15 @@ export default { |
|
|
|
}) |
|
|
|
return false |
|
|
|
} |
|
|
|
|
|
|
|
this.addReview(row, tableIndex) |
|
|
|
console.log(this.tableData) |
|
|
|
// this.addReview(row, tableIndex) |
|
|
|
|
|
|
|
}, |
|
|
|
async addReview (row, tableIndex) { |
|
|
|
|
|
|
|
|
|
|
|
let url = "/gov/org/placepatrolreviewrecord/add" |
|
|
|
if (row.placePatrolReviewRecordId) { |
|
|
|
url = "/gov/org/placepatrolreviewrecord/edit" |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
let params = JSON.parse(JSON.stringify(row)) |
|
|
|
params.inspectors = params.inspectorArray.join(',') |
|
|
@ -409,20 +422,27 @@ export default { |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
validata (row) { |
|
|
|
validata () { |
|
|
|
let message = '' |
|
|
|
if (row.reviewTime === '') { |
|
|
|
message = message + '复查时间不能为空;' |
|
|
|
} |
|
|
|
if (row.placePatrolTeamId === '') { |
|
|
|
message = message + '分队名称不能为空;' |
|
|
|
} |
|
|
|
if (row.inspectorArray.length === 0) { |
|
|
|
message = message + '检查人员不能为空;' |
|
|
|
} |
|
|
|
if (row.reviewResult === '') { |
|
|
|
message = message + '复查结论不能为空;' |
|
|
|
console.log(this.tableData) |
|
|
|
for (let i = 0; i < this.tableData.length; i++) { |
|
|
|
let oneData = this.tableData[i] |
|
|
|
|
|
|
|
if (oneData.holdTime) { |
|
|
|
let array = oneData.holdTime.split('-') |
|
|
|
oneData.holdYearId = array[0] |
|
|
|
oneData.holdMonthId = array[0] + array[1] |
|
|
|
} |
|
|
|
|
|
|
|
oneData.isAutoInform = oneData.isAutoInformShow ? '1' : '0' |
|
|
|
|
|
|
|
if (oneData.actType === '' || oneData.holdTime || oneData.topic || oneData.address || oneData.publishPartyOrgId |
|
|
|
|| oneData.joinUserType || oneData.joinIdArray.length === 0) { |
|
|
|
message = '第' + (i + 1) + "行填写不完整,请先填写完整!" |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
return message |
|
|
|
}, |
|
|
|
|
|
|
@ -447,34 +467,148 @@ export default { |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
async deleteRecord (row, tableIndex) { |
|
|
|
handleCancle () { |
|
|
|
this.$emit('dialogCancle') |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
handleAdd () { |
|
|
|
|
|
|
|
let obj = { |
|
|
|
icPartyActId: '',//编辑活动时必传 |
|
|
|
actType: '',// 活动类型,来源于活动类型接口value |
|
|
|
holdYearId: '',//活动开始时间所属年份:yyyy |
|
|
|
holdMonthId: '',//活动开始时间所属月份:yyyyMM |
|
|
|
holdTime: '',//活动开始时间:yyyy-MM-dd HH:mm:ss |
|
|
|
topic: '',// 活动主题 |
|
|
|
address: '',// 活动地址 |
|
|
|
latitude: '',//活动地点纬度 |
|
|
|
longitude: '',// 活动地点经度 |
|
|
|
autoPublicType: '',//自动发布时间key; 来源于字典表接口 |
|
|
|
publishPartyOrgId: this.defaultPublishParty.defaultPartyOrgId,// 发布活动党组织id |
|
|
|
publishPartyOrgName: this.defaultPublishParty.defaultPartyOrgName,// 发布活动党组织名称 |
|
|
|
publishOrgPid: this.defaultPublishParty.defaultPartyOrgPid,// 参加活动党组织ID的上级节点 |
|
|
|
publishOrgType: this.defaultPublishParty.orgType,//党组织类型 0省委,1市委,2区委,3党工委,4党委,5支部;6党小组 |
|
|
|
publishOrgPath: this.defaultPublishParty.defaultPartyOrgPath,//PUBLISH_PARTY_ORG_ID的全路径,包含自身。方便前端回显 |
|
|
|
joinUserType: '',//参加人员类型,0:全体党员;1:支部委员 |
|
|
|
isAutoInform: '',// 是否自动通知参加人员,0否;1是 |
|
|
|
introduce: '',// 活动介绍 |
|
|
|
joinOrgList: [], |
|
|
|
|
|
|
|
publichIdArray: this.defaultPublishParty.defaultPartyOrgPath.split(','), |
|
|
|
joinIdArray: [], |
|
|
|
isAutoInformShow: true |
|
|
|
|
|
|
|
} |
|
|
|
this.tableData.push(obj) |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
async getOrgTreeList () { |
|
|
|
|
|
|
|
const url = '/resi/partymember/icPartyOrg/getSearchTreelist' |
|
|
|
let params = { |
|
|
|
customerId: localStorage.getItem('customerId'), |
|
|
|
agencyId: localStorage.getItem('agencyId') |
|
|
|
}; |
|
|
|
|
|
|
|
const { data, code, msg } = await requestGet(url, params); |
|
|
|
console.log('data-orgparty----o', data) |
|
|
|
if (code === 0) { |
|
|
|
|
|
|
|
this.publishOptions = data |
|
|
|
this.joinOptions = data |
|
|
|
this.changeKey(this.joinOptions) |
|
|
|
|
|
|
|
} else { |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
const url = "/gov/org/placepatrolreviewrecord/del" |
|
|
|
changeKey (arr) { |
|
|
|
for (var i = 0; i < arr.length; i++) { |
|
|
|
arr[i].value = arr[i].userId |
|
|
|
arr[i].label = arr[i].userName |
|
|
|
if (arr[i].children.length) { |
|
|
|
this.changeKey(arr[i].children) |
|
|
|
} else { |
|
|
|
delete arr[i].children |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
//加载组织 |
|
|
|
async getJoinOrgTreeList () { |
|
|
|
const url = '/resi/partymember/icPartyOrg/getOrgTreeHaveGroup' |
|
|
|
// const url = 'http://yapi.elinkservice.cn/mock/245/heart/icServiceOrg/selectlist' |
|
|
|
let params = { |
|
|
|
placePatrolReviewRecordId: row.placePatrolReviewRecordId |
|
|
|
agencyId: localStorage.getItem('agencyId') |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
const { data, code, msg } = await requestPost(url, params) |
|
|
|
|
|
|
|
if (code === 0) { |
|
|
|
// this.$message({ |
|
|
|
// type: "success", |
|
|
|
// message: "删除成功" |
|
|
|
// }); |
|
|
|
// this.joinOptions = data |
|
|
|
} else { |
|
|
|
this.$message.error(msg) |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
this.tableData.splice(tableIndex, 1); |
|
|
|
// 字典 |
|
|
|
async getCategrayList () { |
|
|
|
// const url = "/resi/partymember/icPartyAct/acttypelist" |
|
|
|
const url = "http://yapi.elinkservice.cn/mock/245/resi/partymember/icPartyAct/acttypelist" |
|
|
|
|
|
|
|
let params = {} |
|
|
|
|
|
|
|
const { data, code, msg } = await requestPost(url, params) |
|
|
|
|
|
|
|
if (code === 0) { |
|
|
|
this.actTypeArray = data |
|
|
|
} else { |
|
|
|
this.$message.error(msg) |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
handleCancle () { |
|
|
|
this.$emit('dialogCancle') |
|
|
|
// 自动发布时间 |
|
|
|
async getAutoTimeArray () { |
|
|
|
const url = "/sys/dict/data/dictlist" |
|
|
|
|
|
|
|
let params = { |
|
|
|
dictType: 'icpartyact_auto_publish_time' |
|
|
|
} |
|
|
|
|
|
|
|
const { data, code, msg } = await requestPost(url, params) |
|
|
|
|
|
|
|
if (code === 0) { |
|
|
|
this.autoTimeArray = data |
|
|
|
} else { |
|
|
|
this.$message.error(msg) |
|
|
|
} |
|
|
|
}, |
|
|
|
// 获取默认发布党组织 |
|
|
|
async getDefaultPublishParty () { |
|
|
|
const url = "/resi/partymember/icPartyOrg/defaultpartyorg" |
|
|
|
// const url = "http://yapi.elinkservice.cn/mock/245/resi/partymember/icPartyOrg/defaultpartyorg" |
|
|
|
|
|
|
|
let params = {} |
|
|
|
|
|
|
|
const { data, code, msg } = await requestPost(url, params) |
|
|
|
|
|
|
|
if (code === 0) { |
|
|
|
this.defaultPublishParty = data |
|
|
|
this.defaultPublishParty.defaultPartyOrgPath.replaceAll(':', ',') |
|
|
|
} else { |
|
|
|
this.$message.error(msg) |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 开启加载动画 |
|
|
|
startLoading () { |
|
|
|
loading = Loading.service({ |
|
|
@ -503,11 +637,11 @@ export default { |
|
|
|
}, |
|
|
|
props: { |
|
|
|
|
|
|
|
yearId: { |
|
|
|
type: String, |
|
|
|
required: true |
|
|
|
}, |
|
|
|
|
|
|
|
resultList: { |
|
|
|
type: Array, |
|
|
|
default: [] |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
</script> |
|
|
|