commit
This commit is contained in:
+9
-4
@@ -210,11 +210,16 @@ public class ClubApplyInController {
|
|||||||
@RequiresAuthentication
|
@RequiresAuthentication
|
||||||
public Object getCount() {
|
public Object getCount() {
|
||||||
int hasJoinCount = dao.count("sys_club", Cnd.NEW().and("isjs", "=", false)
|
int hasJoinCount = dao.count("sys_club", Cnd.NEW().and("isjs", "=", false)
|
||||||
.and("state", "=", ClubRegistAuditState.SCHOOL_PASS)
|
.and(new Static("id in (SELECT clubid from sys_club_user WHERE isNormal = true and status in (1,3,5) and userid = '%s')".formatted(ShiroUtil.getUserId()))));
|
||||||
.and("id in (SELECT clubid from sys_club_user WHERE isNormal = true and userid = '" + ShiroUtil.getPrincipalProperty("id") + "') and 1", "=", 1));
|
|
||||||
|
SqlExpressionGroup group = new SqlExpressionGroup();
|
||||||
|
group.and("state", "=", ClubRegistAuditState.SCHOOL_PASS);
|
||||||
|
group.or(new Static("id in (select clubid from sys_club_user where userid = '%s' and invite = true and status in (6, 7))"
|
||||||
|
.formatted(ShiroUtil.getPlatformUid())));
|
||||||
|
|
||||||
int noJoinCount = dao.count("sys_club", Cnd.NEW().and("isjs", "=", false)
|
int noJoinCount = dao.count("sys_club", Cnd.NEW().and("isjs", "=", false)
|
||||||
.and("state", "=", ClubRegistAuditState.SCHOOL_PASS)
|
.and(group)
|
||||||
.and("id not in (SELECT clubid from sys_club_user WHERE isNormal = true and userid = '" + ShiroUtil.getPrincipalProperty("id") + "' and status not in (2, 4) ) and 1", "=", 1));
|
.and(new Static("id not in (SELECT clubid from sys_club_user WHERE isNormal = true and userid = '%s' and status not in (2, 4, 6, 7) )".formatted(ShiroUtil.getUserId()))));
|
||||||
return new NutMap().setv("hasJoinCount", hasJoinCount).setv("noJoinCount", noJoinCount);
|
return new NutMap().setv("hasJoinCount", hasJoinCount).setv("noJoinCount", noJoinCount);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -317,8 +317,8 @@ layout("/mobile/platform.html"){
|
|||||||
label="工作部门" :rules="[{ required: true }]"></van-field>
|
label="工作部门" :rules="[{ required: true }]"></van-field>
|
||||||
<van-field v-model="formData.mobile" name="mobile" required
|
<van-field v-model="formData.mobile" name="mobile" required
|
||||||
label="电话" placeholder="请填写电话" :rules="[{ required: true }]"></van-field>
|
label="电话" placeholder="请填写电话" :rules="[{ required: true }]"></van-field>
|
||||||
<van-field v-model="formData.weChatNumber" name="weChatNumber" required
|
<van-field v-model="formData.weChatNumber" name="weChatNumber"
|
||||||
label="微信号" placeholder="请填写微信号" :rules="[{ required: true }]"></van-field>
|
label="微信号" placeholder="请填写微信号"></van-field>
|
||||||
<van-field v-model="formData.hobby" name="hobby" required
|
<van-field v-model="formData.hobby" name="hobby" required
|
||||||
placeholder="请填写爱好" label="爱好" :rules="[{ required: true }]"></van-field>
|
placeholder="请填写爱好" label="爱好" :rules="[{ required: true }]"></van-field>
|
||||||
<van-field class="more_text" v-model="formData.sickness" name="sickness" required @click="sicknessVisible = true"
|
<van-field class="more_text" v-model="formData.sickness" name="sickness" required @click="sicknessVisible = true"
|
||||||
|
|||||||
@@ -163,24 +163,33 @@ layout("/layouts/platform.html"){
|
|||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
||||||
<el-table-column align="center" header-align="center" label="操作" width="350px">
|
<el-table-column align="center" header-align="center" label="操作" width="300px">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button size="mini" type="primary" @click="openDetail(scope.row, 'view')">查看
|
<template v-if="scope.row.state > 800">
|
||||||
</el-button>
|
<el-button size="mini" type="primary" @click="openDetail(scope.row, 'view')">查看</el-button>
|
||||||
<el-button size="mini" type="primary" @click="yearAudit(scope.row)" v-if="activeName=='true' && !scope.row.yearauditstatus && scope.row.status == 5">
|
|
||||||
年审
|
|
||||||
</el-button>
|
|
||||||
<el-button type="primary" size="mini" v-if="activeName=='true'" @click="doExportApply(scope.row)">导出申请表</el-button>
|
|
||||||
<!-- <el-button size="mini" v-if="activeName=='false'" type="primary"-->
|
|
||||||
<!-- @click="openDetail(scope.row, 'join')">-->
|
|
||||||
<!-- 申请加入-->
|
|
||||||
<!-- </el-button>-->
|
|
||||||
<el-button size="mini" type="primary" @click="openApply(scope.row)" v-if="activeName=='false'">申请</el-button>
|
<el-button size="mini" type="primary" @click="openApply(scope.row)" v-if="activeName=='false'">申请</el-button>
|
||||||
<el-button size="mini" v-if="activeName=='true'&&scope.row.status==1" type="danger"
|
<el-button size="mini" v-if="activeName=='true'&&scope.row.status==1" type="danger"
|
||||||
@click="doRevocation(scope.row.id)">
|
@click="doRevocation(scope.row.id)">
|
||||||
撤销申请
|
撤销申请
|
||||||
</el-button>
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
<template v-else>
|
||||||
|
<el-button size="mini" type="primary" @click="openDetail(scope.row, 'view')">查看</el-button>
|
||||||
|
<template v-if="scope.row.status == 7">
|
||||||
|
<el-button size="mini" type="danger" @click="rollbackInvite(scope.row)">撤回</el-button>
|
||||||
|
</template>
|
||||||
|
<template v-else>
|
||||||
|
<el-button size="mini" type="primary" v-if="activeName=='false'" @click="openApply(scope.row, 'view')">同意</el-button>
|
||||||
|
<el-button size="mini" type="primary" v-if="activeName=='false'" @click="inviteNotAgree(scope.row)">不同意</el-button>
|
||||||
|
</template>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<el-button size="mini" type="primary" @click="yearAudit(scope.row)" v-if="activeName=='true' && !scope.row.yearauditstatus && scope.row.status == 5">
|
||||||
|
年审
|
||||||
|
</el-button>
|
||||||
|
<el-button type="primary" size="mini" v-if="activeName=='true'" @click="doExportApply(scope.row)">导出申请表</el-button>
|
||||||
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
||||||
</el-table>
|
</el-table>
|
||||||
@@ -276,7 +285,6 @@ layout("/layouts/platform.html"){
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</td>-->
|
</td>-->
|
||||||
<th>
|
<th>
|
||||||
<span style="color: red">*</span>
|
|
||||||
微信号
|
微信号
|
||||||
</th>
|
</th>
|
||||||
<td>
|
<td>
|
||||||
@@ -444,7 +452,7 @@ layout("/layouts/platform.html"){
|
|||||||
unitName: [{required: true, message: '必填', trigger: ['blur', 'change']}],
|
unitName: [{required: true, message: '必填', trigger: ['blur', 'change']}],
|
||||||
mobile: [{required: true, message: '必填', trigger: ['blur', 'change']}],
|
mobile: [{required: true, message: '必填', trigger: ['blur', 'change']}],
|
||||||
// QQNumber: [{required: true, message: '必填', trigger: ['blur', 'change']}],
|
// QQNumber: [{required: true, message: '必填', trigger: ['blur', 'change']}],
|
||||||
weChatNumber: [{required: true, message: '必填', trigger: ['blur', 'change']}],
|
//weChatNumber: [{required: true, message: '必填', trigger: ['blur', 'change']}],
|
||||||
sickness: [{required: true, message: '必填', trigger: ['blur', 'change']}],
|
sickness: [{required: true, message: '必填', trigger: ['blur', 'change']}],
|
||||||
familyUserName: [{required: true, message: '必填', trigger: ['blur', 'change']}],
|
familyUserName: [{required: true, message: '必填', trigger: ['blur', 'change']}],
|
||||||
familyRelation: [{required: true, message: '必填', trigger: ['blur', 'change']}],
|
familyRelation: [{required: true, message: '必填', trigger: ['blur', 'change']}],
|
||||||
@@ -471,6 +479,30 @@ layout("/layouts/platform.html"){
|
|||||||
'club-regist-info': httpVueLoader('/components/club/clubRegistInfo.vue'),
|
'club-regist-info': httpVueLoader('/components/club/clubRegistInfo.vue'),
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
async rollbackInvite(o) {
|
||||||
|
const confirm = await this.$confirm('您确定要撤回吗?', '提示', {
|
||||||
|
confirmButtonText: '确定',
|
||||||
|
cancelButtonText: '取消',
|
||||||
|
type: 'warning'
|
||||||
|
})
|
||||||
|
if (confirm === "confirm") {
|
||||||
|
const resp = await $.post('/platform/sys/club/sq/rollbackInvite', {clubId: o.id})
|
||||||
|
this.$message.success(resp.msg)
|
||||||
|
this.doSearch()
|
||||||
|
}
|
||||||
|
},
|
||||||
|
async inviteNotAgree(o) {
|
||||||
|
const confirm = await this.$confirm('您确定要不同意' + o.name + '的入会邀请吗?', '提示', {
|
||||||
|
confirmButtonText: '确定',
|
||||||
|
cancelButtonText: '取消',
|
||||||
|
type: 'warning'
|
||||||
|
})
|
||||||
|
if (confirm === "confirm") {
|
||||||
|
const resp = await $.post('/platform/sys/club/sq/inviteNotAgree', {clubId: o.id})
|
||||||
|
this.$message.success(resp.msg)
|
||||||
|
this.doSearch()
|
||||||
|
}
|
||||||
|
},
|
||||||
async yearAudit(row) {
|
async yearAudit(row) {
|
||||||
this.$confirm('您确定要提交今年的年审吗?', '提示', {
|
this.$confirm('您确定要提交今年的年审吗?', '提示', {
|
||||||
confirmButtonText: '确定',
|
confirmButtonText: '确定',
|
||||||
|
|||||||
Reference in New Issue
Block a user