细节优化

This commit is contained in:
kerwincui
2022-06-08 12:41:34 +08:00
parent 40d6a49bfc
commit 952c2e09c0
4 changed files with 9 additions and 8 deletions

View File

@@ -8,7 +8,7 @@
<el-col :xs="24" :sm="24" :md="24" :lg="12" :xl="8">
<el-form-item label="设备名称" prop="deviceName">
<el-input v-model="form.deviceName" placeholder="请输入设备名称">
<el-button slot="append" @click="openSummaryDialog" :disabled="form.deviceId==0">摘要</el-button>
<el-button slot="append" @click="openSummaryDialog" v-if="form.deviceId!=0">摘要</el-button>
</el-input>
</el-form-item>
<el-form-item label="" prop="serialNumber">
@@ -52,12 +52,12 @@
</el-form-item>
<el-form-item label="设备经度" prop="longitude">
<el-input v-model="form.longitude" placeholder="请输入设备经度" type="number" :disabled="form.locationWay!=3">
<el-link slot="append" :underline="false" href="https://api.map.baidu.com/lbsapi/getpoint/index.html" target="_blank">坐标拾取</el-link>
<el-link slot="append" :underline="false" href="https://api.map.baidu.com/lbsapi/getpoint/index.html" target="_blank" :disabled="form.locationWay!=3">坐标拾取</el-link>
</el-input>
</el-form-item>
<el-form-item label="设备纬度" prop="latitude">
<el-input v-model="form.latitude" placeholder="请输入设备纬度" type="number" :disabled="form.locationWay!=3">
<el-link slot="append" :underline="false" href="https://api.map.baidu.com/lbsapi/getpoint/index.html" target="_blank">坐标拾取</el-link>
<el-link slot="append" :underline="false" href="https://api.map.baidu.com/lbsapi/getpoint/index.html" target="_blank" :disabled="form.locationWay!=3">坐标拾取</el-link>
</el-input>
</el-form-item>
<el-form-item label="所在地址" prop="networkAddress">
@@ -279,7 +279,9 @@ export default {
getDevice(deviceId) {
getDevice(deviceId).then(response => {
this.form = response.data;
if(this.form.summary!=null && this.form.summary!=""){
this.summary = JSON.parse(this.form.summary);
}
// 禁用状态
if (this.form.status == 2) {
this.deviceStatus = 1;

View File

@@ -177,6 +177,7 @@ export default {
itemStyle: {
color: i>9? color[0]:color[i]
},
areaStyle: {},
data: []
}]
};

View File

@@ -599,9 +599,7 @@ export default {
itemStyle: {
color: i > 9 ? color[0] : color[i]
},
areaStyle: {
},
areaStyle: {},
data: []
}]
};

View File

@@ -86,12 +86,12 @@
<product-authorize ref="productAuthorize" :product="form" />
</el-tab-pane>
<el-tab-pane label="" name="alert">
<el-tab-pane label="" name="alert" :disabled="form.productId==0">
<span slot="label"> 告警配置</span>
<product-alert ref="productAlert" :product="form"></product-alert>
</el-tab-pane>
<el-tab-pane label="" name="productApp">
<el-tab-pane label="" name="productApp" :disabled="form.productId==0">
<span slot="label">控制界面</span>
<product-app ref="productApp" :product="form" />
</el-tab-pane>