index.js 892 B

12345678910111213141516171819202122232425262728293031323334
  1. const _Http = getApp().globalData.http;
  2. Component({
  3. properties: {
  4. siteid: {
  5. type: String
  6. },
  7. },
  8. methods: {
  9. queryList(condition) {
  10. return _Http.basic({
  11. "id": 20230727134902,
  12. "content": {
  13. "pageNumber": 1,
  14. "pageSize": 9999,
  15. "where": {
  16. condition
  17. }
  18. }
  19. }).then(res => {
  20. console.log("项目名称", res)
  21. this.setData({
  22. repetitionList: res.data,
  23. show: this.data.siteid == 'HY' ? false : res.data.length != 0
  24. })
  25. return res.data.length != 0
  26. })
  27. },
  28. repClose() {
  29. this.setData({
  30. show: false
  31. })
  32. }
  33. }
  34. })