Merge branch 'build' of http://git.sinoecare.com/sinoecare/digital_village_v2/dvcp_v2_webapp into build
This commit is contained in:
@@ -19,7 +19,7 @@
|
|||||||
<ai-info-item isLine label="参与名额">{{ info.total }}</ai-info-item>
|
<ai-info-item isLine label="参与名额">{{ info.total }}</ai-info-item>
|
||||||
<ai-info-item label="报名状态">{{ dict.getLabel('partyReportSignupStatus', info.signupStatus) }}</ai-info-item>
|
<ai-info-item label="报名状态">{{ dict.getLabel('partyReportSignupStatus', info.signupStatus) }}</ai-info-item>
|
||||||
<ai-info-item label="活动状态">{{ dict.getLabel('activityStatus', info.actionStatus) }}</ai-info-item>
|
<ai-info-item label="活动状态">{{ dict.getLabel('activityStatus', info.actionStatus) }}</ai-info-item>
|
||||||
<ai-info-item label="活动时间">{{ info.beginTime.substring(0, 10) }} 至 {{ info.endTime.substring(0, 10) }}</ai-info-item>
|
<ai-info-item label="活动时间">{{ info.beginTime }} 至 {{ info.endTime }}</ai-info-item>
|
||||||
<ai-info-item label="截至时间">{{ info.stopSignupTime }}</ai-info-item>
|
<ai-info-item label="截至时间">{{ info.stopSignupTime }}</ai-info-item>
|
||||||
<ai-info-item label="联系人">{{ info.contactPerson }}</ai-info-item>
|
<ai-info-item label="联系人">{{ info.contactPerson }}</ai-info-item>
|
||||||
<ai-info-item label="联系电话">{{ info.contactPhone }}</ai-info-item>
|
<ai-info-item label="联系电话">{{ info.contactPhone }}</ai-info-item>
|
||||||
@@ -34,8 +34,9 @@
|
|||||||
<ai-card title="报名情况">
|
<ai-card title="报名情况">
|
||||||
<template #content>
|
<template #content>
|
||||||
<ai-table
|
<ai-table
|
||||||
|
:dict="dict"
|
||||||
:border="true"
|
:border="true"
|
||||||
:tableData="info.introducerList"
|
:tableData="userList"
|
||||||
:isShowPagination="false"
|
:isShowPagination="false"
|
||||||
:col-configs="colConfigs"
|
:col-configs="colConfigs"
|
||||||
>
|
>
|
||||||
@@ -43,20 +44,35 @@
|
|||||||
<template slot-scope="{ row }">
|
<template slot-scope="{ row }">
|
||||||
<div class="table-options">
|
<div class="table-options">
|
||||||
<p>{{row.partyName}}-{{row.phone}}</p>
|
<p>{{row.partyName}}-{{row.phone}}</p>
|
||||||
<p class="color-999">{{partyOrgName}}</p>
|
<p class="color-999">{{row.partyOrgName}}</p>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column slot="options" width="120px" fixed="right" label="操作" align="center">
|
<el-table-column slot="options" width="120px" fixed="right" label="操作" align="center">
|
||||||
<template slot-scope="{ row }">
|
<template slot-scope="{ row }">
|
||||||
<div class="table-options">
|
<div class="table-options">
|
||||||
<el-button type="text" @click="toDetail(row.id)">查看日志</el-button>
|
<el-button type="text" @click="viewUser(row)">查看日志</el-button>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</ai-table>
|
</ai-table>
|
||||||
</template>
|
</template>
|
||||||
</ai-card>
|
</ai-card>
|
||||||
|
<ai-dialog :visible.sync="showDialog" title="查看活动日志" @closed="showDialog=false">
|
||||||
|
<ai-wrapper label-width="120px">
|
||||||
|
<ai-info-item label="提交人">{{ userInfo.userName }}</ai-info-item>
|
||||||
|
<ai-info-item label="提交时间">{{ userInfo.submitTime }}</ai-info-item>
|
||||||
|
<ai-info-item isLine label="活动总结">{{ userInfo.content }}</ai-info-item>
|
||||||
|
<ai-info-item isLine label="活动照片">
|
||||||
|
<ai-uploader
|
||||||
|
:instance="instance"
|
||||||
|
disabled
|
||||||
|
v-model="userInfo.files"
|
||||||
|
>
|
||||||
|
</ai-uploader>
|
||||||
|
</ai-info-item>
|
||||||
|
</ai-wrapper>
|
||||||
|
</ai-dialog>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</ai-detail>
|
</ai-detail>
|
||||||
@@ -87,7 +103,9 @@ export default {
|
|||||||
{prop: "logStatus", label: "活动日志", align: "center", dict: 'partyReportSignupLogStatus'},
|
{prop: "logStatus", label: "活动日志", align: "center", dict: 'partyReportSignupLogStatus'},
|
||||||
{slot: "options"},
|
{slot: "options"},
|
||||||
],
|
],
|
||||||
userList: []
|
userList: [],
|
||||||
|
showDialog: false,
|
||||||
|
userInfo: {}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -106,7 +124,7 @@ export default {
|
|||||||
getInfo() {
|
getInfo() {
|
||||||
this.instance.post(`/app/apppartyreport/queryDetailById?id=${this.id}`).then((res) => {
|
this.instance.post(`/app/apppartyreport/queryDetailById?id=${this.id}`).then((res) => {
|
||||||
if (res?.data) {
|
if (res?.data) {
|
||||||
this.info = res.data;
|
this.info = res.data
|
||||||
if (this.info.birthday) {
|
if (this.info.birthday) {
|
||||||
this.info.birthday = this.info.birthday.substring(0, 10);
|
this.info.birthday = this.info.birthday.substring(0, 10);
|
||||||
}
|
}
|
||||||
@@ -117,8 +135,20 @@ export default {
|
|||||||
this.instance.post(`/app/apppartyreport/signup-info?id=${this.id}`).then((res) => {
|
this.instance.post(`/app/apppartyreport/signup-info?id=${this.id}`).then((res) => {
|
||||||
if (res?.data) {
|
if (res?.data) {
|
||||||
res.data.map((item) => {
|
res.data.map((item) => {
|
||||||
item.signupTime = item.signupTime.substring(0, 10)
|
if(item.signupTime) {
|
||||||
|
item.signupTime = item.signupTime.substring(0, 10)
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
this.userList = res.data
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
viewUser(row) {
|
||||||
|
this.instance.post(`app/apppartyreport/log?id=${row.id}`).then((res) => {
|
||||||
|
if (res.code == 0) {
|
||||||
|
this.userInfo = {...res.data}
|
||||||
|
this.userInfo.userName = row.partyName
|
||||||
|
this.showDialog = true
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,12 +1,13 @@
|
|||||||
<template>
|
<template>
|
||||||
<section class="AppOrganizationChange">
|
<section class="AppOrganizationChange">
|
||||||
<keep-alive :include="['List']">
|
<keep-alive :include="['List']">
|
||||||
<component ref="component" :is="component" :instance="instance" :selected.sync="selected" :params="params" :dict="dict" @change="onChange"/>
|
<component :is="currentPage" :instance="instance" :selected.sync="selected" :params="params" :dict="dict" @change="onChange"/>
|
||||||
</keep-alive>
|
</keep-alive>
|
||||||
</section>
|
</section>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import {mapState} from "vuex";
|
||||||
import addChange from "./components/addChange.vue";
|
import addChange from "./components/addChange.vue";
|
||||||
import List from "./components/List.vue";
|
import List from "./components/List.vue";
|
||||||
import organizationSetting from "./components/organizationSetting.vue";
|
import organizationSetting from "./components/organizationSetting.vue";
|
||||||
@@ -23,6 +24,16 @@ export default {
|
|||||||
addChange,
|
addChange,
|
||||||
organizationSetting,
|
organizationSetting,
|
||||||
},
|
},
|
||||||
|
computed: {
|
||||||
|
...mapState(['user']),
|
||||||
|
currentPage() {
|
||||||
|
if (this.$route.hash == "#add") {
|
||||||
|
return addChange
|
||||||
|
} else if (this.$route.hash == "#setting") {
|
||||||
|
return organizationSetting
|
||||||
|
} else return List
|
||||||
|
}
|
||||||
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
component: "List",
|
component: "List",
|
||||||
@@ -33,26 +44,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
onChange(data) {
|
onChange(data) {
|
||||||
if (data.type === "List") {
|
this.params = data.params;
|
||||||
this.component = "List";
|
|
||||||
this.params = data.params;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (data.type === "organizationSetting") {
|
|
||||||
this.component = "organizationSetting";
|
|
||||||
this.params = data.params;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (data.type === "addChange") {
|
|
||||||
this.component = "addChange";
|
|
||||||
this.params = data.params;
|
|
||||||
|
|
||||||
this.$nextTick(() => {
|
|
||||||
if (data.isRefresh) {
|
|
||||||
this.$refs.component.getList();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
|||||||
@@ -3,37 +3,37 @@
|
|||||||
<template slot="title">
|
<template slot="title">
|
||||||
<ai-title title="组织换届" isShowBottomBorder>
|
<ai-title title="组织换届" isShowBottomBorder>
|
||||||
<template slot="rightBtn">
|
<template slot="rightBtn">
|
||||||
<el-button size="small" type="primary" icon="iconfont iconAdd" @click="toSetting('')" >换届设置</el-button>
|
<el-button size="small" type="primary" icon="iconfont iconAdd" @click="toSetting('')">换届设置</el-button>
|
||||||
</template>
|
</template>
|
||||||
</ai-title>
|
</ai-title>
|
||||||
</template>
|
</template>
|
||||||
<template #left>
|
<template #left>
|
||||||
<ai-tree-menu title="组织目录" searchPlaceholder="请输入组织名称" @search="onSearch">
|
<ai-tree-menu title="组织目录" searchPlaceholder="请输入组织名称" @search="onSearch">
|
||||||
<ai-party-tree
|
<ai-party-tree
|
||||||
:filter-node-method="filterNode"
|
:filter-node-method="filterNode"
|
||||||
ref="tree"
|
ref="tree"
|
||||||
:instance="instance"
|
:instance="instance"
|
||||||
:root="user.info.organizationId"
|
:root="user.info.organizationId"
|
||||||
:current-node-key="selected.id"
|
:current-node-key="selected.id"
|
||||||
@select="onTreeChange"/>
|
@select="onTreeChange"/>
|
||||||
</ai-tree-menu>
|
</ai-tree-menu>
|
||||||
</template>
|
</template>
|
||||||
<template slot="content" class="content">
|
<template slot="content" class="content">
|
||||||
<el-tabs v-model="currIndex" >
|
<el-tabs v-model="currIndex">
|
||||||
<el-tab-pane v-for="(tab,i) in tabs" :key="i" :label="tab.label">
|
<el-tab-pane v-for="(tab,i) in tabs" :key="i" :label="tab.label">
|
||||||
<component :ref="tab.name" v-if="currIndex == String(i)" :is="tab.comp" lazy :instance="instance" :selected="selected"
|
<component :ref="tab.name" v-if="currIndex == String(i)" :is="tab.comp" lazy :instance="instance" :selected="selected"
|
||||||
:dict="dict" :permissions="permissions" v-on="$listeners"/>
|
:dict="dict" :permissions="permissions" v-on="$listeners"/>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
</el-tabs>
|
</el-tabs>
|
||||||
<div class="add_btn">
|
<div class="add_btn">
|
||||||
<el-button size="small" type="primary" icon="iconfont iconAdd" @click="toAdd('')" >新增换届</el-button>
|
<el-button size="small" type="primary" icon="iconfont iconAdd" @click="toAdd('')">新增换届</el-button>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</ai-list>
|
</ai-list>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { mapState } from 'vuex'
|
import {mapState} from 'vuex'
|
||||||
import moment from './moment.vue'
|
import moment from './moment.vue'
|
||||||
import history from './history.vue'
|
import history from './history.vue'
|
||||||
|
|
||||||
@@ -84,20 +84,10 @@ export default {
|
|||||||
return data.name.indexOf(value) !== -1
|
return data.name.indexOf(value) !== -1
|
||||||
},
|
},
|
||||||
toAdd(id) {
|
toAdd(id) {
|
||||||
this.$emit('change', {
|
this.$router.push({hash: "#add", query: {id}})
|
||||||
type: 'addChange',
|
|
||||||
params: {
|
|
||||||
id: id || ''
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
toSetting(id) {
|
toSetting(id) {
|
||||||
this.$emit('change', {
|
this.$router.push({hash: "#setting", query: {id}})
|
||||||
type: 'organizationSetting',
|
|
||||||
params: {
|
|
||||||
id: id || ''
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -147,9 +137,10 @@ export default {
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
::v-deep .is-current>.el-tree-node__content{
|
|
||||||
width: 100%!important;
|
::v-deep .is-current > .el-tree-node__content {
|
||||||
padding-right: 16px!important;
|
width: 100% !important;
|
||||||
|
padding-right: 16px !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -1,30 +1,27 @@
|
|||||||
<template>
|
<template>
|
||||||
<section class="addChange">
|
<section class="addChange">
|
||||||
<ai-detail>
|
<ai-detail>
|
||||||
<ai-title slot="title" title="新增换届" isShowBottomBorder isShowBack @onBackClick="cancel(false)" />
|
<ai-title slot="title" title="新增换届" isShowBottomBorder isShowBack @onBackClick="cancel(false)"/>
|
||||||
<template #content>
|
<template #content>
|
||||||
<ai-card title="基本信息">
|
<ai-card title="基本信息">
|
||||||
<template #content>
|
<template #content>
|
||||||
<div class="Form">
|
<div class="Form">
|
||||||
<el-form ref="form" :model="form" :rules="rules" label-width="100px" label-position="right">
|
<el-form ref="form" :model="form" :rules="rules" label-width="100px" label-position="right" size="small">
|
||||||
<el-row type="flex">
|
<el-row type="flex">
|
||||||
<el-col :span="12">
|
<el-form-item class="fill" label="换届时间" prop="changeTime">
|
||||||
<el-form-item label="换届时间" prop="changeTime">
|
<el-date-picker v-model="form.changeTime" value-format="yyyy-MM-dd" type="date" placeholder="选择日期" style="width:338px">
|
||||||
<el-date-picker v-model="form.changeTime" value-format="yyyy-MM-dd" type="date" placeholder="选择日期" style="width:338px">
|
</el-date-picker>
|
||||||
</el-date-picker>
|
</el-form-item>
|
||||||
</el-form-item>
|
<el-form-item class="fill" label="届次" prop="sessionTime">
|
||||||
</el-col>
|
<el-input size="small" :maxlength="30" placeholder="请输入届次" v-model="form.sessionTime"></el-input>
|
||||||
<el-col :span="12">
|
</el-form-item>
|
||||||
<el-form-item label="届次" prop="sessionTime">
|
|
||||||
<el-input size="small" :maxlength="30" placeholder="请输入届次" v-model="form.sessionTime"></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
</el-row>
|
</el-row>
|
||||||
<ai-bar title="本届任职(必填)">
|
<ai-title title="本届任职(必填)">
|
||||||
<template slot="right">
|
<template slot="rightBtn">
|
||||||
<el-button size="small" type="text" icon="iconfont iconAdd" @click="form.serveList.push({name:null,position:null,type:0})" >添加任职人员</el-button>
|
<el-button size="small" type="text" icon="iconfont iconAdd" @click="form.serveList.push({name:null,position:null,type:0})">添加任职人员
|
||||||
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
</ai-bar>
|
</ai-title>
|
||||||
<el-table :data="form.serveList" size="mini" border stripe>
|
<el-table :data="form.serveList" size="mini" border stripe>
|
||||||
<el-table-column label="职位" align="center">
|
<el-table-column label="职位" align="center">
|
||||||
<template slot-scope="{row}">
|
<template slot-scope="{row}">
|
||||||
@@ -33,7 +30,7 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="姓名" align="center">
|
<el-table-column label="姓名" align="center">
|
||||||
<template slot-scope="{row}">
|
<template slot-scope="{row}">
|
||||||
<el-input class="tableInput" v-model="row.name" clearable placeholder="请输入姓名" />
|
<el-input class="tableInput" v-model="row.name" clearable placeholder="请输入姓名"/>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="操作" align="center">
|
<el-table-column label="操作" align="center">
|
||||||
@@ -43,11 +40,12 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
</el-form>
|
</el-form>
|
||||||
<ai-bar title="本届候选人">
|
<ai-title class="mar-t8" title="本届候选人">
|
||||||
<template slot="right">
|
<template slot="rightBtn">
|
||||||
<el-button size="small" type="text" icon="iconfont iconAdd" @click="form.candidateList.push({name:null,position:null,type: 1})" >添加候选人</el-button>
|
<el-button size="small" type="text" icon="iconfont iconAdd" @click="form.candidateList.push({name:null,position:null,type: 1})">添加候选人
|
||||||
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
</ai-bar>
|
</ai-title>
|
||||||
<el-table :data="form.candidateList" size="mini" border stripe>
|
<el-table :data="form.candidateList" size="mini" border stripe>
|
||||||
<el-table-column label="职位" align="center">
|
<el-table-column label="职位" align="center">
|
||||||
<template slot-scope="{row}">
|
<template slot-scope="{row}">
|
||||||
@@ -56,7 +54,7 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="候选人" align="center">
|
<el-table-column label="候选人" align="center">
|
||||||
<template slot-scope="{row}">
|
<template slot-scope="{row}">
|
||||||
<el-input class="tableInput" v-model="row.name" clearable placeholder="请输入姓名" />
|
<el-input class="tableInput" v-model="row.name" clearable placeholder="请输入姓名"/>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="操作" align="center">
|
<el-table-column label="操作" align="center">
|
||||||
@@ -95,34 +93,31 @@ export default {
|
|||||||
candidateList: [], // 候选人员列表
|
candidateList: [], // 候选人员列表
|
||||||
},
|
},
|
||||||
rules: {
|
rules: {
|
||||||
changeTime: [{ required: true, message: '请选择换届时间', trigger: 'blur' }],
|
changeTime: [{required: true, message: '请选择换届时间', trigger: 'blur'}],
|
||||||
sessionTime: [{ required: true, message: '请输入届次', trigger: 'blur' }],
|
sessionTime: [{required: true, message: '请输入届次', trigger: 'blur'}],
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
cancel (isRefresh) {
|
cancel() {
|
||||||
this.$emit('change', {
|
this.$router.push({})
|
||||||
type: 'List',
|
|
||||||
isRefresh: !!isRefresh
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
handleDelete(i, type) {
|
handleDelete(i, type) {
|
||||||
this.$confirm("确定要删除该数据?").then(() => {
|
this.$confirm("确定要删除该数据?").then(() => {
|
||||||
if(type == 'candidateList') {
|
if (type == 'candidateList') {
|
||||||
this.form.candidateList.splice(i, 1)
|
this.form.candidateList.splice(i, 1)
|
||||||
} else if(type == 'serveList') {
|
} else if (type == 'serveList') {
|
||||||
this.form.serveList.splice(i, 1)
|
this.form.serveList.splice(i, 1)
|
||||||
}
|
}
|
||||||
}).catch(() => 0)
|
}).catch(() => 0)
|
||||||
},
|
},
|
||||||
confirm() {
|
confirm() {
|
||||||
this.$refs.form.validate((valid) => {
|
this.$refs.form.validate((valid) => {
|
||||||
if(valid) {
|
if (valid) {
|
||||||
this.instance.post(`/app/apporganizationgeneralelection/add`, {
|
this.instance.post(`/app/apporganizationgeneralelection/add`, {
|
||||||
...this.form
|
...this.form
|
||||||
}).then(res=>{
|
}).then(res => {
|
||||||
if(res.code == 0) {
|
if (res.code == 0) {
|
||||||
this.$message.success('提交成功')
|
this.$message.success('提交成功')
|
||||||
this.cancel(true)
|
this.cancel(true)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,17 +1,17 @@
|
|||||||
<template>
|
<template>
|
||||||
<ai-list class="history">
|
<section class="history">
|
||||||
<template slot="content">
|
|
||||||
<ai-search-bar>
|
<ai-search-bar>
|
||||||
<template #left>
|
<template #left>
|
||||||
<el-button type="primary" icon="iconfont iconEdit" @click="fillupAdd('')">补录</el-button>
|
<el-button type="primary" icon="iconfont iconEdit" @click="fillupAdd('')">补录</el-button>
|
||||||
</template>
|
</template>
|
||||||
<template #right>
|
<template #right>
|
||||||
<el-input size="small" placeholder="请输入届次" v-model="search.name" clearable
|
<el-input size="small" placeholder="请输入届次" v-model="search.name" clearable
|
||||||
v-throttle="() => {page.current = 1, getList()}"/>
|
v-throttle="() => {page.current = 1, getList()}"/>
|
||||||
<el-button icon="iconfont iconResetting" @click="reset('')">重置</el-button>
|
<el-button icon="iconfont iconResetting" @click="reset('')">重置</el-button>
|
||||||
</template>
|
</template>
|
||||||
</ai-search-bar>
|
</ai-search-bar>
|
||||||
<ai-table
|
<ai-table
|
||||||
class="detail-table__table"
|
class="detail-table__table"
|
||||||
:tableData="tableData"
|
:tableData="tableData"
|
||||||
:col-configs="colConfigs"
|
:col-configs="colConfigs"
|
||||||
@@ -19,15 +19,14 @@
|
|||||||
:current.sync="current"
|
:current.sync="current"
|
||||||
:size.sync="size"
|
:size.sync="size"
|
||||||
@getList="getJobList">
|
@getList="getJobList">
|
||||||
<el-table-column slot="options" label="操作" align="center">
|
<el-table-column slot="options" label="操作" align="center">
|
||||||
<template slot-scope="{ row }">
|
<template slot-scope="{ row }">
|
||||||
<el-button type="text" @click="jobEdit(row.id)">编辑</el-button>
|
<el-button type="text" @click="jobEdit(row.id)">编辑</el-button>
|
||||||
<el-button type="text" @click="jobDelete(row.id)">删除</el-button>
|
<el-button type="text" @click="jobDelete(row.id)">删除</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</ai-table>
|
</ai-table>
|
||||||
</template>
|
</section>
|
||||||
</ai-list>
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|||||||
@@ -1,43 +1,22 @@
|
|||||||
<template>
|
<template>
|
||||||
<ai-list class="moment">
|
<section class="moment">
|
||||||
<template slot="content">
|
<ai-title title="总体概况" class="mar-b8">
|
||||||
<ai-bar title="总体概况">
|
<template slot="rightBtn">
|
||||||
<template slot="right">
|
<el-button size="small" type="text" icon="iconfont iconEdit" @click="toEdit('')">修改</el-button>
|
||||||
<el-button size="small" type="text" icon="iconfont iconEdit" @click="toEdit('')" >修改</el-button>
|
|
||||||
</template>
|
|
||||||
</ai-bar>
|
|
||||||
<ai-wrapper>
|
|
||||||
<ai-info-item label="本届换届时间" :value="111" />
|
|
||||||
<ai-info-item label="换届类型" :value="111" />
|
|
||||||
<ai-info-item label="下届换届时间" :value="111" />
|
|
||||||
<ai-info-item label="当前届次" :value="111" />
|
|
||||||
</ai-wrapper>
|
|
||||||
<ai-bar title="本届任职">
|
|
||||||
<template slot="right">
|
|
||||||
<el-button size="small" type="text" icon="iconfont iconAdd" @click="dialogJob=true" >添加任职人员</el-button>
|
|
||||||
</template>
|
|
||||||
</ai-bar>
|
|
||||||
<ai-table
|
|
||||||
class="detail-table__table"
|
|
||||||
:tableData="tableData"
|
|
||||||
:col-configs="colConfigs"
|
|
||||||
:total="totalJob"
|
|
||||||
:current.sync="current"
|
|
||||||
:size.sync="size"
|
|
||||||
@getList="getJobList">
|
|
||||||
<el-table-column slot="options" label="操作" align="center">
|
|
||||||
<template slot-scope="{ row }">
|
|
||||||
<el-button type="text" @click="jobEdit(row.id)">编辑</el-button>
|
|
||||||
<el-button type="text" @click="jobDelete(row.id)">删除</el-button>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
</ai-table>
|
|
||||||
<ai-bar title="本届候选人">
|
|
||||||
<template slot="right">
|
|
||||||
<el-button size="small" type="text" icon="iconfont iconAdd" @click="dialogCandidate = true" >添加候选人</el-button>
|
|
||||||
</template>
|
</template>
|
||||||
</ai-bar>
|
</ai-title>
|
||||||
<ai-table
|
<ai-wrapper>
|
||||||
|
<ai-info-item label="本届换届时间" :value="111"/>
|
||||||
|
<ai-info-item label="换届类型" :value="111"/>
|
||||||
|
<ai-info-item label="下届换届时间" :value="111"/>
|
||||||
|
<ai-info-item label="当前届次" :value="111"/>
|
||||||
|
</ai-wrapper>
|
||||||
|
<ai-title title="本届任职" class="mar-b8">
|
||||||
|
<template slot="rightBtn">
|
||||||
|
<el-button size="small" type="text" icon="iconfont iconAdd" @click="dialogJob=true">添加任职人员</el-button>
|
||||||
|
</template>
|
||||||
|
</ai-title>
|
||||||
|
<ai-table
|
||||||
class="detail-table__table"
|
class="detail-table__table"
|
||||||
:tableData="tableData"
|
:tableData="tableData"
|
||||||
:col-configs="colConfigs"
|
:col-configs="colConfigs"
|
||||||
@@ -45,38 +24,54 @@
|
|||||||
:current.sync="current"
|
:current.sync="current"
|
||||||
:size.sync="size"
|
:size.sync="size"
|
||||||
@getList="getJobList">
|
@getList="getJobList">
|
||||||
<el-table-column slot="options" label="操作" align="center">
|
<el-table-column slot="options" label="操作" align="center">
|
||||||
<template slot-scope="{ row }">
|
<template slot-scope="{ row }">
|
||||||
<el-button type="text" @click="jobEdit(row.id)">编辑</el-button>
|
<el-button type="text" @click="jobEdit(row.id)">编辑</el-button>
|
||||||
<el-button type="text" @click="jobDelete(row.id)">删除</el-button>
|
<el-button type="text" @click="jobDelete(row.id)">删除</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</ai-table>
|
</ai-table>
|
||||||
<ai-dialog :visible.sync="dialogJob" title="添加本届任职人" width="720px" @closed="jobForm={}" @onConfirm="handleJobForm">
|
<ai-title title="本届候选人" class="mar-b8">
|
||||||
<el-form ref="jobForm" size="small" :model="jobForm" :rules="jobRules" label-width="80px">
|
<template slot="rightBtn">
|
||||||
<el-form-item label="职位" prop="job">
|
<el-button size="small" type="text" icon="iconfont iconAdd" @click="dialogCandidate = true">添加候选人</el-button>
|
||||||
<el-input v-model="jobForm.job" clearable placeholder="请输入"/>
|
</template>
|
||||||
</el-form-item>
|
</ai-title>
|
||||||
<el-form-item label="姓名" prop="name">
|
<ai-table
|
||||||
<el-input v-model="jobForm.name" clearable placeholder="请输入"/>
|
class="detail-table__table"
|
||||||
</el-form-item>
|
:tableData="tableData"
|
||||||
</el-form>
|
:col-configs="colConfigs"
|
||||||
</ai-dialog>
|
:total="totalJob"
|
||||||
|
:current.sync="current"
|
||||||
<ai-dialog :visible.sync="dialogCandidate" title="添加本届候选人" width="720px" @closed="CandFrom={}" @onConfirm="handleCandForm">
|
:size.sync="size"
|
||||||
<el-form ref="CandFrom" size="small" :model="CandFrom" :rules="candRules" label-width="80px">
|
@getList="getJobList">
|
||||||
<el-form-item label="职位" prop="job">
|
<el-table-column slot="options" label="操作" align="center">
|
||||||
<el-input v-model="CandFrom.job" clearable placeholder="请输入"/>
|
<template slot-scope="{ row }">
|
||||||
</el-form-item>
|
<el-button type="text" @click="jobEdit(row.id)">编辑</el-button>
|
||||||
<el-form-item label="候选人" prop="name">
|
<el-button type="text" @click="jobDelete(row.id)">删除</el-button>
|
||||||
<el-input type="textarea" rows="5" v-model="CandFrom.name" placeholder="请输入候选人姓名,用逗号隔开"/>
|
</template>
|
||||||
</el-form-item>
|
</el-table-column>
|
||||||
</el-form>
|
</ai-table>
|
||||||
</ai-dialog>
|
<ai-dialog :visible.sync="dialogJob" title="添加本届任职人" width="720px" @closed="jobForm={}" @onConfirm="handleJobForm">
|
||||||
</template>
|
<el-form ref="jobForm" size="small" :model="jobForm" :rules="jobRules" label-width="80px">
|
||||||
|
<el-form-item label="职位" prop="job">
|
||||||
|
<el-input v-model="jobForm.job" clearable placeholder="请输入"/>
|
||||||
</ai-list>
|
</el-form-item>
|
||||||
|
<el-form-item label="姓名" prop="name">
|
||||||
|
<el-input v-model="jobForm.name" clearable placeholder="请输入"/>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
</ai-dialog>
|
||||||
|
<ai-dialog :visible.sync="dialogCandidate" title="添加本届候选人" width="720px" @closed="CandFrom={}" @onConfirm="handleCandForm">
|
||||||
|
<el-form ref="CandFrom" size="small" :model="CandFrom" :rules="candRules" label-width="80px">
|
||||||
|
<el-form-item label="职位" prop="job">
|
||||||
|
<el-input v-model="CandFrom.job" clearable placeholder="请输入"/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="候选人" prop="name">
|
||||||
|
<el-input type="textarea" rows="5" v-model="CandFrom.name" placeholder="请输入候选人姓名,用逗号隔开"/>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
</ai-dialog>
|
||||||
|
</section>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
@@ -132,26 +127,26 @@ export default {
|
|||||||
this.getList(this.selected.id)
|
this.getList(this.selected.id)
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
jobEdit() {},
|
jobEdit() {
|
||||||
jobDelete() {},
|
},
|
||||||
getJobList() {},
|
jobDelete() {
|
||||||
|
},
|
||||||
|
getJobList() {
|
||||||
|
},
|
||||||
toEdit(id) {
|
toEdit(id) {
|
||||||
this.$emit('change', {
|
this.$router.push({hash: "#add", query: {id}})
|
||||||
type: 'addChange',
|
|
||||||
params: {
|
|
||||||
id: id || ''
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
getList(id) {
|
getList(id) {
|
||||||
this.instance.post(`/app/apporganizationgeneralelection/queryDetailByOrganizationId?organizationId=${id}`).then(res=>{
|
this.instance.post(`/app/apporganizationgeneralelection/queryDetailByOrganizationId?organizationId=${id}`).then(res => {
|
||||||
if(res?.data) {
|
if (res?.data) {
|
||||||
console.log(res,'111');
|
console.log(res, '111');
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
handleJobForm() {},
|
handleJobForm() {
|
||||||
handleCandForm() {},
|
},
|
||||||
|
handleCandForm() {
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -50,7 +50,7 @@
|
|||||||
系统将在下次换届时间开始前,对“换届提醒人”进行提醒。提醒方式包括平台消息推送、短信提醒。
|
系统将在下次换届时间开始前,对“换届提醒人”进行提醒。提醒方式包括平台消息推送、短信提醒。
|
||||||
</div>
|
</div>
|
||||||
<div class="add-form">
|
<div class="add-form">
|
||||||
<el-form ref="form" :model="form" :rules="formRules" size="small" label-width="150px">
|
<el-form ref="form" :model="form" :rules="formRules" size="small" label-width="150px">
|
||||||
<el-form-item label="单位名称">
|
<el-form-item label="单位名称">
|
||||||
<div>{{ user.info.organizationName }}</div>
|
<div>{{ user.info.organizationName }}</div>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@@ -74,8 +74,8 @@
|
|||||||
|
|
||||||
<el-form-item label="换届提醒人" prop="userList">
|
<el-form-item label="换届提醒人" prop="userList">
|
||||||
<ai-person-select :instance="instance" :customClicker="true" :chooseUserList="chooseUserList"
|
<ai-person-select :instance="instance" :customClicker="true" :chooseUserList="chooseUserList"
|
||||||
:url="`/app/appparty/list?partyOrgId=${form.organizationId}`" headerTitle="党员列表"
|
:url="`/app/appparty/list?partyOrgId=${form.organizationId}`" headerTitle="党员列表"
|
||||||
:isMultiple="true" dialogTitle="选择抄送人" @selectPerson="selectUser" class="aipersonselect">
|
:isMultiple="true" dialogTitle="选择抄送人" @selectPerson="selectUser" class="aipersonselect">
|
||||||
<template name="option" v-slot:option="{ item }">
|
<template name="option" v-slot:option="{ item }">
|
||||||
<span class="iconfont iconProlife">{{ item.name }}</span>
|
<span class="iconfont iconProlife">{{ item.name }}</span>
|
||||||
</template>
|
</template>
|
||||||
@@ -96,13 +96,13 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { mapState } from 'vuex'
|
import {mapState} from 'vuex'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "organizationSetting",
|
name: "organizationSetting",
|
||||||
props: {
|
props: {
|
||||||
instance: Function,
|
instance: Function,
|
||||||
dict: Object,
|
dict: Object,
|
||||||
params: Object,
|
|
||||||
},
|
},
|
||||||
|
|
||||||
data() {
|
data() {
|
||||||
@@ -124,7 +124,7 @@ export default {
|
|||||||
formRules: {
|
formRules: {
|
||||||
type: [{required: true, message: "请选择选举方式", trigger: "blur"}],
|
type: [{required: true, message: "请选择选举方式", trigger: "blur"}],
|
||||||
organizationName: [{required: true, message: "请选择党组织", trigger: "blur"}],
|
organizationName: [{required: true, message: "请选择党组织", trigger: "blur"}],
|
||||||
userList: [{required: true,validator: validUser, trigger: "blur"}],
|
userList: [{required: true, validator: validUser, trigger: "blur"}],
|
||||||
},
|
},
|
||||||
chooseUserList: [],
|
chooseUserList: [],
|
||||||
createTime: '',
|
createTime: '',
|
||||||
@@ -138,24 +138,21 @@ export default {
|
|||||||
this.getOrganization()
|
this.getOrganization()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
cancel (isRefresh) {
|
cancel() {
|
||||||
this.$emit('change', {
|
this.$router.back()
|
||||||
type: 'List',
|
|
||||||
isRefresh: !!isRefresh
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
// 查询组织关系
|
// 查询组织关系
|
||||||
getOrganization() {
|
getOrganization() {
|
||||||
this.instance.post(`/app/partyOrganization/queryPartyOrganizationServiceList`).then(res=>{
|
this.instance.post(`/app/partyOrganization/queryPartyOrganizationServiceList`).then(res => {
|
||||||
if(res?.data) {
|
if (res?.data) {
|
||||||
let data = res.data.filter(item=>item.id == this.user.info.organizationId)
|
let data = res.data.filter(item => item.id == this.user.info.organizationId)
|
||||||
this.createTime = data[0].createTime
|
this.createTime = data[0].createTime
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
getDetail() {
|
getDetail() {
|
||||||
this.instance.post(`/app/apporganizationchangeconfig/queryDetailByOrganizationId?organizationId=${this.user.info.organizationId}`).then((res) => {
|
this.instance.post(`/app/apporganizationchangeconfig/queryDetailByOrganizationId?organizationId=${this.user.info.organizationId}`).then((res) => {
|
||||||
if(res?.data) {
|
if (res?.data) {
|
||||||
// this.chooseCandidateList = res.data.candidateUsers
|
// this.chooseCandidateList = res.data.candidateUsers
|
||||||
// this.chooseVoteList = res.data.voteUsers
|
// this.chooseVoteList = res.data.voteUsers
|
||||||
console.log(res);
|
console.log(res);
|
||||||
@@ -169,7 +166,7 @@ export default {
|
|||||||
this.form.voteUsers = e
|
this.form.voteUsers = e
|
||||||
},
|
},
|
||||||
handlePartyOrgSelect(v) {
|
handlePartyOrgSelect(v) {
|
||||||
if(v) {
|
if (v) {
|
||||||
this.form.organizationId = v[0]?.id
|
this.form.organizationId = v[0]?.id
|
||||||
this.form.organizationName = v[0]?.name
|
this.form.organizationName = v[0]?.name
|
||||||
|
|
||||||
@@ -178,18 +175,18 @@ export default {
|
|||||||
confirm() {
|
confirm() {
|
||||||
// 换届设置
|
// 换届设置
|
||||||
this.$refs.form.validate((valid) => {
|
this.$refs.form.validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.instance.post(`/app/apporganizationchangeconfig/update`,{
|
this.instance.post(`/app/apporganizationchangeconfig/update`, {
|
||||||
...this.form
|
...this.form
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if(res.code == 0) {
|
if (res.code == 0) {
|
||||||
this.$message.success('提交成功')
|
this.$message.success('提交成功')
|
||||||
this.cancel(true)
|
this.cancel(true)
|
||||||
}
|
}
|
||||||
}).catch((err) => {
|
}).catch((err) => {
|
||||||
console.log(err);
|
console.log(err);
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user