|
|
@@ -12,6 +12,17 @@ Page({
|
|
|
radio: false, //是否为单选
|
|
|
idname: "sa_projectid", //idkey
|
|
|
showName: "projectname", //表单用 显示名称
|
|
|
+ filtratelist: [],
|
|
|
+ },
|
|
|
+ openFiltrate() {
|
|
|
+ this.setData({
|
|
|
+ showFiltrate: true
|
|
|
+ })
|
|
|
+ },
|
|
|
+ handleFilter(e) {
|
|
|
+ e.detail.condition = this.data.params.content.where.condition;
|
|
|
+ this.data.params.content.where = e.detail;
|
|
|
+ this.getList(true);
|
|
|
},
|
|
|
onLoad(options) {
|
|
|
if (options.params) {
|
|
|
@@ -33,6 +44,63 @@ Page({
|
|
|
showName: options.showName || this.data.showName,
|
|
|
});
|
|
|
this.getList()
|
|
|
+
|
|
|
+ _Http.basic({
|
|
|
+ "classname": "sysmanage.develop.optiontype.optiontype",
|
|
|
+ "method": "optiontypeselect",
|
|
|
+ "content": {
|
|
|
+ "nochace": true,
|
|
|
+ "pageNumber": 1,
|
|
|
+ "pageSize": 1000,
|
|
|
+ "typename": "projecttype",
|
|
|
+ "parameter": {
|
|
|
+ "siteid": wx.getStorageSync('userMsg').siteid
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }).then(res => {
|
|
|
+ console.log("项目类型", res)
|
|
|
+ if (res.msg == '成功') {
|
|
|
+ this.data.filtratelist.unshift({
|
|
|
+ label: "项目类型",
|
|
|
+ index: null,
|
|
|
+ showName: "value", //显示字段
|
|
|
+ valueKey: "projecttype", //返回Key
|
|
|
+ selectKey: "value", //传参 代表选着字段 不传参返回整个选择对象
|
|
|
+ value: "", //选中值
|
|
|
+ list: res.data
|
|
|
+ })
|
|
|
+ this.setData({
|
|
|
+ filtratelist: this.data.filtratelist
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
+
|
|
|
+ _Http.basic({
|
|
|
+ "id": 20221223141802,
|
|
|
+ "content": {
|
|
|
+ "pageNumber": 1,
|
|
|
+ "pageSize": 9999,
|
|
|
+ "where": {
|
|
|
+ "condition": ""
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }, false).then(res => {
|
|
|
+ console.log("获取领域", res)
|
|
|
+ if (res.msg == '成功') {
|
|
|
+ this.data.filtratelist.push({
|
|
|
+ label: "领域",
|
|
|
+ index: null,
|
|
|
+ showName: "tradefield", //显示字段
|
|
|
+ valueKey: "tradefield", //返回Key
|
|
|
+ selectKey: "tradefield", //传参 代表选着字段 不传参返回整个选择对象
|
|
|
+ value: "", //选中值
|
|
|
+ list: res.data
|
|
|
+ })
|
|
|
+ this.setData({
|
|
|
+ filtratelist: this.data.filtratelist
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
},
|
|
|
getList(init = false) {
|
|
|
//init 用于初始化分页
|