|
|
@ -5,12 +5,12 @@ |
|
|
|
<el-input id="search" v-model="searchBody" class="search-body" placeholder="请输入..." @keyup.enter.native="submitSearch"> |
|
|
|
<el-input id="search" v-model="searchBody" class="search-body" placeholder="请输入..." @keyup.enter.native="submitSearch"> |
|
|
|
<el-button slot="append" icon="el-icon-search" @click="submitSearch" /> |
|
|
|
<el-button slot="append" icon="el-icon-search" @click="submitSearch" /> |
|
|
|
</el-input> |
|
|
|
</el-input> |
|
|
|
<div class="asider" :class="showSchool ? '':'hidden-school'"> |
|
|
|
<div class="asider" :class="showSchool ? '' : 'hidden-school'"> |
|
|
|
<el-card class="box-card" :body-style="{ flex: 1,'overflow-y': 'scroll', padding: 0 }"> |
|
|
|
<el-card class="box-card" :body-style="{ flex: 1, 'overflow-y': 'scroll', padding: 0 }"> |
|
|
|
<div slot="header" class="clearfix"> |
|
|
|
<div slot="header" class="clearfix"> |
|
|
|
<div class="map-card-title">驾校列表</div> |
|
|
|
<div class="map-card-title">驾校列表</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div v-for="school in schoolList" :key="school.schoolId" style="margin:10px;" :class="currentdeptId == school.schoolId?'actived-school':''"> |
|
|
|
<div v-for="school in schoolList" :key="school.schoolId" style="margin:10px;" :class="currentdeptId == school.schoolId ? 'actived-school' : ''"> |
|
|
|
<el-card :body-style="{ padding: '10px' }"> |
|
|
|
<el-card :body-style="{ padding: '10px' }"> |
|
|
|
<div slot="header" class="clearfix"> |
|
|
|
<div slot="header" class="clearfix"> |
|
|
|
<div class="map-card-title">{{ school.schoolName }}</div> |
|
|
|
<div class="map-card-title">{{ school.schoolName }}</div> |
|
|
@ -94,7 +94,7 @@ |
|
|
|
<el-radio v-model="placeForm.recommend" :label="false">否</el-radio> |
|
|
|
<el-radio v-model="placeForm.recommend" :label="false">否</el-radio> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="备注" prop="remark"> |
|
|
|
<el-form-item label="备注" prop="remark"> |
|
|
|
<el-input v-model="placeForm.remark" placeholder="输入备注" type="textarea" :autosize="{ minRows: 2, maxRows: 4}" /> |
|
|
|
<el-input v-model="placeForm.remark" placeholder="输入备注" type="textarea" :autosize="{ minRows: 2, maxRows: 4 }" /> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item style="text-align:right;"> |
|
|
|
<el-form-item style="text-align:right;"> |
|
|
|
<el-button v-hasPermi="['sch:place:edit']" type="primary" @click="onSubmit">保存</el-button> |
|
|
|
<el-button v-hasPermi="['sch:place:edit']" type="primary" @click="onSubmit">保存</el-button> |
|
|
@ -102,7 +102,7 @@ |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
</el-form> |
|
|
|
</el-card> |
|
|
|
</el-card> |
|
|
|
<el-card :class="placeListDialogShow ? '':'hidden-place-list'" class="place-list-dialog" :style="{ right: showSchool ? '300px' : '0', top : fullScreenPlaceList?'0px':'420px' }" :body-style="{ padding: '10px', height: 'calc(100% - 52px)' }"> |
|
|
|
<el-card :class="placeListDialogShow ? '' : 'hidden-place-list'" class="place-list-dialog" :style="{ right: showSchool ? '300px' : '0', top: fullScreenPlaceList ? '0px' : '420px' }" :body-style="{ padding: '10px', height: 'calc(100% - 52px)' }"> |
|
|
|
<div slot="header" class="clearfix"> |
|
|
|
<div slot="header" class="clearfix"> |
|
|
|
<div class="map-card-title"> |
|
|
|
<div class="map-card-title"> |
|
|
|
{{ placeListDialogTitle }} |
|
|
|
{{ placeListDialogTitle }} |
|
|
@ -112,7 +112,7 @@ |
|
|
|
<el-button icon="el-icon-full-screen" class="add-icon" @click="fullScreenPlaceList = !fullScreenPlaceList" /> |
|
|
|
<el-button icon="el-icon-full-screen" class="add-icon" @click="fullScreenPlaceList = !fullScreenPlaceList" /> |
|
|
|
</el-tooltip> |
|
|
|
</el-tooltip> |
|
|
|
<el-tooltip content="关闭" placement="top" effect="dark"> |
|
|
|
<el-tooltip content="关闭" placement="top" effect="dark"> |
|
|
|
<el-button icon="el-icon-close" class="add-icon" @click="() => { placeListDialogShow = false;fullScreenPlaceList = false }" /> |
|
|
|
<el-button icon="el-icon-close" class="add-icon" @click="() => { placeListDialogShow = false; fullScreenPlaceList = false }" /> |
|
|
|
</el-tooltip> |
|
|
|
</el-tooltip> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<el-table :data="placeTableData" border stripe class="place-table-list" height="100%"> |
|
|
|
<el-table :data="placeTableData" border stripe class="place-table-list" height="100%"> |
|
|
@ -139,8 +139,8 @@ |
|
|
|
</el-table> |
|
|
|
</el-table> |
|
|
|
</el-card> |
|
|
|
</el-card> |
|
|
|
|
|
|
|
|
|
|
|
<div v-if="isPointing || isRanging" class="map-tip" :style="{ transform: 'translate3D(' + (tipPostion.x + 15) +'px,' + (tipPostion.y - 10) + 'px, 0)' }">{{ mapHelpText }}</div> |
|
|
|
<div v-if="isPointing || isRanging" class="map-tip" :style="{ transform: 'translate3D(' + (tipPostion.x + 15) + 'px,' + (tipPostion.y - 10) + 'px, 0)' }">{{ mapHelpText }}</div> |
|
|
|
<i v-if="isPointing" class="el-icon-s-flag circle" :style="{ transform: 'translate3D(' + tipPostion.x +'px,' + tipPostion.y + 'px, 0)' }" /> |
|
|
|
<i v-if="isPointing" class="el-icon-s-flag circle" :style="{ transform: 'translate3D(' + tipPostion.x + 'px,' + tipPostion.y + 'px, 0)' }" /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
<!-- eslint-disable no-undef --> |
|
|
|
<!-- eslint-disable no-undef --> |
|
|
@ -477,7 +477,7 @@ export default { |
|
|
|
if (item.placeId) { |
|
|
|
if (item.placeId) { |
|
|
|
return updatePlace(item); |
|
|
|
return updatePlace(item); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
return addPlace(item) |
|
|
|
return addPlace(item); |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
checkPlaceFormValidate() { |
|
|
|
checkPlaceFormValidate() { |
|
|
@ -739,6 +739,7 @@ export default { |
|
|
|
.actived-school { |
|
|
|
.actived-school { |
|
|
|
border: 2px solid #409eff !important; |
|
|
|
border: 2px solid #409eff !important; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
::v-deep .el-radio__label { |
|
|
|
::v-deep .el-radio__label { |
|
|
|
vertical-align: middle; |
|
|
|
vertical-align: middle; |
|
|
|
} |
|
|
|
} |
|
|
|