{"remainingRequest":"D:\\jenkins\\workspace\\xypm-web\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\xypm-web\\src\\views\\searchPage\\searchListDetial.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xypm-web\\src\\views\\searchPage\\searchListDetial.vue","mtime":1675214578308},{"path":"D:\\jenkins\\workspace\\xypm-web\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\xypm-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xypm-web\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\r\nimport detail from './detial.vue'\r\nexport default {\r\n  components: {\r\n    detail,\r\n  },\r\n  data() {\r\n    return {\r\n      tableData: [],\r\n      projectInfo: {},\r\n      pageInfo: {},\r\n      data: {},\r\n      contractInfo: {},\r\n      contractInfoItem: [],\r\n      params: {\r\n        pageBean: {\r\n          page: -1,\r\n          pageSize: 10,\r\n          showTotal: true,\r\n        },\r\n        querys: [\r\n          {\r\n            group: 'main',\r\n            operation: 'EQUAL',\r\n            property: 'SOURCE_ID_',\r\n            relation: 'AND',\r\n            value: '',\r\n          },\r\n        ],\r\n      },\r\n      loading: false,\r\n      empty: false,\r\n    }\r\n  },\r\n  created() {\r\n    this.pageInfo = window.opener['filter']\r\n    console.log(this.pageInfo, 'ttttt')\r\n    this.getDetailsData()\r\n  },\r\n  methods: {\r\n    //查看\r\n    preview(row) {\r\n      console.log(row)\r\n    },\r\n    //下载\r\n    download(row) {\r\n      let ids = row.id\r\n      let bizPath = 'default'\r\n      let formData = new FormData()\r\n      formData.append('bizPath', bizPath)\r\n      formData.append('ids', ids)\r\n      req\r\n        .downloadPostCopy(\r\n          '${cqxy}/biz/universal/accessory/v1/minIoAllDownFile',\r\n          formData\r\n        )\r\n        .then((res) => {\r\n          console.log(res)\r\n        })\r\n    },\r\n    getDetailsData() {\r\n      this.loading = true\r\n      if (this.pageInfo.functionCode !== 'Accessory') {\r\n        this.$http\r\n          .post(\r\n            '${cqxy}' + this.pageInfo.detailsApiUrl + this.pageInfo.bizDataId\r\n          )\r\n          .then((res) => {\r\n            if (res.data.state) {\r\n              let data = res.data.value\r\n              this.data = data\r\n              this.projectInfo = data.projectInfo\r\n              if (data.accessoryInfo && data.accessoryInfo.length !== 0) {\r\n                this.tableData = data.accessoryInfo\r\n              }\r\n              if (data.contract) {\r\n                this.contractInfo = data.contract\r\n              }\r\n              if (data.contractItem && data.contractItem.length !== 0) {\r\n                this.contractInfoItem = data.contractItem\r\n              }\r\n              this.empty = false\r\n            } else {\r\n              this.empty = true\r\n            }\r\n            this.loading = false\r\n          })\r\n      } else {\r\n        this.params.querys[0].value = this.pageInfo.fileSourceId\r\n        this.$http\r\n          .post('${yhxt}' + this.pageInfo.tableApiUrl, this.params)\r\n          .then((res) => {\r\n            if (res.data.state) {\r\n              let data = res.data.value\r\n              this.tableData = data.rows\r\n              this.empty = false\r\n            } else {\r\n              this.empty = true\r\n            }\r\n            this.loading = false\r\n          })\r\n      }\r\n    },\r\n  },\r\n}\r\n",null]}