| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- const _Http = getApp().globalData.http;
- Component({
- properties: {
- siteid: {
- type: String
- },
- },
- lifetimes: {
- attached: function () {
- getApp().globalData.Language.getLanguagePackage(this)
- }
- },
- methods: {
- queryList(condition) {
- return _Http.basic({
- "id": 20230727134902,
- "content": {
- "pageNumber": 1,
- "pageSize": 9999,
- "where": {
- condition
- }
- }
- }).then(res => {
- console.log("项目名称", res)
- if (res.code == 0) {
- wx.showToast({
- title: res.msg,
- icon: "none"
- })
- return res.msg
- }
- this.setData({
- repetitionList: res.data,
- show: this.data.siteid == 'HY' ? false : res.data.length != 0
- })
- return res.data.length != 0
- })
- },
- repClose() {
- this.setData({
- show: false
- })
- }
- }
- })
|