|
@@ -266,7 +266,7 @@
|
|
|
<!-- 响应记录 -->
|
|
|
<h3>响应记录</h3>
|
|
|
<el-card shadow="hover">
|
|
|
- <el-table v-loading="loading" @selection-change="handleSelectionChangeResponse">
|
|
|
+ <el-table v-loading="loading4" @selection-change="handleSelectionChangeResponse">
|
|
|
<el-table-column type="selection" width="50" align="center" />
|
|
|
<el-table-column v-if="columns1[0].visible" key="eventId" label="事件编号" align="center" prop="eventId" />
|
|
|
<el-table-column
|
|
@@ -521,8 +521,8 @@ import type { TabsPaneContext } from 'element-plus';
|
|
|
import { ArrowLeft } from '@element-plus/icons-vue';
|
|
|
import { useRouter } from 'vue-router';
|
|
|
import { reactive } from 'vue';
|
|
|
-import { getDrillList, getPlanDetail, getTrainingList } from '@/api/riskPrevention/planManage';
|
|
|
-
|
|
|
+import { getDrillList, getPlanDetail, getResponseDetail, getTrainingList } from "@/api/riskPrevention/planManage";
|
|
|
+import drill from './drill.vue';
|
|
|
const router = useRouter();
|
|
|
|
|
|
const goBack = () => {
|
|
@@ -572,7 +572,9 @@ const route = useRoute();
|
|
|
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
|
|
|
const { sys_normal_disable, sys_user_sex } = toRefs<any>(proxy?.useDict('sys_normal_disable', 'sys_user_sex'));
|
|
|
const userList = ref<UserVO[]>();
|
|
|
+const loading4 = ref(false);
|
|
|
const loading3 = ref(false);
|
|
|
+const total4 = ref(0);
|
|
|
const total3 = ref(0);
|
|
|
const planList = ref<PlanVO[]>();
|
|
|
const drillList = ref<DrillVO[]>();
|
|
@@ -668,7 +670,7 @@ const initFormData: UserForm = {
|
|
|
};
|
|
|
|
|
|
const initData: PageData<UserForm, UserQuery> = {
|
|
|
- form: { ...initFormData },
|
|
|
+ form2: { ...initFormData },
|
|
|
queryParams: {
|
|
|
pageNum: 1,
|
|
|
pageSize: 10,
|
|
@@ -737,6 +739,11 @@ const queryParams3 = reactive({
|
|
|
pageSize: 10,
|
|
|
planNum: ''
|
|
|
});
|
|
|
+const responseParams = reactive({
|
|
|
+ page: 1,
|
|
|
+ pageSize: 10,
|
|
|
+ planNum: ''
|
|
|
+});
|
|
|
|
|
|
const form = reactive<DrillVO>({
|
|
|
drillId: '',
|
|
@@ -804,12 +811,23 @@ const getList3 = async () => {
|
|
|
total3.value = res.total;
|
|
|
};
|
|
|
/** 查询响应列表 */
|
|
|
-const getListResponse = async () => {
|
|
|
- loading.value = true;
|
|
|
+/**const getListResponse = async () => {
|
|
|
+ loading4.value = true;
|
|
|
const res = await api.listResponse(proxy?.addDateRange(queryParams.value, dateRange.value));
|
|
|
- loading.value = false;
|
|
|
+ loading4.value = false;
|
|
|
responseList.value = res.rows;
|
|
|
total.value = res.total;
|
|
|
+};*/
|
|
|
+const getListResponse = async () => {
|
|
|
+ loading4.value = true;
|
|
|
+ const res = await getResponseDetail(responseParams);
|
|
|
+ loading4.value = false;
|
|
|
+ // res.data.forEach(item => {
|
|
|
+ // item.drillPicture = item.drillPicture[0].file_name_desc
|
|
|
+ // item.drillVideo = item.drillVideo[0].file_name_desc
|
|
|
+ // })
|
|
|
+ responseList.value = res.data;
|
|
|
+ total4.value = res.total;
|
|
|
};
|
|
|
/** 删除按钮操作 */
|
|
|
const handleDelete = async (row?: UserVO) => {
|