zuozhengqing
2024-01-08 554aef0a4395d72dc3e2d22990c129475b052b5f
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) {
@@ -242,7 +252,6 @@
    },
    // 编辑
    handleClick(row) {
      console.log(row)
      this.editConfig.visible = true
      this.editConfig.title = "编辑"
      this.editConfig.infomation = {