|
@@ -15,7 +15,13 @@
|
|
|
<div class="data">
|
|
<div class="data">
|
|
|
<div v-for="item in DRILL_VIEW_EXECUTE" :key="item.value" class="item">
|
|
<div v-for="item in DRILL_VIEW_EXECUTE" :key="item.value" class="item">
|
|
|
<span class="label">{{ item.label }}</span>
|
|
<span class="label">{{ item.label }}</span>
|
|
|
- <a v-if="item.link" class="link" :href="drillData![item.link]">{{ drillData![item.value] }}</a>
|
|
|
|
|
|
|
+ <el-popover v-if="item.popover" placement="bottom" trigger="hover" width="224">
|
|
|
|
|
+ <template #reference>
|
|
|
|
|
+ <span style="cursor: pointer">查看签到码</span>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <QrCode :value="drillData![item.popover]" :width="200" />
|
|
|
|
|
+ </el-popover>
|
|
|
|
|
+ <a v-else-if="item.link" class="link" :href="drillData![item.link]">{{ drillData![item.value] }}</a>
|
|
|
<span v-else class="value"> {{ drillData![item.value] }}</span>
|
|
<span v-else class="value"> {{ drillData![item.value] }}</span>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -24,6 +30,9 @@
|
|
|
<div class="name">演练参与部门</div>
|
|
<div class="name">演练参与部门</div>
|
|
|
<el-button style="margin-top: 20px" type="primary" :icon="Download" @click=""> 下载签到名单 </el-button>
|
|
<el-button style="margin-top: 20px" type="primary" :icon="Download" @click=""> 下载签到名单 </el-button>
|
|
|
<BasicTable style="margin-top: 20px" :tableConfig="tableConfig" :tableData="drillData.planDetailList!">
|
|
<BasicTable style="margin-top: 20px" :tableConfig="tableConfig" :tableData="drillData.planDetailList!">
|
|
|
|
|
+ <template #drillScriptStatus="scope">
|
|
|
|
|
+ <span>{{ scope.row.drillScriptStatus === 1 ? '未会签' : '已会签' }}</span>
|
|
|
|
|
+ </template>
|
|
|
</BasicTable>
|
|
</BasicTable>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -31,6 +40,7 @@
|
|
|
|
|
|
|
|
<script setup lang="ts">
|
|
<script setup lang="ts">
|
|
|
import { onMounted, ref } from 'vue';
|
|
import { onMounted, ref } from 'vue';
|
|
|
|
|
+ import { ElPopover } from 'element-plus';
|
|
|
import BasicTable from '@/components/BasicTable.vue';
|
|
import BasicTable from '@/components/BasicTable.vue';
|
|
|
import { Download } from '@element-plus/icons-vue';
|
|
import { Download } from '@element-plus/icons-vue';
|
|
|
import { useRoute } from 'vue-router';
|
|
import { useRoute } from 'vue-router';
|
|
@@ -41,6 +51,7 @@
|
|
|
import { queryEmergencyDrillPlanDetail, queryEmergencyPlanDetail } from '@/api/emergency-drill/emergency-drill';
|
|
import { queryEmergencyDrillPlanDetail, queryEmergencyPlanDetail } from '@/api/emergency-drill/emergency-drill';
|
|
|
import { DRILL_PLAN_ACTIVITIES_TABLE_OPTIONS, DRILL_PLAN_ACTIVITIES_TABLE_COLUMNS } from '../configs/plan/table';
|
|
import { DRILL_PLAN_ACTIVITIES_TABLE_OPTIONS, DRILL_PLAN_ACTIVITIES_TABLE_COLUMNS } from '../configs/plan/table';
|
|
|
import { useEmergencyDrillHook } from '../hook';
|
|
import { useEmergencyDrillHook } from '../hook';
|
|
|
|
|
+ import QrCode from '@/components/Qrcode/src/Qrcode.vue';
|
|
|
|
|
|
|
|
const route = useRoute();
|
|
const route = useRoute();
|
|
|
const id = route.query.id;
|
|
const id = route.query.id;
|
|
@@ -56,7 +67,7 @@
|
|
|
// 解析详情数据
|
|
// 解析详情数据
|
|
|
drillData.value.drillScope = drillScopeDice.value.find(
|
|
drillData.value.drillScope = drillScopeDice.value.find(
|
|
|
(x) => x.itemCode === drillData.value!.drillScope,
|
|
(x) => x.itemCode === drillData.value!.drillScope,
|
|
|
- )?.itemValue;
|
|
|
|
|
|
|
+ )!.itemValue;
|
|
|
|
|
|
|
|
drillData.value.responsibleDeptNameList = drillData.value.responsibleDeptNameList!.replace(/^\[|\]$/g, '');
|
|
drillData.value.responsibleDeptNameList = drillData.value.responsibleDeptNameList!.replace(/^\[|\]$/g, '');
|
|
|
drillData.value.coordinateDeptNameList = drillData.value.coordinateDeptNameList
|
|
drillData.value.coordinateDeptNameList = drillData.value.coordinateDeptNameList
|
|
@@ -75,10 +86,13 @@
|
|
|
|
|
|
|
|
if (drillData.value.drillScript && drillData.value.drillScript.length > 0) {
|
|
if (drillData.value.drillScript && drillData.value.drillScript.length > 0) {
|
|
|
const scriptFile = unformatAttachment(drillData.value.drillScript);
|
|
const scriptFile = unformatAttachment(drillData.value.drillScript);
|
|
|
- console.log(scriptFile);
|
|
|
|
|
|
|
+ // console.log(scriptFile);
|
|
|
drillData.value.drillScriptName = scriptFile.fileName;
|
|
drillData.value.drillScriptName = scriptFile.fileName;
|
|
|
drillData.value.drillScriptUrl = scriptFile.fileUrl;
|
|
drillData.value.drillScriptUrl = scriptFile.fileUrl;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ drillData.value.qrCode = 'https://cn.bing.com/?id=' + id + '&type=test';
|
|
|
|
|
+
|
|
|
tableConfig.loading = false;
|
|
tableConfig.loading = false;
|
|
|
} catch (e) {
|
|
} catch (e) {
|
|
|
console.log(e);
|
|
console.log(e);
|