|
|
|
@ -0,0 +1,583 @@
|
|
|
|
|
<template>
|
|
|
|
|
<!-- 智能新增、编辑、查看表单 -->
|
|
|
|
|
<el-dialog
|
|
|
|
|
class="dialog"
|
|
|
|
|
:title="title"
|
|
|
|
|
:visible.sync="visible"
|
|
|
|
|
@close="close()"
|
|
|
|
|
:close-on-click-modal="false"
|
|
|
|
|
width="970px"
|
|
|
|
|
>
|
|
|
|
|
<div class="form_body">
|
|
|
|
|
<el-form ref="form" :model="form" :rules="rules" :disabled="disabled">
|
|
|
|
|
<el-form-item> <p>设备基础信息</p> </el-form-item>
|
|
|
|
|
<el-form-item> </el-form-item>
|
|
|
|
|
<el-form-item label="企业名称" prop="companyName">
|
|
|
|
|
<el-select
|
|
|
|
|
v-model="form.companyName"
|
|
|
|
|
placeholder="请选择企业"
|
|
|
|
|
@change="company_change"
|
|
|
|
|
>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in form_list.company"
|
|
|
|
|
:key="item.id"
|
|
|
|
|
:label="item.companyName"
|
|
|
|
|
:value="item.companyName"
|
|
|
|
|
>
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item> </el-form-item>
|
|
|
|
|
<el-form-item label="设备名称" prop="deviceName">
|
|
|
|
|
<el-input v-model="form.deviceName"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="设备IP" prop="deviceIp">
|
|
|
|
|
<el-input v-model="form.deviceIp"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="登录账号" prop="account">
|
|
|
|
|
<el-input v-model="form.account"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="登录密码" prop="password">
|
|
|
|
|
<el-input v-model="form.password"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="设备大类" prop="devicePerceptionParentTypeCn">
|
|
|
|
|
<el-select
|
|
|
|
|
v-model="form.devicePerceptionParentTypeCn"
|
|
|
|
|
placeholder="请选择设备大类"
|
|
|
|
|
@change="parent_change"
|
|
|
|
|
>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in form_list.parent_type"
|
|
|
|
|
:key="item.dictValue"
|
|
|
|
|
:label="item.dictLabel"
|
|
|
|
|
:value="item.dictLabel"
|
|
|
|
|
>
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="是否卡口" prop="isDoorwayVideoCn">
|
|
|
|
|
<el-select
|
|
|
|
|
v-model="form.isDoorwayVideoCn"
|
|
|
|
|
placeholder="请选择是否卡口"
|
|
|
|
|
@change="door_change"
|
|
|
|
|
>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in form_list.door_type"
|
|
|
|
|
:key="item.id"
|
|
|
|
|
:label="item.label"
|
|
|
|
|
:value="item.label"
|
|
|
|
|
>
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="设备小类" prop="devicePerceptionSubTypeCn">
|
|
|
|
|
<el-select
|
|
|
|
|
v-model="form.devicePerceptionSubTypeCn"
|
|
|
|
|
placeholder="请选择设备小类"
|
|
|
|
|
@change="son_change"
|
|
|
|
|
>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in form_list.son_type"
|
|
|
|
|
:key="item.dictValue"
|
|
|
|
|
:label="item.dictLabel"
|
|
|
|
|
:value="item.dictLabel"
|
|
|
|
|
>
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item> </el-form-item>
|
|
|
|
|
<el-form-item> <p>视频通道信息</p> </el-form-item>
|
|
|
|
|
<el-form-item> </el-form-item>
|
|
|
|
|
<el-form-item label="通道编码" prop="gbsChannelNo">
|
|
|
|
|
<el-input v-model="form.gbsChannelNo"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="NVR编码" prop="gbsNvrNo">
|
|
|
|
|
<el-input v-model="form.gbsNvrNo"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="通道号" prop="channelNo">
|
|
|
|
|
<el-input v-model="form.channelNo"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="RTSP流地址" prop="rtspAddress">
|
|
|
|
|
<el-input v-model="form.rtspAddress"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item> <p>设备位置信息</p> </el-form-item>
|
|
|
|
|
<el-form-item> </el-form-item>
|
|
|
|
|
<el-form-item label="设备经度" prop="longitude">
|
|
|
|
|
<el-input v-model="form.longitude"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="设备纬度" prop="latitude">
|
|
|
|
|
<el-input v-model="form.latitude"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="U3D经度" prop="u3dLongitude">
|
|
|
|
|
<el-input v-model="form.u3dLongitude"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="U3D纬度" prop="u3dLatitude">
|
|
|
|
|
<el-input v-model="form.u3dLatitude"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="设备高度" prop="deviceHeight">
|
|
|
|
|
<el-input v-model="form.deviceHeight"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="U3D高度" prop="u3dHeight">
|
|
|
|
|
<el-input v-model="form.u3dHeight"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="进出方向" prop="directionCn">
|
|
|
|
|
<el-select
|
|
|
|
|
v-model="form.directionCn"
|
|
|
|
|
placeholder="请选择进出方向"
|
|
|
|
|
@change="direction_change"
|
|
|
|
|
>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in form_list.direction_type"
|
|
|
|
|
:key="item.id"
|
|
|
|
|
:label="item.label"
|
|
|
|
|
:value="item.label"
|
|
|
|
|
>
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="设备方位" prop="orientationCn">
|
|
|
|
|
<el-select
|
|
|
|
|
v-model="form.orientationCn"
|
|
|
|
|
placeholder="请选择设备方位"
|
|
|
|
|
@change="orientation_change"
|
|
|
|
|
>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in form_list.orientation_type"
|
|
|
|
|
:key="item.dictValue"
|
|
|
|
|
:label="item.dictLabel"
|
|
|
|
|
:value="item.dictLabel"
|
|
|
|
|
>
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="安装位置" prop="deviceAddress">
|
|
|
|
|
<el-input v-model="form.deviceAddress"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item> </el-form-item>
|
|
|
|
|
<el-form-item> <p>设备其他信息</p> </el-form-item>
|
|
|
|
|
<el-form-item> </el-form-item>
|
|
|
|
|
<el-form-item label="设备品牌" prop="deviceBrand">
|
|
|
|
|
<el-input v-model="form.deviceBrand"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="设备厂家" prop="manufactor">
|
|
|
|
|
<el-input v-model="form.manufactor"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="设备MAC" prop="deviceMac">
|
|
|
|
|
<el-input v-model="form.deviceMac"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="SN号" prop="deviceSn">
|
|
|
|
|
<el-input v-model="form.deviceSn"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="设备IMEI" prop="deviceImei">
|
|
|
|
|
<el-input v-model="form.deviceImei"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="设备端口" prop="devicePort">
|
|
|
|
|
<el-input v-model="form.devicePort"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-form>
|
|
|
|
|
</div>
|
|
|
|
|
<div v-if="!disabled" class="form_btn" slot="footer">
|
|
|
|
|
<el-button @click="save">保 存</el-button>
|
|
|
|
|
<el-button @click="close">取 消</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
</el-dialog>
|
|
|
|
|
</template>
|
|
|
|
|
<script>
|
|
|
|
|
import {
|
|
|
|
|
commonDict,
|
|
|
|
|
getCompanyList,
|
|
|
|
|
addPerceptionList,
|
|
|
|
|
changePerceptionList,
|
|
|
|
|
} from "@/api/correlationEquipment";
|
|
|
|
|
// import { validateIP } from "@/utils/publicMethod_lxy/validator";
|
|
|
|
|
export default {
|
|
|
|
|
name: "PerceptionForm",
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
visible: false,
|
|
|
|
|
title: "新建",
|
|
|
|
|
form: {
|
|
|
|
|
companyId: "",
|
|
|
|
|
companyName: "",
|
|
|
|
|
deviceName: "",
|
|
|
|
|
deviceIp: "",
|
|
|
|
|
devicePerceptionParentType: "",
|
|
|
|
|
devicePerceptionParentTypeCn: "",
|
|
|
|
|
devicePerceptionSubType: "",
|
|
|
|
|
devicePerceptionSubTypeCn: "",
|
|
|
|
|
isDoorwayVideoCn: "",
|
|
|
|
|
isDoorwayVideo: "",
|
|
|
|
|
directionCn: "",
|
|
|
|
|
direction: "",
|
|
|
|
|
account: "",
|
|
|
|
|
password: "",
|
|
|
|
|
gbsChannelNo: "",
|
|
|
|
|
gbsNvrNo: "",
|
|
|
|
|
channelNo: "",
|
|
|
|
|
rtspAddress: "",
|
|
|
|
|
longitude: "",
|
|
|
|
|
latitude: "",
|
|
|
|
|
u3dLongitude: "",
|
|
|
|
|
u3dLatitude: "",
|
|
|
|
|
deviceHeight: "",
|
|
|
|
|
u3dHeight: "",
|
|
|
|
|
orientation: "",
|
|
|
|
|
orientationCn: "",
|
|
|
|
|
deviceAddress: "",
|
|
|
|
|
deviceBrand: "",
|
|
|
|
|
manufactor: "",
|
|
|
|
|
manufactorPhone: "",
|
|
|
|
|
deviceSn: "",
|
|
|
|
|
deviceMac: "",
|
|
|
|
|
devicePort: "",
|
|
|
|
|
deviceImei: "",
|
|
|
|
|
},
|
|
|
|
|
form_list: {
|
|
|
|
|
company: [],
|
|
|
|
|
parent_type: [],
|
|
|
|
|
son_type: [],
|
|
|
|
|
orientation_type: [],
|
|
|
|
|
door_type: [
|
|
|
|
|
{ label: "是", id: "1" },
|
|
|
|
|
{ label: "否", id: "2" },
|
|
|
|
|
],
|
|
|
|
|
direction_type: [
|
|
|
|
|
{ label: "进", id: "1" },
|
|
|
|
|
{ label: "出", id: "2" },
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
num: "", // 判断是新增修改等何种形式进入表单
|
|
|
|
|
disabled: false, // 详情时表单禁选
|
|
|
|
|
rules: {
|
|
|
|
|
companyName: [
|
|
|
|
|
{ required: true, message: "请选择企业", trigger: "change" },
|
|
|
|
|
],
|
|
|
|
|
deviceName: [
|
|
|
|
|
{ required: true, message: "请填写设备名称", trigger: "blur" },
|
|
|
|
|
],
|
|
|
|
|
deviceIp: [
|
|
|
|
|
{
|
|
|
|
|
required: true,
|
|
|
|
|
message: "请填写正确的设备ip",
|
|
|
|
|
pattern:
|
|
|
|
|
/^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])$/,
|
|
|
|
|
trigger: "blur",
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
devicePerceptionParentTypeCn: [
|
|
|
|
|
{ required: true, message: "请选择设备大类", trigger: "change" },
|
|
|
|
|
],
|
|
|
|
|
devicePerceptionSubTypeCn: [
|
|
|
|
|
{ required: true, message: "请选择设备小类", trigger: "change" },
|
|
|
|
|
],
|
|
|
|
|
isDoorwayVideoCn: [
|
|
|
|
|
{ required: true, message: "请选择是否卡口", trigger: "change" },
|
|
|
|
|
],
|
|
|
|
|
gbsChannelNo: [
|
|
|
|
|
{
|
|
|
|
|
required: true,
|
|
|
|
|
message: "请输入20位通道编码",
|
|
|
|
|
pattern: /^[0-9]{20}$/,
|
|
|
|
|
trigger: "blur",
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
gbsNvrNo: [
|
|
|
|
|
{
|
|
|
|
|
required: true,
|
|
|
|
|
message: "请输入20位NVR编码",
|
|
|
|
|
pattern: /^[0-9]{20}$/,
|
|
|
|
|
trigger: "blur",
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
longitude: [
|
|
|
|
|
{
|
|
|
|
|
required: true,
|
|
|
|
|
pattern:
|
|
|
|
|
/^(\-|\+)?(((\d|[1-9]\d|1[0-7]\d|0{1,3})\.\d{0,6})|(\d|[1-9]\d|1[0-7]\d|0{1,3})|180\.0{0,6}|180)$/, // eslint-disable-line
|
|
|
|
|
message: "请输入设备经度 -180~180(保留小数点后六位)",
|
|
|
|
|
trigger: "blur",
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
latitude: [
|
|
|
|
|
{
|
|
|
|
|
required: true,
|
|
|
|
|
pattern:
|
|
|
|
|
/^(\-|\+)?([0-8]?\d{1}\.\d{0,6}|90\.0{0,6}|[0-8]?\d{1}|90)$/, // eslint-disable-line
|
|
|
|
|
message: "请输入设备纬度 -90~90(保留小数点后六位)",
|
|
|
|
|
trigger: "blur",
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
u3dLongitude: [
|
|
|
|
|
{
|
|
|
|
|
pattern:
|
|
|
|
|
/^(\-|\+)?(((\d|[1-9]\d|1[0-7]\d|0{1,3})\.\d{0,6})|(\d|[1-9]\d|1[0-7]\d|0{1,3})|180\.0{0,6}|180)$/, // eslint-disable-line
|
|
|
|
|
message: "请输入u3d经度 -180~180(保留小数点后六位)",
|
|
|
|
|
trigger: "blur",
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
u3dLatitude: [
|
|
|
|
|
{
|
|
|
|
|
pattern:
|
|
|
|
|
/^(\-|\+)?([0-8]?\d{1}\.\d{0,6}|90\.0{0,6}|[0-8]?\d{1}|90)$/, // eslint-disable-line
|
|
|
|
|
message: "请输入u3d设备纬度 -90~90(保留小数点后六位)",
|
|
|
|
|
trigger: "blur",
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
deviceAddress: [
|
|
|
|
|
{ required: true, message: "请输入安装位置", trigger: "blur" },
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
async open(num, row) {
|
|
|
|
|
this.visible = true;
|
|
|
|
|
this.num = num;
|
|
|
|
|
await this.obtain_select_list(); // 请求下拉
|
|
|
|
|
if (num === "1") {
|
|
|
|
|
this.title = "新建";
|
|
|
|
|
this.disabled = false;
|
|
|
|
|
this.form = {
|
|
|
|
|
companyId: "",
|
|
|
|
|
companyName: "",
|
|
|
|
|
deviceName: "",
|
|
|
|
|
deviceIp: "",
|
|
|
|
|
deviceVideoParentType: "",
|
|
|
|
|
deviceVideoParentTypeCn: "",
|
|
|
|
|
deviceVideoSubType: "",
|
|
|
|
|
deviceVideoSubTypeCn: "",
|
|
|
|
|
isDoorwayVideoCn: "",
|
|
|
|
|
isDoorwayVideo: "",
|
|
|
|
|
directionCn: "",
|
|
|
|
|
direction: "",
|
|
|
|
|
account: "",
|
|
|
|
|
password: "",
|
|
|
|
|
gbsChannelNo: "",
|
|
|
|
|
gbsNvrNo: "",
|
|
|
|
|
channelNo: "",
|
|
|
|
|
rtspAddress: "",
|
|
|
|
|
longitude: "",
|
|
|
|
|
latitude: "",
|
|
|
|
|
u3dLongitude: "",
|
|
|
|
|
u3dLatitude: "",
|
|
|
|
|
deviceHeight: "",
|
|
|
|
|
u3dHeight: "",
|
|
|
|
|
orientation: "",
|
|
|
|
|
orientationCn: "",
|
|
|
|
|
deviceAddress: "",
|
|
|
|
|
deviceBrand: "",
|
|
|
|
|
manufactor: "",
|
|
|
|
|
manufactorPhone: "",
|
|
|
|
|
deviceSn: "",
|
|
|
|
|
deviceMac: "",
|
|
|
|
|
devicePort: "",
|
|
|
|
|
};
|
|
|
|
|
} else if (num === "5") {
|
|
|
|
|
this.title = "修改";
|
|
|
|
|
this.form = Object.assign(this.form, row);
|
|
|
|
|
this.disabled = false;
|
|
|
|
|
console.log("trrr", this.form);
|
|
|
|
|
} else if (num === "6") {
|
|
|
|
|
this.title = "详情";
|
|
|
|
|
this.form = Object.assign(this.form, row);
|
|
|
|
|
this.disabled = true;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
// 请求本表单下拉list
|
|
|
|
|
obtain_select_list() {
|
|
|
|
|
// 请求企业名称下拉
|
|
|
|
|
getCompanyList().then((res) => {
|
|
|
|
|
this.form_list.company = res.data;
|
|
|
|
|
console.log("this.form_list.company", this.form_list.company);
|
|
|
|
|
});
|
|
|
|
|
// 请求设备大类下拉
|
|
|
|
|
commonDict({ dictType: "device_perception_sub_type" }).then((res) => {
|
|
|
|
|
this.form_list.parent_type = res.data;
|
|
|
|
|
});
|
|
|
|
|
// 请求设备小类下拉
|
|
|
|
|
commonDict({ dictType: "device_video_sub_type" }).then((res) => {
|
|
|
|
|
this.form_list.son_type = res.data;
|
|
|
|
|
});
|
|
|
|
|
// 请求设备方位下拉
|
|
|
|
|
commonDict({ dictType: "orientation" }).then((res) => {
|
|
|
|
|
this.form_list.orientation_type = res.data;
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
// 选中企业下拉
|
|
|
|
|
company_change(val) {
|
|
|
|
|
this.form.companyId = this.form_list.company.find(
|
|
|
|
|
(item) => item.companyName === val
|
|
|
|
|
).id;
|
|
|
|
|
},
|
|
|
|
|
// 选中大类下拉
|
|
|
|
|
parent_change(val) {
|
|
|
|
|
this.form.deviceVideoParentType = this.form_list.parent_type.find(
|
|
|
|
|
(item) => item.dictLabel === val
|
|
|
|
|
).dictValue;
|
|
|
|
|
},
|
|
|
|
|
// 选中小类下拉
|
|
|
|
|
son_change(val) {
|
|
|
|
|
this.form.deviceVideoSubType = this.form_list.son_type.find(
|
|
|
|
|
(item) => item.dictLabel === val
|
|
|
|
|
).dictValue;
|
|
|
|
|
},
|
|
|
|
|
// 选中卡口下拉
|
|
|
|
|
door_change(val) {
|
|
|
|
|
this.form.isDoorwayVideo = this.form_list.door_type.find(
|
|
|
|
|
(item) => item.label === val
|
|
|
|
|
).id;
|
|
|
|
|
},
|
|
|
|
|
// 进出方向下拉
|
|
|
|
|
direction_change(val) {
|
|
|
|
|
this.form.directionCn = this.form_list.direction_type.find(
|
|
|
|
|
(item) => item.label === val
|
|
|
|
|
).id;
|
|
|
|
|
},
|
|
|
|
|
// 选中方向下拉
|
|
|
|
|
orientation_change(val) {
|
|
|
|
|
this.form.orientation = this.form_list.orientation_type.find(
|
|
|
|
|
(item) => item.dictLabel === val
|
|
|
|
|
).dictValue;
|
|
|
|
|
},
|
|
|
|
|
save() {
|
|
|
|
|
this.$refs["form"].validate((valid) => {
|
|
|
|
|
if (valid) {
|
|
|
|
|
console.log("this.form_a", this.form); // 传给后台的表单数据
|
|
|
|
|
if (this.num === "1") {
|
|
|
|
|
addPerceptionList(this.form).then((res) => {
|
|
|
|
|
this.visible = false;
|
|
|
|
|
console.log(res);
|
|
|
|
|
this.$message.success("新建数据成功");
|
|
|
|
|
// 新建数据成功后,表格刷新
|
|
|
|
|
this.$emit("refresh_perception");
|
|
|
|
|
});
|
|
|
|
|
} else if (this.num === "5") {
|
|
|
|
|
changePerceptionList(this.form).then((res) => {
|
|
|
|
|
this.visible = false;
|
|
|
|
|
console.log(res);
|
|
|
|
|
this.$message.success("修改数据成功");
|
|
|
|
|
this.$emit("refresh_perception");
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.warning("请填入必填项");
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
// 关闭弹窗
|
|
|
|
|
close() {
|
|
|
|
|
// 表单清空
|
|
|
|
|
this.$refs["form"].resetFields();
|
|
|
|
|
this.visible = false;
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|
<style lang="less" scoped>
|
|
|
|
|
/deep/.el-dialog {
|
|
|
|
|
.el-dialog__title {
|
|
|
|
|
color: #fff;
|
|
|
|
|
text-shadow: 0 0 9px rgba(21, 255, 198, 0.64);
|
|
|
|
|
}
|
|
|
|
|
background-image: url("~@/assets/companyFile/dialogBack.png");
|
|
|
|
|
background-size: 100% 100%;
|
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
|
height: 750px;
|
|
|
|
|
|
|
|
|
|
/* 关闭弹窗叉号 */
|
|
|
|
|
.el-dialog__headerbtn {
|
|
|
|
|
.el-dialog__close {
|
|
|
|
|
color: #fff;
|
|
|
|
|
font-size: 18px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.el-dialog__body {
|
|
|
|
|
padding: 0px;
|
|
|
|
|
padding-left: 15px;
|
|
|
|
|
padding-right: 15px;
|
|
|
|
|
|
|
|
|
|
p {
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
color: #fff;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.form_body {
|
|
|
|
|
margin-top: 3%;
|
|
|
|
|
height: 600px;
|
|
|
|
|
overflow-y: scroll;
|
|
|
|
|
background: url("~@/assets/companyFile/242112.png") no-repeat;
|
|
|
|
|
background-size: 100% 100%;
|
|
|
|
|
p {
|
|
|
|
|
padding-top: 15px;
|
|
|
|
|
margin-left: 17px;
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
color: #fff;
|
|
|
|
|
text-shadow: 0 0 9px rgba(21, 255, 198, 0.64);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.form_body::-webkit-scrollbar {
|
|
|
|
|
width: 6px;
|
|
|
|
|
background-color: #5e666a;
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.form_body::-webkit-scrollbar-thumb {
|
|
|
|
|
width: 5px;
|
|
|
|
|
background-color: #3c4b4a;
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
}
|
|
|
|
|
.form_btn {
|
|
|
|
|
.el-button {
|
|
|
|
|
width: 70px;
|
|
|
|
|
border: 1px solid #4a6072;
|
|
|
|
|
color: #fff;
|
|
|
|
|
border-radius: 0px !important;
|
|
|
|
|
background: #323f43;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.el-button:focus,
|
|
|
|
|
.el-button:hover {
|
|
|
|
|
color: #34e1b3;
|
|
|
|
|
background: url("~@/assets/companyFile/891771.png") no-repeat !important;
|
|
|
|
|
background-size: 100% 100% !important;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
/deep/.el-form {
|
|
|
|
|
/* 表单内容浮动布局,多行多列表单 */
|
|
|
|
|
width: 900px !important;
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
margin-top: 2vh;
|
|
|
|
|
.el-form-item {
|
|
|
|
|
/* 表单域名跟input浮动布局 */
|
|
|
|
|
display: flex;
|
|
|
|
|
width: 50%;
|
|
|
|
|
|
|
|
|
|
.el-form-item__label {
|
|
|
|
|
width: 40%;
|
|
|
|
|
text-align: center;
|
|
|
|
|
color: #fff;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.el-form-item__content {
|
|
|
|
|
.el-input__inner {
|
|
|
|
|
width: 300px;
|
|
|
|
|
border-radius: 0px;
|
|
|
|
|
// border: 0.5px dashed;
|
|
|
|
|
background: #3c4b4a;
|
|
|
|
|
color: #fff;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 查询框点击颜色变化 */
|
|
|
|
|
.el-input__inner:focus,
|
|
|
|
|
.el-input__inner:hover {
|
|
|
|
|
border-color: #1b3736;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</style>
|