Browse Source

Merge remote-tracking branch 'origin/feature/dev_point_manage' into feature/dev_point_manage

master
wanggongfeng 3 years ago
parent
commit
d21452d09d
  1. 113
      src/views/modules/plugins/point/icpointnucleicmonitoring-add-or-update.vue
  2. 4
      src/views/modules/plugins/point/icpointnucleicmonitoring.vue
  3. 1
      src/views/modules/plugins/point/icpointvaccinesinoculation-add-or-update.vue
  4. 4
      src/views/modules/plugins/point/icpointvaccinesinoculation.vue

113
src/views/modules/plugins/point/icpointnucleicmonitoring-add-or-update.vue

@ -1,5 +1,5 @@
<template>
<div style="height:600px;overflow:auto;padding: 20px;" class="form-class">
<div style="height: 600px; overflow: auto; padding: 20px" class="form-class">
<el-form
:model="dataForm"
:rules="dataRule"
@ -8,7 +8,12 @@
label-width="120px"
>
<el-form-item label="所属组织名称" prop="orgId">
<el-select v-model="dataForm.orgId" placeholder="所属组织名称" @change="orgChangeHandle" :disabled='dialogTitle == "查看"'>
<el-select
v-model="dataForm.orgId"
placeholder="所属组织名称"
@change="orgChangeHandle"
:disabled="dialogTitle == '查看'"
>
<el-option
ref="org"
v-for="item in organizationList"
@ -23,7 +28,7 @@
<el-input
v-model="dataForm.name"
placeholder="核酸检测点名称"
:disabled='dialogTitle == "查看"'
:disabled="dialogTitle == '查看'"
></el-input>
</el-form-item>
<el-form-item label="服务时间" prop="serveTime">
@ -32,7 +37,7 @@
type="textarea"
:rows="2"
placeholder="请输入服务时间,如:每日开放 上午:8:00-11:30 ;下午:13:00-17:00"
:disabled='dialogTitle == "查看"'
:disabled="dialogTitle == '查看'"
></el-input>
</el-form-item>
<el-form-item label="咨询电话" prop="mobile">
@ -40,23 +45,29 @@
v-model="dataForm.mobile"
placeholder="咨询电话"
:change="check_num()"
:disabled='dialogTitle == "查看"'
:disabled="dialogTitle == '查看'"
></el-input>
</el-form-item>
<el-form-item label="检测点地址" prop="address">
<el-input
v-model="dataForm.address"
placeholder="例:青岛市时代国际广场"
style="width:65%;"
></el-input>
<el-button
style="margin-left: 10px"
type="primary"
size="small"
@click="handleSearchMap"
>查询</el-button
>
<el-button
style="margin-left: 10px"
type="primary"
size="small"
@click="handleSearchMap"
>查询</el-button
>
</el-form-item>
<el-form-item label="位置坐标" prop="longitude" style="display: block" class="position_label">
<el-form-item
label="位置坐标"
prop="longitude"
style="display: block"
class="position_label"
>
<div>
<!-- <el-input
class="item_width_4"
@ -87,7 +98,7 @@
placeholder="请输入经度"
v-model="dataForm.longitude"
disabled
style="width: 200px;margin-left: 20px;"
style="width: 200px; margin-left: 20px"
>
</el-input>
<span style="margin-left: 20px">纬度</span>
@ -97,7 +108,7 @@
placeholder="请输入纬度"
v-model="dataForm.latitude"
disabled
style="width: 200px;margin-left: 20px;"
style="width: 200px; margin-left: 20px"
>
</el-input>
</div>
@ -106,9 +117,12 @@
</el-form>
<div class="submit">
<el-button @click="closeSubmit">{{ $t("cancel") }}</el-button>
<el-button v-if='dialogTitle != "查看"' type="primary" @click="dataFormSubmitHandle()">{{
$t("confirm")
}}</el-button>
<el-button
v-if="dialogTitle != '查看'"
type="primary"
@click="dataFormSubmitHandle()"
>{{ $t("confirm") }}</el-button
>
</div>
</div>
</template>
@ -213,29 +227,32 @@ export default {
mounted() {
this.getFormInfo();
},
props:{
dialogTitle:{
type:String,
default:''
}
props: {
dialogTitle: {
type: String,
default: "",
},
},
methods: {
closeSubmit(){
this.$emit('closeDialog')
closeSubmit() {
this.$emit("closeDialog");
},
orgChangeHandle(val){
for(var i = 0 ; i < this.organizationList.length ; i++){
if( this.organizationList[i].orgId === val){
this.dataForm.orgName=this.organizationList[i].orgName
return false
}
orgChangeHandle(val) {
for (var i = 0; i < this.organizationList.length; i++) {
if (this.organizationList[i].orgId === val) {
this.dataForm.orgName = this.organizationList[i].orgName;
return false;
}
}
},
// init
initMap() {
//
let _this = this
var center = new window.TMap.LatLng(_this.dataForm.latitude, _this.dataForm.longitude);
let _this = this;
var center = new window.TMap.LatLng(
_this.dataForm.latitude,
_this.dataForm.longitude
);
// map TMap.Map()
map = new window.TMap.Map(document.getElementById("map_add"), {
center: center, //
@ -250,12 +267,14 @@ export default {
geometries: [],
});
infoWindowList = Array(10);
geocoder = new TMap.service.Geocoder(); //
//
map.on("panend", () => {
this.handleMoveCenter();
});
this.handleMoveCenter();
// this.handleMoveCenter()
this.convert();
},
handleMoveCenter() {
@ -356,9 +375,9 @@ export default {
this.$refs["dataForm"].resetFields();
if (this.dataForm.id) {
this.getInfo();
}else{
this.dataForm.longitude = "120.38945519"
this.dataForm.latitude = "36.0722275"
} else {
this.dataForm.longitude = "120.38945519";
this.dataForm.latitude = "36.0722275";
this.initMap();
}
});
@ -377,9 +396,9 @@ export default {
...res.data,
};
if(!this.dataForm.longitude && !this.dataForm.latitude){
this.dataForm.longitude = "120.38945519"
this.dataForm.latitude = "36.0722275"
if (!this.dataForm.longitude && !this.dataForm.latitude) {
this.dataForm.longitude = "120.38945519";
this.dataForm.latitude = "36.0722275";
}
this.initMap();
})
@ -406,7 +425,7 @@ export default {
duration: 500,
onClose: () => {
this.$emit("refreshDataList");
this.closeSubmit()
this.closeSubmit();
},
});
})
@ -427,17 +446,17 @@ export default {
};
</script>
<style scoped>
.position_label >>> .el-form-item__label::before{
color:#fff!important;
.position_label >>> .el-form-item__label::before {
color: #fff !important;
}
.submit{
.submit {
text-align: center;
margin: auto;
}
.form-class .el-input{
.form-class .el-input {
width: 75%;
}
.form-class .el-textarea{
width: 75%!important;
.form-class .el-textarea {
width: 75% !important;
}
</style>

4
src/views/modules/plugins/point/icpointnucleicmonitoring.vue

@ -113,7 +113,7 @@
:data="dataList"
border
@selection-change="dataListSelectionChangeHandle"
style="width: 100%"
style="width: 100%;height:564px;"
>
<el-table-column
type="selection"
@ -499,6 +499,8 @@ export default {
display: flex;
align-items: center;
margin-bottom: 20px;
margin-top: 10px;
margin-left: 10px;
}
.div_left_table {
margin-top: 10px;

1
src/views/modules/plugins/point/icpointvaccinesinoculation-add-or-update.vue

@ -89,6 +89,7 @@
<el-input
v-model="dataForm.address"
placeholder="例:青岛市时代国际广场"
style="width:65%;"
></el-input>
<el-button
style="margin-left: 10px"

4
src/views/modules/plugins/point/icpointvaccinesinoculation.vue

@ -103,7 +103,7 @@
:data="dataList"
border
@selection-change="dataListSelectionChangeHandle"
style="width: 100%"
style="width: 100%;height:564px;"
>
<el-table-column
type="selection"
@ -483,6 +483,8 @@ export default {
display: flex;
align-items: center;
margin-bottom: 20px;
margin-top: 10px;
margin-left: 10px;
}
.div_left_table {
margin-top: 10px;

Loading…
Cancel
Save