Compare commits

..

No commits in common. "1e0e1269380eff036adc71d1182d12737d84504c" and "c870a75c685a56940c0f5510ace87197992afa51" have entirely different histories.

View File

@ -179,7 +179,7 @@
<el-table-column label="维保任务" align="center" prop="maintenanceTask" width="300"/>--> <el-table-column label="维保任务" align="center" prop="maintenanceTask" width="300"/>-->
<el-table-column label="经度" align="center" prop="longitude"/> <el-table-column label="经度" align="center" prop="longitude"/>
<el-table-column label="纬度" align="center" prop="latitude"/> <el-table-column label="纬度" align="center" prop="latitude"/>
<el-table-column label="工作时间" align="center" prop="maintenanceTime"/> <el-table-column label="工作时间" align="center" prop="workTime"/>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" fixed="right" width="170"> <el-table-column label="操作" align="center" class-name="small-padding fixed-width" fixed="right" width="170">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
@ -216,24 +216,22 @@
/> />
<!-- 添加或修改设备管理对话框 --> <!-- 添加或修改设备管理对话框 -->
<el-dialog :title="title" :visible.sync="open" width="30%" append-to-body> <el-dialog :title="title" :visible.sync="open" width="70%" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="80px"> <el-form ref="form" :model="form" :rules="rules" label-width="80px">
<el-row> <el-row>
<el-col :span="24"> <el-col :span="12">
<el-form-item label="设备编码" prop="deviceCode"> <el-form-item label="设备编码" prop="deviceCode">
<el-input :disabled="disabled" v-model="form.deviceCode" maxlength="14" placeholder="请输入设备编码"/> <el-input :disabled="disabled" v-model="form.deviceCode" maxlength="14" placeholder="请输入设备编码"/>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> <el-col :span="12">
<el-row>
<el-col :span="24">
<el-form-item label="设备名称" prop="deviceName"> <el-form-item label="设备名称" prop="deviceName">
<el-input :disabled="disabled" v-model="form.deviceName" placeholder="请输入设备名称"/> <el-input :disabled="disabled" v-model="form.deviceName" placeholder="请输入设备名称"/>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="24"> <el-col :span="12">
<el-form-item label="设备类型" prop="deviceType"> <el-form-item label="设备类型" prop="deviceType">
<el-select :disabled="disabled" v-model="form.deviceType" placeholder="请选择设备类型" style="width: 100%"> <el-select :disabled="disabled" v-model="form.deviceType" placeholder="请选择设备类型" style="width: 100%">
<el-option <el-option
@ -245,50 +243,30 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> <el-col :span="12">
<el-row>
<el-col :span="24">
<el-form-item label="设备状态" prop="deviceStatus">
<el-select :disabled="disabled" v-model="form.deviceStatus" placeholder="请选择设备状态" style="width: 100%">
<el-option
v-for="dict in dict.type.gcjx_device_status"
:key="dict.value"
:label="dict.label"
:value="dict.value"
></el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<el-form-item label="设备品牌" prop="deviceBrand"> <el-form-item label="设备品牌" prop="deviceBrand">
<el-input :disabled="disabled" v-model="form.deviceBrand" placeholder="请输入设备品牌"/> <el-input :disabled="disabled" v-model="form.deviceBrand" placeholder="请输入设备品牌"/>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="24"> <el-col :span="8">
<el-form-item label="经度" prop="longitude"> <el-form-item label="经度" prop="longitude">
<el-input :disabled="disabled" v-model="form.longitude" placeholder="请输入经度"/> <el-input v-model="form.longitude" placeholder="请输入经度"/>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> <el-col :span="8">
<el-row>
<el-col :span="24">
<el-form-item label="纬度" prop="latitude"> <el-form-item label="纬度" prop="latitude">
<el-input :disabled="disabled" v-model="form.latitude" placeholder="请输入纬度"/> <el-input v-model="form.latitude" placeholder="请输入纬度"/>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> <el-col :span="8">
<el-row> <el-form-item label="工作时间" prop="workTime">
<el-col :span="24">
<el-form-item label="工作时间" prop="maintenanceTime">
<el-date-picker <el-date-picker
clearable clearable
:disabled="disabled" :disabled="disabled"
style="width: 100%" style="width: 100%"
v-model="form.maintenanceTime" v-model="form.workTime"
type="datetime" type="datetime"
value-format="yyyy-MM-dd HH:mm:ss" value-format="yyyy-MM-dd HH:mm:ss"
placeholder="请选择工作时间"> placeholder="请选择工作时间">
@ -337,7 +315,7 @@ export default {
deviceManageList: [], deviceManageList: [],
// //
title: "", title: "",
defaultSort: { prop: "maintenanceTime", order: "descending" }, defaultSort: { prop: "workTime", order: "descending" },
// //
open: false, open: false,
// //