diff --git a/src/views/modules/visual/command/cpts/serviceInfo.vue b/src/views/modules/visual/command/cpts/serviceInfo.vue index 2c84b082..a7ed927e 100644 --- a/src/views/modules/visual/command/cpts/serviceInfo.vue +++ b/src/views/modules/visual/command/cpts/serviceInfo.vue @@ -7,18 +7,18 @@ 发起服务 -
+
- - +
@@ -33,34 +33,31 @@ import addForm from "@/views/modules/communityService/fuwujilu/addForm"; export default { name: "dialogInfo", - props: { - - }, + props: {}, components: { cptCard, - addForm + addForm, }, - data () { + data() { return { loading: false, - pageType: 'dispose', - eventId: '1529724450524061698', + pageType: "dispose", + eventId: "1529724450524061698", eventDetailData: {}, }; }, - async mounted () { - this.loading = false - await this.handleSearch() - this.loading = true + async mounted() { + this.loading = false; + await this.handleSearch(); + this.loading = true; }, methods: { - async handleSearch () { - + async handleSearch() { const url = "/gov/project/icEvent/detail"; // const url = "http://yapi.elinkservice.cn/mock/245/gov/project/icEvent/detail"; @@ -69,7 +66,6 @@ export default { }); if (code === 0) { - this.eventDetailData = { ...data }; this.pageType = "dispose"; } else { @@ -77,20 +73,20 @@ export default { } }, - handleClose () { + handleClose() { this.pageType = ""; - this.$emit("handleClose") + this.$emit("handleClose"); // this.eventId = "" }, - handleOk () { + handleOk() { this.pageType = ""; // this.eventId = "" - this.pageNo = 1 + this.pageNo = 1; + this.handleClose(); }, - handleEditSuccess () { + handleEditSuccess() { this.handleClose(); - }, }, }; diff --git a/src/views/modules/visual/command/cpts/sidemenu-left.vue b/src/views/modules/visual/command/cpts/sidemenu-left.vue index 200d7d4b..4efcf337 100644 --- a/src/views/modules/visual/command/cpts/sidemenu-left.vue +++ b/src/views/modules/visual/command/cpts/sidemenu-left.vue @@ -156,6 +156,8 @@ export default { //加载组织数据 async requestList() { + if (!this.orgId) return; + const url = "/data/aggregator/coverage/analysis/governedTargetCategories"; let params = { agencyId: this.orgId,