页面控制台警告优化

dev
WenShiJun 2024-03-30 17:42:01 +08:00
parent 6e8d9f4154
commit e7e07310bc
21 changed files with 41 additions and 130 deletions

View File

@ -126,7 +126,6 @@ const fnSubmit = debounce(
Object.keys(props.outerLayerForm).forEach((key) => {
formData.append(key, props.outerLayerForm[key]);
});
console.log(props.outerLayerForm);
formData.append("REVIEW_USER", form.value.REVIEW_USER);
formData.append("DEPARTMENT", form.value.DEPARTMENT_NAME);
formData.append("DUTIES", form.value.DUTIES);

View File

@ -146,7 +146,6 @@ const data = reactive({
});
const fnGetData = async () => {
const resData = await getSafetyDrivingLogView({ WAYBILLREGISTRATION_ID });
console.log(resData, "11111111111");
data.info = resData.pd;
data.commitmentList = resData.commitmentList;
};

View File

@ -4,14 +4,6 @@
<el-row :gutter="20">
<el-col :span="24">
<el-divider content-position="left">基本信息</el-divider>
<div class="buttons-container">
<el-button type="primary" @click="fnDownloadTemplate"
>下载模板</el-button
>
<el-button type="primary" @click="fnUploadQuestions"
>上传</el-button
>
</div>
</el-col>
<el-col :span="12">
<el-form-item label="自编号" prop="NUM">
@ -278,7 +270,7 @@ import {
setFreightTrailerEdit,
} from "@/request/enterprise_management.js";
import { setUploadImg } from "@/request/api.js";
import { ElMessage, ElMessageBox } from "element-plus";
import { ElMessage } from "element-plus";
import { useRoute, useRouter } from "vue-router";
import useFormValidate from "@/assets/js/useFormValidate.js";
import { addingPrefixToFile } from "@/assets/js/utils.js";
@ -377,16 +369,6 @@ const fnGetData = async () => {
};
fnGetData();
const fnDownloadTemplate = async () => {
await ElMessageBox.confirm("确定要下载excel模板吗", {
type: "warning",
});
window.open(
import.meta.env[import.meta.env.DEV ? "VITE_PROXY" : "VITE_BASE_URL"] +
"freightTrailer/downExcel"
);
};
const fnSubmit = debounce(
1000,
async () => {

View File

@ -125,7 +125,7 @@
<div class="mt-10 tc">
<el-button v-print="'#printContainer'" type="primary"></el-button>
</div>
<div v-html="PRINT_STYLE" />
<!-- <div v-html="PRINT_STYLE" />-->
</layout-card>
</template>

View File

@ -686,7 +686,6 @@ const fnChangeIdCard = () => {
data.form.SEX = sex;
data.form.DATE_OF_BIRTH = date;
data.form.USERNAME = data.form.USER_ID_CARD;
console.log(data.form.USERNAME);
};
const fnGetLevels = async () => {
const { value: nationList } = await layoutFnGetNation();

View File

@ -112,12 +112,7 @@
</el-descriptions>
</div>
<div class="tc mt-10">
<el-button
type="primary"
@click="router.back"
>
返回
</el-button>
<el-button type="primary" @click="router.back"> </el-button>
</div>
</layout-card>
</template>
@ -145,7 +140,6 @@ const fnGetData = async () => {
}
});
data.certificateList = resData.certificateList;
console.log(data.certificateList);
};
fnGetData();
</script>

View File

@ -350,10 +350,10 @@ const fnSubmit = debounce(
}
if (form.value.APPLY_TYPE === "1" && form.value.REVIEW_RESULT === "1")
form.value.INCUMBENCY = "bd4d802e94354230b1bb19cfabd7f810"; // bd4d802e94354230b1bb19cfabd7f810
form.value.INCUMBENCY = "bd4d802e94354230b1bb19cfabd7f810";
// bd4d802e94354230b1bb19cfabd7f810
else if (form.value.APPLY_TYPE === "3" && form.value.REVIEW_RESULT === "1")
form.value.INCUMBENCY = "4dd28e91b104410b85c25a792c424172"; // 4dd28e91b104410b85c25a792c424172
// console.log(form.value);
await setPractitionerReview({ ...form.value });
ElMessage.success("操作成功");
fnClose();

View File

@ -209,7 +209,6 @@ const { list, pagination, searchForm, fnGetData, fnResetPagination, tableRef } =
},
defaultSearchForm: { STATE },
});
console.log(searchForm, "asdsadsadas");
const fnGetDataTransfer = () => {
fnGetData({
STARTTIME: searchForm.value.dates?.[0],

View File

@ -161,7 +161,7 @@
:value="item.NUM"
/>
</el-select>
<!-- <el-input
<!-- <el-input
v-model.number="form.REMINDER_DAYS"
maxlength="50"
show-word-limit
@ -307,7 +307,6 @@ const getRemiderDate = (val) => {
if (form.value.DUE_DATE) {
//
const reminderDateStr = subtractDaysFromDate(form.value.DUE_DATE, val);
console.log(reminderDateStr);
const reminderDate = new Date(reminderDateStr);
const today = new Date();

View File

@ -47,10 +47,16 @@
<el-descriptions-item label-class-name="width_200" label="到期日期">
{{ info.DUE_DATE }}
</el-descriptions-item>
<el-descriptions-item label-class-name="width_200" label="北斗净费(元)">
<el-descriptions-item
label-class-name="width_200"
label="北斗净费(元)"
>
{{ info.ACTUAL_COLLECTION }}
</el-descriptions-item>
<el-descriptions-item label-class-name="width_200" label="北斗全费(元)">
<el-descriptions-item
label-class-name="width_200"
label="北斗全费(元)"
>
{{ info.ALL_FEES }}
</el-descriptions-item>
<el-descriptions-item label-class-name="width_200" label="提醒天数">
@ -142,7 +148,6 @@ const fnGetData = async () => {
if (!BEIDOU_ID) return;
const resData = await getBeidouView(BEIDOU_ID);
info.value = resData.pd;
console.log("数据",info.value);
info.value.BEIDOUINFO = [];
fnBusChange(resData.pd.VEHICLE);
info.value.BEIDOUINFO = addingPrefixToFile(resData.beidouinfoImgs);

View File

@ -70,7 +70,7 @@
</el-col>
<el-col :span="4">
<el-form-item label-width="10px">
<el-button type="primary" native-type="submit">搜索</el-button>
<el-button link native-type="submit">搜索</el-button>
<el-button native-type="reset" @click="fnResetPaginationTransfer">
重置
</el-button>
@ -78,7 +78,7 @@
</el-col>
<el-col :span="2">
<el-form-item label-width="10px" class="end">
<el-button @click="fnExport"></el-button>
<el-button link @click="fnExport"></el-button>
</el-form-item>
</el-col>
</el-row>
@ -138,6 +138,7 @@
<template #default="{ row }">
<el-button
type="primary"
text
link
@click="
router.push({
@ -149,6 +150,7 @@
>
<el-button
type="primary"
text
link
@click="
router.push({
@ -161,6 +163,7 @@
<el-button
v-if="expandedRows[row.INSPECTANNUALLY_ID]"
type="danger"
text
link
@click="fnDelete(row.INSPECTANNUALLY_ID)"
>删除
@ -171,6 +174,7 @@
row.REMINDER_STATUS === '0'
"
type="primary"
text
link
@click="fnStatusChange(row.INSPECTANNUALLY_ID, '1')"
>开启</el-button
@ -181,12 +185,13 @@
row.REMINDER_STATUS === '1'
"
type="primary"
text
link
@click="fnStatusChange(row.INSPECTANNUALLY_ID, '0')"
>关闭
</el-button>
<el-button
type="text"
type="primary"
@click="toggleExpand(row.INSPECTANNUALLY_ID)"
>
{{ expandedRows[row.INSPECTANNUALLY_ID] ? "收起" : "更多" }}
@ -301,10 +306,8 @@ const fnStatusChange = debounce(
);
const buttonJurisdiction = await useButtonJurisdiction("hidden");
const fnExport = async () => {
const selectionData = tableRef.value.getSelectionRows();
console.log("selectionData",selectionData);
if (selectionData.length === 0) {
ElMessage.warning("请选择需要导出至excel报表的记录信息");
return;
@ -321,8 +324,6 @@ const fnExport = async () => {
"&DATA_IDS=" +
DATA_IDS;
};
</script>
<style scoped></style>

View File

@ -106,11 +106,6 @@
</template>
</layout-table>
</layout-card>
<edit
v-model:visible="data.analysisDialog.visible"
:info="data.analysisDialog.info"
@get-data="fnResetPagination"
/>
</div>
</template>
@ -119,7 +114,6 @@ import { serialNumber } from "@/assets/js/utils";
import useButtonJurisdiction from "@/assets/js/useButtonJurisdiction.js";
import useListData from "@/assets/js/useListData.js";
import { useRouter } from "vue-router";
import { reactive } from "vue";
import {
getEnterpriseSafetyProductionList,
setEnterpriseSafetyProductDelete,
@ -130,12 +124,6 @@ import { ElMessage, ElMessageBox } from "element-plus";
const router = useRouter();
const { list, pagination, searchForm, fnGetData, fnResetPagination } =
useListData(getEnterpriseSafetyProductionList);
const data = reactive({
analysisDialog: {
visible: false,
info: {},
},
});
const fnDelete = debounce(
1000,

View File

@ -91,11 +91,6 @@
</template>
</layout-table>
</layout-card>
<edit
v-model:visible="data.analysisDialog.visible"
:info="data.analysisDialog.info"
@get-data="fnResetPagination"
/>
</div>
</template>
@ -104,7 +99,6 @@ import { serialNumber } from "@/assets/js/utils";
import useButtonJurisdiction from "@/assets/js/useButtonJurisdiction.js";
import useListData from "@/assets/js/useListData.js";
import { useRouter } from "vue-router";
import { reactive } from "vue";
import {
getEntrenchThingGrantList,
setEntrenchThingGrantDelete,
@ -115,12 +109,6 @@ import { ElMessage, ElMessageBox } from "element-plus";
const router = useRouter();
const { list, pagination, searchForm, fnGetData, fnResetPagination } =
useListData(getEntrenchThingGrantList);
const data = reactive({
analysisDialog: {
visible: false,
info: {},
},
});
const fnDelete = debounce(
1000,

View File

@ -22,11 +22,7 @@
</el-descriptions-item>
</el-descriptions>
<el-divider content-position="left">保养记录</el-divider>
<layout-table
:data="list"
:show-pagination="false"
@submit.prevent="fnResetPagination"
>
<layout-table :data="list" :show-pagination="false">
<el-table-column type="index" label="序号" align="center" />
<el-table-column prop="MAINTAIN_DATE" label="保养时间" />
<el-table-column prop="MAINTAIN_CONDITION" label="保养情况" />

View File

@ -147,11 +147,6 @@
</template>
</layout-table>
</layout-card>
<edit
v-model:visible="data.analysisDialog.visible"
:info="data.analysisDialog.info"
@get-data="fnResetPagination"
/>
</div>
</template>
@ -160,7 +155,6 @@ import { serialNumber } from "@/assets/js/utils";
import useButtonJurisdiction from "@/assets/js/useButtonJurisdiction.js";
import useListData from "@/assets/js/useListData.js";
import { useRouter } from "vue-router";
import { reactive } from "vue";
import {
getFirefightingEquipmentFacilityList,
setFirefightingEquipmentFacilityDelete,
@ -171,12 +165,6 @@ import { ElMessage, ElMessageBox } from "element-plus";
const router = useRouter();
const { list, pagination, searchForm, fnGetData, fnResetPagination } =
useListData(getFirefightingEquipmentFacilityList);
const data = reactive({
analysisDialog: {
visible: false,
info: {},
},
});
const fnDelete = debounce(
1000,

View File

@ -141,11 +141,6 @@
</template>
</layout-table>
</layout-card>
<edit
v-model:visible="data.analysisDialog.visible"
:info="data.analysisDialog.info"
@get-data="fnResetPagination"
/>
</div>
</template>
@ -154,7 +149,6 @@ import { serialNumber } from "@/assets/js/utils";
import useButtonJurisdiction from "@/assets/js/useButtonJurisdiction.js";
import useListData from "@/assets/js/useListData.js";
import { useRouter } from "vue-router";
import { reactive } from "vue";
import {
getProductionEquipmentFacilityList,
setProductionEquipmentFacilityDelete,
@ -165,12 +159,6 @@ import { ElMessage, ElMessageBox } from "element-plus";
const router = useRouter();
const { list, pagination, searchForm, fnGetData, fnResetPagination } =
useListData(getProductionEquipmentFacilityList);
const data = reactive({
analysisDialog: {
visible: false,
info: {},
},
});
const fnDelete = debounce(
1000,

View File

@ -40,10 +40,7 @@
</el-descriptions-item>
</el-descriptions>
<el-divider content-position="left">保养记录</el-divider>
<layout-table :data="list"
:show-pagination="false"
@submit.prevent="fnResetPagination"
>
<layout-table :data="list" :show-pagination="false">
<el-table-column type="index" label="序号" align="center" />
<el-table-column prop="MAINTAIN_DATE" label="保养时间" />
<el-table-column prop="MAINTAIN_CONDITION" label="保养情况" />
@ -115,15 +112,16 @@ const getData = async () => {
PRODUCTIONFACILITY_ID,
});
info.value = resData.pd;
info.value.EQUIPMENT_FACILITY = addingPrefixToFile(
resData.equipmentFacility
);
info.value.EQUIPMENT_FACILITY = addingPrefixToFile(resData.equipmentFacility);
};
getData();
const { list, fnResetPagination } = useListData(getMaintainFindProductionEquipmentFacilityId, {
const { list, fnResetPagination } = useListData(
getMaintainFindProductionEquipmentFacilityId,
{
otherParams: { PRODUCTIONFACILITY_ID },
usePagination: false,
});
}
);
const fnDelete = debounce(
1000,
@ -131,7 +129,7 @@ const fnDelete = debounce(
await ElMessageBox.confirm("确定要删除吗?", { type: "warning" });
await setMaintainDelete({ MAINTAIN_ID });
ElMessage.success("删除成功");
fnResetPagination()
fnResetPagination();
},
{ atBegin: true }
);

View File

@ -123,11 +123,6 @@
</template>
</layout-table>
</layout-card>
<edit
v-model:visible="data.analysisDialog.visible"
:info="data.analysisDialog.info"
@get-data="fnResetPagination"
/>
</div>
</template>
@ -136,7 +131,6 @@ import { serialNumber } from "@/assets/js/utils";
import useButtonJurisdiction from "@/assets/js/useButtonJurisdiction.js";
import useListData from "@/assets/js/useListData.js";
import { useRouter } from "vue-router";
import { reactive } from "vue";
import {
getReportedIncidentDisposeList,
setReportedIncidentDisposeDelete,
@ -148,12 +142,6 @@ import { DISPOSE_STATUS_LIST } from "@/assets/js/constant.js";
const router = useRouter();
const { list, pagination, searchForm, fnGetData, fnResetPagination } =
useListData(getReportedIncidentDisposeList);
const data = reactive({
analysisDialog: {
visible: false,
info: {},
},
});
const fnDelete = debounce(
1000,

View File

@ -152,7 +152,6 @@ onMounted(async () => {
const resData = await infoViolationRegistration({
REGISTRATION_ID: registrationId.value,
});
console.log(resData, "11111111111111");
});
const router = useRouter();

View File

@ -155,7 +155,9 @@ const relatedClassificationList = ref(null);
onMounted(async () => {
const data = await layoutFnGetSIGNEDSTATUSClassification();
if (data && data.value && data.value.zTreeNodes) {
relatedClassificationList.value = JSON.parse(data.value.zTreeNodes);
}
});
</script>

View File

@ -131,7 +131,6 @@ const detailItems = ref({
const fnGetData = async () => {
const response = await getSafetyMeetingView({ SAFETY_MEETING_ID });
console.log(response, "1111111111111111111111111");
detailItems.value = response.pd;
};
fnGetData();