Browse Source

改bug

master
dai 3 years ago
parent
commit
6b4c147203
  1. 46
      src/views/modules/visual/command/cpts/serviceInfo.vue
  2. 2
      src/views/modules/visual/command/cpts/sidemenu-left.vue

46
src/views/modules/visual/command/cpts/serviceInfo.vue

@ -7,18 +7,18 @@
<span>发起服务</span>
</div>
<div class="btn-close"
@click="handleClose">
<div class="btn-close" @click="handleClose">
<img src="@/assets/img/shuju/people/close.png" />
</div>
<add-form ref="demandEditForm"
<add-form
ref="demandEditForm"
:source="'visiual'"
:formType="'add'"
@handleClose="handleClose"
@handleOk="handleOk"
@dialogOk="handleEditSuccess" />
@dialogOk="handleEditSuccess"
/>
</cpt-card>
</div>
</div>
@ -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();
},
},
};

2
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,

Loading…
Cancel
Save