|
@@ -15,10 +15,45 @@ Page({
|
|
|
},
|
|
|
sort: []
|
|
|
},
|
|
|
+
|
|
|
+ filter: [{
|
|
|
+ label: "标准",
|
|
|
+ index: null,
|
|
|
+ showName: "value", //显示字段
|
|
|
+ valueKey: "name", //返回Key
|
|
|
+ selectKey: "value", //传参 代表选着字段 不传参返回整个选择对象
|
|
|
+ value: "", //选中值
|
|
|
+ list: []
|
|
|
+ }]
|
|
|
},
|
|
|
onLoad(options) {
|
|
|
this.getBrand()
|
|
|
this.getNum();
|
|
|
+ this.getOptionTypeSelect();
|
|
|
+ },
|
|
|
+ /* 获取系统分类 */
|
|
|
+ getOptionTypeSelect() {
|
|
|
+ _Http.basic({
|
|
|
+ "classname": "sysmanage.develop.optiontype.optiontype",
|
|
|
+ "method": "optiontypeselect",
|
|
|
+ "content": {
|
|
|
+ "pageNumber": 1,
|
|
|
+ "pageSize": 999,
|
|
|
+ "typename": "itemstandards",
|
|
|
+ "parameter": {
|
|
|
+ "siteid": wx.getStorageSync('userMsg').siteid
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }, false).then(res => {
|
|
|
+ console.log("系统标准列表", res)
|
|
|
+ if (res.msg == '成功') this.setData({
|
|
|
+ "filter[0].list": res.data
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
+ /* 处理筛选 */
|
|
|
+ handleFilter({detail}){
|
|
|
+ console.log(detail)
|
|
|
},
|
|
|
/* 切换分类 */
|
|
|
typeChange({
|
|
@@ -73,7 +108,7 @@ Page({
|
|
|
})
|
|
|
},
|
|
|
/* 获取产品 */
|
|
|
- getList(init=false) {
|
|
|
+ getList(init = false) {
|
|
|
if (init.detail != undefined) init = init.detail;
|
|
|
let content = this.data.content;
|
|
|
if (init) content.pageNumber = 1;
|
|
@@ -96,7 +131,6 @@ Page({
|
|
|
this.setListHeight()
|
|
|
})
|
|
|
},
|
|
|
-
|
|
|
startFiltration() {
|
|
|
/* _Http.basic().then(res => {
|
|
|
console.log("获取领域", res)
|