|
|
@@ -35,7 +35,7 @@ Page({
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
- onLoad(options) {
|
|
|
+ async onLoad(options) {
|
|
|
getApp().globalData.Language.getLanguagePackage(this);
|
|
|
let templetList = wx.getStorageSync('templetList')
|
|
|
if (![0, 21].includes(wx.getStorageSync('userMsg').usertype)) templetList = templetList.filter(v => v.templetid != '99')
|
|
|
@@ -54,6 +54,64 @@ Page({
|
|
|
});
|
|
|
this.getList(true)
|
|
|
getApp().globalData.Language.getLanguagePackage(this);
|
|
|
+
|
|
|
+ let filtratelist = [{
|
|
|
+ label: "营销区域",
|
|
|
+ index: null,
|
|
|
+ showName: "areaname", //显示字段
|
|
|
+ valueKey: "sa_saleareaid", //返回Key
|
|
|
+ selectKey: "sa_saleareaid", //传参 代表选着字段 不传参返回整个选择对象
|
|
|
+ value: "", //选中值
|
|
|
+ type: 'multilevelClass',
|
|
|
+ list: await _Http.basic({
|
|
|
+ "classname": "webmanage.sale.salearea.salearea",
|
|
|
+ "method": "query_area",
|
|
|
+ "content": {},
|
|
|
+ }).then(res => {
|
|
|
+ console.log("获取营销区域", res)
|
|
|
+ return res.code == 1 ? res.data : []
|
|
|
+ })
|
|
|
+ }, {
|
|
|
+ label: "医院等级",
|
|
|
+ index: null,
|
|
|
+ showName: "value", //显示字段
|
|
|
+ valueKey: "grade", //返回Key
|
|
|
+ selectKey: "value", //传参 代表选着字段 不传参返回整个选择对象
|
|
|
+ value: "", //选中值
|
|
|
+ list: await _Http.getTypes('hospitalgrade', _Http)
|
|
|
+ }, {
|
|
|
+ label: "医院类型",
|
|
|
+ index: null,
|
|
|
+ showName: "value", //显示字段
|
|
|
+ valueKey: "type", //返回Key
|
|
|
+ selectKey: "value", //传参 代表选着字段 不传参返回整个选择对象
|
|
|
+ value: "", //选中值
|
|
|
+ list: await _Http.getTypes('hospitaltype', _Http)
|
|
|
+ }, {
|
|
|
+ label: "开发状态",
|
|
|
+ index: null,
|
|
|
+ showName: "value", //显示字段
|
|
|
+ valueKey: "status", //返回Key
|
|
|
+ selectKey: "value", //传参 代表选着字段 不传参返回整个选择对象
|
|
|
+ value: "", //选中值
|
|
|
+ list: [{
|
|
|
+ value: '未开发'
|
|
|
+ }, {
|
|
|
+ value: '已开发'
|
|
|
+ }]
|
|
|
+ }, {
|
|
|
+ label: "标签",
|
|
|
+ index: null,
|
|
|
+ type: "checkbox",
|
|
|
+ showName: "tag", //显示字段
|
|
|
+ valueKey: "tag", //返回Key
|
|
|
+ selectKey: "tag", //传参 代表选着字段 不传参返回整个选择对象
|
|
|
+ value: "", //选中值
|
|
|
+ list: await _Http.getTypes('tags', _Http)
|
|
|
+ }]
|
|
|
+ this.setData({
|
|
|
+ filtratelist
|
|
|
+ })
|
|
|
},
|
|
|
getList(init = false) {
|
|
|
_Http.init(this.data.content, init).then(content => {
|