def post(self): """ 动态列表_社会团体 --- tags: - 前台主页 """ pageNum = request.form['pageNum'] pageSize = request.form['pageSize'] data = { 'allCounts': SocioGroup.query.filter_by(deleted=0).count(), 'currentPage': pageNum, 'list': SocioGroup.query.filter_by(deleted=0).paginate( page=int(pageNum), per_page=int(pageSize)).items, 'pageCounts': SocioGroup.query.filter_by(deleted=0).paginate( page=int(pageNum), per_page=int(pageSize)).pages, 'pageSize': pageSize } data1 = IndexModelView() data1.fill(data) content, errors = DongTaiListSchema().dump(data1) if errors: return errors, 400 return content
def post(self): """ 最新政策列表 --- tags: - 前台主页 """ pageNum = request.form['pageNum'] pageSize = request.form['pageSize'] type = request.form['type'] data = { 'allCounts': Lpolicy.query.filter_by(deleted=0, type=type).count(), 'currentPage': pageNum, 'list': Lpolicy.query.filter_by(deleted=0, type=type).paginate( page=int(pageNum), per_page=int(pageSize)).items, 'pageCounts': Lpolicy.query.filter_by(deleted=0, type=type).paginate( page=int(pageNum), per_page=int(pageSize)).pages, 'pageSize': pageSize } data1 = IndexModelView() data1.fill(data) content, errors = NewDepartureListSchema().dump(data1) if errors: return errors, 400 return content
def get(self): """ 轮播图列表 --- tags: - 前台页面 """ broadcast = Broadcast.query.filter_by(deleted=0).paginate( page=1, per_page=3).items data = IndexModelView() data.fill(broadcast) content, errors = BroadcastSchema().dump(data) if errors: return errors, 400 return content
def get(self): """ 前端主页显示内容 --- tags: - 前台页面 """ cmember = Cmember.query.filter_by(deleted=0).paginate(page=1, per_page=2).items data = IndexModelView() data.fill(cmember) content, errors = CmemberSchema().dump(data) if errors: return errors, 400 return content
def post(self): """ 政策分析列表 --- tags: - 前台主页 """ type = request.form['type'] panalysis = Panalysis.query.filter_by(deleted=0, type=type).paginate( page=1, per_page=10).items data = IndexModelView() data.fill(panalysis) content, errors = PolicyAnalysisListSchema().dump(data) if errors: return errors, 400 return content
def post(self): """ 活动跟踪列表页 --- tags: - 前台主页 """ category = request.form['category'] atracking = Atracking.query.filter_by( deleted=0, category=category).paginate(page=1, per_page=10).items data = IndexModelView() data.fill(atracking) content, errors = ActivitytrackingListSchema().dump(data) if errors: return errors, 400 return content
def get(self): """ 部委数据列表 :author lyfy :return:{Id , imagePaths,title,insertTime,pubtime,shortContent,source} --- tags: - 前台页面 """ cmember = Cmember.query.filter_by(deleted=0).paginate(page=1, per_page=2).items data = IndexModelView() data.fill(cmember) content, errors = CmemberSchema().dump(data) if errors: return errors, 400 return content
def get(self): """ 社会团体列表 :author lyfy :return:{Id,imagePaths,insertTime,pubtime,shortContent,source,title} --- tags: - 前台页面 """ sociogroup = SocioGroup.query.filter_by(deleted=0).paginate( page=1, per_page=4).items data = IndexModelView() data.fill(sociogroup) content, errors = SocioGroupSchema().dump(data) if errors: return errors, 400 return content
def get(self): """ 活动跟踪列表__创响中国 :author lyfy :return:{Category,id,picPath,publishTime,source,title} --- tags: - 前台主页 """ atracking = Atracking.query.filter_by(deleted=0, category=1).paginate( page=1, per_page=10).items data = IndexModelView() data.fill(atracking) content, errors = AtrackingSchema().dump(data) if errors: return errors, 400 return content
def get(self): """ 政策分析列表 :author lyfy :return:{businessId,title} --- tags: - 前台页面 """ panalysis = Panalysis.query.filter_by(deleted=0, type=1).paginate( page=1, per_page=4).items data = IndexModelView() data.fill(panalysis) content, errors = PanalysisSchema().dump(data) if errors: return errors, 400 return content
def get(self): """ 最新政策列表 :author lyfy :return:{Id,pubTime,shortContent,source,titile} --- tags: - 前台页面 """ lpoicy = Lpolicy.query.filter_by(deleted=0).paginate(page=1, per_page=4).items data = IndexModelView() data.fill(lpoicy) content, errors = LpolicySchema().dump(data) if errors: return errors, 400 return content
def get(self): """ 基地列表列表 :author lyfy :return:{Id,imagePaths,insertTime,pubtime,shortContent,source,title} --- tags: - 前台页面 """ basecity = BaseCity.query.filter_by(deleted=0).paginate( page=1, per_page=4).items data = IndexModelView() data.fill(basecity) content, errors = BaseCitySchema().dump(data) if errors: return errors, 400 return content
def get(self): """ 专题专栏__战略型新兴产业 :author lyfy :return:{Id,title} --- tags: - 前台主页 """ scolumn = Scolumn.query.filter_by(deleted=0, category=1).paginate( page=1, per_page=3).items data = IndexModelView() data.fill(scolumn) content, errors = ScolumnSchema().dump(data) if errors: return errors, 400 return content
def post(self): """ 服务拓展列表 @author:lyfy :return: --- tags: - 前台主页 """ service = ServiceExpansion.query.filter_by(deleted=0).paginate( page=1, per_page=10).items data = IndexModelView() data.fill(service) content, errors = ServiceExpansionSchema().dump(data) if errors: return errors, 400 return content
def get(self): """ 地方列表 :author lyfy :return:{Id,imagePaths,insertTime,pubtime,shortContent,source,title} --- tags: - 前台页面 """ local = Local.query.filter_by(deleted=0).paginate(page=1, per_page=2).items data = IndexModelView() data.fill(local) content, errors = LocalSchema().dump(data) if errors: return errors, 400 return content
def get(self): """ 政策分析 :author lyfy :return:{Id,title} --- tags: - 前台页面 """ scolumn = Scolumn.query.filter_by(deleted=0).paginate( page=1, per_page=10).items data = IndexModelView() data.fill(scolumn) print(data.data[1].pubTime) content, errors = ScolumnSchema().dump(data) if errors: return errors, 400 return content
def post(self): """ 专题专栏——战略性新兴产业 --- tags: - 前台主页 """ pageNum = request.form['pageNum'] category = request.form['category'] pageSize = request.form['pageSize'] type = request.form['type'] data = { 'allCounts': Scolumn.query.filter_by(deleted=0, category=category, type=type).count(), 'currentPage': pageNum, 'list': Scolumn.query.filter_by(deleted=0, category=category, type=type).paginate( page=int(pageNum), per_page=int(pageSize)).items, 'pageCounts': Scolumn.query.filter_by(deleted=0, category=category, type=type).paginate( page=int(pageNum), per_page=int(pageSize)).pages, 'pageSize': pageSize } data1 = IndexModelView() data1.fill(data) content, errors = ScolumnListSchema().dump(data1) if errors: return errors, 400 return content