diff --git a/.env.development b/.env.development
index 65bdf2296..139b67286 100644
--- a/.env.development
+++ b/.env.development
@@ -1,6 +1,6 @@
NODE_ENV=development
-VUE_APP_API_SERVER = http://192.168.1.144/api
+VUE_APP_API_SERVER = http://dcommunity-dev.elinkservice.cn:30801/api
# VUE_APP_API_SERVER = http://118.190.150.119:41080/api
# VUE_APP_API_SERVER = https://epmet-yantai.elinkservice.cn/api
# VUE_APP_API_SERVER = https://epmet-test.elinkservice.cn/api
diff --git a/src/views/modules/base/community/buildDetail.vue b/src/views/modules/base/community/buildDetail.vue
index de00c50a1..d72f159f1 100644
--- a/src/views/modules/base/community/buildDetail.vue
+++ b/src/views/modules/base/community/buildDetail.vue
@@ -7,7 +7,7 @@
@@ -247,7 +247,7 @@ export default {
{ required: true, message: '单元数不能为空', trigger: 'blur' }
],
coding: [
- { required: true, message: '楼栋编码不能为空', trigger: 'blur' }
+ { required: true, message: '楼栋编码不能为空', trigger: 'change' }
]
// totalFloorNum: [
// { required: true, message: '层数不能为空', trigger: 'blur' }
diff --git a/src/views/modules/base/community/buildForm.vue b/src/views/modules/base/community/buildForm.vue
index bf1e06316..36ccb1f5e 100644
--- a/src/views/modules/base/community/buildForm.vue
+++ b/src/views/modules/base/community/buildForm.vue
@@ -2,46 +2,24 @@
-
-
+
+
{{ agencyObj.agencyName }}—{{ agencyObj.gridName }}—{{ agencyObj.label }}
-
-
+
+
-
-
+
+
- 生成
+ 生成
-
+
商品房
@@ -57,103 +35,55 @@
v-model="dataForm.sort"
label="排序">
-->
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
+
-
+
-
+
- 取 消
- 保 存
+ 取 消
+ 保
+ 存
@@ -169,7 +99,7 @@ var markers
var infoWindowList
let loading // 加载动画
export default {
- data () {
+ data() {
return {
formType: 'add', //表单操作类型 add新增,edit编辑,detail详情
searchOptions: [],
@@ -208,12 +138,12 @@ export default {
}
},
components: {},
- mounted () {
+ mounted() {
},
methods: {
- async initForm (type, row, agencyObj) {
+ async initForm(type, row, agencyObj) {
this.$refs.ref_form.resetFields();
let { latitude, longitude } = this.$store.state.user;
this.agencyObj = agencyObj
@@ -233,16 +163,11 @@ export default {
this.dataForm.longitude = longitude
}
this.$nextTick(() => {
- if (!map) {
- this.initMap(this.dataForm.latitude, this.dataForm.longitude);
- } else {
- map.setCenter(this.dataForm.latitude, this.dataForm.longitude);
- map.setMarker(this.dataForm.latitude, this.dataForm.longitude);
- }
+ this.initMap(this.dataForm.latitude, this.dataForm.longitude);
})
},
- async handleComfirm () {
+ async handleComfirm() {
this.btnDisable = true
setTimeout(() => {
this.btnDisable = false
@@ -258,19 +183,16 @@ export default {
})
},
- async handleCode () {
+ async handleCode() {
const { data, code, msg } = await requestPost(
"/actual/base/communityBuilding/getBuildingCoding/" + this.dataForm.neighborHoodId);
- console.log('data----', data)
- console.log('code----', code)
- console.log('msg----', msg)
if (msg == "success" && code == 0) {
this.dataForm.coding = data.coding
this.dataForm.sysCoding = data.sysCoding
}
},
- async addBuild () {
+ async addBuild() {
if (this.dataForm.buildingLeaderMobile) {
const regPhone = /^1(3|4|5|6|7|8|9)\d{9}$/; //联系电话
if (this.dataForm.buildingLeaderMobile && regPhone.test(this.dataForm.buildingLeaderMobile) === false) {
@@ -288,7 +210,6 @@ export default {
url = '/actual/base/communityBuilding/saveCommunityBuilding'
} else {
url = '/actual/base/communityBuilding/updateCommunityBuilding'
-
this.dataForm.buildingId = this.buildingId
}
@@ -310,14 +231,13 @@ export default {
},
- handleCancle () {
+ handleCancle() {
this.resetData()
this.$emit('dialogCancle')
},
// 地图初始化函数,本例取名为init,开发者可根据实际情况定义
- initMap (latitude, longitude) {
-
+ initMap(latitude, longitude) {
map = new daiMap(
document.getElementById("app_build"),
{ latitude, longitude },
@@ -339,7 +259,7 @@ export default {
},
- async handleMoveCenter () {
+ async handleMoveCenter() {
//修改地图中心点
const { lat, lng } = map.getCenter();
this.dataForm.latitude = lat;
@@ -355,7 +275,7 @@ export default {
}
},
- async remoteMethod (query) {
+ async remoteMethod(query) {
if (query !== '') {
this.loading = true;
@@ -386,7 +306,7 @@ export default {
}
},
- handleClickKey (index) {
+ handleClickKey(index) {
let selPosition = this.resultList[index]
let lonlat = selPosition.lonlat.split(" ")
map.setCenter(lonlat[1], lonlat[0]);
@@ -397,7 +317,7 @@ export default {
},
- resetData () {
+ resetData() {
this.searchValue = ''
this.searchOptions = []
this.resultList = []
@@ -426,7 +346,7 @@ export default {
}
},
// 开启加载动画
- startLoading () {
+ startLoading() {
loading = Loading.service({
lock: true, // 是否锁定
text: '正在加载……', // 加载中需要显示的文字
@@ -434,7 +354,7 @@ export default {
})
},
// 结束加载动画
- endLoading () {
+ endLoading() {
// clearTimeout(timer);
if (loading) {
loading.close()
@@ -442,7 +362,7 @@ export default {
}
},
computed: {
- dataRule () {
+ dataRule() {
return {
buildingName: [
{ required: true, message: '楼栋名称不能为空', trigger: 'blur' },
@@ -460,7 +380,7 @@ export default {
{ required: true, message: '单元数不能为空', trigger: 'blur' }
],
coding: [
- { required: true, message: '楼栋编码不能为空', trigger: 'blur' }
+ { required: true, message: '楼栋编码不能为空', trigger: 'change' }
]
// totalFloorNum: [
// { required: true, message: '层数不能为空', trigger: 'blur' }
diff --git a/src/views/modules/base/community/buildTable.vue b/src/views/modules/base/community/buildTable.vue
index a936bfe93..848ea83a0 100644
--- a/src/views/modules/base/community/buildTable.vue
+++ b/src/views/modules/base/community/buildTable.vue
@@ -233,15 +233,15 @@
class="div-table-button--blue"
size="small"
@click="handleDetail(scope.row)">查看
-
编辑
查看
- * 根据数据分析结果,建议重点关注
+ 根据数据分析结果,建议重点关注
{{ resiCategory.list[0].name }}、{{
resiCategory.list[1].name
diff --git a/src/views/modules/shequzhili/tuceng/anquan/yinhuan/index.vue b/src/views/modules/shequzhili/tuceng/anquan/yinhuan/index.vue
index a947a5d60..abf092032 100644
--- a/src/views/modules/shequzhili/tuceng/anquan/yinhuan/index.vue
+++ b/src/views/modules/shequzhili/tuceng/anquan/yinhuan/index.vue
@@ -1,10 +1,10 @@
-
+
-
+
@@ -19,7 +19,7 @@
-
+
@@ -28,9 +28,7 @@
-
-
-
+
@@ -69,21 +67,36 @@
-
+
+
-
查看
-
- 编辑
- 待完善
- 删除
+
+ 编辑
+
+
+ 待完善
+
+ 删除
@@ -101,8 +114,10 @@
-
-
+
= 8000) {
this.$message.error(msg);
diff --git a/src/views/modules/shequzhili/tuceng/chengshiguanli/index.vue b/src/views/modules/shequzhili/tuceng/chengshiguanli/index.vue
index 69477a83d..f3818a862 100644
--- a/src/views/modules/shequzhili/tuceng/chengshiguanli/index.vue
+++ b/src/views/modules/shequzhili/tuceng/chengshiguanli/index.vue
@@ -1,6 +1,6 @@
-
+
-
-
+
-
+
-
+
{{ formData.equipmentName }}
@@ -199,7 +198,7 @@ export default {
this.agencyId = this.user.agencyId;
this.startLoading();
// this.loadGrid();
- // this.loadplaceType();
+ this.loadplaceType();
if (this.pageType != 'add') {
this.getDetail();
} else {
@@ -227,7 +226,7 @@ export default {
async loadplaceType() {
const url = '/sys/dict/data/dictlist';
let params = {
- dict_type: 'common_service_equipment_category'
+ dictType: 'common_service_equipment_category'
};
const { data, code, msg } = await requestPost(url, params);
if (code === 0) {
@@ -291,7 +290,7 @@ export default {
if (code === 0) {
this.$message.success('添加成功');
// this.resetData();
- // this.$emit('handleComfirm');
+ this.$emit('handleComfirm');
} else if (code >= 8000) {
this.$message.error(msg);
}
diff --git a/src/views/modules/shequzhili/tuceng/gonggongfuwu/index.vue b/src/views/modules/shequzhili/tuceng/gonggongfuwu/index.vue
index e5cb2209d..ff02ecc5d 100644
--- a/src/views/modules/shequzhili/tuceng/gonggongfuwu/index.vue
+++ b/src/views/modules/shequzhili/tuceng/gonggongfuwu/index.vue
@@ -1,6 +1,6 @@
-
+
@@ -53,21 +53,36 @@
-
+
-
-
-
+
+
+
-
查看
-
- 编辑
- 待完善
- 删除
+
+
+ 编辑
+
+
+ 待完善
+
+ 删除
@@ -85,8 +100,10 @@
-
-
+
-
+
@@ -58,20 +58,20 @@
-
- {{ formData.equipmentName }}
+
+ {{ formData.name }}
- {{ formData.equipmentCategoryName }}
+ {{ formData.categoryName }}
- {{ formData.principalName }}
+ {{ formData.areaCovered }}
- {{ formData.contactNum }}
+ {{ formData.capacity }}
- {{ formData.location }}
+ {{ formData.address }}
@@ -189,7 +189,7 @@ export default {
this.agencyId = this.user.agencyId;
this.startLoading();
// this.loadGrid();
- // this.loadplaceType();
+ this.loadplaceType();
if (this.pageType != 'add') {
this.getDetail();
} else {
@@ -217,7 +217,9 @@ export default {
async loadplaceType() {
const url = '/sys/dict/data/dictlist';
let params = {
- dict_type: 'emergency_site_type'
+ dictType: 'emergency_site_type'
+
+ // purpose: 'query'
};
const { data, code, msg } = await requestPost(url, params);
if (code === 0) {
@@ -227,7 +229,7 @@ export default {
}
},
async getDetail() {
- const url = `/actual/base/safetyEquipment/detail/${this.detailId}`;
+ const url = `/actual/base/emergencySites/detail/${this.detailId}`;
const { data, code, msg } = await requestPost(url);
if (code === 0) {
console.log('详情数据', data);
diff --git a/src/views/modules/shequzhili/tuceng/yingji/changsuo/index.vue b/src/views/modules/shequzhili/tuceng/yingji/changsuo/index.vue
index 1206975e8..1e54ea5a6 100644
--- a/src/views/modules/shequzhili/tuceng/yingji/changsuo/index.vue
+++ b/src/views/modules/shequzhili/tuceng/yingji/changsuo/index.vue
@@ -177,7 +177,7 @@ export default {
async loadplaceType() {
const url = '/sys/dict/data/dictlist';
let params = {
- dict_type: 'emergency_site_type'
+ dictType: 'emergency_site_type'
// purpose: 'query'
};
@@ -226,8 +226,8 @@ export default {
});
},
handleAdd(row, type) {
- if (row.equipmentId) {
- this.detailId = row.equipmentId;
+ if (row.id) {
+ this.detailId = row.id;
}
this.pageType = type;
@@ -261,7 +261,7 @@ export default {
type: 'warning'
})
.then(() => {
- this.del(rowData.equipmentId);
+ this.del(rowData.id);
})
.catch(err => {});
},
diff --git a/src/views/modules/shequzhili/tuceng/yingji/wuzi/index.vue b/src/views/modules/shequzhili/tuceng/yingji/wuzi/index.vue
index d8b87e143..3ee50d617 100644
--- a/src/views/modules/shequzhili/tuceng/yingji/wuzi/index.vue
+++ b/src/views/modules/shequzhili/tuceng/yingji/wuzi/index.vue
@@ -64,15 +64,15 @@
-
+
- 异常
- 正常
+ 异常
+ 正常
--
diff --git a/src/views/modules/shequzhili/tuceng/yingji/zizuzhi/addForm.vue b/src/views/modules/shequzhili/tuceng/yingji/zizuzhi/addForm.vue
index 2aeb97321..f1cb3a2af 100644
--- a/src/views/modules/shequzhili/tuceng/yingji/zizuzhi/addForm.vue
+++ b/src/views/modules/shequzhili/tuceng/yingji/zizuzhi/addForm.vue
@@ -10,7 +10,7 @@
-
+
@@ -22,13 +22,14 @@
-
+
@@ -36,31 +37,33 @@
-
-
handleSelectVolunteer(index, vItem)"
- :disabled="item.icResiUserId != ''"
- >
-
-
-
-
删除
+
+
+
+ handleSelectVolunteer(index, vItem)"
+ :disabled="item.icResiUserId != ''"
+ >
+
+
+
+
+ 删除
+
-
-
添加
+
添加
@@ -81,19 +84,11 @@
-
+
-
-
-
+
+
- {{ formData.equipmentName }}
+ {{ formData.organizationName }}
- {{ formData.equipmentCategoryName }}
+ {{ formData.categoryName }}
- {{ formData.principalName }}
+ {{ formData.organizationPersonCount }}
- {{ formData.contactNum }}
+
+
+
+
+ {{ item.personName }}
+ {{ item.personPhone }}
+
+
+
+
- {{ formData.location }}
+ {{ formData.serviceItem }}
+
+
+ {{ formData.principalName }}
+
+
+ {{ formData.principalPhone }}
+
+
+ {{ formData.organizationCreatedTime }}
+
+
+ {{ formData.address }}
@@ -289,24 +305,24 @@ export default {
},
methods: {
- querySearchVolunteer (queryString, cb) {
- const { volunteerList } = this;
- var results = queryString
- ? volunteerList.filter((item) => {
- return item.value.indexOf(queryString) !== -1;
- })
- : volunteerList;
- // 调用 callback 返回建议列表的数据
- cb(results);
+ querySearchVolunteer(queryString, cb) {
+ const { volunteerList } = this;
+ var results = queryString
+ ? volunteerList.filter(item => {
+ return item.value.indexOf(queryString) !== -1;
+ })
+ : volunteerList;
+ // 调用 callback 返回建议列表的数据
+ cb(results);
},
- handleSelectVolunteer (index, vItem) {
- this.formData.organizationPersonnel[index] = {
- personName: vItem.name,
- personPhone: vItem.mobile,
- icResiUserId: vItem.icResiUserId,
- };
+ handleSelectVolunteer(index, vItem) {
+ this.formData.organizationPersonnel[index] = {
+ personName: vItem.name,
+ personPhone: vItem.mobile,
+ icResiUserId: vItem.icResiUserId
+ };
},
-
+
async getVolunteerList() {
const url = '/epmetuser/icresiuser/volunteer-list';
const params = {};
@@ -426,8 +442,8 @@ export default {
url = '/actual/base/iccommunityselforganization/editcommunityselforganization';
// this.dataForm.orgId = this.orgId;
}
-
- params = { ...this.formData };
+ console.log('this.', this.formData);
+ let params = { ...this.formData };
const { data, code, msg } = await requestPost(url, params);
if (code === 0) {
this.$message.success('添加成功');
@@ -549,4 +565,7 @@ export default {
@import '@/assets/scss/modules/management/form-main.scss';
@import '@/assets/scss/modules/management/form.scss';
@import '@/assets/scss/modules/visual/a_customize.scss';
+.textarea {
+ width: 500px;
+}
diff --git a/src/views/modules/shequzhili/tuceng/yingji/zizuzhi/index.vue b/src/views/modules/shequzhili/tuceng/yingji/zizuzhi/index.vue
index 12c4a11c3..f28439364 100644
--- a/src/views/modules/shequzhili/tuceng/yingji/zizuzhi/index.vue
+++ b/src/views/modules/shequzhili/tuceng/yingji/zizuzhi/index.vue
@@ -68,26 +68,20 @@
-
+
- 查看
- 积分记录
-
-
-
- 同步
-
-
- 取消同步
-
+ 查看
+ 积分记录
+ 同步
+ 取消同步
- 编辑
+ 修改
-
-
-
+
+
@@ -149,11 +135,11 @@ import nextTick from 'dai-js/tools/nextTick';
import { mapGetters } from 'vuex';
import addForm from './addForm.vue';
import axios from 'axios';
-import scoreRecord from "./scoreRecord.vue";
+import scoreRecord from './scoreRecord.vue';
export default {
data() {
return {
- scoreDiaShow:false,
+ scoreDiaShow: false,
dialogVisible: false,
importLoading: false,
disabled: false,
@@ -176,10 +162,11 @@ export default {
detailId: '',
detailData: {},
multipleSelection: [],
- rowObj: {}
+ rowObj: {},
+ orgId: ''
};
},
- components: { addForm,scoreRecord },
+ components: { addForm, scoreRecord },
created() {},
computed: {
maxTableHeight() {
@@ -197,15 +184,13 @@ export default {
},
methods: {
//积分记录
- handleScore (row) {
- this.scoreDiaShow = true;
- this.$nextTick(() => {
- this.$refs.ref_score.initForm(row.orgId);
- });
+ handleScore(row) {
+ this.orgId = row.orgId;
+ this.scoreDiaShow = true;
},
-
- diaClose () {
- this.scoreDiaShow = false;
+
+ diaClose() {
+ this.scoreDiaShow = false;
},
handleSelectionChange(val) {
this.multipleSelection = [];
diff --git a/src/views/modules/shequzhili/tuceng/yingji/zizuzhi/scoreRecord.vue b/src/views/modules/shequzhili/tuceng/yingji/zizuzhi/scoreRecord.vue
index 1ba828ea2..aebaeef8e 100644
--- a/src/views/modules/shequzhili/tuceng/yingji/zizuzhi/scoreRecord.vue
+++ b/src/views/modules/shequzhili/tuceng/yingji/zizuzhi/scoreRecord.vue
@@ -1,351 +1,303 @@
-
-
-
-
-
-
-
-
-
-
-
-
- {{totalPoint}}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+ {{ totalPoint }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
diff --git a/vue.config.js b/vue.config.js
index 32ae7f1f3..1d21a7481 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -33,7 +33,7 @@ module.exports = {
target: "http://bipaas.elinkservice.cn", // 我们要代理的真实接口地址
},
},
- open: true,
+ open: false,
port: 9001,
overlay: {
errors: true,