|
|
@ -1,4 +1,7 @@ |
|
|
|
// package/bindTroubleshooting/index.js
|
|
|
|
import { getPatrolRecordIssueHandle } from "../../utils/getApiUrl"; |
|
|
|
import { Request } from "../../common"; |
|
|
|
|
|
|
|
Page({ |
|
|
|
|
|
|
|
/** |
|
|
@ -23,15 +26,24 @@ Page({ |
|
|
|
currentTab: e.currentTarget.dataset.current |
|
|
|
}) |
|
|
|
if (e.currentTarget.dataset.current == '0') { |
|
|
|
|
|
|
|
} else if (e.currentTarget.dataset.current == '1') { |
|
|
|
|
|
|
|
} |
|
|
|
this.setData({ |
|
|
|
page: 0, |
|
|
|
dataList: [] |
|
|
|
}, () => { |
|
|
|
// this.getPatrolPlan();
|
|
|
|
this.getData({ |
|
|
|
type: e.currentTarget.dataset.current == '0' ? 'backlog' : 'haveDone' |
|
|
|
}); |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
getData (params) { |
|
|
|
Request.get(getPatrolRecordIssueHandle, {}).then(res => { |
|
|
|
console.log(res); |
|
|
|
}) |
|
|
|
} else if (e.currentTarget.dataset.current == '1') { |
|
|
|
// this.getPatrolRecord();
|
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
// 筛选选择
|
|
|
|