-
-
+
+
修改
{{ item.centerName }}
@@ -51,108 +48,89 @@
>
-->
-
-
-
-
-
+
+
+
+
+
-
+
-
+
- 预约
-
- 预约记录
+ 预约
+
+ 预约记录
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
@@ -173,7 +151,7 @@ let loading; // 加载动画
export default {
components: { editForm, orderForm, orderList },
- data() {
+ data () {
return {
openSearch: false,
@@ -190,23 +168,23 @@ export default {
};
},
computed: {
- maxTableHeight() {
+ maxTableHeight () {
return this.clientHeight - 520;
},
...mapGetters(["clientHeight"]),
},
watch: {
- currentIndex() {
+ currentIndex () {
this.setMap();
},
},
- async mounted() {
+ async mounted () {
await this.loadAgency();
await this.getTableData();
},
methods: {
// 地图初始化函数,本例取名为init,开发者可根据实际情况定义
- initMap() {
+ initMap () {
// 定义地图中心点坐标
var center = new window.TMap.LatLng(36.0722275, 120.38945519);
// 定义map变量,调用 TMap.Map() 构造函数创建地图
@@ -226,7 +204,7 @@ export default {
infoWindowList = Array(10);
},
- setMarker(lat, lng, centerName) {
+ setMarker (lat, lng, centerName) {
markers.setGeometries([]);
markers.add([
{
@@ -240,11 +218,11 @@ export default {
]);
},
- setCenter(lat, lng) {
+ setCenter (lat, lng) {
map.setCenter(new window.TMap.LatLng(lat, lng));
},
- setMap() {
+ setMap () {
const { tableData, currentIndex } = this;
let item = tableData[currentIndex];
if (item) {
@@ -253,24 +231,24 @@ export default {
}
},
- handleClose() {
+ handleClose () {
this.formShow = false;
},
- handleCloseForm2() {
+ handleCloseForm2 () {
this.form2Show = false;
},
- handleCloseOrderList() {
+ handleCloseOrderList () {
this.orderListShow = false;
},
- async handleAdd() {
+ async handleAdd () {
this.formShow = true;
await nextTick();
console.log(this.$refs);
this.$refs.eleEditForm.initForm("add");
},
- async handleWatch() {
+ async handleWatch () {
this.formShow = true;
await nextTick();
this.$refs.eleEditForm.initForm(
@@ -279,7 +257,7 @@ export default {
);
},
- async handleEdit() {
+ async handleEdit () {
this.formShow = true;
await nextTick();
this.$refs.eleEditForm.initForm(
@@ -288,12 +266,12 @@ export default {
);
},
- handleEditSuccess() {
+ handleEditSuccess () {
this.handleClose();
this.getTableData();
},
- async handleOrder(index) {
+ async handleOrder (index) {
this.form2Show = true;
await nextTick();
this.$refs.eleOrderForm.initForm(
@@ -303,18 +281,18 @@ export default {
);
},
- handleOrderSuccess() {
+ handleOrderSuccess () {
this.handleCloseForm2();
},
- async handleOrderList(index) {
+ async handleOrderList (index) {
this.orderListShow = true;
await nextTick(0);
console.log(this.$refs);
this.$refs.eleOrderList.init(this.tableData[this.currentIndex], index);
},
- async handleDel(rowData, rowIndex) {
+ async handleDel (rowData, rowIndex) {
console.log(rowData, rowIndex);
const url =
"/heart/iccommunityselforganization/delcommunityselforganization";
@@ -332,7 +310,7 @@ export default {
}
},
- async getTableData() {
+ async getTableData () {
const oldLen = this.tableData.length;
const url = "/gov/org/icpartyservicecenter/partyservicecenterlist";
const { data, code, msg } = await requestPost(url, {
@@ -353,7 +331,7 @@ export default {
},
//加载组织
- async loadAgency() {
+ async loadAgency () {
const url = "/epmetuser/customerstaff/staffbasicinfo";
let params = {};