haoxuan
2023-10-17 bbf59cd0a1c02ebf7974704250ae262f17050c59
src/views/service/clientServiceOrder/index.vue
@@ -179,13 +179,23 @@
    // 请求数据
    async getData() {
      this.loading = true
      await getServiceOrderList({
        keyword: this.keyword,
        keywordType: this.keywordType,
        page: this.pagerOptions.currPage,
        pageSize: this.pagerOptions.pageSize,
        sourceId: this.addConfig.id
      })
      console.log(this.addConfig)
      let params = {}
      if (this.addConfig.keywordType === "服务合同") {
        params = {
          serviceContractId: this.addConfig.serviceContractId,
          page: this.pagerOptions.currPage,
          pageSize: this.pagerOptions.pageSize
        }
      } else {
        params = {
          keyword: this.keyword,
          keywordType: this.keywordType,
          page: this.pagerOptions.currPage,
          pageSize: this.pagerOptions.pageSize
        }
      }
      await getServiceOrderList(params)
        .then((res) => {
          console.log(res)
          if (res.code === 200) {