浏览代码

农业执法接口对接

master
庞东旭 3 年前
父节点
当前提交
eedd30c6b5
共有 4 个文件被更改,包括 16 次插入10 次删除
  1. +6
    -0
      agriculturalLawEnforcement/static/js/api/index.js
  2. +2
    -9
      agriculturalLawEnforcement/static/js/common/main.js
  3. +1
    -0
      agriculturalLawEnforcement/static/js/common/tools.js
  4. +7
    -1
      agriculturalLawEnforcement/static/js/project/index.js

+ 6
- 0
agriculturalLawEnforcement/static/js/api/index.js 查看文件

@@ -17,3 +17,9 @@ var getInfo_get = '/getInfo' //获取用户信息
limit: 要查询的数据条数
*/
var news = '/enforce/website/news' //查询新闻管理列表固定条数

/*
@purl /enforce/website/getTopDeptId
@param
*/
var getTopDeptId = '/enforce/website/getTopDeptId' //查询当前系统最高级的deptId

+ 2
- 9
agriculturalLawEnforcement/static/js/common/main.js 查看文件

@@ -22,15 +22,8 @@ requirejs.config({
dateTime:'lib/dateTime/dateTime.min',//时间选择器

//自己写的路径配置
Tools: 'common/tools',
addressApi: 'api/index', //所有Ajax接口存放地
newApi: 'api/new', //新闻接口
itemsApi: 'api/items', //挂牌项目接口
biddingApi: 'api/bidding', //竞价大厅接口
announApi: 'api/announcementList', //项目公告接口
demandApi: 'api/demand', //个人供求接口
policyApi: 'api/policy',//政策法规接口
interactApi: 'api/interact',//互动交流接口
Tools: '/agriculturalLawEnforcement/static/js/common/tools',
addressApi: '/agriculturalLawEnforcement/static/js/api/index', //所有Ajax接口存放地
user: 'api/user',//用户信息接口
register:'api/register',//用户注册接口
ajaxUploadImage:'lib/ajaxUpload/ajaxupload',//上传图片


+ 1
- 0
agriculturalLawEnforcement/static/js/common/tools.js 查看文件

@@ -186,6 +186,7 @@ define(['jquery', 'dialog'], function ($, dialog) {
}).join('');
}

console.log(url);
$.ajax({
url: url,
type: 'GET',


+ 7
- 1
agriculturalLawEnforcement/static/js/project/index.js 查看文件

@@ -15,9 +15,15 @@ define(['jquery', "template", "Tools", "echarts", 'swiper'], function ($, templa

module.init = function (page) {
//新闻管理列表
tools.doGet(news + '/003/7', {}, module.focusNews , true);
// tools.doGet(news + '/003//7', {}, module.focusNews , true);

tools.doGet(getTopDeptId, {}, module.getInformation , true);
};

module.getInformation = function (data) {
console.log(data)
}

//焦点图数据
module.focusNews = function (data) {
if (data.code == 200) {


正在加载...
取消
保存