代码格式化

dev
wangpeng 2024-06-14 13:01:08 +08:00
parent 3420e2b965
commit b622567973
23 changed files with 76 additions and 68 deletions

View File

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

View File

@ -410,9 +410,7 @@ const rules = {
PRACTITIONER: [
{ required: true, message: "请选择从业人员", trigger: "change" },
],
DEPARTMENT_ID: [
{ required: true, message: "请选择部门", trigger: "change"}
]
DEPARTMENT_ID: [{ required: true, message: "请选择部门", trigger: "change" }],
};
const data = reactive({
@ -504,7 +502,9 @@ const changeCONFIRMINGPERSON = (contactPersonId) => {
const fnGetUnitsList = async () => {
const resData = await getUserPersonTypeListAll({});
data.userTypeList = resData.userList;
data.userTypeList = data.userTypeList.filter(( item ) => item.APPLY_STATUS === '1')
data.userTypeList = data.userTypeList.filter(
(item) => item.APPLY_STATUS === "1"
);
};
fnGetUnitsList();

View File

@ -177,7 +177,8 @@
<layout-import-file
v-model:visible="data.importDialogVisible"
template-url="/template/truckExcelTemplate.xls"
@submit="fnSubmitImport"></layout-import-file>
@submit="fnSubmitImport"
></layout-import-file>
</div>
</template>

View File

@ -143,7 +143,11 @@
{{ data.drivingLicence.ID_ORGAN }}
</el-descriptions-item>
<el-descriptions-item label="有效期">
{{ data.drivingLicence.ID_VALIDITY_START + "至" + data.drivingLicence.ID_VALIDITY_END }}
{{
data.drivingLicence.ID_VALIDITY_START +
"至" +
data.drivingLicence.ID_VALIDITY_END
}}
</el-descriptions-item>
</el-descriptions>
<el-divider content-position="left">道路运输从业资格证</el-divider>
@ -168,7 +172,11 @@
{{ data.qualificationCertificate.ID_ORGAN }}
</el-descriptions-item>
<el-descriptions-item label="有效期">
{{ data.qualificationCertificate.ID_VALIDITY_START + "至" + data.qualificationCertificate.ID_VALIDITY_END }}
{{
data.qualificationCertificate.ID_VALIDITY_START +
"至" +
data.qualificationCertificate.ID_VALIDITY_END
}}
</el-descriptions-item>
</el-descriptions>
<!-- <div v-for="(item, index) in data.certificateList" :key="index">
@ -291,7 +299,7 @@ const data = reactive({
dispose: "",
idCard: [],
drivingLicence: [],
qualificationCertificate: []
qualificationCertificate: [],
});
const fnGetData = async () => {
if (!USER_ID) return;
@ -322,15 +330,14 @@ const fnGetData = async () => {
}
});
data.certificateList.forEach((item) => {
if(item.CERTIFICATE_CATEGORY === '1') {
if (item.CERTIFICATE_CATEGORY === "1") {
data.idCard = item;
}else if(item.CERTIFICATE_CATEGORY === '2') {
data.drivingLicence = item
}else if(item.CERTIFICATE_CATEGORY === '3') {
data.qualificationCertificate = item
} else if (item.CERTIFICATE_CATEGORY === "2") {
data.drivingLicence = item;
} else if (item.CERTIFICATE_CATEGORY === "3") {
data.qualificationCertificate = item;
}
})
console.log("1111",data.certificateList);
});
if (
data.statusInfo.APPLY_TYPE === "1" ||
data.statusInfo.APPLY_TYPE === "3"

View File

@ -411,8 +411,8 @@ const form = ref({
});
const info = ref({});
const fnEditVehicleModel = async () => {
form.value.NOW_OWNERS = '';
form.value.NOW_OWNERS_NUMBER = '';
form.value.NOW_OWNERS = "";
form.value.NOW_OWNERS_NUMBER = "";
form.value.VEHICLE_PLATE_NUMBER = null;
form.value.VEHICLE = {};
if (form.value.ASSIGNED_VEHICLE_MODEL === "运输车辆") {
@ -424,8 +424,8 @@ const fnEditVehicleModel = async () => {
}
};
const fnGetVehicleInfo = async () => {
form.value.NOW_OWNERS = '';
form.value.NOW_OWNERS_NUMBER = '';
form.value.NOW_OWNERS = "";
form.value.NOW_OWNERS_NUMBER = "";
if (form.value.ASSIGNED_VEHICLE_MODEL === "运输车辆") {
for (let i = 0; i < form.value.OPERATIONVEHICLELIST.length; i++) {
if (

View File

@ -556,7 +556,7 @@ const data = reactive({
const fnGetLevels = async () => {
const { value: degreeOfEducationList } = await layoutFnGetDegreeOfEducation();
data.degreeOfEducationList = degreeOfEducationList;
}
};
fnGetLevels();
onMounted(() => {

View File

@ -570,7 +570,7 @@ onMounted(() => {
const fnGetLevels = async () => {
const { value: degreeOfEducationList } = await layoutFnGetDegreeOfEducation();
data.degreeOfEducationList = degreeOfEducationList;
}
};
fnGetLevels();

View File

@ -320,7 +320,7 @@ const getRemiderDate = (val) => {
const getUserList = async () => {
const resData = await getUserPersonTypeListAll({});
data.userList = resData.userList;
data.userList = data.userList.filter(( item ) => item.APPLY_STATUS === '1')
data.userList = data.userList.filter((item) => item.APPLY_STATUS === "1");
};
getUserList();
const getVehicle = async (event) => {

View File

@ -117,9 +117,7 @@ import {
addViolationRegistrationView,
editViolationRegistration,
} from "@/request/violation_registration.js";
import {
getAllVehicleList
} from "@/request/enterprise_management.js"
import { getAllVehicleList } from "@/request/enterprise_management.js";
import { getPractitionerSelectList } from "@/request/user_practitioner.js";
const router = useRouter();
@ -159,9 +157,8 @@ onMounted(async () => {
const fnGetAllVehicle = async () => {
const resData = await getAllVehicleList();
data.vehicleList = resData.varList
console.log(data.vehicleList);
}
data.vehicleList = resData.varList;
};
fnGetAllVehicle();
const fnGetUnitsList = async () => {
@ -184,7 +181,7 @@ const data = reactive({
PENALTYREGISTRANT: "",
fileList: [],
},
vehicleList: []
vehicleList: [],
});
const fnSubmit = async () => {

View File

@ -100,7 +100,9 @@ const { visible, form } = useVModels(props, emits);
const rules = {
file: [{ required: true, message: "请上传附件", trigger: "change" }],
ACTIVITIESNAME: [{ required: true, message: "请输入名称", trigger: "blur" }],
EXPIRYDATE: [{ required: true, message: "请选择到期日期", trigger: "change" }],
EXPIRYDATE: [
{ required: true, message: "请选择到期日期", trigger: "change" },
],
CYCLE: [{ required: true, message: "请选择周期", trigger: "change" }],
};

View File

@ -174,9 +174,7 @@ const rules = {
trigger: "blur",
},
],
PERSON: [
{ required: true, message: "请选择人员", trigger: "change" },
],
PERSON: [{ required: true, message: "请选择人员", trigger: "change" }],
};
const router = useRouter();

View File

@ -39,7 +39,10 @@
detailItems.realPersonNum
}}
</el-descriptions-item>
<el-descriptions-item label="会议附件" v-if="detailItems.CONFIRM_MESSAGE_SIGN_ROUTE">
<el-descriptions-item
v-if="detailItems.CONFIRM_MESSAGE_SIGN_ROUTE"
label="会议附件"
>
<a
:href="VITE_FILE_URL + detailItems.CONFIRM_MESSAGE_SIGN_ROUTE"
target="_blank"
@ -47,7 +50,10 @@
>查看会议附件</a
>
</el-descriptions-item>
<el-descriptions-item label="会议视频" v-if="detailItems.VIDEO_SIGN_ROUTE">
<el-descriptions-item
v-if="detailItems.VIDEO_SIGN_ROUTE"
label="会议视频"
>
<video
:src="VITE_FILE_URL + detailItems.VIDEO_SIGN_ROUTE"
controls
@ -64,9 +70,12 @@
<img
v-if="row.USERAVATARPREFIX && row.USERAVATARURL_CONVERT"
:src="row.USERAVATARPREFIX + row.USERAVATARURL_CONVERT"
alt="Avatar" width="100" height="100" />
alt="Avatar"
width="100"
height="100"
/>
<span v-else>
{{ '暂无头像' }}
{{ "暂无头像" }}
</span>
</template>
</el-table-column>

View File

@ -103,7 +103,6 @@ const { list, searchForm, pagination, fnGetData, fnResetPagination, tableRef } =
key: "userList",
});
const fnInit = async () => {
await fnResetPagination();
await nextTick();

View File

@ -19,10 +19,7 @@
<el-form-item label="文件" prop="file">
<layout-upload v-model:file-list="form.file" accept=".pdf" />
</el-form-item>
<div
v-if="form.TEXT_INFO && type === 'edit'"
class="tr mb-10"
>
<div v-if="form.TEXT_INFO && type === 'edit'" class="tr mb-10">
<el-button type="primary" @click="fnExport">WORD</el-button>
</div>
<el-form-item label="文件内容" prop="TEXT_INFO">

View File

@ -134,7 +134,6 @@
<el-table-column prop="UPLOAD_TIME" label="上传时间" width="150" />
<el-table-column label="操作" width="200">
<template #default="{ row }">
<el-button
v-if="tabName === 'platform_resource_library'"
type="primary"