|
@@ -12,7 +12,9 @@ Component({
|
|
* 组件的初始数据
|
|
* 组件的初始数据
|
|
*/
|
|
*/
|
|
data: {
|
|
data: {
|
|
- fileList: []
|
|
|
|
|
|
+ fileList: [],
|
|
|
|
+ hiddenInput: false,
|
|
|
|
+ inputText: ''
|
|
},
|
|
},
|
|
lifetimes: {
|
|
lifetimes: {
|
|
attached: function () {
|
|
attached: function () {
|
|
@@ -33,7 +35,8 @@ Component({
|
|
getLessAll: function () {
|
|
getLessAll: function () {
|
|
let params = {
|
|
let params = {
|
|
pageNo: 1,
|
|
pageNo: 1,
|
|
- pageSize: 10000
|
|
|
|
|
|
+ pageSize: 10000,
|
|
|
|
+ title: this.data.inputText
|
|
}
|
|
}
|
|
httpUtil.wxGet(httpUtil.interfaces.createLess, params).then((res: any) => {
|
|
httpUtil.wxGet(httpUtil.interfaces.createLess, params).then((res: any) => {
|
|
console.log("获取所有文件库成功", res)
|
|
console.log("获取所有文件库成功", res)
|
|
@@ -46,12 +49,31 @@ Component({
|
|
console.log("获取所有文件库失败:", res)
|
|
console.log("获取所有文件库失败:", res)
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+
|
|
|
|
+ inputSearch: function (e) {
|
|
|
|
+ let content = e.detail.value['search - input'] ? e.detail.value['search - input'] : e.detail.value
|
|
|
|
+ this.setData({
|
|
|
|
+ inputText: content
|
|
|
|
+ })
|
|
|
|
+ console.log(" this.data.inputText:", this.data.inputText)
|
|
|
|
+ this.getLessAll()
|
|
|
|
+ },
|
|
showWindow: function (event: any) {
|
|
showWindow: function (event: any) {
|
|
// console.log("点击了更多的按钮:", event)
|
|
// console.log("点击了更多的按钮:", event)
|
|
this.triggerEvent("showWindow", { item: event.detail.item })
|
|
this.triggerEvent("showWindow", { item: event.detail.item })
|
|
|
|
+ this.setData({
|
|
|
|
+ hiddenInput: true
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ hideWindow: function () {
|
|
|
|
+ console.log("hideWindow-- -- -- --")
|
|
|
|
+ this.setData({
|
|
|
|
+ hiddenInput: false
|
|
|
|
+ })
|
|
},
|
|
},
|
|
realod: function () {
|
|
realod: function () {
|
|
this.getLessAll()
|
|
this.getLessAll()
|
|
|
|
+
|
|
}
|
|
}
|
|
}
|
|
}
|
|
})
|
|
})
|