forked from dyf/dyf-vue-ui
修改一些体验性问题
This commit is contained in:
@ -1,5 +1,3 @@
|
||||
import { fa } from "element-plus/es/locale/index.mjs";
|
||||
|
||||
var map = null;
|
||||
|
||||
|
||||
|
||||
@ -102,6 +102,7 @@
|
||||
>
|
||||
<div class="form">
|
||||
<el-form :model="cEdit" ref="ruleFormRef" style="max-width: 750px" :rules="rules">
|
||||
<div>{{ cEdit.isEdit }}</div>
|
||||
<el-form-item label="设备名称" label-position="right">
|
||||
<!-- <el-input v-model="selectedRow['deviceName']" :readonly="true" @click.stop="ShowDevice('Edit', true)" placeholder="请选择设备" /> -->
|
||||
<el-select v-model="cEdit.deviceId" placeholder="选择设备" clearable :disabled="!cEdit.isEdit" filterable>
|
||||
@ -492,10 +493,15 @@ function DropRecord(arr = undefined) {
|
||||
() => {
|
||||
showloading('fullLoading');
|
||||
arr = arr.map((item) => item.recordId);
|
||||
api.dropRepir(arr);
|
||||
setTimeout(hideloading, 2000);
|
||||
alert('操作成功');
|
||||
Search();
|
||||
api.dropRepir(arr).then(res=>{
|
||||
if(res && res.code==200){
|
||||
Search();
|
||||
}
|
||||
alert(res.msg);
|
||||
});
|
||||
|
||||
|
||||
|
||||
},
|
||||
hideConfirm,
|
||||
'提示'
|
||||
@ -639,7 +645,7 @@ function ResetFormData() {
|
||||
cEdit.repairPart = ''; //维修部位
|
||||
cEdit.repairReason = ''; //维修原因
|
||||
cEdit.repairPerson = ''; //维修人员
|
||||
cEdit.isEdit = false;
|
||||
|
||||
cEdit.imageIds = [];
|
||||
|
||||
selectedRow.value = { deviceName: '', deviceId: '' };
|
||||
@ -1059,4 +1065,14 @@ input:focus {
|
||||
.demo-fit .el-avatar--square {
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
:deep .el-upload-list--picture-card .el-upload-list__item .el-upload-list__item,
|
||||
.el-upload-list--picture-card .el-upload-list__item .el-upload-list__item{
|
||||
margin:0px ;
|
||||
}
|
||||
|
||||
// :deep .el-upload-list__item,.el-upload-list__item{
|
||||
// margin-right: 8px !important;
|
||||
// }
|
||||
|
||||
</style>
|
||||
|
||||
@ -3,29 +3,14 @@
|
||||
<div class="map" id="map" v-loading="Status.loading" element-loading-background="#022D51a8"></div>
|
||||
<div class="topTool">
|
||||
<div class="form">
|
||||
<!-- <el-select v-model="search.deviceType" class="form-item" placeholder="所属分组" filterable clearable>
|
||||
<el-option v-for="item in types" :key="item.value" :label="item.label" :value="item.value">
|
||||
<div>{{ item.label }}</div>
|
||||
</el-option>
|
||||
</el-select>
|
||||
|
||||
<el-select v-model="search.groupId" class="form-item" placeholder="设备类型" filterable clearable>
|
||||
<el-option v-for="item in groups" :key="item.value" :label="item.label" :value="item.value">
|
||||
<div :style="{ paddingLeft: `${(item.level - 1) * 16}px` }">
|
||||
{{ item.label }}
|
||||
</div>
|
||||
</el-option>
|
||||
</el-select>
|
||||
|
||||
<el-input v-model="search.deviceImei" class="form-item" placeholder="设备IMEI" /> -->
|
||||
<div class="form-item">
|
||||
<div class="vertiLine"></div>
|
||||
<div class="input" @click.stop="showCheck('showCheckGroup')">
|
||||
<span>{{ groupName }}</span>
|
||||
<span>
|
||||
<div>{{ groupName }}</div>
|
||||
<div>
|
||||
<el-icon v-show="!Status.showCheckGroup"><CaretBottom /></el-icon>
|
||||
<el-icon v-show="Status.showCheckGroup"><CaretTop /></el-icon>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ul" :class="Status.showCheckGroup ? '' : 'displayNone'">
|
||||
<div class="li" @click.stop="checkItem(item, 'groupId')"
|
||||
@ -43,11 +28,11 @@
|
||||
<div class="form-item">
|
||||
<div class="vertiLine"></div>
|
||||
<div class="input" @click.stop="showCheck('showCheckType')">
|
||||
<span>{{ devType }}</span>
|
||||
<span>
|
||||
<div>{{ devType }}</div>
|
||||
<div>
|
||||
<el-icon v-show="!Status.showCheckType"><CaretTop /></el-icon>
|
||||
<el-icon v-show="Status.showCheckType"><CaretBottom /></el-icon>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ul" :class="Status.showCheckType ? '' : 'displayNone'">
|
||||
<div
|
||||
@ -467,11 +452,7 @@ function getGroups() {
|
||||
});
|
||||
}
|
||||
|
||||
function getStyle(item){
|
||||
debugger;
|
||||
let left=(item.level-1)*16+'px';
|
||||
return "padding-left:"+left+"px"
|
||||
}
|
||||
|
||||
|
||||
function checkItem(item, type) {
|
||||
if (search.value[type] === item.value) {
|
||||
|
||||
Reference in New Issue
Block a user