diff --git a/project/pingchang/apps/AppGeneralElection/components/electionAdd.vue b/project/pingchang/apps/AppGeneralElection/components/electionAdd.vue
index b9503ecb..5ff34564 100644
--- a/project/pingchang/apps/AppGeneralElection/components/electionAdd.vue
+++ b/project/pingchang/apps/AppGeneralElection/components/electionAdd.vue
@@ -7,26 +7,28 @@
- 修改
+ 修改
-
+
+ {{ info.electionMethod==0? '等额':'差额'}}
+
{{ item }}
- ,
+ 、
{{ item }}
- ,
+ 、
@@ -34,7 +36,7 @@
-
+
@@ -64,14 +66,14 @@
- 等额
- 差额
+ 等额
+ 差额
-
-
+
+
@@ -89,7 +91,7 @@
{{ item.name }}
{{ item.phone }}
-
+ {{ item}}
@@ -148,7 +150,7 @@ export default {
votingInstructions: '',
organizationName: '',
electionMethod: '',
- candidatesNumber: '',
+ chooseNumber: '',
votingDate: '',
candidateUsers: [],
voteUsers: [],
@@ -159,7 +161,7 @@ export default {
title: [{required: true, message: "请输入标题", trigger: "blur"}],
organizationName: [{required: true, message: "请选择党组织", trigger: "blur"}],
electionMethod: [{required: true, message: "请选择选举方式", trigger: "blur"}],
- candidatesNumber: [{required: true, message: "请输入应选人数", trigger: "blur"}],
+ chooseNumber: [{required: true, message: "请输入应选人数", trigger: "blur"}],
votingDate: [{required: true, message: "请选择投票日期", trigger: "blur"}],
candidateUsers: [{required: true,validator: validCandidate, trigger: "blur"}],
voteUsers: [{required: true,validator: validVote, trigger: "blur"}],
@@ -192,15 +194,15 @@ export default {
params: {id:this.id}
}).then((res) => {
if(res?.data) {
- // console.log(res.data);
- this.form = res.data,
+ console.log(res.data,'getDetail');
+ this.form = res.data
+ this.form.organizationName = res.data.partyOrganizations[0].name
this.info = res.data
this.candidateUsersList = res.data.candidateUsers.map(v=> v.name)
this.voteUsersList = res.data.voteUsers.map(v=> v.name)
}
})
},
- edit() {},
selectCandidate(v) {
this.form.candidateUsers = v
},
@@ -223,12 +225,8 @@ export default {
...this.form
}).then(res => {
if(res.code == 0) {
- if(this.id) {
- this.$message.success('编辑成功')
- } else {
- this.$message.success('新增成功')
- }
- this.cancel(false)
+ this.$message.success(this.id ? '编辑成功' : '新增成功')
+ this.cancel(true)
}
}).catch((err) => {
console.log(err);
diff --git a/project/pingchang/apps/AppGeneralElection/components/electionList.vue b/project/pingchang/apps/AppGeneralElection/components/electionList.vue
index 42441eeb..8c57e038 100644
--- a/project/pingchang/apps/AppGeneralElection/components/electionList.vue
+++ b/project/pingchang/apps/AppGeneralElection/components/electionList.vue
@@ -6,10 +6,10 @@
添加
-
+
-
+
重置
@@ -17,7 +17,6 @@
-
编辑
详情
删除
@@ -51,17 +50,18 @@ export default {
}
},
created () {
- this.dict.load('yesOrNo', 'partyFourLinkageStatus')
- this.getList()
+ this.$dict.load('electionStatus', 'electionMethod').then(()=> {
+ this.getList()
+ })
},
computed: {
colConfigs() {
return [
{prop: "title", label: "标题", align: "left", showOverflowTooltip: true},
{prop: "organizationName", label: "所属支部", align: "center"},
- {prop: "electionMethod", label: "选举方式", align: "center"},
+ {prop: "electionMethod", label: "选举方式", align: "center",dict:"electionMethod"},
{prop: "chooseNumber", label: "应选人数", align: "center"},
- {prop: "status", label: "状态", align: "center",width: "180px"},
+ {prop: "status", label: "状态", align: "center",width: "180px", dict: "electionStatus"},
{ slot: "options", },
]
}
@@ -76,7 +76,7 @@ export default {
}).then(res=> {
if(res?.data) {
this.tableData = res.data.records
- this.total.total = res.data.total
+ this.page.total = res.data.total
}
})
},
@@ -89,7 +89,23 @@ export default {
}
})
},
- reset() {},
+ handleDelete(id) {
+ this.$confirm('确定删除该数据?').then(() => {
+ this.instance.post(`/app/appgeneralelectioninfo/delete?ids=${id}`).then(res=>{
+ if(res.code == 0) {
+ this.$message.success('删除成功!')
+ this.getList()
+ }
+ })
+ })
+ },
+ reset() {
+ this.search = {
+ status: '',
+ title: '',
+ }
+ this.getList()
+ },
}
}
diff --git a/project/pingchang/apps/AppRecruitPartyMembers/AppRecruitPartyMembers.vue b/project/pingchang/apps/AppRecruitPartyMembers/AppRecruitPartyMembers.vue
index a5e0651c..29e420df 100644
--- a/project/pingchang/apps/AppRecruitPartyMembers/AppRecruitPartyMembers.vue
+++ b/project/pingchang/apps/AppRecruitPartyMembers/AppRecruitPartyMembers.vue
@@ -25,7 +25,7 @@ export default {
},
data() {
return {
- selected: {}
+ selected: {},
}
},
computed: {
diff --git a/project/pingchang/apps/AppRecruitPartyMembers/components/Add.vue b/project/pingchang/apps/AppRecruitPartyMembers/components/Add.vue
index 263cc9d7..a1d834ce 100644
--- a/project/pingchang/apps/AppRecruitPartyMembers/components/Add.vue
+++ b/project/pingchang/apps/AppRecruitPartyMembers/components/Add.vue
@@ -1,8 +1,8 @@
-
+
-
+
@@ -96,7 +88,7 @@
style="width: 100%"
placeholder="选择日期"
format="yyyy-MM-dd"
- value-format="yyyy-MM-dd"
+ value-format="yyyy-MM-dd HH:mm:ss"
>
@@ -148,13 +140,6 @@
-
-
-
-
-
-
-
@@ -184,28 +169,6 @@
>
-
@@ -213,446 +176,309 @@
-
+
-
+
-
+
-
+
最多上传9个附件,单个文件最大10MB
支持.zip、.rar、.doc、.docx、.xls、.ppt、.pptx、.pdf、.txt、.jpg、.png格式
- 建议上传《入学积极分子培养教育考察登记簿》、《中共预备学员考察登记簿》
+ 建议上传《入党积极分子培养教育考察登记簿》、《中共预备党员考察登记簿》
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 添加入学介绍人/培养人
-
-
-
+
+
+
+ 添加入党介绍人/培养人
+
+
+ {}"
- >
-
-
-
-
-
-
+
-
-
- 编辑
-
- 删除
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+ >
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -667,190 +493,140 @@
@@ -999,14 +694,8 @@ export default {
.audit-1 {
color: #2ea222 !important;
}
-
::v-deep .ai-form .el-form-item .el-form-item__content {
- margin-left: 174px !important;
- }
-
- ::v-deep .ai-form .el-form-item,
- ::v-deep .el-form-item {
- margin-bottom: 8px !important;
+ margin-left: 174px!important;
}
}
diff --git a/project/pingchang/apps/AppRecruitPartyMembers/components/Detail.vue b/project/pingchang/apps/AppRecruitPartyMembers/components/Detail.vue
index 302d7ded..b0ab342b 100644
--- a/project/pingchang/apps/AppRecruitPartyMembers/components/Detail.vue
+++ b/project/pingchang/apps/AppRecruitPartyMembers/components/Detail.vue
@@ -2,7 +2,7 @@
{{ info.age }}
- {{ info.age }}
+ {{ dict.getLabel('developStatus', info.developStatus)}}
@@ -52,11 +52,11 @@
- {{ info.name }}
+ {{ info.phone }}
@@ -64,91 +64,92 @@
- {{ info.name }}
- {{ info.name }}
- {{ info.name }}
-
-
-
+ {{ info.joinLeagueMemberTime }}
+ {{ dict.getLabel('education', info.education) }}
+ {{ info.position }}
+
+
+
-
-
+
- {{ info.name }}
+ {{ info.applyJoinPartyTime }}
-
+
+
- {{ info.name }}
-
-
+ {{ info.activistTime }}
+
+
-
+
{}"
>
-
+
- {{ info.name }}
-
-
-
-
-
-
-
-
+ {{ info.determineTime }}
+
+
+
+
+
+
+
+
-
+
- {{ info.name }}
-
-
-
-
-
-
+ {{ info.acceptTime }}
+
+
+
+
+
+
-
+
- {{ info.name }}
-
-
-
-
+ {{ info.becomePartyTime }}
+
+
+
+
@@ -172,59 +173,11 @@ export default {
data() {
return {
info: {},
- isShowStarForm: false,
- isShowJobForm: false,
- jobForm: {
- date: [],
- company: "",
- position: "",
- },
- jobId: "",
- starForm: {
- starTime: "",
- level: 1,
- },
- disciplinaryId: "",
- isShowDisciplinaryForm: false,
- disciplinaryForm: {
- starTime: "",
- disciplinaryInfo: "",
- result: "",
- },
- starId: "",
- activeName: "五星党员",
- textlist: ["一星党员", "二星党员", "三星党员", "四星党员", "五星党员"],
- colConfigs1: [
- {
- prop: "starTime",
- label: "姓名",
- align: "center",
- formart: (v) => (v ? v.split(" ")[0] : "-"),
- },
- {
- prop: "starTime",
- label: "职位",
- align: "center",
- formart: (v) => (v ? v.split(" ")[0] : "-"),
- },
-
+ colConfigs: [
+ {prop: "name", label: "姓名", align: "center"},
+ {prop: "position", label: "职务", align: "center"},
],
- colConfigs2: [
- { slot: "date" },
- { prop: "company", label: "单位", align: "center" },
- { prop: "position", label: "职务", align: "center" },
- ],
- colConfigs3: [
- {
- prop: "starTime",
- label: "时间",
- align: "center",
- formart: (v) => (v ? v.split(" ")[0] : "-"),
- },
- { prop: "disciplinaryInfo", label: "违纪原因", align: "center" },
- { prop: "result", label: "处理结果", align: "center" },
- ],
- };
+ }
},
computed: {
@@ -232,150 +185,24 @@ export default {
},
created() {
- this.getInfo();
+ this.dict.load("education", "sex", "nation", "developStatus").then(() => {
+ this.getInfo()
+ })
},
methods: {
getInfo() {
let { id } = this.$route.query;
- id &&
- this.instance
- .post(`/app/appparty/detail`, null, {
- params: { id },
- })
- .then((res) => {
- if (res?.data) {
- this.info = res.data;
- if (this.info.birthday) {
- this.info.birthday = this.info.birthday.substring(0, 10);
- }
- }
- });
- },
- remove(id, apiUrl) {
- this.$confirm("确定删除该数据?").then(() => {
- this.instance.post(`${apiUrl}?ids=${id}`).then((res) => {
- if (res.code == 0) {
- this.getInfo();
- this.$message.success("删除成功!");
+ id && this.instance.post(`/app/apppartydevelop/queryDetailById`, null, { params: { id },}).then((res) => {
+ if (res?.data) {
+ this.info = res.data;
+ if (this.info.birthday) {
+ this.info.birthday = this.info.birthday.substring(0, 10);
}
- });
- });
- },
- editJob(query) {
- this.jobForm = {
- ...query,
- date: [query.starTime, query.endTime],
- };
- this.jobId = query.id;
-
- this.isShowJobForm = true;
- },
- editStar(query) {
- this.starForm = {
- ...query,
- };
- this.starId = query.id;
-
- this.isShowStarForm = true;
- },
-
- editDisciplinary(query) {
- this.disciplinaryForm = {
- ...query,
- };
- this.disciplinaryId = query.id;
-
- this.isShowDisciplinaryForm = true;
- },
-
- onDisciplinarForm() {
- this.$refs.disciplinaryForm.validate((valid) => {
- if (valid) {
- this.instance
- .post(`/app/apppartydisciplinaryinfo/addOrUpdate`, {
- ...this.disciplinaryForm,
- partyId: this.params.id,
- })
- .then((res) => {
- if (res.code == 0) {
- this.isShowDisciplinaryForm = false;
- this.getInfo();
- this.$message.success(this.jobId ? "编辑成功" : "新增成功");
- }
- });
}
});
},
- onJobForm() {
- this.$refs.jobForm.validate((valid) => {
- if (valid) {
- this.instance
- .post(`/app/apppartyworkinfo/addOrUpdate`, {
- ...this.jobForm,
- starTime: this.jobForm.date[0],
- endTime: this.jobForm.date[1],
- partyId: this.params.id,
- })
- .then((res) => {
- if (res.code == 0) {
- this.isShowJobForm = false;
- this.getInfo();
- this.$message.success(this.jobId ? "编辑成功" : "新增成功");
- }
- });
- }
- });
- },
-
- onStarForm() {
- this.$refs.starForm.validate((valid) => {
- if (valid) {
- this.instance
- .post(`/app/apppartyfivestar/addOrUpdate`, {
- ...this.starForm,
- idNumber: this.info.idNumber,
- partyId: this.params.id,
- })
- .then((res) => {
- if (res.code == 0) {
- this.isShowStarForm = false;
- this.getInfo();
- this.$message.success(this.starId ? "编辑成功" : "新增成功");
- }
- });
- }
- });
- },
-
- onClose() {
- this.starId = "";
- this.jobId = "";
- this.disciplinaryId = "";
- this.starForm.level = 0;
- this.starForm.id = "";
- this.starForm.starTime = "";
- this.jobForm.date = [];
- this.jobForm.company = "";
- this.jobForm.id = "";
- this.jobForm.position = "";
- this.disciplinaryForm.starTime = "";
- this.disciplinaryForm.id = "";
- this.disciplinaryForm.disciplinaryInfo = "";
- this.disciplinaryForm.result = "";
- },
-
- addForm(type) {
- if (type === "五星党员") {
- this.isShowStarForm = true;
- } else if (type === "工作信息") {
- this.isShowJobForm = true;
- } else {
- this.isShowDisciplinaryForm = true;
- }
- },
-
cancel() {
this.$router.push({});
},
diff --git a/project/pingchang/apps/AppRecruitPartyMembers/components/List.vue b/project/pingchang/apps/AppRecruitPartyMembers/components/List.vue
index 8ead6764..7f0a9b9a 100644
--- a/project/pingchang/apps/AppRecruitPartyMembers/components/List.vue
+++ b/project/pingchang/apps/AppRecruitPartyMembers/components/List.vue
@@ -24,41 +24,7 @@
-
-
+
添加
- 删除
+ 删除