|
@@ -56,12 +56,15 @@
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
</vxe-column>
|
|
</vxe-column>
|
|
|
- <vxe-column field="signupsTime" min-width="350" title="报名时间" class-name="f-w-600">
|
|
|
|
|
|
|
+ <vxe-column field="signupsTime" min-width="350" title="报名时间" class-name="f-w-600 p-rtv">
|
|
|
<template #default="{ row }">
|
|
<template #default="{ row }">
|
|
|
<div class="d-flex a-c">
|
|
<div class="d-flex a-c">
|
|
|
{{ row.signupStart.slice(0, -3) }}~{{ row.signupEnd.slice(0, -3) }}
|
|
{{ row.signupStart.slice(0, -3) }}~{{ row.signupEnd.slice(0, -3) }}
|
|
|
<DictTag :options="lm_training_join_status" :value="row?.joinStatus"></DictTag>
|
|
<DictTag :options="lm_training_join_status" :value="row?.joinStatus"></DictTag>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ <div v-if="row.joinStatus == '1'" class="pos-tag">
|
|
|
|
|
+ <el-button @click="openEnrollRegistration(row)" type="primary" size="small" text>报名二维码{{ '>' }}</el-button>
|
|
|
|
|
+ </div>
|
|
|
</template>
|
|
</template>
|
|
|
</vxe-column>
|
|
</vxe-column>
|
|
|
<vxe-column field="joinType" title="会议方式" width="80">
|
|
<vxe-column field="joinType" title="会议方式" width="80">
|
|
@@ -125,19 +128,21 @@
|
|
|
</div>
|
|
</div>
|
|
|
<SignInCode v-if="showSignIn" v-model:show="showSignIn" :info="rowInfo" :dict="{ lm_training_join_type }"></SignInCode>
|
|
<SignInCode v-if="showSignIn" v-model:show="showSignIn" :info="rowInfo" :dict="{ lm_training_join_type }"></SignInCode>
|
|
|
<TemporaryRegistration v-if="showTemporary" v-model:show="showTemporary" :info="temporaryRegistration" :dict="{ lm_training_join_type }"></TemporaryRegistration>
|
|
<TemporaryRegistration v-if="showTemporary" v-model:show="showTemporary" :info="temporaryRegistration" :dict="{ lm_training_join_type }"></TemporaryRegistration>
|
|
|
|
|
+ <EnrollRegistration v-if="showEnroll" v-model:show="showEnroll" :info="rowInfo" :dict="{ lm_training_join_type }"></EnrollRegistration>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script setup name="meeting" lang="ts">
|
|
<script setup name="meeting" lang="ts">
|
|
|
import { colNoData } from '@/utils/noData';
|
|
import { colNoData } from '@/utils/noData';
|
|
|
import { searchTabs } from '@/views/models';
|
|
import { searchTabs } from '@/views/models';
|
|
|
import { trainingList, queryTrainingCount, trainingDelete, publishTraining, unpublishTraining, offOrNoTemp } from '@/api/training';
|
|
import { trainingList, queryTrainingCount, trainingDelete, publishTraining, unpublishTraining, offOrNoTemp } from '@/api/training';
|
|
|
-import { SignInCode, TemporaryRegistration } from '../models';
|
|
|
|
|
|
|
+import { SignInCode, TemporaryRegistration, EnrollRegistration } from '../models';
|
|
|
const router = useRouter();
|
|
const router = useRouter();
|
|
|
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
|
|
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
|
|
|
const { lm_training_join_type, yes_no, lm_training_join_status, lm_training_status } = toRefs<any>(proxy?.useDict('lm_training_join_type', 'yes_no', 'lm_training_join_status', 'lm_training_status'));
|
|
const { lm_training_join_type, yes_no, lm_training_join_status, lm_training_status } = toRefs<any>(proxy?.useDict('lm_training_join_type', 'yes_no', 'lm_training_join_status', 'lm_training_status'));
|
|
|
const loading = ref(true);
|
|
const loading = ref(true);
|
|
|
const showSearch = ref(true);
|
|
const showSearch = ref(true);
|
|
|
const showSignIn = ref(false);
|
|
const showSignIn = ref(false);
|
|
|
|
|
+const showEnroll = ref(false);
|
|
|
const total = ref(0);
|
|
const total = ref(0);
|
|
|
const queryFormRef = ref<ElFormInstance>();
|
|
const queryFormRef = ref<ElFormInstance>();
|
|
|
const dataList = ref<any[]>([]);
|
|
const dataList = ref<any[]>([]);
|
|
@@ -185,7 +190,10 @@ const offOrNoTemps = async (row) => {
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
|
+const openEnrollRegistration = (row) => {
|
|
|
|
|
+ rowInfo.value = { ...row };
|
|
|
|
|
+ showEnroll.value = true;
|
|
|
|
|
+};
|
|
|
const confirmEvent = (row) => {
|
|
const confirmEvent = (row) => {
|
|
|
if (resolvePromise) {
|
|
if (resolvePromise) {
|
|
|
loading1.value = false;
|
|
loading1.value = false;
|
|
@@ -295,4 +303,11 @@ onMounted(() => {
|
|
|
justify-content: flex-start;
|
|
justify-content: flex-start;
|
|
|
/* 左对齐 */
|
|
/* 左对齐 */
|
|
|
}
|
|
}
|
|
|
|
|
+/* 报名二维码样式 */
|
|
|
|
|
+.pos-tag {
|
|
|
|
|
+ position: absolute;
|
|
|
|
|
+ right: 0;
|
|
|
|
|
+ top: 0;
|
|
|
|
|
+ cursor: pointer;
|
|
|
|
|
+}
|
|
|
</style>
|
|
</style>
|