H(3kwSH`JKATj+uuF^pnhSe!w^8f6ca-YvD
zU7`7=Z??48dlEyXd>i^&VF>+RO#j-N%$CnKbMJ7BB`vKht@%;Jh!j(Qp58(ZvA!U6
zQuKYiT1KI1B~9sW$vMs^4vEk#&e|R$g;aA`j!OnI7cvl$K1+!0U~C?|0z%HOXG7iP
HUYGt4Q=RmQ
literal 0
HcmV?d00001
diff --git a/newBusinessEntities/static/images/submit.png b/newBusinessEntities/static/images/submit.png
new file mode 100644
index 0000000000000000000000000000000000000000..20fa867f135a74356c935ae73244aad2cefb9343
GIT binary patch
literal 1562
zcmeAS@N?(olHy`uVBq!ia0vp^A|TAc1|)ksWqE;=WQl7;NpOBzNqJ&XDuZK6ep0G}
zXKrG8YEWuoN@d~6R2v2cX64L~h>{3jAFJg2T)jk)8oi3#0-$aN1{?c|g2d$P)DnfH
z)bz|eTc!8A_bVx6rr0WloBA5~7C5J7WO`H;r3P2|g(O#HCtIc{+1n}DR9FEG$W1Lt
zRH(?!$t$+1uvG$^YXxM3g!Ppaz)DK8ZIvL7itr6kaLzAERWQ{v(@i!su~0C#)H5_Q
zF)%jMQ7|$vwA44S&^I*JH88X?Ftai>SAYT~plwAdX;wilZcw{`JX@uVl9B=|ef{$C
za=mh6z5JqdeM3u2pczK`Mn<|o6}rWhc_oPzx_QOQFcVx-i<65o3raHc^AtcPCMM;V
zme?u*T?+9+ZUNlbykclD0Rv3GBC$Zb-|mQH4t#^#2GuFg&trq0erj%Kdr
z#um=TPA)LLF8Rr&xv6<2Fuf@Vz0NrGg3>~60nlcb)S}F?)D*X({9FaFpRF=+yTuZx
zc~HG6xZUE2Q?EYIG5VmGMT%*d5HR_GnDBH9|ssTIcIe@2;4@o?rPp?U{M}{+p@Bi>Jou
z)#dCcQ>ZjdUc_J>uBMgBY-oAJ=eNSGPF}{nZNJq`ul-&W!s~Kk@+1|dMekeNOAokm
zi^Xudw=7}U+h~?4x9qvo@C{wLNBL34HJM#8+$Ya|nd=d(
zX6^C6@%YJS&o9_>9WKwAvUo<8ML_@g;9H7vtETVV={5I2z@%`~zP5!sHJ9W})O_K6
z=pd`cPFvrZ7FiqT24A{*VfT$|x6Jo1*|S=wt~Yolo6kB)7ny}c`N9GW?=5{Rbo=bqi3n|#ilVcS)!OC68p#07u8
zbcnUmlz8;xi}c(3%)R+Jcjg5?pK12{rRA-&hg=I2xfO2sIVSxweDrET`9Cp9edl-2
z{?6^lYF_caBh');
+ sidebarNav(menu);
+ function sidebarNav(data) {
+ html += '';
+ html += '' + data.classificationName + '
';
+ if(data.children!=[]) {
+ html += '';
+ for(var i = 0, l = data.children.length; i < l; i++) {
+ var children = data.children[i];
+ if(children.children.length>0) {
+ sidebarNav(children);
+ } else {
+ html += '- ';
+ html += '' + children.classificationName + '';
+ html += '
';
+ }
+ }
+ html += '
';
+ }
+ html += '';
+ }
+ $(where + " .nav").html('全部项目
'+html);
+ $(where + " .left_nav_name").on("click", function() {
+ var open = $(this).hasClass("nav_open");
+ var id = $(this).attr("data-id");
+ $(where + " .nav_li").removeClass("nav_li_open");
+ $(where + " .left_nav_name").removeClass("nav_open");
+ if(open) {
+ $(this).removeClass("nav_open");
+ $(this).removeClass("nav-move");
+ searchType("");
+ $(this).next(".nav_ul").slideUp();
+ } else {
+ $(this).addClass("nav_open");
+ $(this).next(".nav_ul").slideDown();
+ $(this).parents(".left_nav_list").siblings("li").find(".nav_ul").slideUp();
+ $(this).parents(".left_nav_list").siblings("li").find(".left_nav_name").removeClass("nav_open");
+ searchType(id);
+ }
+ })
+ $(where + " .nav_li").on("click", function() {
+ $(where + " .nav_li").removeClass("nav_li_open");
+ // $(where + " .left_nav_name").removeClass("nav_open");
+ $(this).addClass("nav_li_open");
+ $(this).parents(".nav_ul").siblings(".left_nav_name").addClass("nav-move");
+ $(this).siblings(".left_nav_list").find(".nav_ul").slideUp();
+ $(this).siblings(".left_nav_list").find(".left_nav_name").removeClass("nav_open");
+ var id = $(this).attr("data-id");
+ searchType(id);
+ })
+}
\ No newline at end of file
diff --git a/newBusinessEntities/static/js/project/basis/basis.js b/newBusinessEntities/static/js/project/basis/basis.js
deleted file mode 100644
index a3d8f7e..0000000
--- a/newBusinessEntities/static/js/project/basis/basis.js
+++ /dev/null
@@ -1,104 +0,0 @@
-/**
- * Created by Administrator on 2021/4/5.
- */
-define(['jquery', "template", "Tools", "echarts", 'swiper', "paging"], function ($, template, Tools, echarts, swiper) {
- //数据存储
- var module = {
- data: {
- //服务器地址
- serverApi:'',
- //焦点图数据
- focusList: [],
- newList: [],
- //页码
- pageNum: 1,
- //页码集合
- pageList: [],
- //每页数量
- pageSize: 5,
- //总页数
- pageCount:0
- },
- };
- var tools = new Tools();
-
- module.init = function (page) {
- //新闻管理列表
- // tools.doGet(news + '/003//7', {}, module.focusNews , true);
- var _height=$("body").height();//获取当前窗口的高度
- var boxHeight = _height-520;
- //
- module.data.pageSize = (boxHeight/40).toFixed(0);
- $('#newContent').height(boxHeight);
- tools.doGet(getTopDeptId, {}, module.getInformation , true);
- };
-
- module.getInformation = function (data) {
- console.log(data)
- module.data.deptId = data.data;
- tools.doGet(newsList, {
- number: '002',
- deptId: data.data,
- pageNum: 1,
- pageSize: module.data.pageSize,
- }, module.newList , true);
- }
-
- //新闻列表
- module.newList = function (data) {
- console.log(data)
- if (data.code == 200) {
- var pageCount = (data.total/module.data.pageSize).toFixed(0);
- if (pageCount < 1){
- pageCount = 1;
- }
- if(module.data.newList == '') {
- console.log(pageCount)
- // 初始化 分页器
- var page_s1 = createPage('.page_s1');
- // 设置分页
- setPage(page_s1, {
- pageTotal: data.total, // 数据总条数
- pageSize: module.data.pageSize, // 每页显示条数
- pageCurrent: 1, // 当前页
- maxBtnNum: 5, // 最多按钮个数 (最少5个)
- })
- $('#page_s1').html('共' + pageCount + '页');
- }
- var content = data.rows;
- module.data.newList = content;
- var newData = template('newData', module.data);
- $("#newContent").html(newData);
- }
- }
-
- goSearch = function(){
- $('#page_s1').html('');
- $('.page_s1').html('');
- module.data.newList=[];
- tools.doGet(newsList, {
- number: '002',
- deptId: module.data.deptId,
- pageNum: 1,
- pageSize: module.data.pageSize,
- title:$('#title').val()
- }, module.newList , true);
- }
-
- turnThePage = function (pageNum) {
- module.data.pageNum = pageNum ;
- console.log($('#title').val())
- tools.doGet(newsList, {
- number: '002',
- deptId: module.data.deptId,
- pageNum: pageNum,
- pageSize: module.data.pageSize,
- title:$('#title').val()
- }, module.newList , true);
- }
-
- goDetail = function(id){
- tools.skip('/agriculturalLawEnforcement/view/basis/basisDetail.html?id='+id);
- }
- return module;
-});
\ No newline at end of file
diff --git a/newBusinessEntities/static/js/project/basis/basisDetail.js b/newBusinessEntities/static/js/project/basis/basisDetail.js
deleted file mode 100644
index 514547e..0000000
--- a/newBusinessEntities/static/js/project/basis/basisDetail.js
+++ /dev/null
@@ -1,52 +0,0 @@
-/**
- * Created by Administrator on 2021/4/5.
- */
-define(['jquery', "template", "Tools", "echarts", 'swiper'], function ($, template, Tools, echarts, swiper) {
- //数据存储
- var module = {
- data: {
- //服务器地址
- serverApi:'',
- //焦点图数据
- focusList: [],
- communicateList: [],
- },
- };
- var tools = new Tools();
-
- module.init = function (page) {
- //新闻管理列表
- tools.doGet(news + '/' + getQueryVariable('id'), {}, module.newList , true);
- };
-
- //获取地址栏参数
- function getQueryVariable(variable){
- var query = window.location.search.substring(1);
- var vars = query.split("&");
- for (var i=0;i document.body.offsetHeight){
- document.getElementById('bottomInformation').style.position = 'relative';
- }
- }
- }
-
- goDetail = function(id){
- tools.skip('/agriculturalLawEnforcement/view/workDynamics/workDetail.html?id='+id);
- }
- return module;
-});
\ No newline at end of file
diff --git a/newBusinessEntities/static/js/project/complaint/complaint.js b/newBusinessEntities/static/js/project/complaint/complaint.js
deleted file mode 100644
index d0c2ca9..0000000
--- a/newBusinessEntities/static/js/project/complaint/complaint.js
+++ /dev/null
@@ -1,101 +0,0 @@
-/**
- * Created by Administrator on 2021/4/5.
- */
-define(['jquery', "template", "Tools", "echarts", 'swiper', "paging"], function ($, template, Tools, echarts, swiper) {
- //数据存储
- var module = {
- data: {
- //服务器地址
- serverApi:'',
- //焦点图数据
- focusList: [],
- newList: [],
- //页码
- pageNum: 1,
- //页码集合
- pageList: [],
- //每页数量
- pageSize: 5,
- //总页数
- pageCount:0
- },
- };
- var tools = new Tools();
-
- module.init = function (page) {
- //新闻管理列表
- // tools.doGet(news + '/003//7', {}, module.focusNews , true);
- var _height=$("body").height();//获取当前窗口的高度
- var boxHeight = _height-520;
- //
- module.data.pageSize = (boxHeight/40).toFixed(0);
- $('#newContent').height(boxHeight);
- tools.doGet(getTopDeptId, {}, module.getInformation , true);
- };
-
- module.getInformation = function (data) {
- console.log(data)
- module.data.deptId = data.data;
- tools.doGet(communicateList, {
- deptId: data.data,
- pageNum: 1,
- pageSize: module.data.pageSize,
- }, module.newList , true);
- }
-
- //新闻列表
- module.newList = function (data) {
- console.log(data)
- if (data.code == 200) {
- var pageCount = (data.total/module.data.pageSize).toFixed(0);
- if (pageCount < 1){
- pageCount = 1;
- }
- if(module.data.newList == '') {
- console.log(pageCount)
- // 初始化 分页器
- var page_s1 = createPage('.page_s1');
- // 设置分页
- setPage(page_s1, {
- pageTotal: data.total, // 数据总条数
- pageSize: module.data.pageSize, // 每页显示条数
- pageCurrent: 1, // 当前页
- maxBtnNum: 5, // 最多按钮个数 (最少5个)
- })
- $('#page_s1').html('共' + pageCount + '页');
- }
- var content = data.rows;
- module.data.newList = content;
- var newData = template('newData', module.data);
- $("#newContent").html(newData);
- }
- }
-
- goSearch = function(){
- $('#page_s1').html('');
- $('.page_s1').html('');
- module.data.newList=[];
- tools.doGet(communicateList, {
- deptId: module.data.deptId,
- pageNum: 1,
- pageSize: module.data.pageSize,
- title:$('#title').val()
- }, module.newList , true);
- }
-
- turnThePage = function (pageNum) {
- module.data.pageNum = pageNum ;
- console.log($('#title').val())
- tools.doGet(communicateList, {
- deptId: module.data.deptId,
- pageNum: pageNum,
- pageSize: module.data.pageSize,
- title:$('#title').val()
- }, module.newList , true);
- }
-
- goDetail = function(id){
- tools.skip('/agriculturalLawEnforcement/view/complaint/complaintDetail.html?id='+id);
- }
- return module;
-});
\ No newline at end of file
diff --git a/newBusinessEntities/static/js/project/complaint/complaintAdd.js b/newBusinessEntities/static/js/project/complaint/complaintAdd.js
deleted file mode 100644
index 22609f2..0000000
--- a/newBusinessEntities/static/js/project/complaint/complaintAdd.js
+++ /dev/null
@@ -1,69 +0,0 @@
-/**
- * Created by Administrator on 2021/4/5.
- */
-define(['jquery', "template", "Tools", "echarts", 'swiper'], function ($, template, Tools, echarts, swiper) {
- //数据存储
- var module = {
- data: {
- //服务器地址
- serverApi:'',
- //焦点图数据
- focusList: [],
- communicateList: [],
- deptId:''
- },
- };
- var tools = new Tools();
-
- module.init = function (page) {
- tools.doGet(getTopDeptId, {}, module.getInformation , true);
- if (document.body.scrollHeight <= document.body.offsetHeight){
- document.getElementById('bottomInformation').style.position = 'fixed';
- document.getElementById('bottomInformation').style.bottom = '0';
-
- }
- };
-
- module.getInformation = function (data) {
- console.log(data)
- module.data.deptId = data.data;
- }
-
- goAdd = function () {
- if($('#title').val()=="" || $('#title').val()==undefined){
- tools.initError('标题不能为空!');
- } else if($('#content').val()=="" || $('#content').val()==undefined){
- tools.initError('内容不能为空!');
- } else if($('#phone').val()=="" || $('#phone').val()==undefined){
- tools.initError('联系方式不能为空!');
- } else{
- var form = {
- title:$('#title').val(),
- communicateType:$('input:radio:checked').val(),
- content:$('#content').val(),
- name:$('#name').val(),
- phone:$('#phone').val(),
- }
- tools.doPost(communicateAdd, {
- title:$('#title').val(),
- communicateType:$('input:radio:checked').val(),
- content:$('#content').val(),
- name:$('#name').val(),
- phone:$('#phone').val(),
- deptId:module.data.deptId
- }, module.addEnd , true);
- }
- }
-
- module.addEnd = function(data){
- tools.initError('发布成功');
- setTimeout(function(){
- tools.skip('complaintList.html')
- },2000)
- }
-
- goDetail = function(id){
- tools.skip('/agriculturalLawEnforcement/view/complaint/complaintDetail.html?id='+id);
- }
- return module;
-});
\ No newline at end of file
diff --git a/newBusinessEntities/static/js/project/complaint/complaintDetail.js b/newBusinessEntities/static/js/project/complaint/complaintDetail.js
deleted file mode 100644
index 40e589f..0000000
--- a/newBusinessEntities/static/js/project/complaint/complaintDetail.js
+++ /dev/null
@@ -1,71 +0,0 @@
-/**
- * Created by Administrator on 2021/4/5.
- */
-define(['jquery', "template", "Tools", "echarts", 'swiper'], function ($, template, Tools, echarts, swiper) {
- //数据存储
- var module = {
- data: {
- //服务器地址
- serverApi:'',
- //焦点图数据
- focusList: [],
- communicateList: [],
- communicateOptions:[]
- },
- };
- var tools = new Tools();
-
- module.init = function (page) {
- //新闻管理列表
- tools.doGet(dictType + '/communicate_type', {}, module.dictType , true);
-
-
- };
-
- //获取地址栏参数
- function getQueryVariable(variable){
- var query = window.location.search.substring(1);
- var vars = query.split("&");
- for (var i=0;i document.body.offsetHeight){
- document.getElementById('bottomInformation').style.position = 'relative';
- }
- }
- }
-
- module.selectDictLabel = function (datas, value) {
- var actions = [];
- Object.keys(datas).some((key) => {
- if (datas[key].dictValue == ('' + value)) {
- actions.push(datas[key].dictLabel);
- return true;
- }
- })
- return actions.join('');
- }
-
- goDetail = function(id){
- tools.skip('/agriculturalLawEnforcement/view/workDynamics/workDetail.html?id='+id);
- }
- return module;
-});
\ No newline at end of file
diff --git a/newBusinessEntities/static/js/project/directories/declare.js b/newBusinessEntities/static/js/project/directories/declare.js
new file mode 100644
index 0000000..3c244c7
--- /dev/null
+++ b/newBusinessEntities/static/js/project/directories/declare.js
@@ -0,0 +1,45 @@
+/**
+ * Created by Administrator on 2021/4/5.
+ */
+define(['jquery', "template", "Tools"], function ($, template, Tools) {
+ //数据存储
+ var module = {
+ data: {
+
+ },
+ };
+ var tools = new Tools();
+
+ module.init = function (page) {
+
+ };
+
+ goPreservation = function() {
+ const data = {
+ projectType:$('#projectType').val(),
+ itemName:$('#itemName').val(),
+ startTime:$('#startTime').val(),
+ projectSite:$('#projectSite').val(),
+ subjectApply:$('#subjectApply').val(),
+ projectName:$('#projectName').val(),
+ phone:$('#phone').val(),
+ constructionWay:$('#constructionWay').val(),
+ constructionContent:$('#constructionContent').val(),
+ amountTotal:$('#amountTotal').val(),
+ raisedFunds:$('#raisedFunds').val(),
+ policySubsidy:$('#policySubsidy').val(),
+ pullPay:$('#pullPay').val(),
+ note:$('#note').val(),
+ projectStatus:$('#projectStatus').val(),
+ };
+
+ console.log(data)
+
+ tools.doPost(addGuideQueryBc, data, function (res) {
+ console.log(res)
+ } , true);
+
+ document.getElementById('failDialog').style.display = 'block';
+ }
+ return module;
+});
\ No newline at end of file
diff --git a/newBusinessEntities/static/js/project/directories/index.js b/newBusinessEntities/static/js/project/directories/index.js
new file mode 100644
index 0000000..003ccca
--- /dev/null
+++ b/newBusinessEntities/static/js/project/directories/index.js
@@ -0,0 +1,67 @@
+/**
+ * Created by Administrator on 2021/4/5.
+ */
+define(['jquery', "template", "Tools", "echarts", 'swiper' , 'LeftNav'], function ($, template, Tools, echarts, swiper , LeftNav) {
+ //数据存储
+ var module = {
+ data: {
+ //服务器地址
+ serverApi:'',
+ //焦点图数据
+ focusList: [],
+ communicateList: [],
+ noticeList: [],
+ policyList: [],
+ newList: [],
+ dataList:{
+ children: [],
+ haschildren: true,
+ isopen: false,
+ level: "0",
+ name: "",
+ url: "#",
+ }
+ },
+ };
+ var tools = new Tools();
+
+ module.init = function (page) {
+ //新闻管理列表
+ tools.doGet(projectClassification, {}, module.projectList , true);
+ tools.doPost(guideQuery, {}, module.guideQueryList , true);
+
+ };
+
+ //新闻列表
+ module.projectList = function (data) {
+ if (data.code == 200) {
+ var content = data.data;
+ content.forEach(res=>{
+ module.data.dataList.children.push(res)
+ })
+ leftNav(".left",module.data.dataList);
+ }
+ }
+
+ //新闻列表
+ module.guideQueryList = function (data) {
+ if (data.code == 200) {
+ var content = data.data;
+ module.data.directoriesList = content;
+ var directoriesData = template('directoriesData', module.data);
+ $("#directoriesContent").html(directoriesData);
+ }
+ }
+
+ goSearch = function () {
+ console.log($("#searchInput").val())
+ tools.doPost(guideQuery, {projectTitle:$("#searchInput").val()}, module.guideQueryList , true);
+ }
+
+ searchType = function (id) {
+ console.log(id)
+ tools.doPost(guideQuery, {projectType:id}, module.guideQueryList , true);
+ }
+
+ return module;
+});
\ No newline at end of file
diff --git a/newBusinessEntities/static/js/project/inventory/inventory.js b/newBusinessEntities/static/js/project/inventory/inventory.js
deleted file mode 100644
index c5eb117..0000000
--- a/newBusinessEntities/static/js/project/inventory/inventory.js
+++ /dev/null
@@ -1,101 +0,0 @@
-/**
- * Created by Administrator on 2021/4/5.
- */
-define(['jquery', "template", "Tools", "echarts", 'swiper', "paging"], function ($, template, Tools, echarts, swiper) {
- //数据存储
- var module = {
- data: {
- //服务器地址
- serverApi:'',
- //焦点图数据
- focusList: [],
- newList: [],
- //页码
- pageNum: 1,
- //页码集合
- pageList: [],
- //每页数量
- pageSize: 5,
- //总页数
- pageCount:0
- },
- };
- var tools = new Tools();
-
- module.init = function (page) {
- //新闻管理列表
- // tools.doGet(news + '/003//7', {}, module.focusNews , true);
- var _height=$("body").height();//获取当前窗口的高度
- var boxHeight = _height-520;
- //
- module.data.pageSize = (boxHeight/55).toFixed(0);
- $('#newBox').height(boxHeight);
- tools.doGet(getTopDeptId, {}, module.getInformation , true);
- };
-
- module.getInformation = function (data) {
- console.log(data)
- module.data.deptId = data.data;
- tools.doGet(productList, {
- deptId: data.data,
- pageNum: 1,
- pageSize: module.data.pageSize,
- }, module.newList , true);
- }
-
- //新闻列表
- module.newList = function (data) {
- console.log(data)
- if (data.code == 200) {
- var pageCount = (data.total/module.data.pageSize).toFixed(0);
- if (pageCount < 1){
- pageCount = 1;
- }
- if(module.data.newList == '') {
- console.log(pageCount)
- // 初始化 分页器
- var page_s1 = createPage('.page_s1');
- // 设置分页
- setPage(page_s1, {
- pageTotal: data.total, // 数据总条数
- pageSize: module.data.pageSize, // 每页显示条数
- pageCurrent: 1, // 当前页
- maxBtnNum: 5, // 最多按钮个数 (最少5个)
- })
- $('#page_s1').html('共' + pageCount + '页');
- }
- var content = data.rows;
- module.data.newList = content;
- var newData = template('newData', module.data);
- $("#newContent").html(newData);
- }
- }
-
- goSearch = function(){
- $('#page_s1').html('');
- $('.page_s1').html('');
- module.data.newList=[];
- tools.doGet(productList, {
- deptId: module.data.deptId,
- pageNum: 1,
- pageSize: module.data.pageSize,
- productName:$('#productName').val()
- }, module.newList , true);
- }
-
- turnThePage = function (pageNum) {
- module.data.pageNum = pageNum ;
- console.log($('#title').val())
- tools.doGet(productList, {
- deptId: module.data.deptId,
- pageNum: pageNum,
- pageSize: module.data.pageSize,
- productName:$('#productName').val()
- }, module.newList , true);
- }
-
- goDetail = function(id){
- tools.skip('/agriculturalLawEnforcement/view/workDynamics/workDetail.html?id='+id);
- }
- return module;
-});
\ No newline at end of file
diff --git a/newBusinessEntities/static/js/project/notice/notice.js b/newBusinessEntities/static/js/project/notice/notice.js
deleted file mode 100644
index df45688..0000000
--- a/newBusinessEntities/static/js/project/notice/notice.js
+++ /dev/null
@@ -1,89 +0,0 @@
-/**
- * Created by Administrator on 2021/4/5.
- */
-define(['jquery', "template", "Tools", "echarts", 'swiper', "paging"], function ($, template, Tools, echarts, swiper) {
- //数据存储
- var module = {
- data: {
- //服务器地址
- serverApi:'',
- //焦点图数据
- focusList: [],
- newList: [],
- //页码
- pageNum: 1,
- //页码集合
- pageList: [],
- //每页数量
- pageSize: 5,
- //总页数
- pageCount:0
- },
- };
- var tools = new Tools();
-
- module.init = function (page) {
- //新闻管理列表
- // tools.doGet(news + '/003//7', {}, module.focusNews , true);
- var _height=$("body").height();//获取当前窗口的高度
- var boxHeight = _height-520;
-
- module.data.pageSize = (boxHeight/40).toFixed(0);
- console.log(module.data.pageSize)
- $('#newContent').height(boxHeight);
- tools.doGet(getTopDeptId, {}, module.getInformation , true);
- };
-
- module.getInformation = function (data) {
- console.log(data)
- module.data.deptId = data.data;
- tools.doGet(newsList, {
- number: '001',
- deptId: data.data,
- pageNum: 1,
- pageSize: module.data.pageSize,
- }, module.newList , true);
- }
-
- //新闻列表
- module.newList = function (data) {
- console.log(data)
- if (data.code == 200) {
- var pageCount = (data.total/module.data.pageSize).toFixed(0);
- if (pageCount < 1){
- pageCount = 1;
- }
- if(module.data.newList == '') {
- // 初始化 分页器
- var page_s1 = createPage('.page_s1');
- // 设置分页
- setPage(page_s1, {
- pageTotal: data.total, // 数据总条数
- pageSize: module.data.pageSize, // 每页显示条数
- pageCurrent: 1, // 当前页
- maxBtnNum: 5, // 最多按钮个数 (最少5个)
- })
- $('#page_s1').html('共' + pageCount + '页');
- }
- var content = data.rows;
- module.data.newList = content;
- var newData = template('newData', module.data);
- $("#newContent").html(newData);
- }
- }
-
- turnThePage = function (pageNum) {
- module.data.pageNum = pageNum ;
- tools.doGet(newsList, {
- number: '001',
- deptId: module.data.deptId,
- pageNum: pageNum,
- pageSize: module.data.pageSize,
- }, module.newList , true);
- }
-
- goDetail = function(id){
- tools.skip('/agriculturalLawEnforcement/view/noticeAnnouncement/noticeDetail.html?id='+id);
- }
- return module;
-});
\ No newline at end of file
diff --git a/newBusinessEntities/static/js/project/notice/noticeDetail.js b/newBusinessEntities/static/js/project/notice/noticeDetail.js
deleted file mode 100644
index 514547e..0000000
--- a/newBusinessEntities/static/js/project/notice/noticeDetail.js
+++ /dev/null
@@ -1,52 +0,0 @@
-/**
- * Created by Administrator on 2021/4/5.
- */
-define(['jquery', "template", "Tools", "echarts", 'swiper'], function ($, template, Tools, echarts, swiper) {
- //数据存储
- var module = {
- data: {
- //服务器地址
- serverApi:'',
- //焦点图数据
- focusList: [],
- communicateList: [],
- },
- };
- var tools = new Tools();
-
- module.init = function (page) {
- //新闻管理列表
- tools.doGet(news + '/' + getQueryVariable('id'), {}, module.newList , true);
- };
-
- //获取地址栏参数
- function getQueryVariable(variable){
- var query = window.location.search.substring(1);
- var vars = query.split("&");
- for (var i=0;i document.body.offsetHeight){
- document.getElementById('bottomInformation').style.position = 'relative';
- }
- }
- }
-
- goDetail = function(id){
- tools.skip('/agriculturalLawEnforcement/view/workDynamics/workDetail.html?id='+id);
- }
- return module;
-});
\ No newline at end of file
diff --git a/newBusinessEntities/static/js/project/resources/index.js b/newBusinessEntities/static/js/project/resources/index.js
new file mode 100644
index 0000000..832b7e9
--- /dev/null
+++ b/newBusinessEntities/static/js/project/resources/index.js
@@ -0,0 +1,125 @@
+define(['jquery', "template", "Tools", 'LeftNav'], function ($, template, Tools, LeftNav) {
+ //数据存储
+ var module = {
+ data: {
+ //服务器地址
+ serverApi: '',
+ //焦点图数据
+ focusList: [],
+ communicateList: [],
+ knowledgeOptions: [],
+ noticeList: [],
+ policyList: [],
+ newList: [],
+ dataList: {
+ children: [],
+ haschildren: true,
+ isopen: false,
+ level: "0",
+ name: "",
+ url: "#",
+ },
+ switchTab:'expert'
+ },
+ };
+ var tools = new Tools();
+
+ module.init = function (page) {
+ //新闻管理列表
+ tools.doGet(knowledgeClassification, {}, module.projectList, true);
+ tools.doPost(expertDatabase, {}, module.expertDatabaseList, true);
+ tools.doPost(articleLibrary, {}, module.articleLibraryList, true);
+ tools.doPost(videoLibrary, {}, module.videoLibraryList, true);
+ };
+
+ //新闻列表
+ module.projectList = function (data) {
+ if (data.code == 200) {
+ var content = data.data;
+ content.forEach(res => {
+ module.data.dataList.children.push(res);
+ })
+ leftNav(".left", module.data.dataList);
+ }
+ }
+
+ //专家列表
+ module.expertDatabaseList = function (data) {
+ if (data.code == 200) {
+ var content = data.data;
+ for ( var i = 0 ; i < content.length ; i++ ){
+ content[i].expertsImage = serverApi + content[i].expertsImage;
+ }
+ module.data.directoriesList = content;
+ var directoriesData = template('directoriesData', module.data);
+ $("#directoriesContent").html(directoriesData);
+ }
+ }
+
+ //文章列表
+ module.articleLibraryList = function (data) {
+ if (data.code == 200) {
+ var content = data.data;
+ for ( var i = 0 ; i < content.length ; i++ ){
+ content[i].cover = serverApi + content[i].cover;
+ }
+ module.data.articleList = content;
+ var articleData = template('articleData', module.data);
+ $("#articleContent").html(articleData);
+ }
+ }
+
+ //视频列表
+ module.videoLibraryList = function (data) {
+ if (data.code == 200) {
+ var content = data.data;
+ for ( var i = 0 ; i < content.length ; i++ ){
+ content[i].cover = serverApi + content[i].cover;
+ }
+ module.data.videoList = content;
+ var videoData = template('videoData', module.data);
+ $("#videoContent").html(videoData);
+ }
+ }
+
+ switchTab = function (type) {
+ $(".left .left_nav_name").removeClass("nav_open");
+ $(".left .nav_li").removeClass("nav_li_open");
+ tools.doPost(expertDatabase, {}, module.expertDatabaseList, true);
+ tools.doPost(articleLibrary, {}, module.articleLibraryList, true);
+ tools.doPost(videoLibrary, {}, module.videoLibraryList, true);
+ $("#"+type+"Tit").addClass("active").siblings().removeClass("active");
+ $("#"+type+"").css('display','block').siblings().css('display','none');
+ module.data.switchTab = type;
+ }
+
+ goSearch = function (type) {
+ if (type == 'expert'){
+ tools.doPost(expertDatabase, {name: $("#searchInput").val()}, module.expertDatabaseList, true);
+ }
+ if (type == 'article'){
+ tools.doPost(articleLibrary, {headline: $("#articleSearchInput").val()}, module.articleLibraryList, true);
+ }
+ if (type == 'video'){
+ tools.doPost(videoLibrary, {headline: $("#videoSearchInput").val()}, module.videoLibraryList, true);
+ }
+ }
+
+ searchType = function (id) {
+ console.log(module.data.switchTab)
+ $(".left .left_nav_name").removeClass("nav_open");
+ if (module.data.switchTab == 'expert'){
+ tools.doPost(expertDatabase, {field: id}, module.expertDatabaseList, true);
+ }
+ if (module.data.switchTab == 'article'){
+ console.log('article------'+id)
+ tools.doPost(articleLibrary, {knowledgeType: id}, module.articleLibraryList, true);
+ }
+ if (module.data.switchTab == 'video'){
+ console.log('video------'+id)
+ tools.doPost(videoLibrary, {knowledgeType: id}, module.videoLibraryList, true);
+ }
+ }
+
+ return module;
+})
\ No newline at end of file
diff --git a/newBusinessEntities/static/js/project/scheme/scheme.js b/newBusinessEntities/static/js/project/scheme/scheme.js
deleted file mode 100644
index 93d5e0c..0000000
--- a/newBusinessEntities/static/js/project/scheme/scheme.js
+++ /dev/null
@@ -1,86 +0,0 @@
-/**
- * Created by Administrator on 2021/4/5.
- */
-define(['jquery', "template", "Tools", "echarts", 'swiper', "paging"], function ($, template, Tools, echarts, swiper) {
- //数据存储
- var module = {
- data: {
- //服务器地址
- serverApi:'',
- //焦点图数据
- focusList: [],
- newList: [],
- //页码
- pageNum: 1,
- //页码集合
- pageList: [],
- //每页数量
- pageSize: 5,
- //总页数
- pageCount:0
- },
- };
- var tools = new Tools();
-
- module.init = function (page) {
- //新闻管理列表
- // tools.doGet(news + '/003//7', {}, module.focusNews , true);
- var _height=$("body").height();//获取当前窗口的高度
- var boxHeight = _height-520;
- //
- module.data.pageSize = (boxHeight/40).toFixed(0);
- $('#newContent').height(boxHeight);
- tools.doGet(getTopDeptId, {}, module.getInformation , true);
- };
-
- module.getInformation = function (data) {
- console.log(data)
- module.data.deptId = data.data;
- tools.doGet(schemeList, {
- deptId: data.data,
- pageNum: 1,
- pageSize: module.data.pageSize,
- }, module.newList , true);
- }
-
- //新闻列表
- module.newList = function (data) {
- if (data.code == 200) {
- var pageCount = (data.total/module.data.pageSize).toFixed(0);
- if (pageCount < 1){
- pageCount = 1;
- }
- if(module.data.newList == '') {
- console.log(pageCount)
- // 初始化 分页器
- var page_s1 = createPage('.page_s1');
- // 设置分页
- setPage(page_s1, {
- pageTotal: data.total, // 数据总条数
- pageSize: module.data.pageSize, // 每页显示条数
- pageCurrent: 1, // 当前页
- maxBtnNum: 5, // 最多按钮个数 (最少5个)
- })
- $('#page_s1').html('共' + pageCount + '页');
- }
- var content = data.rows;
- module.data.newList = content;
- var newData = template('newData', module.data);
- $("#newContent").html(newData);
- }
- }
-
- turnThePage = function (pageNum) {
- module.data.pageNum = pageNum ;
- tools.doGet(schemeList, {
- deptId: module.data.deptId,
- pageNum: pageNum,
- pageSize: module.data.pageSize,
- }, module.newList , true );
- }
-
- goDetail = function(id){
- tools.skip('/agriculturalLawEnforcement/view/schemeDisclosure/schemeDetail.html?id='+id);
- }
- return module;
-});
\ No newline at end of file
diff --git a/newBusinessEntities/static/js/project/scheme/schemeDetail.js b/newBusinessEntities/static/js/project/scheme/schemeDetail.js
deleted file mode 100644
index ff1bcd6..0000000
--- a/newBusinessEntities/static/js/project/scheme/schemeDetail.js
+++ /dev/null
@@ -1,51 +0,0 @@
-/**
- * Created by Administrator on 2021/4/5.
- */
-define(['jquery', "template", "Tools", "echarts", 'swiper'], function ($, template, Tools, echarts, swiper) {
- //数据存储
- var module = {
- data: {
- //服务器地址
- serverApi:'',
- //焦点图数据
- focusList: [],
- communicateList: [],
- },
- };
- var tools = new Tools();
-
- module.init = function (page) {
- //新闻管理列表
- tools.doGet(schemeDetail + '/' + getQueryVariable('id'), {}, module.newList , true);
- };
-
- //获取地址栏参数
- function getQueryVariable(variable){
- var query = window.location.search.substring(1);
- var vars = query.split("&");
- for (var i=0;i document.body.offsetHeight){
- document.getElementById('bottomInformation').style.position = 'relative';
- }
- }
- }
-
- goDetail = function(id){
- tools.skip('/agriculturalLawEnforcement/view/workDynamics/workDetail.html?id='+id);
- }
- return module;
-});
\ No newline at end of file
diff --git a/newBusinessEntities/static/js/project/train/detail.js b/newBusinessEntities/static/js/project/train/detail.js
new file mode 100644
index 0000000..924f36c
--- /dev/null
+++ b/newBusinessEntities/static/js/project/train/detail.js
@@ -0,0 +1,181 @@
+define(['jquery', "template", "Tools",'swiper',], function ($, template, Tools, swiper) {
+ //数据存储
+ var module = {
+ data: {
+ //服务器地址
+ serverApi: '',
+ trainStudentsList:[{
+ name:'',
+ phone:'',
+ sex: '',
+ trainId:''
+ }]
+ },
+ };
+ var tools = new Tools();
+
+ module.init = function (page) {
+ //新闻管理列表
+ tools.doGet(dictType + '/training_type', {}, module.dictType , true);
+ tools.doGet(dictType + '/apply_state', {}, function(data){module.data.studentsTypeOptions = data.data;} , true);
+ module.data.trainStudentsList[0].trainId = getQueryVariable('id');
+
+ };
+
+ module.dictType = function (data) {
+ module.data.trainingTypeOptions = data.data;
+ tools.doPost(technologyTrainingDetails + '/' + getQueryVariable('id'), {}, module.technologyTrainingDetails, true);
+ }
+
+ //获取地址栏参数
+ function getQueryVariable(variable){
+ var query = window.location.search.substring(1);
+ var vars = query.split("&");
+ for (var i=0;i previewSwiper.activeIndex) {
+ var thumbsPerNav = Math.floor(previewSwiper.width / activeNav.width()) - 1
+ previewSwiper.swipeTo(activeNav.index() - thumbsPerNav)
+ } else {
+ previewSwiper.swipeTo(activeNav.index())
+ }
+ }
+ }
+ }
+
+ //专家列表
+ module.technologyTrainingDetails = function (data) {
+ if (data.code == 200) {
+ var content = data.data;
+ content.trainingType = module.selectDictLabel(module.data.trainingTypeOptions,content.trainingType);
+
+ for (var i = 0 ; i < content.tEntityTrainStudentsList.length ; i++){
+ content.tEntityTrainStudentsList[i].applyState = module.selectDictLabel(module.data.studentsTypeOptions,content.tEntityTrainStudentsList[i].applyState);
+ }
+
+ const masterMapList = content.masterMap.split(",");
+ for (var i = 0 ; i < masterMapList.length ; i++){
+ masterMapList[i] = serverApi + masterMapList[i];
+ }
+ console.log(masterMapList)
+ content.masterMap = masterMapList;
+
+ module.data.technologyDetail = content;
+ var technologyData = template('technologyData', module.data);
+ $("#technologyContent").html(technologyData);
+ $('#detailBox').html(content.briefIntroduction)
+ module.swiperBanner();
+ }
+ }
+
+ module.selectDictLabel = function (datas, value) {
+ var actions = [];
+ Object.keys(datas).some((key) => {
+ if (datas[key].dictValue == ('' + value)) {
+ actions.push(datas[key].dictLabel);
+ return true;
+ }
+ })
+ return actions.join('');
+ }
+
+ goDelete = function(index){
+ tools.doPost(technologyTrainingStudentsRemove+'/'+module.data.technologyDetail.tEntityTrainStudentsList[index].id, {}, module.updateList , true);
+ module.data.technologyDetail.tEntityTrainStudentsList.splice(index, 1);
+ var technologyData = template('technologyData', module.data);
+ $("#technologyContent").html(technologyData);
+ }
+
+ goStudentsDelete = function(index){
+ module.data.trainStudentsList.splice(index, 1);
+ var technologyData = template('technologyData', module.data);
+ $("#technologyContent").html(technologyData);
+ }
+
+ goSubmit = function(index){
+ tools.doPost(technologyTrainingStudents, module.data.trainStudentsList[index], module.updateList , true);
+ var technologyData = template('technologyData', module.data);
+ $("#technologyContent").html(technologyData);
+ }
+
+ module.updateList = function(data){
+ if (data.code == 200){
+ tools.doPost(technologyTrainingDetails + '/' + getQueryVariable('id'), {}, module.technologyTrainingDetails, true);
+ var technologyData = template('technologyData', module.data);
+ $("#technologyContent").html(technologyData);
+ }
+ }
+
+ inputNameChange = function(index){
+ module.data.trainStudentsList[index].name = $('#name'+index+'').val();
+ }
+
+ inputPhoneChange = function(index){
+ module.data.trainStudentsList[index].phone = $('#phone'+index+'').val();
+ }
+
+ inputSexChange = function(index){
+ module.data.trainStudentsList[index].sex = $('#sex'+index+'').val();
+ }
+
+ goAdd = function(){
+ for (var i = 0 ; i < module.data.trainStudentsList.length ; i++){
+ if (module.data.trainStudentsList[i].name == '' || module.data.trainStudentsList[i].phone == '' || module.data.trainStudentsList[i].sex == ''){
+ return;
+ }
+ }
+ module.data.trainStudentsList.push({
+ name:'',
+ phone:'',
+ sex:'',
+ trainId:getQueryVariable('id')
+ });
+ var technologyData = template('technologyData', module.data);
+ $("#technologyContent").html(technologyData);
+ }
+
+ return module;
+})
\ No newline at end of file
diff --git a/newBusinessEntities/static/js/project/train/index.js b/newBusinessEntities/static/js/project/train/index.js
new file mode 100644
index 0000000..7d20e0c
--- /dev/null
+++ b/newBusinessEntities/static/js/project/train/index.js
@@ -0,0 +1,150 @@
+define(['jquery', "template", "Tools", 'LeftNav', 'dateTime'], function ($, template, Tools, LeftNav) {
+ //数据存储
+ var module = {
+ data: {
+ //服务器地址
+ serverApi: '',
+ dataList: {
+ children: [],
+ haschildren: true,
+ isopen: false,
+ level: "0",
+ name: "",
+ url: "#",
+ },
+ },
+ };
+ var tools = new Tools();
+
+ module.init = function (page) {
+ tools.doGet(knowledgeClassification, {}, module.projectList, true);
+ //新闻管理列表
+ tools.doGet(dictType + '/training_type', {}, module.dictType , true);
+
+ $("#signStartTimeStr").datetime({
+ type: "date",
+ value: [new Date().getFullYear(),new Date().getMonth()+1,new Date().getDate()],
+ success: function (res) {
+ //console.log(res)
+ }
+ })
+
+ $("#signEndTimeStr").datetime({
+ type: "date",
+ value: [new Date().getFullYear(),new Date().getMonth()+1,new Date().getDate()],
+ success: function (res) {
+ //console.log(res)
+ }
+ })
+ };
+
+ //新闻列表
+ module.projectList = function (data) {
+ if (data.code == 200) {
+ var content = data.data;
+ content.forEach(res => {
+ module.data.dataList.children.push(res);
+ })
+ leftNav(".left", module.data.dataList);
+ }
+ }
+
+ module.dictType = function (data) {
+ module.data.trainingTypeOptions = data.data;
+ tools.doPost(technologyTraining, {}, module.technologyTrainingList, true);
+ tools.doPost(technologyConsulting, {}, module.technologyConsultingList, true);
+ }
+
+ //专家列表
+ module.technologyTrainingList = function (data) {
+ if (data.code == 200) {
+ var content = data.data;
+ for ( var i = 0 ; i < content.length ; i++ ){
+ content[i].trainingType = module.selectDictLabel(module.data.trainingTypeOptions,content[i].trainingType);
+ content[i].masterMap = serverApi + content[i].masterMap;
+ }
+ module.data.technologyList = content;
+ var technologyData = template('technologyData', module.data);
+ $("#technologyContent").html(technologyData);
+ }
+ }
+
+ //专家列表
+ module.technologyConsultingList = function (data) {
+ if (data.code == 200) {
+ var content = data.data;
+ module.data.technologyConsultingList = content;
+ var technologyConsultingData = template('technologyConsultingData', module.data);
+ $("#technologyConsultingContent").html(technologyConsultingData);
+ }
+ }
+
+ module.selectDictLabel = function (datas, value) {
+ var actions = [];
+ Object.keys(datas).some((key) => {
+ if (datas[key].dictValue == ('' + value)) {
+ actions.push(datas[key].dictLabel);
+ return true;
+ }
+ })
+ return actions.join('');
+ }
+
+
+ switchTab = function (type) {
+ $("#"+type+"Btn").addClass("active").siblings().removeClass("active");
+ $("#"+type+"").css('display','block').siblings().css('display','none');
+ module.data.switchTab = type;
+ }
+
+ searchType = function (id) {
+ console.log(id)
+ $(".left .left_nav_name").removeClass("nav_open");
+ tools.doPost(technologyConsulting, {techniqueType: id}, module.technologyConsultingList, true);
+ }
+
+ technologySearch = function(){
+ const data = {}
+ if ($("input[name='searchType']:checked").val() == 'title'){
+ data.trainingName = $('#technologyInput').val();
+ }else{
+ data.briefIntroduction = $('#technologyInput').val();
+ }
+ if ($('#signStartTimeStr').val()){
+ data.startTime = $('#signStartTimeStr').val() + ' 00:00:00';
+ }
+ if ($('#signEndTimeStr').val()){
+ data.endTime = $('#signEndTimeStr').val() + ' 00:00:00';
+ }
+
+ console.log(data)
+ tools.doPost(technologyTraining, data, module.technologyTrainingList, true);
+ }
+
+ consultingSearch = function(){
+ const data = {}
+ if ($("input[name='consultingType']:checked").val() == 'title'){
+ data.title = $('#consultingInput').val();
+ }else{
+ data.handleName = $('#consultingInput').val();
+ }
+ // data.startTime = $('#technologyInput').val();
+ // data.endTime = $('#technologyInput').val();
+ console.log(data)
+ tools.doPost(technologyConsulting, data, module.technologyConsultingList, true);
+ }
+
+ goSearch = function (type) {
+ if (type == 'expert'){
+ tools.doPost(expertDatabase, {name: $("#searchInput").val()}, module.expertDatabaseList, true);
+ }
+ if (type == 'article'){
+ tools.doPost(articleLibrary, {headline: $("#articleSearchInput").val()}, module.articleLibraryList, true);
+ }
+ if (type == 'video'){
+ tools.doPost(videoLibrary, {headline: $("#videoSearchInput").val()}, module.videoLibraryList, true);
+ }
+ }
+
+ return module;
+})
\ No newline at end of file
diff --git a/newBusinessEntities/static/js/project/train/severDetail.js b/newBusinessEntities/static/js/project/train/severDetail.js
new file mode 100644
index 0000000..323bbe6
--- /dev/null
+++ b/newBusinessEntities/static/js/project/train/severDetail.js
@@ -0,0 +1,179 @@
+define(['jquery', "template", "Tools",'swiper',], function ($, template, Tools, swiper) {
+ //数据存储
+ var module = {
+ data: {
+ //服务器地址
+ serverApi: '',
+ trainStudentsList:[{
+ name:'',
+ phone:'',
+ sex: '',
+ trainId:''
+ }]
+ },
+ };
+ var tools = new Tools();
+
+ module.init = function (page) {
+ //新闻管理列表techniqueType
+ tools.doGet(dictType + '/technique_type', {}, module.dictType , true);
+ tools.doGet(dictType + '/apply_state', {}, function(data){module.data.studentsTypeOptions = data.data;} , true);
+ };
+
+ module.dictType = function (data) {
+ module.data.trainingTypeOptions = data.data;
+ tools.doPost(technologyConsultingDetails + '/' + getQueryVariable('id'), {}, module.technologyTrainingDetails, true);
+ }
+
+ //获取地址栏参数
+ function getQueryVariable(variable){
+ var query = window.location.search.substring(1);
+ var vars = query.split("&");
+ for (var i=0;i previewSwiper.activeIndex) {
+ var thumbsPerNav = Math.floor(previewSwiper.width / activeNav.width()) - 1
+ previewSwiper.swipeTo(activeNav.index() - thumbsPerNav)
+ } else {
+ previewSwiper.swipeTo(activeNav.index())
+ }
+ }
+ }
+ }
+
+ //专家列表
+ module.technologyTrainingDetails = function (data) {
+ if (data.code == 200) {
+ var content = data.data;
+ // content.trainingType = module.selectDictLabel(module.data.trainingTypeOptions,content.trainingType);
+ //
+ // for (var i = 0 ; i < content.tEntityTrainStudentsList.length ; i++){
+ // content.tEntityTrainStudentsList[i].applyState = module.selectDictLabel(module.data.studentsTypeOptions,content.tEntityTrainStudentsList[i].applyState);
+ // }
+ //
+ // const masterMapList = content.masterMap.split(",");
+ // for (var i = 0 ; i < masterMapList.length ; i++){
+ // masterMapList[i] = serverApi + masterMapList[i];
+ // }
+ // console.log(masterMapList)
+ // content.masterMap = masterMapList;
+
+ module.data.technologyDetail = content;
+ var technologyData = template('technologyData', module.data);
+ $("#technologyContent").html(technologyData);
+ // $('#detailBox').html(content.briefIntroduction)
+ // module.swiperBanner();
+ }
+ }
+
+ module.selectDictLabel = function (datas, value) {
+ var actions = [];
+ Object.keys(datas).some((key) => {
+ if (datas[key].dictValue == ('' + value)) {
+ actions.push(datas[key].dictLabel);
+ return true;
+ }
+ })
+ return actions.join('');
+ }
+
+ goDelete = function(index){
+ tools.doPost(technologyTrainingStudentsRemove+'/'+module.data.technologyDetail.tEntityTrainStudentsList[index].id, {}, module.updateList , true);
+ module.data.technologyDetail.tEntityTrainStudentsList.splice(index, 1);
+ var technologyData = template('technologyData', module.data);
+ $("#technologyContent").html(technologyData);
+ }
+
+ goStudentsDelete = function(index){
+ module.data.trainStudentsList.splice(index, 1);
+ var technologyData = template('technologyData', module.data);
+ $("#technologyContent").html(technologyData);
+ }
+
+ goSubmit = function(index){
+ tools.doPost(technologyTrainingStudents, module.data.trainStudentsList[index], module.updateList , true);
+ var technologyData = template('technologyData', module.data);
+ $("#technologyContent").html(technologyData);
+ }
+
+ module.updateList = function(data){
+ if (data.code == 200){
+ tools.doPost(technologyTrainingDetails + '/' + getQueryVariable('id'), {}, module.technologyTrainingDetails, true);
+ var technologyData = template('technologyData', module.data);
+ $("#technologyContent").html(technologyData);
+ }
+ }
+
+ inputNameChange = function(index){
+ module.data.trainStudentsList[index].name = $('#name'+index+'').val();
+ }
+
+ inputPhoneChange = function(index){
+ module.data.trainStudentsList[index].phone = $('#phone'+index+'').val();
+ }
+
+ inputSexChange = function(index){
+ module.data.trainStudentsList[index].sex = $('#sex'+index+'').val();
+ }
+
+ goAdd = function(){
+ for (var i = 0 ; i < module.data.trainStudentsList.length ; i++){
+ if (module.data.trainStudentsList[i].name == '' || module.data.trainStudentsList[i].phone == '' || module.data.trainStudentsList[i].sex == ''){
+ return;
+ }
+ }
+ module.data.trainStudentsList.push({
+ name:'',
+ phone:'',
+ sex:'',
+ trainId:getQueryVariable('id')
+ });
+ var technologyData = template('technologyData', module.data);
+ $("#technologyContent").html(technologyData);
+ }
+
+ return module;
+})
\ No newline at end of file
diff --git a/newBusinessEntities/static/js/project/user/index.js b/newBusinessEntities/static/js/project/user/index.js
deleted file mode 100644
index eb46b01..0000000
--- a/newBusinessEntities/static/js/project/user/index.js
+++ /dev/null
@@ -1,844 +0,0 @@
-/**
- * Created by Administrator on 2021/4/5.
- */
-define(['jquery', "template", "Tools", "user", "paging","cupload","kindeditor"], function ($, template, Tools ) {
- //数据存储
- var module = {
- data: {
- userInformationDetail:[],
- userSupplyInformationList:'',
- consultingInformationList:'',
- biddingInformationList:'',
- //页码
- pageNum: 1,
- //页码集合
- pageList: [],
- //每页数量
- pageSize: 5,
- //总页数
- pageCount:0,
- //用户ID
- memberId:0,
- //用户资料form
- form:{
-
- },
- modifyUrl:'',
- detailUrl:''
- },
- };
- var tools = new Tools();
- module.init = function (page) {
- //底部友情链接
- tools.doGet(friendsLinks, {}, module.bottomFriendsLinks, true);
- //用户资料
- tools.doGet(userData, {}, module.userData);
-
- if(!tools.getCookie('Admin-Token')){
- tools.skip('../../index.html')
- }
-
- //用户资料
- //tools.doPut(userData, {id:}, module.userData,true);
-
- //个人中心选项卡鼠标悬浮
- module.userListHover();
-
- //网站配置信息(网站名称 底部联系方式 公安备案号 网站备案号)
- tools.getWebConfig();
-
- window.KindEditor.create('#editor_id')
-
- //console.log(tools.getParam('type'))
-
- var type = tools.getParam('type');
-
- module.getType(type);
- setTimeout(function(){
- //主题图片切换
- module.switchTheme();
- },500)
-
- };
-
- //主题图片切换
- module.switchTheme = function(){
- if(themeColor == 'red'){
- module.data.modifyUrl = '../../static/images/modify_red.png';
- module.data.detailUrl = '../../static/images/detail_red.png';
- }else if(themeColor == 'green'){
- module.data.modifyUrl = '../../static/images/modify.png';
- module.data.detailUrl = '../../static/images/detail.png';
- }
- }
- //底部友情链接
- module.bottomFriendsLinks = function (data) {
- if (data.code == 200) {
- var content = data.data;
- //console.log(content)
- module.data.friendsLinksList = content;
- var friendsLinksData = template('friendsLinksData', module.data);
- $("#friendsLinksContent").html(friendsLinksData);
- }
- }
-
- //获取类型
- module.getType = function(type){
- if (type == 'info'){
- document.getElementById("icon-list1").click();
- }
- if (type == 'demand'){
- document.getElementById("icon-list2").click();
- }
- if (type == 'interact'){
- document.getElementById("icon-list3").click();
- }
- if (type == 'bidding'){
- document.getElementById("icon-list4").click();
- }
- if (type == 'goDemand'){
- document.getElementById("icon-list2").click();
- document.getElementById("goSupply").click();
- }
- if (type == 'goInteract'){
- document.getElementById("icon-list3").click();
- document.getElementById("goRelease").click();
- }
- }
-
- //个人中心用户信息
- module.userData = function(data){
- if (data.code == 200) {
- var content = data.user;
- //console.log(content)
- module.data.userId = content.userId;
- tools.doGet(userMember + '/' + content.userId, {}, module.userMember);//memberType 1个人 2单位
- }
- }
-
- //个人中心用户资料
- module.userMember = function(data){
- if (data.code == 200) {
- var content = data.data;
- //console.log(data)
- module.data.userInformationDetail = content;
- module.data.memberType = content.memberType;
-
-
- if(content.memberType == '1'){
- document.getElementById('companyInformationContent').style.display = 'none';
- document.getElementById('userInformationContent').style.display = 'block';
- var userInformationData = template('userInformationData', module.data);
- $("#userInformationContent").html(userInformationData);
- }else{
- document.getElementById('companyInformationContent').style.display = 'block';
- document.getElementById('userInformationContent').style.display = 'none';
- var companyInformationData = template('companyInformationData', module.data);
- $("#companyInformationContent").html(companyInformationData);
- }
- document.getElementById('bankAddress').value = content.bankAddress;
- document.getElementById('bankCardName').value = content.bankCardName;
- document.getElementById('bankCardNum').value = content.bankCardNum;
- document.getElementById('phone').innerHTML = content.phone;
-
- module.data.memberId = content.id;
- //console.log(module.data.userId)
-
- //用户图片
- tools.doGet(showUserImg+'/'+module.data.memberId, {}, module.showUserImage);
- //我的供求
- tools.doGet(userSupply, {memberId:content.id,pageNum:module.data.pageNum,pageSize:10}, module.userSupply);
- //我的咨询
- tools.doGet(userConsulting, {memberId:content.id,pageNum:module.data.pageNum,pageSize:module.data.pageSize}, module.consulting);
- //我的竞价
- tools.doGet(userBidding, {memberId:content.id,pageNum:module.data.pageNum,pageSize:module.data.pageSize}, module.bidding);
- //个人资料提交
- $('#supplyAction').on('click', module.supplyAction)
- $('#releaseAction').on('click', module.releaseAction)
-
- //获取附件的值
- //$('#upLoadBtn').on('click',module.upLoadAction)
-
- //document.getElementById('userAction').addEventListener('click',module.formAction);
- }
- }
-
- module.showUserImage = function(data){
- //console.log(data)
- if (data.code == 200) {
- var content = data.data;
- var fileUrlList = [];
- var fileNum = [];
- for (var i = 0 ; i < content.length ; i++){
- fileUrlList[i] = serverApi + content[i].fileUrl ;
- fileNum[i] = content[i].id;
- }
- if (fileUrlList.length == 0){
- fileUrlList = '';
- }
- //console.log(fileUrlList)
- module.data.fileNum = fileNum;
- if(module.data.memberType == '1'){
- var cupload2 = new Cupload ({
- ele: '#cupload-3',
- num: 5,
- data:fileUrlList
- });
- }else{
- var cupload2 = new Cupload ({
- ele: '#cupload-2',
- num: 5,
- data:fileUrlList
- });
- }
- }
- }
-
- module.showSupplyImage = function(data){
- //console.log(data)
- if (data.code == 200) {
- var content = data.data;
- var fileUrlList = [];
- var fileNum = [];
- for (var i = 0 ; i < content.length ; i++){
- fileUrlList[i] = serverApi + content[i].fileUrl ;
- fileNum[i] = content[i].id;
- }
- if (fileUrlList.length == 0){
- fileUrlList = '';
- }
- //console.log(fileUrlList)
- document.getElementById('cupload-1').innerHTML = '';
- module.data.fileNum = fileNum;
- var cupload1 = new Cupload ({
- ele: '#cupload-1',
- num: 5,
- data:fileUrlList
- });
- }
- }
-
- deleteList = function(){
- //console.log(module.data.fileNum[deleteNum])
- tools.doGet(deleteUserImg+'/'+module.data.fileNum[deleteNum], {}, module.Tips);
- }
-
- module.getData = function(data){
- upLoadAction(data.data)
- }
-
- //获取上传图片list
- upLoadAction = function(type){
- //console.log(type)
- var upLoadList = [];
- var data = {};
- if(type == 'user'){
- if(module.data.memberType == '1'){
- $('#cupload-3').find('input').each(function() {
- if($(this).val()!=''&&$(this).val().indexOf('http') == -1){
- upLoadList.push($(this).val())
- }
- })
- }else{
- $('#cupload-2').find('input').each(function() {
- if($(this).val()!=''&&$(this).val().indexOf('http') == -1){
- upLoadList.push($(this).val())
- }
- })
- }
- data["tableName"] = 't_transaction_member';
- data["tableId"] = module.data.memberId;
- }else{
- $('#cupload-1').find('input').each(function() {
- if($(this).val()!=''&&$(this).val().indexOf('http') == -1){
- upLoadList.push($(this).val())
- }
- })
- data["tableName"] = 't_transaction_supply_demand';
- data["tableId"] = type;
- setTimeout(function(){
- tools.doGet(userSupply, {memberId:module.data.memberId,pageNum:module.data.pageNum,pageSize:module.data.pageSize}, module.userSupply)
- document.getElementById('supplyInformation').style.display = "block";
- document.getElementById('releaseSupply').style.display = "none";
- $('#demandType').val('');
- $('#projectName').val('');
- $('#location').val('');
- $('#projectRealName').val('');
- $('#projectPhone').val('');
- $('#projectContent').val('');
- },2000)
- }
-
- data["files"] = upLoadList;
- data["fileType"] = '';
- data["bizPath"] = 'transaction';
- tools.doPostImg(base64Attach, data, module.upLoadOver);//memberType 1个人 2单位
- tools.initError('发布成功');
-
- }
-
- module.upLoadOver = function(){
-
- }
-
- //删除供求
- deleteUserSupply = function(ids){
- tools.doGet(deleteSupply+'/'+ids, {}, module.Tips);
- }
-
- //个人中心我的供求
- module.userSupply = function(data){
- //console.log(data)
- if (data.code == 200) {
- var content = data.rows;
- //console.log(data)
- var pageCount = (data.total/10).toFixed(0);
- if (pageCount < 1){
- pageCount = 1;
- }
- if(module.data.userSupplyInformationList == ''){
- $('.page_s1').html('');
- // 初始化 分页器
- var page_s1 = createPage('.page_s1');
- // 设置分页
- setPage(page_s1, {
- pageTotal: data.total, // 数据总条数
- pageSize: 10, // 每页显示条数
- pageCurrent: 1, // 当前页
- maxBtnNum: 5, // 最多按钮个数 (最少5个)
- })
- $('#page_s1').html('共' + pageCount + '页')
-
- }
- module.data.userSupplyInformationList = content;
- var userSupplyInformationData = template('userSupplyInformationData', module.data);
- $("#userSupplyInformationContent").html(userSupplyInformationData);
- }
- }
-
- //个人中心我的咨询
- module.consulting = function(data){
- if (data.code == 200) {
- var content = data.rows;
- //console.log(data )
- var pageCount = (data.total/module.data.pageSize).toFixed(0);
- if (pageCount < 1){
- pageCount = 1;
- }
- $('.page_s2').html('');
- // 初始化 分页器
- var page_s1 = createPage('.page_s2');
- // 设置分页
- setPage(page_s1, {
- pageTotal: data.total, // 数据总条数
- pageSize: module.data.pageSize, // 每页显示条数
- pageCurrent: 1, // 当前页
- maxBtnNum: 5, // 最多按钮个数 (最少5个)
- })
- module.data.consultingInformationList = content;
- $('#page_s2').html('共'+pageCount+'页')
- var consultingInformationData = template('consultingInformationData', module.data);
- $("#consultingInformationContent").html(consultingInformationData);
- }
- }
-
- //个人中心我的竞价
- module.bidding = function(data){
- if (data.code == 200) {
- var content = data.rows;
- //console.log(content)
- var pageCount = (data.total/module.data.pageSize).toFixed(0);
- if (pageCount < 1){
- pageCount = 1;
- }
- if(module.data.biddingInformationList == '') {
- // 初始化 分页器
- var page_s1=createPage('.page_s3');
- // 设置分页
- setPage(page_s1, {
- pageTotal: data.total, // 数据总条数
- pageSize: module.data.pageSize, // 每页显示条数
- pageCurrent: 1, // 当前页
- maxBtnNum: 5, // 最多按钮个数 (最少5个)
- })
- $('#page_s3').html('共' + pageCount + '页')
- }
- module.data.biddingInformationList = content;
- var biddingInformationData = template('biddingInformationData', module.data);
- $("#biddingInformationContent").html(biddingInformationData);
- }
- }
-
- tabCheck = function(type){
- document.getElementById('user').className = '';
- document.getElementById('bank').className = '';
- document.getElementById('passWord').className = '';
- document.getElementById(type).className = 'active';
-
- //console.log(type)
- document.getElementById('userInformationContent').style.display = 'none';
- document.getElementById('companyInformationContent').style.display = 'none';
- document.getElementById('bankInformationContent').style.display = 'none';
- document.getElementById('phoneInformationContent').style.display = 'none';
- document.getElementById('passWordInformationContent').style.display = 'none';
- if (module.data.memberType == '2' && type == 'user'){
- document.getElementById('companyInformationContent').style.display = 'block';
- }else if (module.data.memberType == '1' && type == 'user'){
- document.getElementById('userInformationContent').style.display = 'block';
- }else{
- document.getElementById(type+'InformationContent').style.display = 'block';
- }
-
- }
-
- phoneUpdate = function(type){
- document.getElementById(type+'InformationContent').style.display = 'none';
- document.getElementById('phoneInformationContent').style.display = 'block';
- }
-
- tabLeftCheck = function(type){
- for (var i = 1 ; i < 5 ; i++){
- document.getElementById('icon-list'+i).className = '';
- }
- document.getElementById(type).className = 'active';
- document.getElementById('userInformation').style.display = 'none';
- document.getElementById('supplyInformation').style.display = 'none';
- document.getElementById('consultingInformation').style.display = 'none';
- document.getElementById('biddingInformation').style.display = 'none';
-
- document.getElementById('releaseSupply').style.display = 'none';
- document.getElementById('release').style.display = 'none';
-
- if(type == 'icon-list1'){
- document.getElementById('userInformation').style.display = 'block';
- }
- if(type == 'icon-list2'){
- document.getElementById('supplyInformation').style.display = 'block';
- module.data.clickType = 'supply';
- $('#demandType').val('');
- $('#projectName').val('');
- $('#location').val('');
- $('#projectRealName').val('');
- $('#projectPhone').val('');
- $('#projectContent').val('');
- }
- if(type == 'icon-list3'){
- document.getElementById('consultingInformation').style.display = 'block';
- module.data.clickType = 'consulting';
- $('#title').val('');
- $('#releaseContent').val('');
- $('#releaseRealName').val('');
- $('#releasePhone').val('');
- }
- if(type == 'icon-list4'){
- document.getElementById('biddingInformation').style.display = 'block';
- module.data.clickType = 'bidding';
- }
- module.data.pageNum = 1 ;
- }
-
- goSupply = function(){
- document.getElementById('supplyInformation').style.display = "none";
- document.getElementById('releaseSupply').style.display = "block";
- document.getElementById('cupload-1').innerHTML = '';
- var cupload1 = new Cupload ({
- ele: '#cupload-1',
- num: 5,
- });
- }
-
- gosupplyTable = function(){
- document.getElementById('supplyInformation').style.display = "block";
- document.getElementById('releaseSupply').style.display = "none";
- $('#demandType').val('');
- $('#projectName').val('');
- $('#location').val('');
- $('#projectRealName').val('');
- $('#projectPhone').val('');
- $('#projectContent').val('');
- }
-
- goRelease = function(){
- document.getElementById('consultingInformation').style.display = "none";
- document.getElementById('release').style.display = "block";
- }
-
- goReleaseTable = function(){
- document.getElementById('consultingInformation').style.display = "block";
- document.getElementById('release').style.display = "none";
- $('#title').val('');
- $('#releaseContent').val('');
- $('#releaseRealName').val('');
- $('#releasePhone').val('');
- }
-
- //翻页
- turnThePage = function (pageNum) {
- module.data.pageNum = pageNum ;
- if(module.data.clickType == 'supply'){
- tools.doGet(userSupply, {memberId:module.data.memberId,pageNum:pageNum,pageSize:module.data.pageSize}, module.userSupply);
- }
- if(module.data.clickType == 'consulting'){
- tools.doGet(userConsulting, {memberId:module.data.memberId,pageNum:pageNum,pageSize:module.data.pageSize}, module.consulting);
- }
- if(module.data.clickType == 'bidding'){
- tools.doGet(userBidding, {memberId:module.data.memberId,pageNum:pageNum,pageSize:module.data.pageSize}, module.bidding);
- }
- }
-
- //个人用户资料修改
- formAction = function (type){
- var data = {};
- //var password = $('#password').val();
- module.data.userFormType = type ;
- if(type == 'company'){
- //公司用户信息
- var companyName = $('#companyName').val();
- var idCardNum = $('#idCardNum').val();
- var realname = $('#realname').val();
- var companyCode = $('#companyCode').val();
- var companyNature = $('#companyNature').val();
- var companyScope = $('#companyScope').val();
- var companyTimeLimit = $('#companyTimeLimit').val();
- var companySetupTime = $('#companySetupTime').val();
- var companyCapital = $('#companyCapital').val();
- var companyLicense = $('#companyLicense').val();
- var address = $('#address').val();
- data['companyName'] = companyName;
- data['idCardNum'] = idCardNum;
- data['realname'] = realname;
- data['companyCode'] = companyCode;
- data['companyName'] = companyName;
- data['companyNature'] = companyNature;
- data['companyScope'] = companyScope;
- data['companyTimeLimit'] = companyTimeLimit;
- data['companySetupTime'] = companySetupTime;
- data['companyCapital'] = companyCapital;
- data['companyLicense'] = companyLicense;
- data['address'] = address;
-
- tools.setCookie('userName',realname,24 * 60 * 60)
- tools.setCookie('idCardNum',idCardNum,24 * 60 * 60)
- tools.setCookie('address',address,24 * 60 * 60)
- upLoadAction('user');
- }
- if(type == 'user'){
- //个人用户信息
- var userFormRealName = $('#userFormRealName').val();
- var userFormIdCard = $('#userFormIdCard').val();
- var userFormAddress = $('#userFormAddress').val();
- data['idCardNum'] = userFormIdCard;
- data['realname'] = userFormRealName;
- data['address'] = userFormAddress;
-
- tools.setCookie('userName',userFormRealName,24 * 60 * 60)
- tools.setCookie('idCardNum',userFormIdCard,24 * 60 * 60)
- tools.setCookie('address',userFormAddress,24 * 60 * 60)
- upLoadAction('user');
- }
- if(type == 'bank'){
- //银行卡信息
- var bankCardName = $('#bankCardName').val();
- var bankCardNum = $('#bankCardNum').val();
- var bankAddress = $('#bankAddress').val();
- data['bankCardName'] = bankCardName;
- data['bankCardNum'] = bankCardNum;
- data['bankAddress'] = bankAddress;
- tools.setCookie('bankCardName',bankCardName,24 * 60 * 60)
- tools.setCookie('bankCardNum',bankCardNum,24 * 60 * 60)
- tools.setCookie('bankAddress',bankAddress,24 * 60 * 60)
- }
- //data['password'] = password;
- data['id'] = module.data.memberId;
-
- tools.doPost(userUpdate, data, module.Tips)
- }
-
- editPassword = function(){
- var data = {};
- if(module.passWordCompare()){
- var oldPassWord = $('#originalPassWord').val();
- var newPassWord = $('#newPassWord').val();
- data['oldPassword'] = oldPassWord;
- data['newPassword'] = newPassWord;
- tools.doPost(updatePwd, data, module.Tips)
- }
- }
-
- //手动验证密码是否一致
- module.passWordCompare = function(){
- var newPassword = $('#newPassWord').val();
- var determinePassWord = $('#determinePassWord').val();
- var originalPassWord = $('#originalPassWord').val();
- /*原密码*/
- if (originalPassWord == '') {
- $('#originalPassWord')[0].focus()
- tools.initTips('请输入原密码', 'right', $('#originalPassWord')[0], 2000)
- return false;
- }
- /* 新密码 */
- if (newPassword == '') {
- $('#newPassWord')[0].focus()
- tools.initTips('请输入新密码', 'right', $('#newPassWord')[0], 2000)
- return false;
- }
- /* 确认密码 */
- if (determinePassWord == '') {
- $('#determinePassWord')[0].focus()
- tools.initTips('请确认密码', 'right', $('#determinePassWord')[0], 2000)
- return false;
- }
- return true;
- }
-
- //发布供求
- module.supplyAction = function (){
- var data = {};
- if(module.supplyCheck()){
- //供求信息
- var demandType = $('#demandType').val();
- var projectName = $('#projectName').val();
- var location = $('#location').val();
- var projectRealName = $('#projectRealName').val();
- var projectPhone = $('#projectPhone').val();
- var projectContent = $('#projectContent').val();
- var logintime = tools.getNowFormatDate();
-
- //console.log(demandType);
- data['projectName'] = projectName;
- data['location'] = location;
- data['realname'] = projectRealName;
- data['phone'] = projectPhone;
- data['projectContent'] = projectContent;
- data['logintime'] = logintime;
- data['supplyDemandType'] = demandType;
- data['deptId'] = 100;
-
- data['memberId'] = module.data.memberId;
-
- if(module.data.supplyType == 'edit'){
- tools.doPost(userEdit, data, module.getData)
- }else{
- tools.doPost(userDemand, data, module.getData)
- }
-
- }
- }
-
- //发布咨询
- module.releaseAction = function (){
- var data = {};
- if(module.releaseCheck()){
- //供求信息
- var title = $('#title').val();
- var releaseContent = $('#releaseContent').val();
- var releaseRealName = $('#releaseRealName').val();
- var releasePhone = $('#releasePhone').val();
- var logintime = tools.getNowFormatDate();
-
- data['title'] = title;
- data['content'] = releaseContent;
- data['realname'] = releaseRealName;
- data['phone'] = releasePhone;
- data['logintime'] = logintime;
- data['deptId'] = 100;
- data['memberId'] = module.data.memberId;
-
- tools.doPost(userCommunicate, data, module.releaseActionYes)
- }
- }
- module.releaseActionYes = function(data){
- tools.initError(data.msg);
- setTimeout(function(){
- tools.doGet(userConsulting, {memberId:module.data.memberId,pageNum:module.data.pageNum,pageSize:module.data.pageSize}, module.consulting);
- document.getElementById('consultingInformation').style.display = "block";
- document.getElementById('release').style.display = "none";
- $('#title').val('');
- $('#releaseContent').val('');
- $('#releaseRealName').val('');
- $('#releasePhone').val('');
- },2000)
-
- }
- module.Tips = function(data){
-
- tools.initError(data.msg);
- }
-
- //手动验证表单
- module.check = function () {
- var usernameVal = $('#username').val();
- var passwordVal = $('#password').val();
- var codeVal = $('#code').val();
- /* 手机号 */
- if (usernameVal == '') {
- $('#username')[0].focus()
- tools.initTips('请输入用户名', 'right', $('#username')[0], 2000)
- return false;
- }
- /* 密码 */
- if (passwordVal == '') {
- $('#password')[0].focus()
- tools.initTips('请输入密码', 'right', $('#password')[0], 2000)
- return false;
- } else if (parseInt(passwordVal.length) < 6 || parseInt(passwordVal.length) > 18) {
- $('#password')[0].focus()
- tools.initTips('请输入正确格式密码', 'right', $('#password')[0], 2000)
- return false;
- }
- /*图形验证码*/
- if (module.uuid == '' || codeVal == '') {
- $('#code')[0].focus()
- tools.initTips('请输入图形验证码', 'right', $('#code')[0], 2000)
- return false;
- }
- return true;
- }
-
- module.supplyCheck = function () {
- var projectName = $('#projectName').val();
- var location = $('#location').val();
- var projectRealName = $('#projectRealName').val();
- var projectPhone = $('#projectPhone').val();
- var projectContent = $('#projectContent').val();
- if (projectName == '') {
- $('#projectName')[0].focus()
- tools.initTips('请输入项目名称', 'right', $('#projectName')[0], 2000)
- return false;
- }
- if (location == '') {
- $('#location')[0].focus()
- tools.initTips('请输入项目地址', 'right', $('#location')[0], 2000)
- return false;
- }
- if (projectRealName == '') {
- $('#projectRealName')[0].focus()
- tools.initTips('请输入姓名', 'right', $('#projectRealName')[0], 2000)
- return false;
- }
- if (projectPhone == '') {
- $('#projectPhone')[0].focus()
- tools.initTips('请输入联系电话', 'right', $('#projectPhone')[0], 2000)
- return false;
- }
- if (projectContent == '') {
- $('#projectContent')[0].focus()
- tools.initTips('请输入项目详情', 'right', $('#projectContent')[0], 2000)
- return false;
- }
- return true;
- }
-
- module.releaseCheck = function () {
- var title = $('#title').val();
- var releaseContent = $('#releaseContent').val();
- var releaseRealName = $('#releaseRealName').val();
- var releasePhone = $('#releasePhone').val();
- if (title == '') {
- $('#title')[0].focus()
- tools.initTips('请输入标题', 'right', $('#title')[0], 2000)
- return false;
- }
- if (releaseContent == '') {
- $('#releaseContent')[0].focus()
- tools.initTips('请输入咨询内容', 'right', $('#releaseContent')[0], 2000)
- return false;
- }
- if (releaseRealName == '') {
- $('#releaseRealName')[0].focus()
- tools.initTips('请输入姓名', 'right', $('#releaseRealName')[0], 2000)
- return false;
- }
- if (releasePhone == '') {
- $('#releasePhone')[0].focus()
- tools.initTips('请输入联系电话', 'right', $('#releasePhone')[0], 2000)
- return false;
- }
- return true;
- }
-
- //个人中心选项卡鼠标悬浮
- module.userListHover = function(){
- document.getElementById('icon-list1').onmouseout = function(){
- document.getElementById('icon1').src = '../../static/images/user_index_icon1.png'
- }
- document.getElementById('icon-list1').onmouseover = function(){
- if(themeColor == 'red'){
- document.getElementById('icon1').src = '../../static/images/user_index_icon5_red.png'
- }else if(themeColor == 'green'){
- document.getElementById('icon1').src = '../../static/images/user_index_icon5.png'
- }
- }
-
- document.getElementById('icon-list2').onmouseout = function(){
- document.getElementById('icon2').src = '../../static/images/user_index_icon2.png'
- }
- document.getElementById('icon-list2').onmouseover = function(){
- if(themeColor == 'red'){
- document.getElementById('icon2').src = '../../static/images/user_index_icon6_red.png'
- }else if(themeColor == 'green') {
- document.getElementById('icon2').src = '../../static/images/user_index_icon6.png'
- }
- }
-
- document.getElementById('icon-list3').onmouseout = function(){
- document.getElementById('icon3').src = '../../static/images/user_index_icon3.png'
- }
- document.getElementById('icon-list3').onmouseover = function(){
- if(themeColor == 'red'){
- document.getElementById('icon3').src = '../../static/images/user_index_icon7_red.png'
- }else if(themeColor == 'green') {
- document.getElementById('icon3').src = '../../static/images/user_index_icon7.png'
- }
- }
-
- document.getElementById('icon-list4').onmouseout = function(){
- document.getElementById('icon4').src = '../../static/images/user_index_icon4.png'
- }
- document.getElementById('icon-list4').onmouseover = function(){
- if(themeColor == 'red'){
- document.getElementById('icon4').src = '../../static/images/user_index_icon8_red.png'
- }else if(themeColor == 'green') {
- document.getElementById('icon4').src = '../../static/images/user_index_icon8.png'
- }
- }
-
-
- }
-
- goSearch = function () {
- var searchTitle = $('#searchTitle').val();
- var searchContent = $('#searchContent').val();
- //console.log(searchTitle)
- module.data.searchType = 'YES';
- tools.doGet(userConsulting,{title:searchTitle,content:searchContent,memberId:module.data.memberId,pageNum:module.data.pageNum,pageSize:module.data.pageSize},module.consulting);
- }
-
- selectUserSupply = function(ids) {
- module.data.supplyType = 'edit'
- //console.log('点击修改')
- tools.doGet(selectSupply + '/' + ids, {}, module.selectSupplyDetail);//memberType 1个人 2单位
- }
- module.selectSupplyDetail = function(data){
- console.log('进入修改供求')
- document.getElementById('supplyInformation').style.display = "none";
- document.getElementById('releaseSupply').style.display = "block";
-
- var content = data.data
-
- $('#demandType').val(content.supplyDemandType);
- $('#projectName').val(content.projectName);
- $('#location').val(content.location);
- $('#projectRealName').val(content.realname);
- $('#projectPhone').val(content.phone);
- $('#projectContent').val(content.projectContent);
-
- tools.doGet(supplyDemandImg+'/'+content.id, {}, module.showSupplyImage);
- }
-
- goProject = function(id){
- tools.skip('../listingItems/itemsDetail.html?id='+id)
- }
-
- return module;
-});
\ No newline at end of file
diff --git a/newBusinessEntities/static/js/project/user/login.js b/newBusinessEntities/static/js/project/user/login.js
deleted file mode 100644
index db2d2e1..0000000
--- a/newBusinessEntities/static/js/project/user/login.js
+++ /dev/null
@@ -1,148 +0,0 @@
-
-/**
- * Created by admin on 2021/4/5.
- *
- */
-define(['jquery', "Tools","user"], function ($, Tools) {
- //数据存储
- var module = {
- uuid: '' //验证码uuid
- };
- //自定义公共方法
- var tools = new Tools();
-
- //默认进入页面加载方法
- module.init = function (page) {
- //点击登录
- $('#login-submit').on('click', module.login)
- //点击图形验证码
- $('#graphicImg').on('click', module.verificationCode)
- //图形验证码加载
- module.verificationCode()
- //背景高度
- module.register()
- //网站配置信息(网站名称 底部联系方式 公安备案号 网站备案号)
- tools.getWebConfig();
- document.onkeydown = function (event) {
- var e = event || window.event;
- if (e && e.keyCode == 13) { //回车键的键值为13
- $("#login-submit").click(); //调用登录按钮的登录事件
- }
- };
- };
-
- //底部友情链接
- module.bottomFriendsLinks = function (data) {
- if (data.code == 200) {
- var content = data.data;
- console.log(content)
- module.data.friendsLinksList = content;
- var friendsLinksData = template('friendsLinksData', module.data);
- $("#friendsLinksContent").html(friendsLinksData);
- }
- }
- /*-----------------------------自定义方法-------------------------------------*/
- //登录方式切换
- loginTab = function(type){
- document.getElementById('loginTab').style.display = 'none'
- document.getElementById('phoneTab').style.display = 'none'
- document.getElementById(type+'Tab').style.display = 'block'
- }
- //背景高度
- module.register = function(){
- document.getElementById('registerBody').style.height = (document.body.offsetHeight - 112) +'px';
- }
- //图形验证码
- module.verificationCode = function () {
- tools.doGet(captchaImage_get, {}, module.verificationAjax, true)
- }
- module.verificationAjax = function (data) {
- if (data.code == 200) {
- $('#graphicImg').attr('src', 'data:image/gif;base64,' + data.img)
- module.uuid = data.uuid;
- }
- }
- //用户登录
- module.login = function () {
- if (module.check()) {
- var data = {};
- var usernameVal = $('#username').val();
- var passwordVal = $('#password').val();
- var codeVal = $('#code').val();
- data['username'] = usernameVal;
- data['password'] = passwordVal;
- data['code'] = codeVal;
- data['uuid'] = module.uuid;
- tools.doPost(login_post, data, module.loginData, true)
- }
- };
- //手动验证表单
- module.check = function () {
- var usernameVal = $('#username').val();
- var passwordVal = $('#password').val();
- var codeVal = $('#code').val();
- /* 手机号 */
- if (usernameVal == '') {
- $('#username')[0].focus()
- tools.initTips('请输入用户名', 'right', $('#username')[0], 2000)
- return false;
- }
- /* 密码 */
- if (passwordVal == '') {
- $('#password')[0].focus()
- tools.initTips('请输入密码', 'right', $('#password')[0], 2000)
- return false;
- } else if (parseInt(passwordVal.length) < 6 || parseInt(passwordVal.length) > 18) {
- $('#password')[0].focus()
- tools.initTips('请输入正确格式密码', 'right', $('#password')[0], 2000)
- return false;
- }
- /*图形验证码*/
- if (module.uuid == '' || codeVal == '') {
- $('#code')[0].focus()
- tools.initTips('请输入图形验证码', 'right', $('#code')[0], 2000)
- return false;
- }
- return true;
- }
- //登录校验
- module.loginData = function (data) {
- console.log(data)
- if (data.code == 500) {
- module.verificationCode()
- } else {
- tools.setCookie('Admin-Token', data.token, 24 * 60 * 60)
- //用户资料
- tools.doGet(userData, {}, module.userData);
- //tools.skip('/')
- }
- }
- //个人中心用户信息
- module.userData = function(data){
- if (data.code == 200) {
- var content = data.user;
- console.log(content)
- tools.setCookie('userId', content.userId, 24 * 60 * 60);
- tools.doGet(userMember + '/' + content.userId, {}, module.userMember);//memberType 1个人 2单位
- }
- }
-
- //个人中心用户资料
- module.userMember = function(data){
- if (data.code == 200) {
- var content = data.data;
- console.log(data)
- console.log(content.realname)
- tools.setCookie('userName', content.realname, 24 * 60 * 60);
- tools.setCookie('memberId', content.id, 24 * 60 * 60);
- tools.setCookie('idCardNum',content.idCardNum,24 * 60 * 60)
- tools.setCookie('phone',content.phone,24 * 60 * 60)
- tools.setCookie('address',content.address,24 * 60 * 60)
- tools.setCookie('bankAddress',content.bankAddress,24 * 60 * 60)
- tools.setCookie('bankCardName',content.bankCardName,24 * 60 * 60)
- tools.setCookie('bankCardNum',content.bankCardNum,24 * 60 * 60)
- tools.skip('/')
- }
- }
- return module;
-});
\ No newline at end of file
diff --git a/newBusinessEntities/static/js/project/user/register.js b/newBusinessEntities/static/js/project/user/register.js
deleted file mode 100644
index 7e86a66..0000000
--- a/newBusinessEntities/static/js/project/user/register.js
+++ /dev/null
@@ -1,78 +0,0 @@
-/**
- * Created by Administrator on 2021/4/5.
- */
-define(['jquery', "template", "Tools", "echarts", 'swiper'], function ($, template, Tools, echarts, swiper) {
- //数据存储
- var module = {
- data: {
- type:0
- },
- };
- var tools = new Tools();
-
- module.init = function (page) {
- //背景高度
- module.register();
- module.data.type = getQueryVariable("type")
- //网站配置信息(网站名称 底部联系方式 公安备案号 网站备案号)
- tools.getWebConfig();
- setTimeout(function(){
- //主题图片切换
- module.switchTheme();
- },500)
- };
- //主题图片切换
- module.switchTheme = function(){
- if(themeColor == 'red'){
- if (getQueryVariable('type')){
- document.getElementById('registerTit').src = '../../static/images/registerTit_red.png'
- }else{
- document.getElementById('icon1').src = '../../static/images/register_icon2_red.png'
- document.getElementById('icon2').src = '../../static/images/register_icon1_red.png'
- }
- }else if(themeColor == 'green'){
- if (getQueryVariable('type')){
- document.getElementById('registerTit').src = '../../static/images/registerTit.png'
- }else{
- document.getElementById('icon2').src = '../../static/images/register_icon1.png'
- document.getElementById('icon1').src = '../../static/images/register_icon2.png'
- }
- }
- }
-
- //底部友情链接
- module.bottomFriendsLinks = function (data) {
- if (data.code == 200) {
- var content = data.data;
- //console.log(content)
- module.data.friendsLinksList = content;
- var friendsLinksData = template('friendsLinksData', module.data);
- $("#friendsLinksContent").html(friendsLinksData);
- }
- }
- //获取地址栏参数
- function getQueryVariable(variable){
- var query = window.location.search.substring(1);
- var vars = query.split("&");
- for (var i=0;i 18) {
- $('#password')[0].focus()
- tools.initTips('请输入正确格式密码', 'right', $('#password')[0], 2000)
- return false;
- }else if($('#password').val() != $('#passwordAgain').val()){
- $('#password')[0].focus()
- tools.initTips('两次密码输入不一致', 'right', $('#password')[0], 2000)
- return false;
- }
- /*图形验证码*/
- if (module.uuid == '' || codeVal == '') {
- $('#code')[0].focus()
- tools.initTips('请输入图形验证码', 'right', $('#code')[0], 2000)
- return false;
- }
- console.log($('#iAgree:checked').val())
- if ($('#iAgree:checked').val() == undefined){
- tools.initTips('请选择我已同意', 'right', $('#iAgree')[0], 2000)
- return false;
- }
- return true;
- }
- return module;
-});
\ No newline at end of file
diff --git a/newBusinessEntities/static/js/project/work/work.js b/newBusinessEntities/static/js/project/work/work.js
deleted file mode 100644
index 984cbe1..0000000
--- a/newBusinessEntities/static/js/project/work/work.js
+++ /dev/null
@@ -1,88 +0,0 @@
-/**
- * Created by Administrator on 2021/4/5.
- */
-define(['jquery', "template", "Tools", "echarts", 'swiper', "paging"], function ($, template, Tools, echarts, swiper) {
- //数据存储
- var module = {
- data: {
- //服务器地址
- serverApi:'',
- //焦点图数据
- focusList: [],
- newList: [],
- //页码
- pageNum: 1,
- //页码集合
- pageList: [],
- //每页数量
- pageSize: 5,
- //总页数
- pageCount:0
- },
- };
- var tools = new Tools();
-
- module.init = function (page) {
- //新闻管理列表
- // tools.doGet(news + '/003//7', {}, module.focusNews , true);
- var _height=$("body").height();//获取当前窗口的高度
- var boxHeight = _height-520;
-
- module.data.pageSize = (boxHeight/40).toFixed(0);
- console.log(module.data.pageSize)
- $('#newContent').height(boxHeight);
- tools.doGet(getTopDeptId, {}, module.getInformation , true);
- };
-
- module.getInformation = function (data) {
- console.log(data)
- module.data.deptId = data.data;
- tools.doGet(newsList, {
- number: '003',
- deptId: data.data,
- pageNum: 1,
- pageSize: module.data.pageSize,
- }, module.newList , true);
- }
-
- //新闻列表
- module.newList = function (data) {
- console.log(data)
- if (data.code == 200) {
- var pageCount = (data.total/module.data.pageSize).toFixed(0);
- if (pageCount < 1){
- pageCount = 1;
- }
- if(module.data.newList == '') {
- // 初始化 分页器
- var page_s1 = createPage('.page_s1');
- // 设置分页
- setPage(page_s1, {
- pageTotal: data.total, // 数据总条数
- pageSize: module.data.pageSize, // 每页显示条数
- pageCurrent: 1, // 当前页
- maxBtnNum: 5, // 最多按钮个数 (最少5个)
- })
- $('#page_s1').html('共' + pageCount + '页');
- }
- var content = data.rows;
- module.data.newList = content;
- var newData = template('newData', module.data);
- $("#newContent").html(newData);
- }
- }
-
- goDetail = function(id){
- tools.skip('/agriculturalLawEnforcement/view/workDynamics/workDetail.html?id='+id);
- }
- turnThePage = function (pageNum) {
- module.data.pageNum = pageNum ;
- tools.doGet(newsList, {
- number: '003',
- deptId: module.data.deptId,
- pageNum: pageNum,
- pageSize: module.data.pageSize,
- }, module.newList , true);
- }
- return module;
-});
\ No newline at end of file
diff --git a/newBusinessEntities/static/js/project/work/workDetail.js b/newBusinessEntities/static/js/project/work/workDetail.js
deleted file mode 100644
index 514547e..0000000
--- a/newBusinessEntities/static/js/project/work/workDetail.js
+++ /dev/null
@@ -1,52 +0,0 @@
-/**
- * Created by Administrator on 2021/4/5.
- */
-define(['jquery', "template", "Tools", "echarts", 'swiper'], function ($, template, Tools, echarts, swiper) {
- //数据存储
- var module = {
- data: {
- //服务器地址
- serverApi:'',
- //焦点图数据
- focusList: [],
- communicateList: [],
- },
- };
- var tools = new Tools();
-
- module.init = function (page) {
- //新闻管理列表
- tools.doGet(news + '/' + getQueryVariable('id'), {}, module.newList , true);
- };
-
- //获取地址栏参数
- function getQueryVariable(variable){
- var query = window.location.search.substring(1);
- var vars = query.split("&");
- for (var i=0;i document.body.offsetHeight){
- document.getElementById('bottomInformation').style.position = 'relative';
- }
- }
- }
-
- goDetail = function(id){
- tools.skip('/agriculturalLawEnforcement/view/workDynamics/workDetail.html?id='+id);
- }
- return module;
-});
\ No newline at end of file
diff --git a/newBusinessEntities/view/directories/declare.html b/newBusinessEntities/view/directories/declare.html
index 42920c4..eaa4e12 100644
--- a/newBusinessEntities/view/directories/declare.html
+++ b/newBusinessEntities/view/directories/declare.html
@@ -59,34 +59,34 @@
首页 > 项目指南 > 项目申报
-
填写经纪人申请信息NO.102034 经纪人信息
+
填写项目申报信息NO.102034 经纪人信息
@@ -96,29 +96,29 @@
@@ -128,18 +128,17 @@
-