|
@@ -18,7 +18,7 @@ Page({
|
|
|
//查询
|
|
|
onSearch: function (e) {
|
|
|
const that = this;
|
|
|
- that.setData({ 'searchInfo.name': e.detail.value });
|
|
|
+ that.setData({ 'searchInfo.title': e.detail.value });
|
|
|
that.watchLogin()
|
|
|
},
|
|
|
// 添加
|
|
@@ -50,11 +50,6 @@ Page({
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- // 关闭弹框
|
|
|
- toClose: function () {
|
|
|
- const that = this;
|
|
|
- that.setData({ dialog: { title: '详细信息', show: false, type: '1' } })
|
|
|
- },
|
|
|
/**
|
|
|
* 生命周期函数--监听页面加载
|
|
|
*/
|
|
@@ -70,7 +65,7 @@ Page({
|
|
|
key: 'user',
|
|
|
success: async (res) => {
|
|
|
let info = { skip: 0, limit: 1000 };
|
|
|
- if (searchInfo && searchInfo.name) info.name = searchInfo.name;
|
|
|
+ if (searchInfo && searchInfo.title) info.title = searchInfo.title;
|
|
|
const arr = await app.$get(`/newCourt/api/news`, { ...info });
|
|
|
if (arr.errcode == '0') {
|
|
|
that.setData({ list: arr.data })
|