|
@@ -55,9 +55,9 @@
|
|
|
<vxe-column field="joinCount" title="报名人数" width="80" />
|
|
<vxe-column field="joinCount" title="报名人数" width="80" />
|
|
|
<vxe-column field="signCount" title="签到人数" width="80" />
|
|
<vxe-column field="signCount" title="签到人数" width="80" />
|
|
|
<vxe-column field="certCount" title="领取证书人数" width="80" />
|
|
<vxe-column field="certCount" title="领取证书人数" width="80" />
|
|
|
- <vxe-column title="创建人" align="center" field="createByName" min-width="100" :formatter="colNoData" />
|
|
|
|
|
|
|
+ <vxe-column title="创建人" align="center" field="createByName" width="80" :formatter="colNoData" />
|
|
|
<vxe-column title="创建时间" align="center" field="createTime" min-width="100" :formatter="colNoData" />
|
|
<vxe-column title="创建时间" align="center" field="createTime" min-width="100" :formatter="colNoData" />
|
|
|
- <vxe-column field="certFlag" title="会议状态">
|
|
|
|
|
|
|
+ <vxe-column field="certFlag" title="会议状态" width="80">
|
|
|
<template #default="{ row }">
|
|
<template #default="{ row }">
|
|
|
<DictTag :options="dm_training_status" :value="row?.trainingStatus"></DictTag>
|
|
<DictTag :options="dm_training_status" :value="row?.trainingStatus"></DictTag>
|
|
|
</template>
|
|
</template>
|
|
@@ -72,7 +72,7 @@
|
|
|
<span></span>
|
|
<span></span>
|
|
|
<el-button v-if="!['3'].includes(row?.trainingStatus)" style="color: #0079fe;" text>分享</el-button>
|
|
<el-button v-if="!['3'].includes(row?.trainingStatus)" style="color: #0079fe;" text>分享</el-button>
|
|
|
<span></span>
|
|
<span></span>
|
|
|
- <el-button v-if="['1', '0'].includes(row?.trainingStatus)" style="color: #0079fe;" text>签到二维码</el-button>
|
|
|
|
|
|
|
+ <el-button v-if="['1', '0'].includes(row?.trainingStatus)" @click="trainingSignIn(row)" style="color: #0079fe;" text>签到二维码</el-button>
|
|
|
<span></span>
|
|
<span></span>
|
|
|
<el-button style="color: #0079fe;" text>详情</el-button>
|
|
<el-button style="color: #0079fe;" text>详情</el-button>
|
|
|
<span></span>
|
|
<span></span>
|
|
@@ -85,22 +85,26 @@
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ <SignInCode v-if="showSignIn" v-model:show="showSignIn" :info="rowInfo"></SignInCode>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script setup name="meeting" lang="ts">
|
|
<script setup name="meeting" lang="ts">
|
|
|
import { colNoData, colNoUnm } from '@/utils/noData';
|
|
import { colNoData, colNoUnm } from '@/utils/noData';
|
|
|
import { searchTabs } from '@/views/models';
|
|
import { searchTabs } from '@/views/models';
|
|
|
import { trainingList, queryTrainingCount, trainingDelete, publishTraining, unpublishTraining } from '@/api/training';
|
|
import { trainingList, queryTrainingCount, trainingDelete, publishTraining, unpublishTraining } from '@/api/training';
|
|
|
|
|
+import { SignInCode } from '../models';
|
|
|
|
|
|
|
|
const router = useRouter();
|
|
const router = useRouter();
|
|
|
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
|
|
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
|
|
|
const { dm_training_join_type, yes_no, dm_training_cert, dm_training_status } = toRefs<any>(proxy?.useDict('dm_training_join_type', 'yes_no', 'dm_training_cert', 'dm_training_status'));
|
|
const { dm_training_join_type, yes_no, dm_training_cert, dm_training_status } = toRefs<any>(proxy?.useDict('dm_training_join_type', 'yes_no', 'dm_training_cert', 'dm_training_status'));
|
|
|
const loading = ref(true);
|
|
const loading = ref(true);
|
|
|
const showSearch = ref(true);
|
|
const showSearch = ref(true);
|
|
|
|
|
+const showSignIn = 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[]>([]);
|
|
|
const initFormData = {};
|
|
const initFormData = {};
|
|
|
|
|
+const rowInfo = ref<any>({});
|
|
|
const data = reactive<any>({
|
|
const data = reactive<any>({
|
|
|
form: { ...initFormData },
|
|
form: { ...initFormData },
|
|
|
queryParams: {
|
|
queryParams: {
|
|
@@ -185,6 +189,11 @@ const getMeetingCount = async () => {
|
|
|
tabs.value = res.data;
|
|
tabs.value = res.data;
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
|
|
+// 打开签到二维码
|
|
|
|
|
+const trainingSignIn = (row: any) => {
|
|
|
|
|
+ rowInfo.value = { ...row };
|
|
|
|
|
+ showSignIn.value = true;
|
|
|
|
|
+};
|
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
|
getMeetingCount();
|
|
getMeetingCount();
|
|
|
getList();
|
|
getList();
|