字段修改

dev
dengjia 2025-07-23 09:56:46 +08:00
parent cf13437877
commit 509977dfa4
3 changed files with 26 additions and 9 deletions

View File

@ -84,15 +84,31 @@
<el-col :span="12">
<el-form-item
label="企业编码"
:prop="thirdPlatformCode"
:rules="thirdRules.thirdPlatformCode"
:prop="companyCode"
:rules="thirdRules.companyCode"
>
<el-input v-model="item.thirdPlatformCode"></el-input>
<el-input v-model="item.companyCode"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="重大危险源编码" prop="majorHazardCode">
<el-form-item label="重大危险源编码">
<el-input v-model="item.majorHazardCode"> </el-input>
<!-- <el-popover placement="right" :width="400" trigger="click">
<template #reference>
<el-button style="margin-right: 16px"
>Click to activate</el-button
>
</template>
<el-table :data="gridData">
<el-table-column width="150" property="date" label="date" />
<el-table-column width="100" property="name" label="name" />
<el-table-column
width="300"
property="address"
label="address"
/>
</el-table>
</el-popover> -->
</el-form-item>
</el-col>
<el-col :span="12">
@ -268,7 +284,7 @@ const rules = {
};
const thirdRules = {
thirdPlatformId: [{ required: true }],
thirdPlatformCode: [{ required: true }],
companyCode: [{ required: true }],
};
const baseInfoOptions = [
{ key: "companyName", label: "企业名称" },
@ -371,7 +387,7 @@ const fnClose = () => {
const thirdList = ref([
{
thirdPlatformId: "",
thirdPlatformCode: "",
companyCode: "",
majorHazardCode: "",
accessKey: "",
rsaPublicKey: "",
@ -385,7 +401,7 @@ const thirdList = ref([
const fnAddThirdList = () => {
thirdList.value.push({
thirdPlatformId: "",
thirdPlatformCode: "",
companyCode: "",
majorHazardCode: "",
accessKey: "",
rsaPublicKey: "",
@ -409,7 +425,7 @@ const fnSubmitMap = () => {
const checkThirdListItem = () => {
for (let i = 0; i < thirdList.value.length; i++) {
const obj = thirdList.value[i];
if (!obj.thirdPlatformId || !obj.thirdPlatformCode) {
if (!obj.thirdPlatformId || !obj.companyCode) {
ElMessage.error("上级对接平台、企业编码不能为空");
return false;
}

View File

@ -89,7 +89,7 @@ const propsOptions = computed(() => [
]);
const thirdListOptions = [
{ key: "thirdPlatformId", label: "上级对接平台" },
{ key: "thirdPlatformCode", label: "上级平台编码" },
{ key: "companyCode", label: "企业编码" },
{ key: "majorHazardCode", label: "重大危险源编码" },
{ key: "accessKey", label: "密钥" },
{ key: "rsaPublicKey", label: "公钥" },

View File

@ -27,6 +27,7 @@ const info = ref({});
const options = [
{ key: "serviceCompany", label: "平台服务单位" },
{ key: "serviceName", label: "平台名称" },
{ key: "secretKey", label: "平台秘钥" },
{ key: "serviceCode", label: "服务平台编码" },
{ key: "thirdIdList", label: "涉及对接上级平台" },
{ key: "serviceUrl", label: "平台地址" },