123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- import { httpUtil } from '../../../utils/restful'
- Component({
-
- properties: {
- },
-
- data: {
- fileList: []
- },
- lifetimes: {
- attached: function () {
-
- this.getLessAll()
- },
- detached: function () {
-
- },
- },
-
- methods: {
- getLessAll: function () {
- let params = {
- pageNo: 1,
- pageSize: 10000
- }
- httpUtil.wxGet(httpUtil.interfaces.createLess, params).then((res: any) => {
- console.log("获取所有文件库成功", res)
- this.setData({
- fileList: res.data.data.list
- })
- }).catch((res) => {
- console.log("获取所有文件库失败:", res)
- })
- },
- showWindow: function (event: any) {
-
- this.triggerEvent("showWindow", { item: event.detail.item })
- },
- realod: function () {
- this.getLessAll()
- }
- }
- })
|