900 lines
30 KiB
JavaScript
900 lines
30 KiB
JavaScript
/// <reference path="DetectionOperationManage/view/XiaoFeiLiangForm.html" />
|
|
/// <reference path="BasisInformationManage/DetectionProject/controller/detectionProCtrl.js" />
|
|
/// <reference path="app.js" />
|
|
|
|
|
|
var app = angular.module('app', [
|
|
'ngAnimate',
|
|
'ngResource',
|
|
'ui.router',
|
|
'ui.bootstrap',
|
|
'ngStorage',
|
|
'smart-table',
|
|
'ui.tree',
|
|
'ngTouch',
|
|
'angucomplete',
|
|
'angularTreeview',
|
|
'ngFileUpload',
|
|
'angularjs-dropdown-multiselect'
|
|
])
|
|
//云上环境地址 shp地址
|
|
// var Gaddress = "/shp"
|
|
// var pubserver = "https://10.86.138.22/shp/";
|
|
// var mongoApi = "https://10.86.138.22/shp/api/shipinleibie/GetMyTest"
|
|
// 开发环境地址
|
|
var Gaddress = "";
|
|
var pubserver = "http://localhost:8081/";
|
|
var mongoApi = "http://localhost:8081/api/shipinleibie/GetMyTest"
|
|
//
|
|
localStorage.setItem("Gaddress", Gaddress)
|
|
localStorage.setItem("pubserver", pubserver)
|
|
localStorage.setItem("mongoApi", mongoApi)
|
|
|
|
// var pubserver = "http://192.168.0.251:5000/";
|
|
// var mongoApi = "http://192.168.0.251:8066/api/shipinleibie/GetMyTest"
|
|
var BIHome = "";
|
|
|
|
|
|
//加上日志20211109
|
|
function addlog(otype, ocontent, ouser) {
|
|
var curUser = "";
|
|
if (sessionStorage['userName'] != null) {
|
|
curUser = sessionStorage['userName']
|
|
} else {
|
|
curUser = ouser
|
|
}
|
|
|
|
$.get(Gaddress + "/operatelog/addlog?ouser=" + curUser + "&otype=" + otype + "&ocontent=" + ocontent.substring(0, 2500), {})
|
|
.success(function (e) {
|
|
return true
|
|
})
|
|
}
|
|
|
|
|
|
var myCompare = function (oldJson, newJson) {
|
|
try {
|
|
var comp = [];
|
|
var clsOld = Enumerable.From(oldJson).ToArray();
|
|
//var clsnew = Enumerable.From(newJson).ToArray();
|
|
|
|
clsOld.forEach(function (e, i, b) {
|
|
var tempJson = Enumerable.From(newJson).Where("x=>x.Key=='" + e.Key + "'").FirstOrDefault();
|
|
console.log('e', e.Value)
|
|
//console.log('e.key', e.Key)
|
|
//console.log(tem)
|
|
if (tempJson != null) {
|
|
if (JSON.stringify(e.Value) != JSON.stringify(tempJson.Value)) {
|
|
comp.push({"字段": e.Key, "老数据": e.Value, "新数据": tempJson.Value})
|
|
}
|
|
}
|
|
|
|
});
|
|
|
|
return comp;
|
|
} catch (e) {
|
|
console.log(e)
|
|
return [];
|
|
}
|
|
|
|
}
|
|
|
|
|
|
var dLayer;
|
|
layui.use('layer', function () {
|
|
dLayer = layui.layer;
|
|
});
|
|
|
|
//新增加的关闭弹出界面的代码
|
|
function closelayer() {
|
|
var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
|
|
parent.layer.close(index); //再执行关闭
|
|
|
|
}
|
|
|
|
|
|
app.run(function ($templateCache, $rootScope) {
|
|
|
|
$rootScope.$on('$routeChangeStart', function (event, next, current) {
|
|
if (typeof (current) !== 'undefined') {
|
|
$templateCache.remove(current.templateUrl);
|
|
}
|
|
});
|
|
})
|
|
|
|
//进行路由设定
|
|
app.config(function ($stateProvider, $urlRouterProvider) {
|
|
$stateProvider
|
|
.state('app', {
|
|
abstract: false,
|
|
url: '/app',
|
|
templateUrl: 'app/view/app.html',
|
|
controller: 'AppCtrl'
|
|
})
|
|
|
|
|
|
/**********************************人员管理********************************************************************************************/
|
|
.state('login', {
|
|
url: '/login',
|
|
templateUrl: 'app/login/view/login.html',
|
|
controller: 'loginCtrl'
|
|
})
|
|
|
|
|
|
/***************************************基本信息管理***************************************************************/
|
|
|
|
|
|
//样品类别管理
|
|
.state('app.YBLB', {
|
|
url: '/YPLB',
|
|
templateUrl: 'app/BasisInformationManage/view/YPLB.html',
|
|
controller: 'YPLBCtrl'
|
|
})
|
|
|
|
//检测项目管理
|
|
.state('app.JCXM', {
|
|
url: '/JCXM',
|
|
templateUrl: 'app/BasisInformationManage/view/JCXM.html',
|
|
controller: 'JCXMCtrl'
|
|
})
|
|
//检测项目新的管理20231208Add
|
|
.state('app.JCXMNEW', {
|
|
url: '/JCXMNEW',
|
|
templateUrl: 'app/BasisInformationManage/view/JCXMNEW.html',
|
|
controller: 'JCXMNEWCtrl'
|
|
})
|
|
//检测标准管理
|
|
.state('app.JCBZ', {
|
|
url: '/JCBZ',
|
|
templateUrl: 'app/BasisInformationManage/view/JCBZ.html',
|
|
controller: 'JCBZCtrl'
|
|
})
|
|
|
|
//评价标准管理
|
|
.state('app.PJBZ', {
|
|
url: '/PJBZ',
|
|
templateUrl: 'app/BasisInformationManage/view/PJBZ.html',
|
|
controller: 'PJBZCtrl'
|
|
})
|
|
|
|
//计量单位管理
|
|
.state('app.JLDW', {
|
|
url: '/JLDW',
|
|
templateUrl: 'app/BasisInformationManage/view/JLDW.html',
|
|
controller: 'JLDWCtrl'
|
|
})
|
|
//单位换算管理
|
|
.state('app.DWHS', {
|
|
url: '/DWHS',
|
|
templateUrl: 'app/BasisInformationManage/view/DWHS.html',
|
|
controller: 'DWHSCtrl'
|
|
|
|
})
|
|
//采样地点管理
|
|
.state('app.CYDD', {
|
|
url: '/CYDD',
|
|
templateUrl: 'app/BasisInformationManage/view/CYDD.html',
|
|
controller: 'CYDDCtrl'
|
|
|
|
})
|
|
//检测机构管理
|
|
.state('app.JZJG', {
|
|
url: '/JZJG',
|
|
templateUrl: 'app/BasisInformationManage/view/JZJG.html',
|
|
controller: 'JZJGCtrl'
|
|
|
|
})
|
|
//样品编号管理
|
|
.state('app.YPBH', {
|
|
url: '/YPBH',
|
|
templateUrl: 'app/BasisInformationManage/view/YPBH.html',
|
|
controller: 'YPBHCtrl'
|
|
|
|
})
|
|
.state('app.test', {
|
|
url: '/test',
|
|
templateUrl: 'app/BasisInformationManage/view/test.html',
|
|
controller: 'test'
|
|
})
|
|
|
|
//消费量数据管理
|
|
.state('app.XFLDB', {
|
|
catch: true,
|
|
url: '/XFLDB',
|
|
templateUrl: 'app/SynthesizeManage/view/XiaoFeiLiangGuanLi.html',
|
|
controller: 'XiaoFeiLiangCtrl'
|
|
|
|
})
|
|
//消费量
|
|
.state('XiaoFeiLiangForm', {
|
|
catch: true,
|
|
url: '/XiaoFeiLiangForm/:id',
|
|
templateUrl: 'app/DetectionOperationManage/view/XiaoFeiLiangForm.html',
|
|
controller: 'XiaoFeiLiangFormCtrl'
|
|
|
|
})
|
|
//健康指导值
|
|
.state('app.JKZDZ', {
|
|
catch: true,
|
|
url: '/JKZDZ',
|
|
templateUrl: 'app/DetectionOperationManage/view/JianKangZhiDaoZhi.html',
|
|
controller: 'JianKangZhiDaoZhiCtrl'
|
|
|
|
})
|
|
//限量值
|
|
.state('app.XLZ', {
|
|
catch: true,
|
|
url: '/XLZ',
|
|
templateUrl: 'app/DetectionOperationManage/view/XianLiangZhi.html',
|
|
controller: 'XianLiangZhiCtrl'
|
|
|
|
})
|
|
//人口数量统计
|
|
.state('app.RenKouManage', {
|
|
catch: true,
|
|
url: '/RenKouManage',
|
|
templateUrl: 'app/DetectionOperationManage/view/RenKouManage.html',
|
|
controller: 'RenKouManageCtrl'
|
|
|
|
})
|
|
//食品生产经营许可库
|
|
.state('app.ShiPinShengChanJingYingXuKe', {
|
|
catch: true,
|
|
url: '/ShiPinShengChanJingYingXuKe',
|
|
templateUrl: 'app/DetectionOperationManage/view/ShiPinShengChanJingYingXuKe.html',
|
|
controller: 'ShiPinShengChanJingYingXuKeCtrl'
|
|
|
|
})
|
|
//样品信息分类库
|
|
.state('app.YangPinXinXiFenLeiKu', {
|
|
catch: true,
|
|
url: '/YangPinXinXiFenLeiKu',
|
|
templateUrl: 'app/DetectionOperationManage/view/YangPinXinXiFenLeiKu.html',
|
|
controller: 'YangPinXinXiFenLeiKuCtrl'
|
|
})
|
|
//投诉举报
|
|
.state('app.TSJB', {
|
|
url: '/TSJB',
|
|
templateUrl: 'app/BasisInformationManage/view/TSJB.html',
|
|
controller: 'TSJBCtrl'
|
|
})
|
|
//信息追溯
|
|
.state('app.XXZS', {
|
|
url: '/XXZS',
|
|
templateUrl: 'app/BasisInformationManage/view/XXZS.html',
|
|
controller: 'XXZSCtrl'
|
|
})
|
|
//样品农药残留信息
|
|
.state('app.YPXXNYCL', {
|
|
url: '/YPXXNYCL',
|
|
templateUrl: 'app/BasisInformationManage/view/YPXXNYCL.html',
|
|
controller: 'YPXXNYCLCtrl'
|
|
})
|
|
|
|
/***************************************计划任务管理***************************************************************/
|
|
|
|
//计划任务定制
|
|
.state('app.PlanCustomize', {
|
|
url: '/PlanCustomize',
|
|
templateUrl: 'app/PlanJobManage/view/PlanCustomize.html',
|
|
controller: 'PlanCustomizeCtrl'
|
|
})
|
|
|
|
//计划任务监控
|
|
.state('app.PlanControl', {
|
|
url: '/PlanControl',
|
|
templateUrl: 'app/PlanJobManage/view/PlanControl.html',
|
|
controller: 'PlanControlCtrl'
|
|
})
|
|
|
|
//计划任务查看
|
|
.state('app.PlanCheck', {
|
|
url: '/PlanCheck/:id',
|
|
templateUrl: 'app/PlanJobManage/view/PlanCheck.html',
|
|
controller: 'PlanCheckCtrl'
|
|
})
|
|
|
|
/***********************************检测业务管理******************************************************/
|
|
|
|
//样品登记管理 用
|
|
.state('app.SampleRegister', {
|
|
catch: false,
|
|
url: '/SampleRegister/:id',
|
|
templateUrl: 'app/DetectionOperationManage/view/SampleRegister.html',
|
|
controller: 'SampleRegisterCtrl'
|
|
})
|
|
//样品登记管理(芒果访问)
|
|
.state('SampleRegisterdialog', {
|
|
catch: false,
|
|
url: '/SampleRegisterdialog/:id/:CYDBH',
|
|
templateUrl: 'app/DetectionOperationManage/view/SampleRegister.html',
|
|
controller: 'SampleRegisterCtrl'
|
|
})
|
|
//样品送检管理
|
|
.state('app.SampleInspect', {
|
|
catch: false,
|
|
url: '/SampleInspect/:id/:CYDBH',
|
|
templateUrl: 'app/DetectionOperationManage/view/SampleInspect.html',
|
|
controller: 'SampleInspectCtrl'
|
|
})
|
|
|
|
//样品送检管理
|
|
.state('SampleInspectdialog', {
|
|
cache: false,
|
|
//url: '/SampleInspectdialog/:id/:CYDBH/:som',
|
|
url: '/SampleInspectdialog/:id/:CYDBH',
|
|
templateUrl: 'app/DetectionOperationManage/view/SampleInspect.html',
|
|
controller: 'SampleInspectCtrl'
|
|
})
|
|
|
|
|
|
//SQL查询部分的设计,比上面多了一个查询条件
|
|
.state('SampleInspectDialogSQL', {
|
|
cache: false,
|
|
//url: '/SampleInspectdialog/:id/:CYDBH/:som',
|
|
url: '/SampleInspectDialogSQL/:id/:CYDBH/:som',
|
|
templateUrl: 'app/DetectionOperationManage/view/SampleInspect.html',
|
|
controller: 'SampleInspectCtrl'
|
|
})
|
|
|
|
//样品签收管理
|
|
.state('app.SampleSign', {
|
|
url: '/SampleSign',
|
|
templateUrl: 'app/DetectionOperationManage/view/SampleSign.html',
|
|
controller: 'SampleSignCtrl'
|
|
})
|
|
|
|
//样品检验管理
|
|
.state('app.SampleTest', {
|
|
url: '/SampleTest/:id/:CYDBH',
|
|
templateUrl: 'app/DetectionOperationManage/view/SampleTest.html',
|
|
controller: 'SampleTestCtrl'
|
|
})
|
|
|
|
//样品检验管理
|
|
.state('SampleTestdialog', {
|
|
url: '/SampleTestdialog/:id/:CYDBH',
|
|
templateUrl: 'app/DetectionOperationManage/view/SampleTest.html',
|
|
controller: 'SampleTestCtrl'
|
|
})
|
|
//样品审核管理 用
|
|
.state('app.SampleAutio', {
|
|
url: '/SampleAutio',
|
|
templateUrl: 'app/DetectionOperationManage/view/SampleAutio.html',
|
|
controller: 'SampleAutioCtrl'
|
|
})
|
|
|
|
//样品批准管理 用
|
|
.state('app.SampleApprove', {
|
|
url: '/SampleApprove',
|
|
templateUrl: 'app/DetectionOperationManage/view/SampleApprove.html',
|
|
controller: 'SampleApproveCtrl'
|
|
})
|
|
|
|
|
|
//样品管理管理 用
|
|
.state('app.SampleControl', {
|
|
url: '/SampleControl',
|
|
templateUrl: 'app/DetectionOperationManage/view/SampleControl.html',
|
|
controller: 'SampleControlCtrl'
|
|
})
|
|
//样品管理管理
|
|
.state('app.BIHome', {
|
|
url: '/BIHome',
|
|
templateUrl: 'app/DetectionOperationManage/view/BIHome.html',
|
|
controller: 'BIHomeCtrl'
|
|
})
|
|
|
|
/***********************************综合查询管理******************************************************/
|
|
|
|
//MGO查询
|
|
.state('app.CustomQuery', {
|
|
catch: true,
|
|
url: '/CustomQuery',
|
|
templateUrl: 'app/SynthesizeManage/view/CustomQuery2.html',
|
|
controller: 'CustomQueryCtrl'
|
|
})
|
|
|
|
//SQL查询
|
|
.state('app.CustomQuery2', {
|
|
catch: true,
|
|
url: '/CustomQuery2',
|
|
templateUrl: 'app/SynthesizeManage/view/CustomQuery2.html',
|
|
controller: 'CustomQuery2Ctrl'
|
|
})
|
|
|
|
//行列转换
|
|
.state('app.HLZH', {
|
|
catch: true,
|
|
url: '/HLZH',
|
|
templateUrl: 'app/DetectionOperationManage/view/HangLieZhuanHuan.html',
|
|
controller: 'HangLieZhuanHuanCtrl'
|
|
|
|
})
|
|
//上海地图
|
|
.state('app.SHDT', {
|
|
catch: true,
|
|
url: '/SHDT',
|
|
templateUrl: 'app/DetectionOperationManage/view/ShanghaiDiTu.html',
|
|
controller: 'QuanGuoDiTuCtrl'
|
|
|
|
})
|
|
//全国地图
|
|
.state('app.QGDT', {
|
|
catch: true,
|
|
url: '/QGDT',
|
|
templateUrl: 'app/DetectionOperationManage/view/QuanGuoDiTu.html',
|
|
controller: 'QuanGuoDiTuCtrl'
|
|
|
|
})
|
|
//全球地图
|
|
.state('app.QQDT', {
|
|
catch: true,
|
|
url: '/QQDT',
|
|
templateUrl: 'app/DetectionOperationManage/view/QuanQiuDiTu.html',
|
|
controller: 'QuanGuoDiTuCtrl'
|
|
})
|
|
//全国地图-样品产地
|
|
.state('app.QGDT_YPCD', {
|
|
catch: true,
|
|
url: '/QGDT_YPCD',
|
|
templateUrl: 'vue/view/QuanGuoDiTuYangPinChanDi.html',
|
|
controller: 'QuanGuoDiTuYangPinChanDiCtrl'
|
|
})
|
|
//上海地图-样品产地
|
|
.state('app.SHDT_YPCD', {
|
|
catch: true,
|
|
url: '/SHDT_YPCD',
|
|
templateUrl: 'vue/view/ShangHaiDiTuYangPinChanDi.html',
|
|
controller: 'ShangHaiDiTuYangPinChanDiCtrl'
|
|
})
|
|
//操作日志查看
|
|
.state('app.OperateLog', {
|
|
catch: true,
|
|
url: '/OperateLog',
|
|
templateUrl: 'app/SynthesizeManage/view/OperateLog.html',
|
|
controller: 'OperateLogCtrl'
|
|
|
|
})
|
|
//备份日志查看
|
|
.state('app.BackLog', {
|
|
cache: true,
|
|
url: '/BackLog',
|
|
templateUrl: 'app/SynthesizeManage/view/zhinengBackLog.html',
|
|
controller: 'BackLogCtrl' //这个放到OperateController的文档里面使用
|
|
|
|
})
|
|
|
|
//23年新增的抽检数据回落
|
|
.state('app.CJHuiLuoNew', {
|
|
cache: true,
|
|
url: '/CJHuiLuoNew',
|
|
templateUrl: 'app/newDaoRu/view/CJHuiLuoNew.html',
|
|
controller: 'OperateLogCtrl'
|
|
|
|
})
|
|
|
|
/******************************************统计分析管理****************************************************/
|
|
|
|
//不合格率
|
|
.state('app.Sample', {
|
|
url: '/Sample',
|
|
templateUrl: 'app/StatAnalyzeManage/view/Sample.html',
|
|
controller: 'SampleCtrl',
|
|
})
|
|
//检验项目统计分析
|
|
.state('app.JYXM', {
|
|
url: '/JYXM',
|
|
templateUrl: 'app/StatAnalyzeManage/view/JYXM.html',
|
|
controller: 'JYXMCtrl',
|
|
})
|
|
|
|
//居民覆盖率
|
|
.state('app.Overproof', {
|
|
url: '/Overproof',
|
|
templateUrl: 'app/StatAnalyzeManage/view/Overproof.html',
|
|
controller: 'OverproofCtrl',
|
|
})
|
|
|
|
//新合格率分析2023New
|
|
.state('app.TongJiHeGeLv', {
|
|
url: '/TongJiHeGeLv',
|
|
templateUrl: 'app/StatAnalyzeManage/view/TongJiHeGeLv.html',
|
|
controller: 'TongJiHeGeLvCtrl',
|
|
})
|
|
|
|
//主体覆盖率
|
|
.state('app.ZhuTiFuGaiLv', {
|
|
url: '/ZhuTiFuGaiLv',
|
|
templateUrl: 'app/StatAnalyzeManage/view/ZhuTiFuGaiLv.html',
|
|
controller: 'ZhuTiFuGaiLvCtrl',
|
|
})
|
|
//问题率分析
|
|
.state('app.Problem', {
|
|
url: '/Problem',
|
|
templateUrl: 'app/StatAnalyzeManage/view/Problem.html',
|
|
controller: 'ProblemCtrl',
|
|
})
|
|
|
|
//合格率分析
|
|
.state('app.Qualified', {
|
|
url: '/Qualified',
|
|
templateUrl: 'app/StatAnalyzeManage/view/Qualified.html',
|
|
controller: 'QualifiedCtrl',
|
|
})
|
|
|
|
//投诉举报 以下5个均为新加的2023/11/01
|
|
.state('app.TouSuJuBao', {
|
|
url: '/TouSuJuBao',
|
|
templateUrl: 'app/StatAnalyzeManage/view/TouSuJuBao.html',
|
|
controller: 'TouSuJuBaoCtrl',
|
|
})
|
|
//执法检查率
|
|
.state('app.ZhiFaJianCha', {
|
|
url: '/ZhiFaJianCha',
|
|
templateUrl: 'app/StatAnalyzeManage/view/ZhiFaJianCha.html',
|
|
controller: 'ZhiFaJianChaCtrl',
|
|
})
|
|
//信息追溯率
|
|
.state('app.XinXiZhuiSuLv', {
|
|
url: '/XinXiZhuiSuLv',
|
|
templateUrl: 'app/StatAnalyzeManage/view/XinXiZhuiSuLv.html',
|
|
controller: 'XinXiZhuiSuLvCtrl',
|
|
})
|
|
//抽查考核
|
|
.state('app.ChouChaKaohe', {
|
|
url: '/ChouChaKaohe',
|
|
templateUrl: 'app/StatAnalyzeManage/view/ChouChaKaohe.html',
|
|
controller: 'ChouChaKaoheCtrl',
|
|
})
|
|
//行政处罚 todo 可以用来替换单独的大屏演示
|
|
.state('app.XingZhengChuFa', {
|
|
url: '/XingZhengChuFa',
|
|
templateUrl: 'app/StatAnalyzeManage/view/XingZhengChuFa.html',
|
|
// templateUrl: 'shipinzhishudaping/shanghaimap.html',
|
|
controller: 'XingZhengChuFaCtrl',
|
|
})
|
|
//数据验证
|
|
.state('app.MXYZ', {
|
|
catch: true,
|
|
url: '/MXYZ',
|
|
templateUrl: 'vue/view/YanZheng.html',
|
|
controller: 'YanZhengCtrl'
|
|
})
|
|
|
|
/***********************************风险评估分析******************************************************/
|
|
|
|
//24/08/03 农药MEP评估
|
|
.state('app.pingGuPesticide', {
|
|
catch: true,
|
|
url: '/pingGuPesticide',
|
|
templateUrl: 'vue/view/PingGuPesticide.html',
|
|
controller: 'PingGuPesticideCtrl'
|
|
})
|
|
//不用了
|
|
// .state('app.pesticidePingGu', {
|
|
// catch: true,
|
|
// url: '/pesticidePingGu',
|
|
// templateUrl: 'app/SynthesizeManage/view/PesticidePingGu.html',
|
|
// controller: 'PesticidePingGuCtrl'
|
|
// })
|
|
//检测项目查询 --小类
|
|
.state('app.JianCeXiangMu', {
|
|
catch: true,
|
|
url: '/JianCeXiangMu',
|
|
templateUrl: 'app/SynthesizeManage/view/JianCeXiangMu.html',
|
|
controller: 'JianCeXiangMuCtrl'
|
|
})
|
|
//检测项目查询 --品种
|
|
.state('app.JianCeXiangMu2', {
|
|
catch: true,
|
|
url: '/JianCeXiangMu2',
|
|
templateUrl: 'app/SynthesizeManage/view/JianCeXiangMu2.html',
|
|
controller: 'JianCeXiangMuCtrl2'
|
|
})
|
|
//检测项目查询 --亚类
|
|
.state('app.JianCeXiangMu3', {
|
|
catch: true,
|
|
url: '/JianCeXiangMu3',
|
|
templateUrl: 'app/SynthesizeManage/view/JianCeXiangMu3.html',
|
|
controller: 'JianCeXiangMuCtrl3'
|
|
})
|
|
//检测项目查询 --大类
|
|
.state('app.JianCeXiangMu4', {
|
|
catch: true,
|
|
url: '/JianCeXiangMu4',
|
|
templateUrl: 'app/SynthesizeManage/view/JianCeXiangMu4.html',
|
|
controller: 'JianCeXiangMuCtrl4'
|
|
})
|
|
//评估(2018)
|
|
.state('app.FengXianPingGu', {
|
|
catch: true,
|
|
url: '/FengXianPingGu',
|
|
templateUrl: 'app/SynthesizeManage/view/GongShi.html',
|
|
controller: 'GongShiCtrl'
|
|
})
|
|
//中国风险评估展示
|
|
.state('app.chinaRiskAssessmentMap', {
|
|
url: '/chinaRiskAssessmentMap',
|
|
templateUrl: 'app/zhanshi/view/chinaRiskAssessmentMap.html',
|
|
controller: 'chinaRiskAssessmentMapCtrl'
|
|
})
|
|
//上海风险评估展示
|
|
.state('app.shanghaiRiskAssessmentMap', {
|
|
url: '/shanghaiRiskAssessmentMap',
|
|
templateUrl: 'app/zhanshi/view/shanghaiRiskAssessmentMap.html',
|
|
controller: 'shanghaiRiskAssessmentMapCtrl'
|
|
})
|
|
//年份风险评估展示
|
|
.state('app.nianfenzhanshi', {
|
|
url: '/nianfenzhanshi',
|
|
templateUrl: 'app/zhanshi/view/NianFenFengXianPingGuZhanShi.html',
|
|
controller: 'NianFenFengXianPingGuZhanShiCtrl'
|
|
})
|
|
//食品类别评估展示
|
|
.state('app.ShiPinLeiBiePingGuZhanShi', {
|
|
catch: true,
|
|
url: '/ShiPinLeiBiePingGuZhanShi',
|
|
templateUrl: 'app/zhanshi/view/ShiPinLeiBiePingGuZhanShi.html',
|
|
controller: 'ShiPinLeiBiePingGuZhanShiCtrl'
|
|
})
|
|
//风险评估地图展示(上海)
|
|
.state('app.ShiPinFengXianMapZhanShi', {
|
|
catch: true,
|
|
url: '/ShiPinFengXianMapZhanShi',
|
|
templateUrl: 'app/zhanshi/view/ShiPinFengXianMapZhanShi.html',
|
|
controller: 'ShiPinFengXianMapZhanShiCtrl'
|
|
})
|
|
//风险评估地图展示(全国)
|
|
.state('app.ShiPinFengXianMap_QuanGuoZhanShi', {
|
|
catch: true,
|
|
url: '/ShiPinFengXianMap_QuanGuoZhanShi',
|
|
templateUrl: 'app/zhanshi/view/ShiPinFengXianMap_QuanGuoZhanShi.html',
|
|
controller: 'ShiPinFengXianMap_QuanGuoZhanShiCtrl'
|
|
})
|
|
|
|
|
|
//以下全部未知
|
|
|
|
//新建数据的录入
|
|
.state('app.NewDate', {
|
|
url: '/NewDate',
|
|
templateUrl: 'app/SynthesizeManage/view/NewDate.html',
|
|
controller: 'NewDateCtrl'
|
|
})
|
|
|
|
|
|
//执行进度表
|
|
.state('app.ExecuteTab', {
|
|
url: '/ExecuteTab',
|
|
templateUrl: 'app/SynthesizeManage/view/ExecuteTab.html',
|
|
controller: 'ExecuteTabCtrl'
|
|
})
|
|
|
|
//监测点覆盖表
|
|
.state('app.MonitorTab', {
|
|
url: '/MonitorTab',
|
|
templateUrl: 'app/SynthesizeManage/view/MonitorTab.html',
|
|
controller: 'MonitorTabCtrl'
|
|
})
|
|
|
|
//采样点覆盖表
|
|
.state('app.SamplingTab', {
|
|
url: '/SamplingTab',
|
|
templateUrl: 'app/SynthesizeManage/view/SamplingTab.html',
|
|
controller: 'SamplingTabCtrl'
|
|
})
|
|
|
|
//抽样信息查询
|
|
.state('app.SampleNews', {
|
|
url: '/SampleNews',
|
|
templateUrl: 'app/SynthesizeManage/view/SampleNews.html',
|
|
controller: 'SampleNewsCtrl'
|
|
})
|
|
//检测费用查询
|
|
.state('app.DetectionCost', {
|
|
url: '/DetectionCost',
|
|
templateUrl: 'app/SynthesizeManage/view/DetectionCost.html',
|
|
controller: 'DetectionCostCtrl'
|
|
})
|
|
|
|
//购样费用查询
|
|
.state('app.ShapeCost', {
|
|
url: '/ShapeCost',
|
|
templateUrl: 'app/SynthesizeManage/view/ShapeCost.html',
|
|
controller: 'ShapeCostCtrl'
|
|
})
|
|
|
|
//不合格样品列表
|
|
.state('app.FailList', {
|
|
url: '/FailList',
|
|
templateUrl: 'app/SynthesizeManage/view/FailList.html',
|
|
controller: 'FailListCtrl'
|
|
})
|
|
|
|
//问题样品列表
|
|
.state('app.ProblemList', {
|
|
url: '/ProblemList',
|
|
templateUrl: 'app/SynthesizeManage/view/ProblemList.html',
|
|
controller: 'ProblemListCtrl'
|
|
})
|
|
|
|
//不合格和问题列表
|
|
.state('app.FailAndProblemList', {
|
|
url: '/FailAndProblemList',
|
|
templateUrl: 'app/SynthesizeManage/view/FailAndProblemList.html',
|
|
controller: 'FailAndProblemListCtrl'
|
|
})
|
|
|
|
//污染水平分析查询
|
|
.state('app.PolluteAnalyze', {
|
|
url: '/PolluteAnalyze',
|
|
templateUrl: 'app/SynthesizeManage/view/PolluteAnalyze.html',
|
|
controller: 'PolluteAnalyzeCtrl'
|
|
})
|
|
|
|
|
|
|
|
|
|
/******************************************风险预警****************************************************/
|
|
// 指数智能预警
|
|
.state('app.zhinengYujing', {
|
|
url: '/zhinengYujing',
|
|
templateUrl: 'vue/view/ZhisuZhinengYujing.html',
|
|
controller: 'ZhisuZhinengYujingCtrl',
|
|
})
|
|
//街道合格率
|
|
.state('app.JiedaoHegelv', {
|
|
url: '/JiedaoHegelv',
|
|
templateUrl: 'app/yujing/view/JiedaoHegelv.html',
|
|
controller: 'JiedaoHegelvCtrl',
|
|
})
|
|
//首页预警
|
|
.state('app.dataBuhegelv', {
|
|
url: '/dataBuhegelv',
|
|
templateUrl: 'app/yujing/view/dataBuhegelv.html',
|
|
controller: 'dataBuhegelvCtrl',
|
|
})
|
|
|
|
//自定义分析
|
|
.state('app.Buhegelv', {
|
|
url: '/Buhegelv',
|
|
templateUrl: 'app/yujing/view/Buhegelv.html',
|
|
controller: 'BuhegelvCtrl',
|
|
})
|
|
.state('app.Buhegelv2', {
|
|
url: '/Buhegelv2',
|
|
templateUrl: 'app/yujing/view/Buhegelv2.html',
|
|
controller: 'BuhegelvCtrl2',
|
|
})
|
|
.state('app.Buhegelv3', {
|
|
url: '/Buhegelv3',
|
|
templateUrl: 'app/yujing/view/Buhegelv3.html',
|
|
controller: 'BuhegelvCtrl3',
|
|
})
|
|
.state('app.Buhegelv4', {
|
|
url: '/Buhegelv4',
|
|
templateUrl: 'app/yujing/view/Buhegelv4.html',
|
|
controller: 'BuhegelvCtrl4',
|
|
})
|
|
.state('app.Buhegelv5', {
|
|
url: '/Buhegelv5',
|
|
templateUrl: 'app/yujing/view/Buhegelv5.html',
|
|
controller: 'BuhegelvCtrl5',
|
|
})
|
|
.state('app.Buhegelv6', {
|
|
url: '/Buhegelv6',
|
|
templateUrl: 'app/yujing/view/Buhegelv6.html',
|
|
controller: 'BuhegelvCtrl6',
|
|
})
|
|
.state('app.Buhegelv7', {
|
|
url: '/Buhegelv7',
|
|
templateUrl: 'app/yujing/view/Buhegelv7.html',
|
|
controller: 'BuhegelvCtrl7',
|
|
})
|
|
.state('app.Buhegelv8', {
|
|
url: '/Buhegelv8',
|
|
templateUrl: 'app/yujing/view/Buhegelv8.html',
|
|
controller: 'BuhegelvCtrl8',
|
|
})
|
|
.state('app.Buhegelv9', {
|
|
url: '/Buhegelv9',
|
|
templateUrl: 'app/yujing/view/Buhegelv9.html',
|
|
controller: 'BuhegelvCtrl9',
|
|
})
|
|
.state('app.Buhegelv10', {
|
|
url: '/Buhegelv10',
|
|
templateUrl: 'app/yujing/view/Buhegelv10.html',
|
|
controller: 'BuhegelvCtrl10',
|
|
})
|
|
.state('app.Buhegelv11', {
|
|
url: '/Buhegelv11',
|
|
templateUrl: 'app/yujing/view/Buhegelv11.html',
|
|
controller: 'BuhegelvCtrl11',
|
|
})
|
|
.state('app.Buhegelv12', {
|
|
url: '/Buhegelv12',
|
|
templateUrl: 'app/yujing/view/Buhegelv12.html',
|
|
controller: 'BuhegelvCtrl12',
|
|
})
|
|
|
|
|
|
/******************************************食品安全综合指数****************************************************/
|
|
// 指数主界面
|
|
.state('app.zhinengMain', {
|
|
url: '/zhinengMain',
|
|
templateUrl: 'vue/view/ZhisuMain.html',
|
|
controller: 'ZhisuMainCtrl',
|
|
})
|
|
//大屏演示
|
|
.state('app.DaPingYanShi', {
|
|
url: '/DaPingYanShi',
|
|
templateUrl: 'app/StatAnalyzeManage/view/DaPing.html',
|
|
controller: 'DaPingCtrl',
|
|
})
|
|
.state('app.StreetDaPingYanShi', {
|
|
url: '/StreetDaPingYanShi',
|
|
templateUrl: 'app/StatAnalyzeManage/view/DaPingStreet.html',
|
|
controller: 'DaPingStreetCtrl',
|
|
})
|
|
|
|
// .state('app.tree', {
|
|
// url: '/tree',
|
|
// templateUrl: 'app/view/tree.html',
|
|
// controller: 'treeCtrl'
|
|
// })
|
|
|
|
|
|
/******************************************智能化数据****************************************************/
|
|
//数据转换
|
|
.state('app.ShuJuZhuanHuan', {
|
|
url: '/ShuJuZhuanHuan',
|
|
templateUrl: 'app/DetectionOperationManage/view/ShuJuZhuanHuan.html',
|
|
controller: 'ShuJuZhuanHuanCtrl'
|
|
})
|
|
//ZhiNengHuaShuJuGuanLiCtr
|
|
// 智能推荐
|
|
.state('app.ZhiNengTuiJian', {
|
|
url: '/ZhiNengTuiJian',
|
|
templateUrl: 'app/DetectionOperationManage/view/ZhiNengTuiJian.html',
|
|
controller: 'ZhiNengTuiJianCtrl'
|
|
})
|
|
// ZhiNengTuiJianCeLue
|
|
// 智能推荐策略
|
|
.state('app.ZhiNengTuiJianCeLue', {
|
|
url: '/ZhiNengTuiJianCeLue',
|
|
templateUrl: 'app/DetectionOperationManage/view/ZhiNengTuiJianCeLue.html',
|
|
controller: 'ZhiNengTuiJianCeLueCtrl'
|
|
})
|
|
|
|
|
|
/******************************************风险安全隐患****************************************************/
|
|
.state('app.YinHuanBuhegelv', {
|
|
url: '/YinHuanBuhegelv',
|
|
templateUrl: 'app/yinhuan/view/YinHuanBuhegelv.html',
|
|
controller: 'YinHuanBuhegelvCtrl',
|
|
})
|
|
.state('app.YinHuanBuhegelv3', {
|
|
url: '/YinHuanBuhegelv3',
|
|
templateUrl: 'app/yinhuan/view/YinHuanBuhegelv3.html',
|
|
controller: 'YinHuanBuhegelvCtrl3',
|
|
})
|
|
|
|
|
|
/***********************************用户权限管理*************************************************************/
|
|
.state('app.user', {
|
|
url: '/user',
|
|
templateUrl: 'app/user/view/user.html',
|
|
controller: 'userCtrl'
|
|
})
|
|
.state('app.main', {
|
|
url: '/main',
|
|
templateUrl: 'app/login/view/main.html',
|
|
|
|
})
|
|
|
|
|
|
$urlRouterProvider.otherwise('/login');
|
|
|
|
|
|
})
|