1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- import { httpUtil } from "../../utils/restful"
- Page({
-
- data: {
- lessId: '',
- itemList: null
- },
-
- onLoad(options) {
- this.setData({
- lessId: options.lessId
- })
- this.getDocumentAll();
- console.log("this.data.itemList:", this.data.itemList)
- },
- showActionWindow: function (evnet: any) {
- console.log("event:", evnet.detail.item)
- this.selectComponent("#popupwindow").showModal(evnet.detail.item, 1)
- },
- fileDel: function () {
-
- this.getDocumentAll();
- },
- getDocumentAll() {
-
- let params = {
- lessId: this.data.lessId,
- userId: httpUtil.httpData.userId,
- pageNo: 1,
- pageSize: 100000,
- }
- httpUtil.wxGet(httpUtil.interfaces.getDocumentFile, params).then((res: any) => {
- console.log("获取所有文件成功:", res)
- this.setData({
- itemList: res.data.data.list
- })
- }).catch((res) => {
- console.log("获取所有文件失败:", res)
- })
- }
- })
|