添加公共js
This commit is contained in:
parent
95ce3225f6
commit
504ce00b22
|
|
@ -19,7 +19,7 @@ function getDict(type) {
|
|||
if (v == null || v == "") {
|
||||
$.ajax({
|
||||
type : 'get',
|
||||
url : ctxPath + '/dicts?type=' + type,
|
||||
url : czl_url + '/dicts?type=' + type,
|
||||
async : false,
|
||||
success : function(data) {
|
||||
v = {};
|
||||
|
|
|
|||
|
|
@ -217,7 +217,7 @@ function getProjectStatus() {
|
|||
$.ajax({
|
||||
type: 'POST',
|
||||
async: true, // 默认异步true,false表示同步
|
||||
url: ctxPath + "/dataHome/getProjectStatus",// 请求地址
|
||||
url: czl_url + "/dataHome/getProjectStatus",// 请求地址
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
data: {}, //获取提交的表单字段
|
||||
success: function (data) {
|
||||
|
|
@ -238,7 +238,7 @@ function getBaseTowerStatus() {
|
|||
$.ajax({
|
||||
type: 'POST',
|
||||
async: true, // 默认异步true,false表示同步
|
||||
url: ctxPath + "/dataHome/getBaseTowerStatus",// 请求地址
|
||||
url: czl_url + "/dataHome/getBaseTowerStatus",// 请求地址
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
data: {}, //获取提交的表单字段
|
||||
success: function (data) {
|
||||
|
|
@ -257,7 +257,7 @@ function getTowerTowerStatus() {
|
|||
$.ajax({
|
||||
type: 'POST',
|
||||
async: true, // 默认异步true,false表示同步
|
||||
url: ctxPath + "/dataHome/getTowerTowerStatus",// 请求地址
|
||||
url: czl_url + "/dataHome/getTowerTowerStatus",// 请求地址
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
data: {}, //获取提交的表单字段
|
||||
success: function (data) {
|
||||
|
|
@ -275,7 +275,7 @@ function getLineTowerStatus() {
|
|||
$.ajax({
|
||||
type: 'POST',
|
||||
async: true, // 默认异步true,false表示同步
|
||||
url: ctxPath + "/dataHome/getLineTowerStatus",// 请求地址
|
||||
url: czl_url + "/dataHome/getLineTowerStatus",// 请求地址
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
data: {}, //获取提交的表单字段
|
||||
success: function (data) {
|
||||
|
|
@ -293,7 +293,7 @@ function getBranchOfficeTeamStatus() {
|
|||
$.ajax({
|
||||
type: 'POST',
|
||||
async: true, // 默认异步true,false表示同步
|
||||
url: ctxPath + "/dataHome/getBranchOfficeTeamStatus",// 请求地址
|
||||
url: czl_url + "/dataHome/getBranchOfficeTeamStatus",// 请求地址
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
data: {}, //获取提交的表单字段
|
||||
success: function (data) {
|
||||
|
|
@ -313,7 +313,7 @@ function getSubTeamStatus() {
|
|||
$.ajax({
|
||||
type: 'POST',
|
||||
async: true, // 默认异步true,false表示同步
|
||||
url: ctxPath + "/dataHome/getSubTeamStatus",// 请求地址
|
||||
url: czl_url + "/dataHome/getSubTeamStatus",// 请求地址
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
data: {}, //获取提交的表单字段
|
||||
success: function (data) {
|
||||
|
|
@ -389,7 +389,7 @@ function getOwnTeamStatus() {
|
|||
$.ajax({
|
||||
type: 'POST',
|
||||
async: true, // 默认异步true,false表示同步
|
||||
url: ctxPath + "/dataHome/getOwnTeamStatus",// 请求地址
|
||||
url: czl_url + "/dataHome/getOwnTeamStatus",// 请求地址
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
data: {}, //获取提交的表单字段
|
||||
success: function (data) {
|
||||
|
|
@ -462,7 +462,7 @@ function getRealMessage() {
|
|||
$.ajax({
|
||||
type: 'POST',
|
||||
async: true, // 默认异步true,false表示同步
|
||||
url: ctxPath + "/dataHome/getRealMessage",// 请求地址
|
||||
url: czl_url + "/dataHome/getRealMessage",// 请求地址
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
data: {}, //获取提交的表单字段
|
||||
success: function (data) {
|
||||
|
|
@ -481,7 +481,7 @@ function getToolsStatus() {
|
|||
$.ajax({
|
||||
type: 'POST',
|
||||
async: true, // 默认异步true,false表示同步
|
||||
url: ctxPath + "/dataHome/getToolsStatus",// 请求地址
|
||||
url: czl_url + "/dataHome/getToolsStatus",// 请求地址
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
data: {}, //获取提交的表单字段
|
||||
success: function (data) {
|
||||
|
|
@ -508,7 +508,7 @@ function getProjectResource() {
|
|||
$.ajax({
|
||||
type: 'POST',
|
||||
async: true, // 默认异步true,false表示同步
|
||||
url: ctxPath + "/dataHome/getProjectResource",// 请求地址
|
||||
url: czl_url + "/dataHome/getProjectResource",// 请求地址
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
data: {}, //获取提交的表单字段
|
||||
success: function (data) {
|
||||
|
|
@ -539,7 +539,7 @@ function getSubTeamCapacity() {
|
|||
$.ajax({
|
||||
type: 'POST',
|
||||
async: true, // 默认异步true,false表示同步
|
||||
url: ctxPath + "/dataHome/getSubTeamCapacity",// 请求地址
|
||||
url: czl_url + "/dataHome/getSubTeamCapacity",// 请求地址
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
data: {}, //获取提交的表单字段
|
||||
success: function (data) {
|
||||
|
|
@ -567,7 +567,7 @@ function getOwnTeamCapacity() {
|
|||
$.ajax({
|
||||
type: 'POST',
|
||||
async: true, // 默认异步true,false表示同步
|
||||
url: ctxPath + "/dataHome/getOwnTeamCapacity",// 请求地址
|
||||
url: czl_url + "/dataHome/getOwnTeamCapacity",// 请求地址
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
data: {}, //获取提交的表单字段
|
||||
success: function (data) {
|
||||
|
|
@ -594,7 +594,7 @@ function getToolsResource() {
|
|||
$.ajax({
|
||||
type: 'POST',
|
||||
async: true, // 默认异步true,false表示同步
|
||||
url: ctxPath + "/dataHome/getToolsResource",// 请求地址
|
||||
url: czl_url + "/dataHome/getToolsResource",// 请求地址
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
data: {}, //获取提交的表单字段
|
||||
success: function (data) {
|
||||
|
|
@ -623,7 +623,7 @@ function getMapResource() {
|
|||
$.ajax({
|
||||
type: 'POST',
|
||||
async: true, // 默认异步true,false表示同步
|
||||
url: ctxPath + "/dataHome/getMapResource",// 请求地址
|
||||
url: czl_url + "/dataHome/getMapResource",// 请求地址
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
data: {}, //获取提交的表单字段
|
||||
success: function (data) {
|
||||
|
|
@ -638,7 +638,7 @@ function getProjectProgress() {
|
|||
$.ajax({
|
||||
type: 'POST',
|
||||
async: true, // 默认异步true,false表示同步
|
||||
url: ctxPath + "/dataHome/getProjectProgress",// 请求地址
|
||||
url: czl_url + "/dataHome/getProjectProgress",// 请求地址
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
data: {}, //获取提交的表单字段
|
||||
success: function (data) {
|
||||
|
|
@ -664,7 +664,7 @@ function getPreReleaseResource() {
|
|||
$.ajax({
|
||||
type: 'POST',
|
||||
async: true, // 默认异步true,false表示同步
|
||||
url: ctxPath + "/schedule/getPreReleaseResource",// 请求地址
|
||||
url: czl_url + "/schedule/getPreReleaseResource",// 请求地址
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
data: {}, //获取提交的表单字段
|
||||
success: function (data) {
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ $.ajaxSetup({
|
|||
layer.msg(message);
|
||||
} else if (code == 401) {
|
||||
localStorage.removeItem("token");
|
||||
location.href = '/hnbcscreen/login.html';
|
||||
location.href = 'login.html';
|
||||
} else if (code == 403) {
|
||||
console.log("未授权:" + message);
|
||||
layer.msg('未授权');
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
initMenu();
|
||||
function initMenu() {
|
||||
$.ajax({
|
||||
url: ctxPath + "/permissions/current",
|
||||
url: czl_url + "/permissions/current",
|
||||
type: "get",
|
||||
async: false,
|
||||
success: function (data) {
|
||||
|
|
@ -74,7 +74,7 @@ showLoginInfo();
|
|||
function showLoginInfo() {
|
||||
$.ajax({
|
||||
type: "get",
|
||||
url: ctxPath + "/users/current",
|
||||
url: czl_url + "/users/current",
|
||||
async: false,
|
||||
success: function (data) {
|
||||
$(".admin-header-user span").text(data.nickname);
|
||||
|
|
@ -87,9 +87,9 @@ function showLoginInfo() {
|
|||
var url = data.headImgUrl;
|
||||
if (url == null || url == "") {
|
||||
if (sex == 1) {
|
||||
url = ctxPath + "/img/avatars/sunny.png";
|
||||
url = czl_url + "/img/avatars/sunny.png";
|
||||
} else {
|
||||
url = ctxPath + "/img/avatars/1.png";
|
||||
url = czl_url + "/img/avatars/1.png";
|
||||
}
|
||||
|
||||
url = domain + url;
|
||||
|
|
@ -105,7 +105,7 @@ function showLoginInfo() {
|
|||
function logout() {
|
||||
$.ajax({
|
||||
type: "get",
|
||||
url: ctxPath + "/logout",
|
||||
url: czl_url + "/logout",
|
||||
success: function (data) {
|
||||
localStorage.removeItem("token");
|
||||
location.href = pagesPath + "/login.html";
|
||||
|
|
|
|||
|
|
@ -233,7 +233,7 @@ function getMap(obj) {
|
|||
$.ajax({
|
||||
type: 'POST',
|
||||
async: true, // 默认异步true,false表示同步
|
||||
url: ctxPath + "/dataHome/getProIdByCity",// 请求地址
|
||||
url: czl_url + "/dataHome/getProIdByCity",// 请求地址
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
data: {
|
||||
name: e.name
|
||||
|
|
@ -299,7 +299,7 @@ function getMap(obj) {
|
|||
$.ajax({
|
||||
type: 'POST',
|
||||
async: true, // 默认异步true,false表示同步
|
||||
url: ctxPath + "/dataHome/getMapChildResource",// 请求地址
|
||||
url: czl_url + "/dataHome/getMapChildResource",// 请求地址
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
data: {
|
||||
name: e.name
|
||||
|
|
|
|||
|
|
@ -85,7 +85,7 @@ function getCityName(){
|
|||
$.ajax({
|
||||
type: 'POST',
|
||||
async: false, // 默认异步true,false表示同步
|
||||
url: ctxPath + "/schedule/getCityName",// 请求地址
|
||||
url: czl_url + "/schedule/getCityName",// 请求地址
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
data: {proId:proId}, //获取提交的表单字段
|
||||
success: function (data){
|
||||
|
|
@ -101,7 +101,7 @@ function getTowerBasicNum(){
|
|||
$.ajax({
|
||||
type: 'POST',
|
||||
async: false, // 默认异步true,false表示同步
|
||||
url: ctxPath + "/schedule/getAllTowerBasicNum",// 请求地址
|
||||
url: czl_url + "/schedule/getAllTowerBasicNum",// 请求地址
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
data: {proId:proId}, //获取提交的表单字段
|
||||
success: function (data){
|
||||
|
|
@ -226,7 +226,7 @@ function selectMap(){
|
|||
$.ajax({
|
||||
type: 'POST',
|
||||
async: true, // 默认异步true,false表示同步
|
||||
url: ctxPath + "/schedule/findAllTower",// 请求地址
|
||||
url: czl_url + "/schedule/findAllTower",// 请求地址
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
data: {proId:proId}, //获取提交的表单字段
|
||||
success: function (data){
|
||||
|
|
@ -370,7 +370,7 @@ function getPack(type){
|
|||
function getTreeData() {
|
||||
$.ajax({
|
||||
type: 'post',
|
||||
url: ctxPath + '/schedule/tree',//数据接口
|
||||
url: czl_url + '/schedule/tree',//数据接口
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
async: false,
|
||||
data: {
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ $(function () {
|
|||
$.ajax({
|
||||
type: 'POST',
|
||||
async: true, // 默认异步true,false表示同步
|
||||
url: ctxPath + "/schedule/getCenterLonLat",// 请求地址
|
||||
url: czl_url + "/schedule/getCenterLonLat",// 请求地址
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
data: {
|
||||
proId:proId
|
||||
|
|
@ -150,7 +150,7 @@ function selectMap(){
|
|||
$.ajax({
|
||||
type: 'POST',
|
||||
async: false, // 默认异步true,false表示同步
|
||||
url: ctxPath + "/schedule/getTowerMap",// 请求地址
|
||||
url: czl_url + "/schedule/getTowerMap",// 请求地址
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
data: {proId:proId}, //获取提交的表单字段
|
||||
success: function (data){
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ function checkPermission() {
|
|||
var pers = [];
|
||||
$.ajax({
|
||||
type : 'get',
|
||||
url : ctxPath + '/permissions/owns',
|
||||
url : czl_url + '/permissions/owns',
|
||||
contentType : "application/json; charset=utf-8",
|
||||
async : false,
|
||||
success : function(data) {
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
function initRoles() {
|
||||
$.ajax({
|
||||
type : 'get',
|
||||
url : ctxPath + '/roles/all',
|
||||
url : czl_url + '/roles/all',
|
||||
async : false,
|
||||
success : function(data) {
|
||||
var r = $("#roles");
|
||||
|
|
@ -34,7 +34,7 @@ function getCheckedRoleIds() {
|
|||
function initRoleDatas(userId) {
|
||||
$.ajax({
|
||||
type : 'get',
|
||||
url : ctxPath + '/roles?userId=' + userId,
|
||||
url : czl_url + '/roles?userId=' + userId,
|
||||
success : function(data) {
|
||||
var length = data.length;
|
||||
for (var i = 0; i < length; i++) {
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ function getMenuTree() {
|
|||
|
||||
$.ajax({
|
||||
type : 'get',
|
||||
url : ctxPath + '/permissions/all',
|
||||
url : czl_url + '/permissions/all',
|
||||
contentType : "application/json; charset=utf-8",
|
||||
async : false,
|
||||
success : function(data) {
|
||||
|
|
@ -29,7 +29,7 @@ function getMenuTree() {
|
|||
function initMenuDatas(roleId){
|
||||
$.ajax({
|
||||
type : 'get',
|
||||
url : ctxPath + '/permissions?roleId=' + roleId,
|
||||
url : czl_url + '/permissions?roleId=' + roleId,
|
||||
success : function(data) {
|
||||
var length = data.length;
|
||||
var ids = [];
|
||||
|
|
@ -103,7 +103,7 @@ function createNode(d) {
|
|||
function initParentMenuSelect(){
|
||||
$.ajax({
|
||||
type : 'get',
|
||||
url : ctxPath + '/permissions/parents',
|
||||
url : czl_url + '/permissions/parents',
|
||||
async : false,
|
||||
success : function(data) {
|
||||
var select = $("#parentId");
|
||||
|
|
|
|||
|
|
@ -1,6 +1,4 @@
|
|||
var pagesPath = getContextPath();
|
||||
var ctxPath = "http://192.168.0.38:42880/czldp";
|
||||
|
||||
function getContextPath() {
|
||||
var pathName = document.location.pathname;
|
||||
var index = pathName.substr(1).indexOf("/");
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ function getSubResource() {
|
|||
$.ajax({
|
||||
type: 'POST',
|
||||
async: true, // 默认异步true,false表示同步
|
||||
url: ctxPath + "/schedule/getSubResource",// 请求地址
|
||||
url: czl_url + "/schedule/getSubResource",// 请求地址
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
data: {id:proId}, //获取提交的表单字段
|
||||
success: function (data) {
|
||||
|
|
@ -202,7 +202,7 @@ function getToolsMessage() {
|
|||
$.ajax({
|
||||
type: 'POST',
|
||||
async: true, // 默认异步true,false表示同步
|
||||
url: ctxPath + "/schedule/getToolsMessage",// 请求地址
|
||||
url: czl_url + "/schedule/getToolsMessage",// 请求地址
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
data: {id:proId}, //获取提交的表单字段
|
||||
success: function (data) {
|
||||
|
|
@ -243,7 +243,7 @@ function getProjectProgress() {
|
|||
$.ajax({
|
||||
type: 'POST',
|
||||
async: true, // 默认异步true,false表示同步
|
||||
url: ctxPath + "/schedule/getProjectProgress",// 请求地址
|
||||
url: czl_url + "/schedule/getProjectProgress",// 请求地址
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
data: {id:proId}, //获取提交的表单字段
|
||||
success: function (data) {
|
||||
|
|
@ -277,7 +277,7 @@ function getTowerBasicNum(){
|
|||
$.ajax({
|
||||
type: 'POST',
|
||||
async: false, // 默认异步true,false表示同步
|
||||
url: ctxPath + "/schedule/getTowerBasicNum",// 请求地址
|
||||
url: czl_url + "/schedule/getTowerBasicNum",// 请求地址
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
data: {proId:proId}, //获取提交的表单字段
|
||||
success: function (data){
|
||||
|
|
@ -296,7 +296,7 @@ function getManagementResources() {
|
|||
$.ajax({
|
||||
type: 'POST',
|
||||
async: true, // 默认异步true,false表示同步
|
||||
url: ctxPath + "/schedule/getManagementResources",// 请求地址
|
||||
url: czl_url + "/schedule/getManagementResources",// 请求地址
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
data: {proId:proId}, //获取提交的表单字段
|
||||
success: function (data) {
|
||||
|
|
@ -441,7 +441,7 @@ function getProjectMessage() {
|
|||
$.ajax({
|
||||
type: 'POST',
|
||||
async: true, // 默认异步true,false表示同步
|
||||
url: ctxPath + "/schedule/getProjectMessage",// 请求地址
|
||||
url: czl_url + "/schedule/getProjectMessage",// 请求地址
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
data: {proId:proId}, //获取提交的表单字段
|
||||
success: function (data) {
|
||||
|
|
@ -487,7 +487,7 @@ function getWorkerIndustry() {
|
|||
$.ajax({
|
||||
type: 'POST',
|
||||
async: true, // 默认异步true,false表示同步
|
||||
url: ctxPath + "/schedule/getWorkerIndustry",// 请求地址
|
||||
url: czl_url + "/schedule/getWorkerIndustry",// 请求地址
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
data: {id:proId}, //获取提交的表单字段
|
||||
success: function (data) {
|
||||
|
|
@ -511,7 +511,7 @@ function getWorkerOwn() {
|
|||
$.ajax({
|
||||
type: 'POST',
|
||||
async: true, // 默认异步true,false表示同步
|
||||
url: ctxPath + "/schedule/getWorkerOwn",// 请求地址
|
||||
url: czl_url + "/schedule/getWorkerOwn",// 请求地址
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
data: {id:proId}, //获取提交的表单字段
|
||||
success: function (data) {
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ function getOrgName(from,id) {
|
|||
$("#orgId").empty();
|
||||
$.ajax({
|
||||
type: 'post',
|
||||
url: ctxPath + '/selectUtil/getBranchName',
|
||||
url: czl_url + '/selectUtil/getBranchName',
|
||||
async: false,
|
||||
success: function (data) {
|
||||
var res = data;
|
||||
|
|
@ -51,7 +51,7 @@ function getAnnouncementType(from,id) {
|
|||
$("#type").empty();
|
||||
$.ajax({
|
||||
type: 'post',
|
||||
url: ctxPath + '/selectUtil/getAnnouncementType',
|
||||
url: czl_url + '/selectUtil/getAnnouncementType',
|
||||
async: false,
|
||||
success: function (data) {
|
||||
var res = data;
|
||||
|
|
@ -81,7 +81,7 @@ function getProjectName(from,id) {
|
|||
$("#projectIds").empty();
|
||||
$.ajax({
|
||||
type: 'post',
|
||||
url: ctxPath + '/selectUtil/getProjectName',
|
||||
url: czl_url + '/selectUtil/getProjectName',
|
||||
async: false,
|
||||
success: function (data) {
|
||||
var res = data;
|
||||
|
|
@ -111,7 +111,7 @@ function getVoltageLevel(from,id) {
|
|||
$("#volLevelIds").empty();
|
||||
$.ajax({
|
||||
type: 'post',
|
||||
url: ctxPath + '/selectUtil/getVoltageLevel',
|
||||
url: czl_url + '/selectUtil/getVoltageLevel',
|
||||
async: false,
|
||||
success: function (data) {
|
||||
var res = data;
|
||||
|
|
@ -143,7 +143,7 @@ function getEngineerLevel(from,id) {
|
|||
$("#engineerIds").empty();
|
||||
$.ajax({
|
||||
type: 'post',
|
||||
url: ctxPath + '/selectUtil/getEngineerLevel',
|
||||
url: czl_url + '/selectUtil/getEngineerLevel',
|
||||
async: false,
|
||||
success: function (data) {
|
||||
var res = data;
|
||||
|
|
@ -174,7 +174,7 @@ function getSub(from,id) {
|
|||
$("#subId").empty();
|
||||
$.ajax({
|
||||
type: 'post',
|
||||
url: ctxPath + '/selectUtil/getSub',
|
||||
url: czl_url + '/selectUtil/getSub',
|
||||
async: false,
|
||||
success: function (data) {
|
||||
var res = data;
|
||||
|
|
@ -204,7 +204,7 @@ function getstrandTeamType(from,id,teamTypeId) {
|
|||
$("#standardTeamTypeId").empty();
|
||||
$.ajax({
|
||||
type: 'post',
|
||||
url: ctxPath + '/selectUtil/getStrandTeamType',
|
||||
url: czl_url + '/selectUtil/getStrandTeamType',
|
||||
data:{
|
||||
id:teamTypeId
|
||||
},
|
||||
|
|
@ -237,7 +237,7 @@ function getStandardTeamTypeForSubTeamId(from,subTeamId) {
|
|||
$("#teamTypeId").empty();
|
||||
$.ajax({
|
||||
type: 'post',
|
||||
url: ctxPath + '/selectUtil/getStandardTeamTypeForSubTeamId',
|
||||
url: czl_url + '/selectUtil/getStandardTeamTypeForSubTeamId',
|
||||
async: false,
|
||||
data:{
|
||||
id : subTeamId
|
||||
|
|
@ -261,7 +261,7 @@ function getStandardTeamType(from,id) {
|
|||
$("#teamTypeId").empty();
|
||||
$.ajax({
|
||||
type: 'post',
|
||||
url: ctxPath + '/selectUtil/getStandardTeamType',
|
||||
url: czl_url + '/selectUtil/getStandardTeamType',
|
||||
async: false,
|
||||
success: function (data) {
|
||||
var res = data;
|
||||
|
|
@ -290,7 +290,7 @@ function getTeamType(from,id,volId) {
|
|||
$("#teamTypeId").empty();
|
||||
$.ajax({
|
||||
type: 'post',
|
||||
url: ctxPath + '/selectUtil/getTeamType',
|
||||
url: czl_url + '/selectUtil/getTeamType',
|
||||
async: false,
|
||||
data: {
|
||||
id : volId
|
||||
|
|
@ -350,7 +350,7 @@ function getRole(form,roleId) {
|
|||
$("#roleId").html("");
|
||||
$.ajax({
|
||||
type: 'post',
|
||||
url: ctxPath + '/users/getRole',
|
||||
url: czl_url + '/users/getRole',
|
||||
data: {
|
||||
},
|
||||
async: false,
|
||||
|
|
@ -381,7 +381,7 @@ function getProcessEquipment(from,id) {
|
|||
$("#dictKey").empty();
|
||||
$.ajax({
|
||||
type: 'post',
|
||||
url: ctxPath + '/selectUtil/getProcessEquipment',
|
||||
url: czl_url + '/selectUtil/getProcessEquipment',
|
||||
async: false,
|
||||
success: function (data) {
|
||||
var res = data;
|
||||
|
|
@ -411,7 +411,7 @@ function getReleaseData(from,id) {
|
|||
$("#releaseData").empty();
|
||||
$.ajax({
|
||||
type: 'post',
|
||||
url: ctxPath + '/selectUtil/getReleaseData',
|
||||
url: czl_url + '/selectUtil/getReleaseData',
|
||||
async: false,
|
||||
success: function (data) {
|
||||
var res = data;
|
||||
|
|
|
|||
|
|
@ -72,6 +72,7 @@
|
|||
<script src="js/libs/jquery.min.js"></script>
|
||||
<script src="js/aes.js"></script>
|
||||
<script src="js/publicJs.js"></script>
|
||||
<script src="../public/public.js" type="text/javascript"></script>
|
||||
<script type="text/javascript">
|
||||
var code;
|
||||
var uuid;
|
||||
|
|
@ -91,7 +92,7 @@
|
|||
// if (token != null && token.trim().length != 0) {
|
||||
// $.ajax({
|
||||
// type: 'get',
|
||||
// url: ctxPath + '/users/current?token=' + token,
|
||||
// url: czl_url + '/users/current?token=' + token,
|
||||
// success: function (data) {
|
||||
// location.href = pagesPath + '/pages/home/home.html';
|
||||
// },
|
||||
|
|
@ -108,7 +109,7 @@
|
|||
// }
|
||||
//获取验证码
|
||||
function getVerifyCode() {
|
||||
var url = ctxPath + "/getCode/vCode?" + Math.random();
|
||||
var url = czl_url + "/getCode/vCode?" + Math.random();
|
||||
$.ajax({
|
||||
//请求方式
|
||||
type: "GET",
|
||||
|
|
@ -151,7 +152,7 @@
|
|||
} else {
|
||||
$.ajax({
|
||||
type: 'post',
|
||||
url: ctxPath + '/login',
|
||||
url: czl_url + '/login',
|
||||
data: {
|
||||
username: encrypt(username),
|
||||
password: encrypt(password),
|
||||
|
|
@ -165,10 +166,10 @@
|
|||
// let pattern = /^(?![0-9]+$)(?![0-9\W]+$)(?![0-9A-Z]+$)(?![0-9a-z]+$)(?![a-z\W]+$)(?![A-Z\W]+$)[0-9A-Za-z\W]{8,16}$/;
|
||||
// if(!pattern.test(password)) {
|
||||
// parent.layer.msg('密码过于简单,请尽快修改密码', {icon: 2, time: 3000,area: ['350px', '70px']},function () {
|
||||
// location.href = ctxPath + '/index.html';
|
||||
// location.href = czl_url + '/index.html';
|
||||
// });
|
||||
// }else{
|
||||
// location.href = ctxPath + '/home.html';
|
||||
// location.href = czl_url + '/home.html';
|
||||
// }
|
||||
},
|
||||
error: function (xhr, textStatus, errorThrown) {
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@
|
|||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
<script type="text/javascript" src="../../../public/public.js"></script>
|
||||
<script type="text/javascript" src="../../js/publicJs.js"></script>
|
||||
<script type="text/javascript" src="../../js/libs/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="../../js/jq.js"></script>
|
||||
|
|
@ -55,7 +55,7 @@
|
|||
$.ajax({
|
||||
type: 'POST',
|
||||
async: true, // 默认异步true,false表示同步
|
||||
url: ctxPath + "/dataHome/getProjectProgress",// 请求地址
|
||||
url: czl_url + "/dataHome/getProjectProgress",// 请求地址
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
data: {}, //获取提交的表单字段
|
||||
success: function (data) {
|
||||
|
|
|
|||
|
|
@ -379,6 +379,7 @@
|
|||
<script type="text/javascript" src="../../layui/layui.js"></script>
|
||||
<script type="text/javascript" src="../../js/libs/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="../../js/jq.js"></script>
|
||||
<script type="text/javascript" src="../../../public/public.js"></script>
|
||||
<script type="text/javascript" src="../../js/publicJs.js"></script>
|
||||
<script type="text/javascript" src="../../js/echarts.js"></script>
|
||||
<script type="text/javascript" src="../../js/home.js"></script>
|
||||
|
|
|
|||
|
|
@ -87,6 +87,7 @@
|
|||
<script type="text/javascript" src="../../layui/layui.js"></script>
|
||||
<script type="text/javascript" src="../../js/libs/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="../../js/jq.js"></script>
|
||||
<script type="text/javascript" src="../../../public/public.js"></script>
|
||||
<script type="text/javascript" src="../../js/publicJs.js"></script>
|
||||
<script type="text/javascript" src="../../js/main.js"></script>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -95,7 +95,7 @@
|
|||
</body>
|
||||
|
||||
</html>
|
||||
|
||||
<script type="text/javascript" src="../../../public/public.js"></script>
|
||||
<script type="text/javascript" src="../../js/publicJs.js"></script>
|
||||
<script type="text/javascript" src="../../js/libs/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="../../js/jq.js"></script>
|
||||
|
|
@ -123,7 +123,7 @@
|
|||
"url": contentPath + "/js/plugin/datatables/Chinese.lang"
|
||||
},
|
||||
"ajax": {
|
||||
"url": ctxPath + "/users",
|
||||
"url": czl_url + "/users",
|
||||
"type": "get",
|
||||
"data": function (d) {
|
||||
d.username = $('#username').val();
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@
|
|||
<script type="text/javascript" src="../../layui/layui.js"></script>
|
||||
<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=PM43nB8eDNTBrXkQwGrTQFcmOni3Z9nO"></script>
|
||||
<script type="text/javascript" src="../../js/jq.js"></script>
|
||||
<script type="text/javascript" src="../../../public/public.js"></script>
|
||||
<script type="text/javascript" src="../../js/publicJs.js"></script>
|
||||
<script type="text/javascript" src="../../js/common.js"></script>
|
||||
<script type="text/javascript" src="../../js/map_data.js"></script>
|
||||
|
|
|
|||
|
|
@ -56,6 +56,7 @@
|
|||
<script type="text/javascript" src="../../js/layui-v2.8.18/layui/layui.js"></script>
|
||||
<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=PM43nB8eDNTBrXkQwGrTQFcmOni3Z9nO"></script>
|
||||
<script type="text/javascript" src="../../js/jq.js"></script>
|
||||
<script type="text/javascript" src="../../../public/public.js"></script>
|
||||
<script type="text/javascript" src="../../js/publicJs.js"></script>
|
||||
<script type="text/javascript" src="../../js/common.js"></script>
|
||||
<script type="text/javascript" src="../../js/map_amplify.js"></script>
|
||||
|
|
|
|||
|
|
@ -111,6 +111,7 @@
|
|||
|
||||
</body>
|
||||
</html>
|
||||
<script type="text/javascript" src="../../../public/public.js"></script>
|
||||
<script type="text/javascript" src="../../js/publicJs.js"></script>
|
||||
<script type="text/javascript" src="../../js/libs/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="../../js/jq.js"></script>
|
||||
|
|
@ -124,7 +125,7 @@
|
|||
var table;
|
||||
$("#resetBt").click(function(){
|
||||
table.reload('menuTable', {
|
||||
url: ctxPath + '/dataDetail/getReleaseDataList'
|
||||
url: czl_url + '/dataDetail/getReleaseDataList'
|
||||
, method: 'post' //方式默认是get
|
||||
, page: true
|
||||
, where: {
|
||||
|
|
@ -137,7 +138,7 @@
|
|||
})
|
||||
$("#searchBt").click(function(){
|
||||
table.reload('menuTable', {
|
||||
url: ctxPath + '/dataDetail/getReleaseDataList'
|
||||
url: czl_url + '/dataDetail/getReleaseDataList'
|
||||
, method: 'post' //方式默认是get
|
||||
, page: true
|
||||
, where: {
|
||||
|
|
@ -154,7 +155,7 @@
|
|||
//渲染表格
|
||||
table.render({
|
||||
elem: '#demo'
|
||||
, url: ctxPath + '/dataDetail/getReleaseDataList' //数据接口
|
||||
, url: czl_url + '/dataDetail/getReleaseDataList' //数据接口
|
||||
|
||||
, method: 'post' //方式默认是get
|
||||
, toolbar: 'default' //开启工具栏,此处显示默认图标,可以自定义模板,详见文档
|
||||
|
|
|
|||
|
|
@ -234,7 +234,7 @@
|
|||
function getData() {
|
||||
$.ajax({
|
||||
type: 'post',
|
||||
url: ctxPath + '/dataDetail/getReleaseDataListById',
|
||||
url: czl_url + '/dataDetail/getReleaseDataListById',
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
async: false,
|
||||
data: {
|
||||
|
|
@ -265,7 +265,7 @@
|
|||
//渲染表格
|
||||
table.render({
|
||||
elem: '#teamTable'
|
||||
, url: ctxPath + '/dataDetail/getTeamTable' //数据接口
|
||||
, url: czl_url + '/dataDetail/getTeamTable' //数据接口
|
||||
, method: 'post' //方式默认是get
|
||||
, toolbar: 'default' //开启工具栏,此处显示默认图标,可以自定义模板,详见文档
|
||||
, where: {
|
||||
|
|
@ -317,7 +317,7 @@
|
|||
//渲染表格
|
||||
table.render({
|
||||
elem: '#subTeamTable'
|
||||
, url: ctxPath + '/dataDetail/getSubTeamTable' //数据接口
|
||||
, url: czl_url + '/dataDetail/getSubTeamTable' //数据接口
|
||||
, method: 'post' //方式默认是get
|
||||
, toolbar: 'default' //开启工具栏,此处显示默认图标,可以自定义模板,详见文档
|
||||
, where: {
|
||||
|
|
@ -376,7 +376,7 @@
|
|||
//渲染表格
|
||||
table.render({
|
||||
elem: '#ownTeamTable'
|
||||
, url: ctxPath + '/dataDetail/getOwnTeamTable' //数据接口
|
||||
, url: czl_url + '/dataDetail/getOwnTeamTable' //数据接口
|
||||
, method: 'post' //方式默认是get
|
||||
, toolbar: 'default' //开启工具栏,此处显示默认图标,可以自定义模板,详见文档
|
||||
, where: {
|
||||
|
|
|
|||
|
|
@ -460,6 +460,7 @@
|
|||
<script type="text/javascript" src="../../js/libs/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="../../js/layui-v2.8.18/layui/layui.js"></script>
|
||||
<script type="text/javascript" src="../../js/jq.js"></script>
|
||||
<script type="text/javascript" src="../../../public/public.js"></script>
|
||||
<script type="text/javascript" src="../../js/publicJs.js"></script>
|
||||
<script type="text/javascript" src="../../js/echarts.js"></script>
|
||||
<script type="text/javascript" src="../../js/schedule.js"></script>
|
||||
|
|
@ -136,7 +136,7 @@
|
|||
</body>
|
||||
|
||||
</html>
|
||||
|
||||
<script type="text/javascript" src="../../../public/public.js"></script>
|
||||
<script type="text/javascript" src="../../js/publicJs.js"></script>
|
||||
<script type="text/javascript" src="../../js/libs/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="../../js/jq.js"></script>
|
||||
|
|
@ -179,7 +179,7 @@
|
|||
//渲染表格
|
||||
table.render({
|
||||
elem: '#demo'
|
||||
, url: ctxPath + '/dataDetail/getProjectResourcesDetailMessage' //数据接口
|
||||
, url: czl_url + '/dataDetail/getProjectResourcesDetailMessage' //数据接口
|
||||
, method: 'post' //方式默认是get
|
||||
, toolbar: 'default' //开启工具栏,此处显示默认图标,可以自定义模板,详见文档
|
||||
, where: {
|
||||
|
|
@ -278,7 +278,7 @@
|
|||
orgId = $("#orgId").val();
|
||||
teamStatus = $("#statusId").val();
|
||||
table.reload('menuTable', {
|
||||
url: ctxPath + '/dataDetail/getProjectResourcesDetailMessage'
|
||||
url: czl_url + '/dataDetail/getProjectResourcesDetailMessage'
|
||||
, method: 'post' //方式默认是get
|
||||
, page: true
|
||||
, where: {
|
||||
|
|
|
|||
|
|
@ -91,6 +91,7 @@
|
|||
|
||||
</body>
|
||||
</html>
|
||||
<script type="text/javascript" src="../../../public/public.js"></script>
|
||||
<script type="text/javascript" src="../../js/publicJs.js"></script>
|
||||
<script type="text/javascript" src="../../js/common.js"></script>
|
||||
<script type="text/javascript" src="../../js/libs/jquery.min.js"></script>
|
||||
|
|
@ -128,7 +129,7 @@
|
|||
function showTable(){
|
||||
$.ajax({
|
||||
type: 'post',
|
||||
url: ctxPath + '/dataDetail/getProjectManagementTeamsFormList',//数据接口
|
||||
url: czl_url + '/dataDetail/getProjectManagementTeamsFormList',//数据接口
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
async: false,
|
||||
data: {
|
||||
|
|
|
|||
|
|
@ -129,7 +129,7 @@
|
|||
</body>
|
||||
|
||||
</html>
|
||||
|
||||
<script type="text/javascript" src="../../../public/public.js"></script>
|
||||
<script type="text/javascript" src="../../js/publicJs.js"></script>
|
||||
<script type="text/javascript" src="../../js/libs/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="../../js/jq.js"></script>
|
||||
|
|
@ -161,7 +161,7 @@
|
|||
//渲染表格
|
||||
table.render({
|
||||
elem: '#demo'
|
||||
, url: ctxPath + '/dataDetail/getToolsDetailMessage' //数据接口
|
||||
, url: czl_url + '/dataDetail/getToolsDetailMessage' //数据接口
|
||||
|
||||
, method: 'post' //方式默认是get
|
||||
, toolbar: 'default' //开启工具栏,此处显示默认图标,可以自定义模板,详见文档
|
||||
|
|
@ -239,7 +239,7 @@
|
|||
oldKeyWord = $("#keyWord").val();
|
||||
dictKey = $("#dictKey").val();
|
||||
table.reload('menuTable', {
|
||||
url: ctxPath + '/dataDetail/getToolsDetailMessage'
|
||||
url: czl_url + '/dataDetail/getToolsDetailMessage'
|
||||
, method: 'post' //方式默认是get
|
||||
, page: true
|
||||
, where: {
|
||||
|
|
|
|||
|
|
@ -139,7 +139,7 @@
|
|||
</body>
|
||||
|
||||
</html>
|
||||
|
||||
<script type="text/javascript" src="../../../public/public.js"></script>
|
||||
<script type="text/javascript" src="../../js/publicJs.js"></script>
|
||||
<script type="text/javascript" src="../../js/libs/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="../../js/jq.js"></script>
|
||||
|
|
@ -189,7 +189,7 @@
|
|||
//渲染表格
|
||||
table.render({
|
||||
elem: '#demo'
|
||||
, url: ctxPath + '/dataDetail/getOwnTeamDetailMessage' //数据接口
|
||||
, url: czl_url + '/dataDetail/getOwnTeamDetailMessage' //数据接口
|
||||
|
||||
, method: 'post' //方式默认是get
|
||||
, toolbar: 'default' //开启工具栏,此处显示默认图标,可以自定义模板,详见文档
|
||||
|
|
@ -295,7 +295,7 @@
|
|||
subStatus = $("#teamTypeId").val();
|
||||
teamStatus = $("#statusId").val();
|
||||
table.reload('menuTable', {
|
||||
url: ctxPath + '/dataDetail/getOwnTeamDetailMessage'
|
||||
url: czl_url + '/dataDetail/getOwnTeamDetailMessage'
|
||||
, method: 'post' //方式默认是get
|
||||
, page: true
|
||||
, where: {
|
||||
|
|
|
|||
|
|
@ -91,6 +91,7 @@
|
|||
|
||||
</body>
|
||||
</html>
|
||||
<script type="text/javascript" src="../../../public/public.js"></script>
|
||||
<script type="text/javascript" src="../../js/publicJs.js"></script>
|
||||
<script type="text/javascript" src="../../js/common.js"></script>
|
||||
<script type="text/javascript" src="../../js/libs/jquery.min.js"></script>
|
||||
|
|
@ -119,7 +120,7 @@
|
|||
function showTable(){
|
||||
$.ajax({
|
||||
type: 'post',
|
||||
url: ctxPath + '/dataDetail/getOwnTeamsFormLists',//数据接口
|
||||
url: czl_url + '/dataDetail/getOwnTeamsFormLists',//数据接口
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
async: false,
|
||||
data: {
|
||||
|
|
|
|||
|
|
@ -139,7 +139,7 @@
|
|||
</body>
|
||||
|
||||
</html>
|
||||
|
||||
<script type="text/javascript" src="../../../public/public.js"></script>
|
||||
<script type="text/javascript" src="../../js/publicJs.js"></script>
|
||||
<script type="text/javascript" src="../../js/libs/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="../../js/jq.js"></script>
|
||||
|
|
@ -169,7 +169,7 @@
|
|||
//渲染表格
|
||||
table.render({
|
||||
elem: '#demo'
|
||||
, url: ctxPath + '/dataDetail/getProjectDetailMessage' //数据接口
|
||||
, url: czl_url + '/dataDetail/getProjectDetailMessage' //数据接口
|
||||
|
||||
, method: 'post' //方式默认是get
|
||||
, toolbar: 'default' //开启工具栏,此处显示默认图标,可以自定义模板,详见文档
|
||||
|
|
@ -272,7 +272,7 @@
|
|||
var startTime = parts[0];
|
||||
var endTime = parts[1];
|
||||
table.reload('menuTable', {
|
||||
url: ctxPath + '/dataDetail/getProjectDetailMessage'
|
||||
url: czl_url + '/dataDetail/getProjectDetailMessage'
|
||||
, method: 'post' //方式默认是get
|
||||
, page: true
|
||||
, where: {
|
||||
|
|
|
|||
|
|
@ -129,7 +129,7 @@
|
|||
</body>
|
||||
|
||||
</html>
|
||||
|
||||
<script type="text/javascript" src="../../../public/public.js"></script>
|
||||
<script type="text/javascript" src="../../js/publicJs.js"></script>
|
||||
<script type="text/javascript" src="../../js/libs/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="../../js/jq.js"></script>
|
||||
|
|
@ -158,7 +158,7 @@
|
|||
//渲染表格
|
||||
table.render({
|
||||
elem: '#demo'
|
||||
, url: ctxPath + '/dataDetail/getArrangeProjectDetailMessage' //数据接口
|
||||
, url: czl_url + '/dataDetail/getArrangeProjectDetailMessage' //数据接口
|
||||
|
||||
, method: 'post' //方式默认是get
|
||||
, toolbar: 'default' //开启工具栏,此处显示默认图标,可以自定义模板,详见文档
|
||||
|
|
@ -239,7 +239,7 @@
|
|||
var startTime = parts[0];
|
||||
var endTime = parts[1];
|
||||
table.reload('menuTable', {
|
||||
url: ctxPath + '/dataDetail/getArrangeProjectDetailMessage'
|
||||
url: czl_url + '/dataDetail/getArrangeProjectDetailMessage'
|
||||
, method: 'post' //方式默认是get
|
||||
, page: true
|
||||
, where: {
|
||||
|
|
|
|||
|
|
@ -134,7 +134,7 @@
|
|||
</body>
|
||||
|
||||
</html>
|
||||
|
||||
<script type="text/javascript" src="../../../public/public.js"></script>
|
||||
<script type="text/javascript" src="../../js/publicJs.js"></script>
|
||||
<script type="text/javascript" src="../../js/libs/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="../../js/jq.js"></script>
|
||||
|
|
@ -165,7 +165,7 @@
|
|||
//渲染表格
|
||||
table.render({
|
||||
elem: '#demo'
|
||||
, url: ctxPath + '/dataDetail/getSmzDetailMessage' //数据接口
|
||||
, url: czl_url + '/dataDetail/getSmzDetailMessage' //数据接口
|
||||
|
||||
, method: 'post' //方式默认是get
|
||||
, toolbar: 'default' //开启工具栏,此处显示默认图标,可以自定义模板,详见文档
|
||||
|
|
@ -259,7 +259,7 @@
|
|||
var startTime = parts[0];
|
||||
var endTime = parts[1];
|
||||
table.reload('menuTable', {
|
||||
url: ctxPath + '/dataDetail/getSmzDetailMessage'
|
||||
url: czl_url + '/dataDetail/getSmzDetailMessage'
|
||||
, method: 'post' //方式默认是get
|
||||
, page: true
|
||||
, where: {
|
||||
|
|
|
|||
|
|
@ -143,7 +143,7 @@
|
|||
</body>
|
||||
|
||||
</html>
|
||||
|
||||
<script type="text/javascript" src="../../../public/public.js"></script>
|
||||
<script type="text/javascript" src="../../js/publicJs.js"></script>
|
||||
<script type="text/javascript" src="../../js/libs/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="../../js/jq.js"></script>
|
||||
|
|
@ -192,7 +192,7 @@
|
|||
//渲染表格
|
||||
table.render({
|
||||
elem: '#demo'
|
||||
, url: ctxPath + '/dataDetail/getSubTeamDetailMessage' //数据接口
|
||||
, url: czl_url + '/dataDetail/getSubTeamDetailMessage' //数据接口
|
||||
|
||||
, method: 'post' //方式默认是get
|
||||
, toolbar: 'default' //开启工具栏,此处显示默认图标,可以自定义模板,详见文档
|
||||
|
|
@ -297,7 +297,7 @@
|
|||
teamStatus = $("#teamTypeId").val();
|
||||
subStatus = $("#statusId").val();
|
||||
table.reload('menuTable', {
|
||||
url: ctxPath + '/dataDetail/getSubTeamDetailMessage'
|
||||
url: czl_url + '/dataDetail/getSubTeamDetailMessage'
|
||||
, method: 'post' //方式默认是get
|
||||
, page: true
|
||||
, where: {
|
||||
|
|
|
|||
|
|
@ -91,6 +91,7 @@
|
|||
|
||||
</body>
|
||||
</html>
|
||||
<script type="text/javascript" src="../../../public/public.js"></script>
|
||||
<script type="text/javascript" src="../../js/publicJs.js"></script>
|
||||
<script type="text/javascript" src="../../js/common.js"></script>
|
||||
<script type="text/javascript" src="../../js/libs/jquery.min.js"></script>
|
||||
|
|
@ -119,7 +120,7 @@
|
|||
function showTable(){
|
||||
$.ajax({
|
||||
type: 'post',
|
||||
url: ctxPath + '/dataDetail/getSubTeamsFormList',//数据接口
|
||||
url: czl_url + '/dataDetail/getSubTeamsFormList',//数据接口
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
async: false,
|
||||
data: {
|
||||
|
|
|
|||
|
|
@ -103,7 +103,7 @@
|
|||
|
||||
$.ajax({
|
||||
type: 'post',
|
||||
url: ctxPath + '/permissions',
|
||||
url: czl_url + '/permissions',
|
||||
contentType: "application/json; charset=utf-8",
|
||||
data: JSON.stringify(formdata),
|
||||
success: function (data) {
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ initMenuList();
|
|||
function initMenuList(){
|
||||
$.ajax({
|
||||
type : 'get',
|
||||
url : ctxPath + '/permissions',
|
||||
url : czl_url + '/permissions',
|
||||
contentType: "application/json; charset=utf-8",
|
||||
async:false,
|
||||
success : function(data) {
|
||||
|
|
@ -96,7 +96,7 @@ function initMenuList(){
|
|||
tr += td4;
|
||||
|
||||
var id = d['id'];
|
||||
var href = ctxPath + "/pages/menu/updateMenu.html?id=" + id;
|
||||
var href = czl_url + "/pages/menu/updateMenu.html?id=" + id;
|
||||
var edit = buttonEdit(href, "sys:menu:add", pers);
|
||||
var del = buttonDel(id, "sys:menu:del", pers);
|
||||
tr += "<td>"+edit + del+"</td>";
|
||||
|
|
@ -117,7 +117,7 @@ function del(id){
|
|||
}, function() {
|
||||
$.ajax({
|
||||
type : 'delete',
|
||||
url : ctxPath + '/permissions/' + id,
|
||||
url : czl_url + '/permissions/' + id,
|
||||
success : function(data) {
|
||||
location.reload();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -97,7 +97,7 @@
|
|||
if (id != "") {
|
||||
$.ajax({
|
||||
type: 'get',
|
||||
url: ctxPath + '/permissions/' + id,
|
||||
url: czl_url + '/permissions/' + id,
|
||||
async: false,
|
||||
success: function (data) {
|
||||
$("#id").val(data.id);
|
||||
|
|
@ -148,7 +148,7 @@
|
|||
|
||||
$.ajax({
|
||||
type: 'put',
|
||||
url: ctxPath + '/permissions/',
|
||||
url: czl_url + '/permissions/',
|
||||
contentType: "application/json; charset=utf-8",
|
||||
data: JSON.stringify(formdata),
|
||||
success: function (data) {
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@
|
|||
if (id != "") {
|
||||
$.ajax({
|
||||
type: 'get',
|
||||
url: ctxPath + '/roles/' + id,
|
||||
url: czl_url + '/roles/' + id,
|
||||
async: false,
|
||||
success: function (data) {
|
||||
$("#id").val(data.id);
|
||||
|
|
@ -98,7 +98,7 @@
|
|||
|
||||
$.ajax({
|
||||
type: 'post',
|
||||
url: ctxPath + '/roles',
|
||||
url: czl_url + '/roles',
|
||||
contentType: "application/json; charset=utf-8",
|
||||
data: JSON.stringify(formdata),
|
||||
success: function (data) {
|
||||
|
|
|
|||
|
|
@ -82,7 +82,7 @@
|
|||
"url": contentPath + "/js/plugin/datatables/Chinese.lang"
|
||||
},
|
||||
"ajax": {
|
||||
"url": ctxPath + "/roles",
|
||||
"url": czl_url + "/roles",
|
||||
"type": "get",
|
||||
"data": function (d) {
|
||||
d.name = $('#name').val();
|
||||
|
|
@ -119,7 +119,7 @@
|
|||
"orderable": false,
|
||||
"render": function (data, type, row) {
|
||||
var id = row['id'];
|
||||
var href = ctxPath + "/pages/role/addRole.html?id=" + id;
|
||||
var href = czl_url + "/pages/role/addRole.html?id=" + id;
|
||||
var edit = buttonEdit(href, "sys:role:add", pers);
|
||||
var del = buttonDel(id, "sys:role:del", pers);
|
||||
return edit + del;
|
||||
|
|
@ -140,7 +140,7 @@
|
|||
}, function () {
|
||||
$.ajax({
|
||||
type: 'delete',
|
||||
url: ctxPath + '/roles/' + id,
|
||||
url: czl_url + '/roles/' + id,
|
||||
success: function (data) {
|
||||
example.ajax.reload();
|
||||
layer.msg("删除成功");
|
||||
|
|
|
|||
|
|
@ -117,7 +117,7 @@
|
|||
|
||||
$.ajax({
|
||||
type: 'post',
|
||||
url: ctxPath + '/users',
|
||||
url: czl_url + '/users',
|
||||
contentType: "application/json; charset=utf-8",
|
||||
data: JSON.stringify(formdata),
|
||||
success: function (data) {
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@
|
|||
function init(){
|
||||
$.ajax({
|
||||
type : 'get',
|
||||
url : ctxPath + '/users/current',
|
||||
url : czl_url + '/users/current',
|
||||
async : false,
|
||||
data : $("#form").serialize(),
|
||||
success : function(data) {
|
||||
|
|
@ -95,7 +95,7 @@
|
|||
|
||||
$.ajax({
|
||||
type : 'put',
|
||||
url : ctxPath + '/users/'+$("#username").val(),
|
||||
url : czl_url + '/users/'+$("#username").val(),
|
||||
data : $("#form").serialize(),
|
||||
success : function(data) {
|
||||
layer.msg("修改成功", {shift: -1, time: 1000}, function(){
|
||||
|
|
|
|||
|
|
@ -83,7 +83,7 @@
|
|||
function initData(){
|
||||
$.ajax({
|
||||
type : 'get',
|
||||
url : ctxPath + '/users/current',
|
||||
url : czl_url + '/users/current',
|
||||
async : false,
|
||||
success : function(data) {
|
||||
$("#id").val(data.id);
|
||||
|
|
@ -119,7 +119,7 @@
|
|||
|
||||
$.ajax({
|
||||
type : 'put',
|
||||
url : ctxPath + '/users',
|
||||
url : czl_url + '/users',
|
||||
contentType: "application/json; charset=utf-8",
|
||||
data : JSON.stringify(formdata),
|
||||
success : function(data) {
|
||||
|
|
|
|||
|
|
@ -114,7 +114,7 @@
|
|||
if (id != "") {
|
||||
$.ajax({
|
||||
type: 'get',
|
||||
url: ctxPath + '/users/' + id,
|
||||
url: czl_url + '/users/' + id,
|
||||
async: false,
|
||||
success: function (data) {
|
||||
$("#id").val(data.id);
|
||||
|
|
@ -147,7 +147,7 @@
|
|||
|
||||
$.ajax({
|
||||
type: 'put',
|
||||
url: ctxPath + '/users',
|
||||
url: czl_url + '/users',
|
||||
contentType: "application/json; charset=utf-8",
|
||||
data: JSON.stringify(formdata),
|
||||
success: function (data) {
|
||||
|
|
|
|||
|
|
@ -95,7 +95,7 @@
|
|||
"url": contentPath + "/js/plugin/datatables/Chinese.lang"
|
||||
},
|
||||
"ajax": {
|
||||
"url": ctxPath + "/users",
|
||||
"url": czl_url + "/users",
|
||||
"type": "get",
|
||||
"data": function (d) {
|
||||
d.username = $('#username').val();
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="format-detection" content="telephone=no">
|
||||
<title>后台管理系统</title>
|
||||
<title>承载力后台管理系统</title>
|
||||
<link rel="stylesheet" href="layui/css/layui.css" media="all" />
|
||||
<link rel="stylesheet" href="css/global.css" media="all" />
|
||||
<link rel="stylesheet" href="css/font-awesome/css/font-awesome.css" media="all" />
|
||||
|
|
@ -108,6 +108,7 @@
|
|||
<script type="text/javascript" src="layui/layui.js"></script>
|
||||
<script type="text/javascript" src="js/jquery/jquery-3.6.0.js"></script>
|
||||
<script type="text/javascript" src="js/jq.js"></script>
|
||||
<script type="text/javascript" src="../public/public.js"></script>
|
||||
<script type="text/javascript" src="js/publicJs.js"></script>
|
||||
<script type="text/javascript" src="js/main.js"></script>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -107,7 +107,7 @@ function openFile(filePaths, fileNames, fileTimes, fileDownloadName) {
|
|||
var index = layer.open({
|
||||
title: ["查看", 'color:#3B70A1;background-color:#E8ECEB;font-size:20px'],
|
||||
type: 2,
|
||||
content: ctxPath + '/pages/work/preview/PublicFileView.html',
|
||||
content: czl_ht_url + '/pages/work/preview/PublicFileView.html',
|
||||
area: [width, height],
|
||||
maxmin: false,
|
||||
success: function (layero, index) {
|
||||
|
|
@ -131,7 +131,7 @@ function openFileAndUpLoad(filePaths, fileNames, fileTimes, fileDownloadName) {
|
|||
var index = layer.open({
|
||||
title: [fileNames, 'color:#3B70A1;background-color:#E8ECEB;font-size:20px'],
|
||||
type: 2,
|
||||
content: ctxPath + '/pages/work/preview/FileView.html',//PublicFileView
|
||||
content: czl_ht_url + '/pages/work/preview/FileView.html',//PublicFileView
|
||||
area: [width, height],
|
||||
maxmin: false,
|
||||
success: function (layero, index) {
|
||||
|
|
@ -365,7 +365,7 @@ function ajaxCommonMethods(url, data, success, error, type) {
|
|||
$.ajax({
|
||||
type: 'POST',
|
||||
async: false, // 默认异步true,false表示同步
|
||||
url: ctxPath + url,// 请求地址
|
||||
url: czl_ht_url + url,// 请求地址
|
||||
contentType: "application/x-www-form-urlencoded",
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
data: data, //获取提交的表单字段
|
||||
|
|
@ -393,7 +393,7 @@ function ajaxCommonMethodsForPassword(url, data, success, error, type) {
|
|||
$.ajax({
|
||||
type: 'POST',
|
||||
async: false, // 默认异步true,false表示同步
|
||||
url: ctxPath + url,// 请求地址
|
||||
url: czl_ht_url + url,// 请求地址
|
||||
contentType: "application/x-www-form-urlencoded",
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
data: data, //获取提交的表单字段
|
||||
|
|
@ -427,7 +427,7 @@ function ajaxCommonMethod(url, data) {
|
|||
$.ajax({
|
||||
type: 'POST',
|
||||
async: false, // 默认异步true,false表示同步
|
||||
url: ctxPath + url,// 请求地址
|
||||
url: czl_ht_url + url,// 请求地址
|
||||
contentType: "application/x-www-form-urlencoded",
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
data: data, //获取提交的表单字段
|
||||
|
|
@ -526,7 +526,7 @@ function toLeadInto(title, contentUrl) {
|
|||
console.log(contentUrl)
|
||||
if (contentUrl === "../toLeadInto/importForm.html"){
|
||||
table.reload('menuTable', {
|
||||
url: ctxPath + '/personnel/getSubsidiaryCompanyList'
|
||||
url: czl_ht_url + '/personnel/getSubsidiaryCompanyList'
|
||||
, method: 'post' //方式默认是get
|
||||
, page: true
|
||||
, where: {
|
||||
|
|
@ -538,7 +538,7 @@ function toLeadInto(title, contentUrl) {
|
|||
}
|
||||
if (contentUrl === "../toLeadInto/subcontractorImport.html"){
|
||||
table.reload('menuTable', {
|
||||
url: ctxPath + '/personnel/getSubcontractorList'
|
||||
url: czl_ht_url + '/personnel/getSubcontractorList'
|
||||
, method: 'post' //方式默认是get
|
||||
, page: true
|
||||
, where: {
|
||||
|
|
@ -550,7 +550,7 @@ function toLeadInto(title, contentUrl) {
|
|||
}
|
||||
if (contentUrl === "../toLeadInto/selfOwnedImportForm.html"){
|
||||
table.reload('menuTable', {
|
||||
url: ctxPath + '/personnel/getSelfOwnedList'
|
||||
url: czl_ht_url + '/personnel/getSelfOwnedList'
|
||||
, method: 'post' //方式默认是get
|
||||
, page: true
|
||||
, where: {
|
||||
|
|
@ -561,7 +561,7 @@ function toLeadInto(title, contentUrl) {
|
|||
}
|
||||
if (contentUrl === "../toLeadInto/towerProjectImportForm.html"){
|
||||
table.reload('menuTable', {
|
||||
url: ctxPath + '/towerPro/getFirmContentList'
|
||||
url: czl_ht_url + '/towerPro/getFirmContentList'
|
||||
, method: 'post' //方式默认是get
|
||||
, page: true
|
||||
, where: {
|
||||
|
|
@ -574,7 +574,7 @@ function toLeadInto(title, contentUrl) {
|
|||
}
|
||||
if (contentUrl === "../toLeadInto/machineToolImportForm.html"){
|
||||
table.reload('menuTable', {
|
||||
url: ctxPath + '/dataIndex/getToolList'
|
||||
url: czl_ht_url + '/dataIndex/getToolList'
|
||||
, method: 'post' //方式默认是get
|
||||
, page: true
|
||||
, where: {
|
||||
|
|
@ -614,7 +614,7 @@ function reloadTable(contentUrl, title, index){
|
|||
*/
|
||||
function reloadProTeamData(){
|
||||
table.reload('menuTable', {
|
||||
url: ctxPath + '/proManage/getProjectManagementTeamsList'
|
||||
url: czl_ht_url + '/proManage/getProjectManagementTeamsList'
|
||||
, method: 'post' //方式默认是get
|
||||
, where: {
|
||||
keyWord: $("#keyWord").val(),
|
||||
|
|
@ -629,7 +629,7 @@ function reloadProTeamData(){
|
|||
*/
|
||||
function reloadSubTeamData(){
|
||||
table.reload('menuTable', {
|
||||
url: ctxPath + '/subTeam/getSubTeamsList'
|
||||
url: czl_ht_url + '/subTeam/getSubTeamsList'
|
||||
, method: 'post' //方式默认是get
|
||||
, where: {
|
||||
keyWord: $("#keyWord").val(),
|
||||
|
|
@ -644,7 +644,7 @@ function reloadSubTeamData(){
|
|||
*/
|
||||
function reloadOwnTeamData(){
|
||||
table.reload('menuTable', {
|
||||
url: ctxPath + '/owmTeams/getOwnTeamsList'
|
||||
url: czl_ht_url + '/owmTeams/getOwnTeamsList'
|
||||
, method: 'post' //方式默认是get
|
||||
, where: {
|
||||
keyWord: $("#keyWord").val(),
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ var layNotify;
|
|||
const token = localStorage.getItem("czl-token");
|
||||
$("#resetBt").click(function(){
|
||||
table.reload('menuTable', {
|
||||
url: ctxPath + '/owmTeamQuery/getowmTeamQueryTeamsList'
|
||||
url: czl_ht_url + '/owmTeamQuery/getowmTeamQueryTeamsList'
|
||||
, method: 'post' //方式默认是get
|
||||
, page: true
|
||||
, where: {
|
||||
|
|
@ -27,7 +27,7 @@ $("#resetBt").click(function(){
|
|||
})
|
||||
$("#searchBt").click(function(){
|
||||
table.reload('menuTable', {
|
||||
url: ctxPath + '/owmTeamQuery/getowmTeamQueryTeamsList'
|
||||
url: czl_ht_url + '/owmTeamQuery/getowmTeamQueryTeamsList'
|
||||
, method: 'post' //方式默认是get
|
||||
, page: true
|
||||
, where: {
|
||||
|
|
@ -44,7 +44,7 @@ $("#exportBt").click(function(){
|
|||
keyWord = $("#keyWord").val();
|
||||
status = $("#statusId").val();
|
||||
branchId = $("#orgId").val();
|
||||
window.location.href = ctxPath + "/owmTeamQuery/exportPhysicalCheckResult?"
|
||||
window.location.href = czl_ht_url + "/owmTeamQuery/exportPhysicalCheckResult?"
|
||||
+"keyWord=" + keyWord
|
||||
+ "&status=" + status
|
||||
+ "&branchId=" + branchId
|
||||
|
|
@ -61,7 +61,7 @@ layui.use(['table', 'form','notice', 'layNotify'], function () {
|
|||
//渲染表格
|
||||
table.render({
|
||||
elem: '#demo'
|
||||
, url: ctxPath + '/owmTeamQuery/getowmTeamQueryTeamsList' //数据接口
|
||||
, url: czl_ht_url + '/owmTeamQuery/getowmTeamQueryTeamsList' //数据接口
|
||||
|
||||
, method: 'post' //方式默认是get
|
||||
, toolbar: 'default' //开启工具栏,此处显示默认图标,可以自定义模板,详见文档
|
||||
|
|
@ -222,7 +222,7 @@ function ajaxCommonMethod(url,data,success,error){
|
|||
$.ajax({
|
||||
type: 'POST',
|
||||
async: false, // 默认异步true,false表示同步
|
||||
url: ctxPath + url,// 请求地址
|
||||
url: czl_ht_url + url,// 请求地址
|
||||
contentType: "application/x-www-form-urlencoded",
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
data: data, //获取提交的表单字段
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ let pers = checkPermission();
|
|||
const token = localStorage.getItem("czl-token");
|
||||
$("#resetBt").click(function(){
|
||||
table.reload('menuTable', {
|
||||
url: ctxPath + '/proManage/getProjectManagementTeamsList'
|
||||
url: czl_ht_url + '/proManage/getProjectManagementTeamsList'
|
||||
, method: 'post' //方式默认是get
|
||||
, page: true
|
||||
, where: {
|
||||
|
|
@ -30,7 +30,7 @@ $("#resetBt").click(function(){
|
|||
})
|
||||
$("#searchBt").click(function(){
|
||||
table.reload('menuTable', {
|
||||
url: ctxPath + '/proManage/getProjectManagementTeamsList'
|
||||
url: czl_ht_url + '/proManage/getProjectManagementTeamsList'
|
||||
, method: 'post' //方式默认是get
|
||||
, page: true
|
||||
, where: {
|
||||
|
|
@ -54,7 +54,7 @@ $("#exportBt").click(function(){
|
|||
keyWord = $("#keyWord").val();
|
||||
status = $("#statusId").val();
|
||||
branchId = $("#orgId").val();
|
||||
window.location.href = ctxPath + "/proManage/exportPhysicalCheckResult?"
|
||||
window.location.href = czl_ht_url + "/proManage/exportPhysicalCheckResult?"
|
||||
+"keyWord=" + keyWord
|
||||
+ "&status=" + status
|
||||
+ "&branchId=" + branchId
|
||||
|
|
@ -72,7 +72,7 @@ layui.use(['table', 'form','notice', 'layNotify'], function () {
|
|||
//渲染表格
|
||||
table.render({
|
||||
elem: '#demo'
|
||||
, url: ctxPath + '/proManage/getProjectManagementTeamsList' //数据接口
|
||||
, url: czl_ht_url + '/proManage/getProjectManagementTeamsList' //数据接口
|
||||
, method: 'post' //方式默认是get
|
||||
, toolbar: 'default' //开启工具栏,此处显示默认图标,可以自定义模板,详见文档
|
||||
, where: {} //post请求必须加where ,post请求需要的参数
|
||||
|
|
@ -262,7 +262,7 @@ function ajaxCommonMethod(url,data,success,error){
|
|||
$.ajax({
|
||||
type: 'POST',
|
||||
async: false, // 默认异步true,false表示同步
|
||||
url: ctxPath + url,// 请求地址
|
||||
url: czl_ht_url + url,// 请求地址
|
||||
contentType: "application/x-www-form-urlencoded",
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
data: data, //获取提交的表单字段
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ layui.use(['table', 'layer', 'laydate', 'jquery', 'form'], function () {
|
|||
//渲染table
|
||||
table.render({
|
||||
elem: '#demo'
|
||||
, url: ctxPath + '/corporate/getFirmContent' //数据接口
|
||||
, url: czl_ht_url + '/corporate/getFirmContent' //数据接口
|
||||
, method: 'post' //方式默认是get
|
||||
, toolbar: 'default' //开启工具栏,此处显示默认图标,可以自定义模板,详见文档
|
||||
, where: {} //post请求必须加where ,post请求需要的参数
|
||||
|
|
@ -94,7 +94,7 @@ layui.use(['table', 'layer', 'laydate', 'jquery', 'form'], function () {
|
|||
case "searchBt":
|
||||
oldKeyWord = $("#keyWord").val();
|
||||
table.reload('menuTable', {
|
||||
url: ctxPath + '/corporate/getFirmContent'
|
||||
url: czl_ht_url + '/corporate/getFirmContent'
|
||||
, method: 'post' //方式默认是get
|
||||
, page: true
|
||||
, where: {
|
||||
|
|
@ -111,7 +111,7 @@ layui.use(['table', 'layer', 'laydate', 'jquery', 'form'], function () {
|
|||
oldKeyWord = "";
|
||||
$("#keyWord").val("");
|
||||
table.reload('menuTable', {
|
||||
url: ctxPath + '/corporate/getFirmContent'
|
||||
url: czl_ht_url + '/corporate/getFirmContent'
|
||||
, method: 'post' //方式默认是get
|
||||
, page: true
|
||||
, where: {
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ layui.use(['table', 'layer', 'laydate', 'jquery', 'form'], function () {
|
|||
//渲染table
|
||||
table.render({
|
||||
elem: '#demo'
|
||||
, url: ctxPath + '/corporate/getProjectContent' //数据接口
|
||||
, url: czl_ht_url + '/corporate/getProjectContent' //数据接口
|
||||
, method: 'post' //方式默认是get
|
||||
, toolbar: 'default' //开启工具栏,此处显示默认图标,可以自定义模板,详见文档
|
||||
, where: {} //post请求必须加where ,post请求需要的参数
|
||||
|
|
@ -88,7 +88,7 @@ layui.use(['table', 'layer', 'laydate', 'jquery', 'form'], function () {
|
|||
var value = data.value; // 获取复选框的值
|
||||
let status = isChecked ? 1 : 0;
|
||||
$.ajax({
|
||||
url: ctxPath + '/corporate/switchProject',
|
||||
url: czl_ht_url + '/corporate/switchProject',
|
||||
type: 'POST',
|
||||
data: { id: value, status: status },
|
||||
success: function(res) {
|
||||
|
|
@ -111,7 +111,7 @@ layui.use(['table', 'layer', 'laydate', 'jquery', 'form'], function () {
|
|||
oldKeyWord = $("#keyWord").val();
|
||||
oldOrgId = $("#parentId").val();
|
||||
table.reload('menuTable', {
|
||||
url: ctxPath + '/corporate/getProjectContent'
|
||||
url: czl_ht_url + '/corporate/getProjectContent'
|
||||
, method: 'post' //方式默认是get
|
||||
, page: true
|
||||
, where: {
|
||||
|
|
@ -130,7 +130,7 @@ layui.use(['table', 'layer', 'laydate', 'jquery', 'form'], function () {
|
|||
oldKeyWord = "";
|
||||
$("#keyWord").val("");
|
||||
table.reload('menuTable', {
|
||||
url: ctxPath + '/corporate/getProjectContent'
|
||||
url: czl_ht_url + '/corporate/getProjectContent'
|
||||
, method: 'post' //方式默认是get
|
||||
, page: true
|
||||
, where: {
|
||||
|
|
@ -175,7 +175,7 @@ function getSelect(form,Id) {
|
|||
$("#parentId").html("");
|
||||
$.ajax({
|
||||
type: 'post',
|
||||
url: ctxPath + '/selectUtil/getBranchName',
|
||||
url: czl_ht_url + '/selectUtil/getBranchName',
|
||||
data: {
|
||||
},
|
||||
async: false,
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ layui.use(['table', 'layer', 'laydate', 'jquery', 'form'], function () {
|
|||
//渲染table
|
||||
table.render({
|
||||
elem: '#demo'
|
||||
, url: ctxPath + '/corporate/getMsgContent' //数据接口
|
||||
, url: czl_ht_url + '/corporate/getMsgContent' //数据接口
|
||||
, method: 'post' //方式默认是get
|
||||
, toolbar: 'default' //开启工具栏,此处显示默认图标,可以自定义模板,详见文档
|
||||
, where: {} //post请求必须加where ,post请求需要的参数
|
||||
|
|
@ -83,7 +83,7 @@ layui.use(['table', 'layer', 'laydate', 'jquery', 'form'], function () {
|
|||
var value = data.value; // 获取复选框的值
|
||||
let status = isChecked ? 1 : 0;
|
||||
$.ajax({
|
||||
url: ctxPath + '/corporate/switchListen',
|
||||
url: czl_ht_url + '/corporate/switchListen',
|
||||
type: 'POST',
|
||||
data: { id: value, status: status },
|
||||
success: function(res) {
|
||||
|
|
@ -105,7 +105,7 @@ layui.use(['table', 'layer', 'laydate', 'jquery', 'form'], function () {
|
|||
case "searchBt":
|
||||
oldKeyWord = $("#keyWord").val();
|
||||
table.reload('menuTable', {
|
||||
url: ctxPath + '/corporate/getMsgContent'
|
||||
url: czl_ht_url + '/corporate/getMsgContent'
|
||||
, method: 'post' //方式默认是get
|
||||
, page: true
|
||||
, where: {
|
||||
|
|
@ -122,7 +122,7 @@ layui.use(['table', 'layer', 'laydate', 'jquery', 'form'], function () {
|
|||
oldKeyWord = "";
|
||||
$("#keyWord").val("");
|
||||
table.reload('menuTable', {
|
||||
url: ctxPath + '/corporate/getMsgContent'
|
||||
url: czl_ht_url + '/corporate/getMsgContent'
|
||||
, method: 'post' //方式默认是get
|
||||
, page: true
|
||||
, where: {
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ function getDict(type) {
|
|||
if (v == null || v == "") {
|
||||
$.ajax({
|
||||
type : 'get',
|
||||
url : ctxPath + '/dicts?type=' + type,
|
||||
url : czl_ht_url + '/dicts?type=' + type,
|
||||
async : false,
|
||||
success : function(data) {
|
||||
v = {};
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ function getTools() {
|
|||
$.ajax({
|
||||
type: 'POST',
|
||||
async: true, // 默认异步true,false表示同步
|
||||
url: ctxPath + "/dataIndex/getTool",// 请求地址
|
||||
url: czl_ht_url + "/dataIndex/getTool",// 请求地址
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
data: {}, //获取提交的表单字段
|
||||
success: function (data) {
|
||||
|
|
@ -60,7 +60,7 @@ function getReal() {
|
|||
$.ajax({
|
||||
type: 'POST',
|
||||
async: true, // 默认异步true,false表示同步
|
||||
url: ctxPath + "/dataIndex/getReal",// 请求地址
|
||||
url: czl_ht_url + "/dataIndex/getReal",// 请求地址
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
data: {}, //获取提交的表单字段
|
||||
success: function (data) {
|
||||
|
|
@ -208,7 +208,7 @@ function getSubTeamType() {
|
|||
$.ajax({
|
||||
type: 'POST',
|
||||
async: true, // 默认异步true,false表示同步
|
||||
url: ctxPath + "/dataIndex/getSubTeamType",// 请求地址
|
||||
url: czl_ht_url + "/dataIndex/getSubTeamType",// 请求地址
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
data: {}, //获取提交的表单字段
|
||||
success: function (data) {
|
||||
|
|
@ -239,7 +239,7 @@ function getToolStatus() {
|
|||
$.ajax({
|
||||
type: 'POST',
|
||||
async: true, // 默认异步true,false表示同步
|
||||
url: ctxPath + "/dataIndex/getToolStatus",// 请求地址
|
||||
url: czl_ht_url + "/dataIndex/getToolStatus",// 请求地址
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
data: {}, //获取提交的表单字段
|
||||
success: function (data) {
|
||||
|
|
@ -257,7 +257,7 @@ function getOwnTeamStatus() {
|
|||
$.ajax({
|
||||
type: 'POST',
|
||||
async: true, // 默认异步true,false表示同步
|
||||
url: ctxPath + "/dataIndex/getOwnTeamStatus",// 请求地址
|
||||
url: czl_ht_url + "/dataIndex/getOwnTeamStatus",// 请求地址
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
data: {}, //获取提交的表单字段
|
||||
success: function (data) {
|
||||
|
|
@ -276,7 +276,7 @@ function getSubTeamStatus() {
|
|||
$.ajax({
|
||||
type: 'POST',
|
||||
async: true, // 默认异步true,false表示同步
|
||||
url: ctxPath + "/dataIndex/getSubTeamStatus",// 请求地址
|
||||
url: czl_ht_url + "/dataIndex/getSubTeamStatus",// 请求地址
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
data: {}, //获取提交的表单字段
|
||||
success: function (data) {
|
||||
|
|
@ -297,7 +297,7 @@ function getBranchOfficeTeamStatus() {
|
|||
$.ajax({
|
||||
type: 'POST',
|
||||
async: true, // 默认异步true,false表示同步
|
||||
url: ctxPath + "/dataIndex/getBranchOfficeTeamStatus",// 请求地址
|
||||
url: czl_ht_url + "/dataIndex/getBranchOfficeTeamStatus",// 请求地址
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
data: {keyWord:$("#selectOrg").val()}, //获取提交的表单字段
|
||||
success: function (data) {
|
||||
|
|
@ -317,7 +317,7 @@ function getProjectStatus() {
|
|||
$.ajax({
|
||||
type: 'POST',
|
||||
async: true, // 默认异步true,false表示同步
|
||||
url: ctxPath + "/dataIndex/getProjectStatus",// 请求地址
|
||||
url: czl_ht_url + "/dataIndex/getProjectStatus",// 请求地址
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
data: {'keyWord': $("#selectOrg").val()}, //获取提交的表单字段
|
||||
success: function (data) {
|
||||
|
|
@ -333,7 +333,7 @@ function getProjectProgress() {
|
|||
$.ajax({
|
||||
type: 'POST',
|
||||
mmm: true, // 默认异步true,false表示同步
|
||||
url: ctxPath + "/dataIndex/getProjectProgress",// 请求地址
|
||||
url: czl_ht_url + "/dataIndex/getProjectProgress",// 请求地址
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
data: {'keyWord': $("#selectOrg").val()}, //获取提交的表单字段
|
||||
success: function (data) {
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ layui.use(['table', 'layer', 'laydate', 'jquery', 'form'], function () {
|
|||
//渲染table
|
||||
table.render({
|
||||
elem: '#demo'
|
||||
, url: ctxPath + '/logs/getMsgContent' //数据接口
|
||||
, url: czl_ht_url + '/logs/getMsgContent' //数据接口
|
||||
, method: 'post' //方式默认是get
|
||||
, toolbar: 'default' //开启工具栏,此处显示默认图标,可以自定义模板,详见文档
|
||||
, where: {} //post请求必须加where ,post请求需要的参数
|
||||
|
|
@ -75,7 +75,7 @@ layui.use(['table', 'layer', 'laydate', 'jquery', 'form'], function () {
|
|||
timeStart = $("#phyTimeStart").val();
|
||||
timeEnd = $("#phyTimeEnd").val();
|
||||
table.reload('menuTable', {
|
||||
url: ctxPath + '/logs/getMsgContent'
|
||||
url: czl_ht_url + '/logs/getMsgContent'
|
||||
, method: 'post' //方式默认是get
|
||||
, page: true
|
||||
, where: {
|
||||
|
|
@ -98,7 +98,7 @@ layui.use(['table', 'layer', 'laydate', 'jquery', 'form'], function () {
|
|||
$("#phyTimeStart").val("");
|
||||
$("#phyTimeEnd").val("");
|
||||
table.reload('menuTable', {
|
||||
url: ctxPath + '/logs/getMsgContent'
|
||||
url: czl_ht_url + '/logs/getMsgContent'
|
||||
, method: 'post' //方式默认是get
|
||||
, page: true
|
||||
, where: {
|
||||
|
|
@ -129,7 +129,7 @@ function exportExcel() {
|
|||
oldKeyWord = $("#keyWord").val(); //获取搜索框内容
|
||||
timeStart = $("#phyTimeStart").val(); //获取开始时间
|
||||
timeEnd = $("#phyTimeEnd").val(); //获取结束时间
|
||||
window.location.href = ctxPath + "/logs/exportPhysicalCheckResult?"
|
||||
window.location.href = czl_ht_url + "/logs/exportPhysicalCheckResult?"
|
||||
+"phyTimeStart=" + timeStart
|
||||
+ "&phyTimeEnd=" + timeEnd
|
||||
+ "&keyWord=" + oldKeyWord
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ const token = localStorage.getItem("czl-token");
|
|||
let pers = checkPermission();
|
||||
$("#resetBt").click(function(){
|
||||
table.reload('menuTable', {
|
||||
url: ctxPath + '/dataIndex/getToolList'
|
||||
url: czl_ht_url + '/dataIndex/getToolList'
|
||||
, method: 'post' //方式默认是get
|
||||
, page: true
|
||||
, where: {
|
||||
|
|
@ -38,7 +38,7 @@ $("#searchBt").click(function(){
|
|||
dictKey = $("#dictKey").val();
|
||||
deviceName = $("#deviceName").val();
|
||||
table.reload('menuTable', {
|
||||
url: ctxPath + '/dataIndex/getToolList'
|
||||
url: czl_ht_url + '/dataIndex/getToolList'
|
||||
, method: 'post' //方式默认是get
|
||||
, page: true
|
||||
, where: {
|
||||
|
|
@ -59,7 +59,7 @@ $("#exportBt").click(function(){
|
|||
keyWord = $("#keyWord").val();
|
||||
dictKey = $("#dictKey").val();
|
||||
deviceName = $("#deviceName").val();
|
||||
window.location.href = ctxPath + "/dataIndex/exportPhysicalCheckResult?"
|
||||
window.location.href = czl_ht_url + "/dataIndex/exportPhysicalCheckResult?"
|
||||
+"keyWord=" + keyWord
|
||||
+ "&dictKey=" + dictKey
|
||||
+ "&deviceName=" + deviceName
|
||||
|
|
@ -84,7 +84,7 @@ layui.use(['table', 'form','notice', 'layNotify'], function () {
|
|||
//渲染表格
|
||||
table.render({
|
||||
elem: '#demo'
|
||||
, url: ctxPath + '/dataIndex/getToolList' //数据接口
|
||||
, url: czl_ht_url + '/dataIndex/getToolList' //数据接口
|
||||
, method: 'post' //方式默认是get
|
||||
, toolbar: 'default' //开启工具栏,此处显示默认图标,可以自定义模板,详见文档
|
||||
, where: {} //post请求必须加where ,post请求需要的参数
|
||||
|
|
@ -168,7 +168,7 @@ layui.use(['table', 'form','notice', 'layNotify'], function () {
|
|||
ajaxCommonMethod('/dataIndex/delToolsById',{'id': data.id});
|
||||
|
||||
table.reload('menuTable', {
|
||||
url: ctxPath + '/dataIndex/getToolList'
|
||||
url: czl_ht_url + '/dataIndex/getToolList'
|
||||
, method: 'post' //方式默认是get
|
||||
, page: true
|
||||
, where: {
|
||||
|
|
@ -217,7 +217,7 @@ function layerOpenProgressView(title,contentUrl){
|
|||
maxmin: false,
|
||||
cancel:function (){
|
||||
table.reload('menuTable', {
|
||||
url: ctxPath + '/dataIndex/getToolList'
|
||||
url: czl_ht_url + '/dataIndex/getToolList'
|
||||
, method: 'post' //方式默认是get
|
||||
, page: true
|
||||
, where: {} //设定异步数据接口的额外参数
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ const token = localStorage.getItem("czl-token");
|
|||
let pers = checkPermission();
|
||||
$("#resetBt").click(function(){
|
||||
table.reload('menuTable', {
|
||||
url: ctxPath + '/dataIndex/getActiveList'
|
||||
url: czl_ht_url + '/dataIndex/getActiveList'
|
||||
, method: 'post' //方式默认是get
|
||||
, page: true
|
||||
, where: {
|
||||
|
|
@ -34,7 +34,7 @@ $("#searchBt").click(function(){
|
|||
dictKey = $("#dictKey").val();
|
||||
deviceName = $("#deviceName").val();
|
||||
table.reload('menuTable', {
|
||||
url: ctxPath + '/dataIndex/getActiveList'
|
||||
url: czl_ht_url + '/dataIndex/getActiveList'
|
||||
, method: 'post' //方式默认是get
|
||||
, page: true
|
||||
, where: {
|
||||
|
|
@ -51,7 +51,7 @@ $("#exportBt").click(function(){
|
|||
keyWord = $("#keyWord").val();
|
||||
dictKey = $("#dictKey").val();
|
||||
deviceName = $("#deviceName").val();
|
||||
window.location.href = ctxPath + "/dataIndex/exportPhysicalCheckResults?"
|
||||
window.location.href = czl_ht_url + "/dataIndex/exportPhysicalCheckResults?"
|
||||
+"keyWord=" + keyWord
|
||||
+ "&dictKey=" + dictKey
|
||||
+ "&deviceName=" + deviceName
|
||||
|
|
@ -68,7 +68,7 @@ layui.use(['table', 'form','notice', 'layNotify'], function () {
|
|||
//渲染表格
|
||||
table.render({
|
||||
elem: '#demo'
|
||||
, url: ctxPath + '/dataIndex/getActiveList' //数据接口
|
||||
, url: czl_ht_url + '/dataIndex/getActiveList' //数据接口
|
||||
, method: 'post' //方式默认是get
|
||||
, toolbar: 'default' //开启工具栏,此处显示默认图标,可以自定义模板,详见文档
|
||||
, where: {} //post请求必须加where ,post请求需要的参数
|
||||
|
|
@ -154,7 +154,7 @@ layui.use(['table', 'form','notice', 'layNotify'], function () {
|
|||
$.ajax({
|
||||
type: 'POST',
|
||||
async: false, // 默认异步true,false表示同步
|
||||
url: ctxPath + '/dataIndex/delActiveById',// 请求地址
|
||||
url: czl_ht_url + '/dataIndex/delActiveById',// 请求地址
|
||||
contentType: "application/x-www-form-urlencoded",
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
data: {'proId': data.proId,'toolsId':data.toolsId}, //获取提交的表单字段
|
||||
|
|
@ -165,7 +165,7 @@ layui.use(['table', 'form','notice', 'layNotify'], function () {
|
|||
setTimeout(function(){
|
||||
layer.closeAll();
|
||||
table.reload('menuTable', {
|
||||
url: ctxPath + '/dataIndex/getActiveList'
|
||||
url: czl_ht_url + '/dataIndex/getActiveList'
|
||||
, method: 'post' //方式默认是get
|
||||
, page: true
|
||||
, where: {
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
initMenu();
|
||||
function initMenu() {
|
||||
$.ajax({
|
||||
url: ctxPath + "/permissions/current",
|
||||
url: czl_ht_url + "/permissions/current",
|
||||
type: "get",
|
||||
async: false,
|
||||
success: function (data) {
|
||||
|
|
@ -75,7 +75,7 @@ showLoginInfo();
|
|||
function showLoginInfo() {
|
||||
$.ajax({
|
||||
type: "get",
|
||||
url: ctxPath + "/users/current",
|
||||
url: czl_ht_url + "/users/current",
|
||||
async: false,
|
||||
success: function (data) {
|
||||
$(".admin-header-user span").text(data.nickname);
|
||||
|
|
@ -104,7 +104,7 @@ function showLoginInfo() {
|
|||
function logout() {
|
||||
$.ajax({
|
||||
type: "get",
|
||||
url: ctxPath + "/logout",
|
||||
url: czl_ht_url + "/logout",
|
||||
success: function (data) {
|
||||
localStorage.removeItem("token");
|
||||
location.href = contentPath+'/login.html';
|
||||
|
|
@ -158,7 +158,7 @@ cloudTmgContainer.addEventListener("mouseleave", function () {
|
|||
function getDownloadRecord() {
|
||||
$.ajax({
|
||||
type: "post",
|
||||
url: ctxPath + "/users/getDownloadRecord",
|
||||
url: czl_ht_url + "/users/getDownloadRecord",
|
||||
dataType: "json", // 服务器返回数据类型
|
||||
async: false,
|
||||
data: {},
|
||||
|
|
@ -218,7 +218,7 @@ function chanel(id) {
|
|||
$.ajax({
|
||||
type: "POST",
|
||||
async: false, // 默认异步true,false表示同步
|
||||
url: ctxPath + "/users/delRecordById", // 请求地址
|
||||
url: czl_ht_url + "/users/delRecordById", // 请求地址
|
||||
contentType: "application/x-www-form-urlencoded",
|
||||
dataType: "json", // 服务器返回数据类型
|
||||
data: { id: id }, //获取提交的表单字段
|
||||
|
|
@ -246,7 +246,7 @@ function delAll() {
|
|||
$.ajax({
|
||||
type: "POST",
|
||||
async: false, // 默认异步true,false表示同步
|
||||
url: ctxPath + "/users/delAll", // 请求地址
|
||||
url: czl_ht_url + "/users/delAll", // 请求地址
|
||||
contentType: "application/x-www-form-urlencoded",
|
||||
dataType: "json", // 服务器返回数据类型
|
||||
success: function (data) {
|
||||
|
|
@ -464,7 +464,7 @@ function download(url, filename) {
|
|||
if (url.indexOf("http") != -1) {
|
||||
truePath = url;
|
||||
} else {
|
||||
truePath = ctxPath + "/statics/" + url;
|
||||
truePath = czl_ht_url + "/statics/" + url;
|
||||
}
|
||||
|
||||
getBlob(truePath).then((blob) => {
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ function checkPermission() {
|
|||
var pers = [];
|
||||
$.ajax({
|
||||
type : 'get',
|
||||
url : ctxPath + '/permissions/owns',
|
||||
url : czl_ht_url + '/permissions/owns',
|
||||
async : false,
|
||||
success : function(data) {
|
||||
pers = data;
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
function initRoles() {
|
||||
$.ajax({
|
||||
type : 'get',
|
||||
url : ctxPath + '/roles/all',
|
||||
url : czl_ht_url + '/roles/all',
|
||||
async : false,
|
||||
success : function(data) {
|
||||
var r = $("#roles");
|
||||
|
|
@ -34,7 +34,7 @@ function getCheckedRoleIds() {
|
|||
function initRoleDatas(userId) {
|
||||
$.ajax({
|
||||
type : 'get',
|
||||
url : ctxPath + '/roles?userId=' + userId,
|
||||
url : czl_ht_url + '/roles?userId=' + userId,
|
||||
success : function(data) {
|
||||
var length = data.length;
|
||||
for (var i = 0; i < length; i++) {
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ function getMenuTree() {
|
|||
|
||||
$.ajax({
|
||||
type : 'get',
|
||||
url : ctxPath + '/permissions/all',
|
||||
url : czl_ht_url + '/permissions/all',
|
||||
contentType : "application/json; charset=utf-8",
|
||||
async : false,
|
||||
success : function(data) {
|
||||
|
|
@ -29,7 +29,7 @@ function getMenuTree() {
|
|||
function initMenuDatas(roleId){
|
||||
$.ajax({
|
||||
type : 'get',
|
||||
url : ctxPath + '/permissions?roleId=' + roleId,
|
||||
url : czl_ht_url + '/permissions?roleId=' + roleId,
|
||||
success : function(data) {
|
||||
var length = data.length;
|
||||
var ids = [];
|
||||
|
|
@ -103,7 +103,7 @@ function createNode(d) {
|
|||
function initParentMenuSelect(){
|
||||
$.ajax({
|
||||
type : 'get',
|
||||
url : ctxPath + '/permissions/parents',
|
||||
url : czl_ht_url + '/permissions/parents',
|
||||
async : false,
|
||||
success : function(data) {
|
||||
var select = $("#parentId");
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ const token = localStorage.getItem("czl-token");
|
|||
let pers = checkPermission();
|
||||
$("#resetBt").click(function(){
|
||||
table.reload('menuTable', {
|
||||
url: ctxPath + '/newPro/getBasicDataList'
|
||||
url: czl_ht_url + '/newPro/getBasicDataList'
|
||||
, method: 'post' //方式默认是get
|
||||
, page: true
|
||||
, where: {
|
||||
|
|
@ -27,7 +27,7 @@ $("#resetBt").click(function(){
|
|||
})
|
||||
$("#searchBt").click(function(){
|
||||
table.reload('menuTable', {
|
||||
url: ctxPath + '/newPro/getBasicDataList'
|
||||
url: czl_ht_url + '/newPro/getBasicDataList'
|
||||
, method: 'post' //方式默认是get
|
||||
, page: true
|
||||
, where: {
|
||||
|
|
@ -38,7 +38,7 @@ $("#searchBt").click(function(){
|
|||
});
|
||||
})
|
||||
$("#exportBt").click(function(){
|
||||
window.location.href = ctxPath + "/newPro/export?token=" + token //下载文件;
|
||||
window.location.href = czl_ht_url + "/newPro/export?token=" + token //下载文件;
|
||||
+"&keyWord=" + $("#keyWord").val()
|
||||
+"&orgId=" + $("#orgId").val()
|
||||
+"&voltageLevelId=" + $("#volLevelIds").val()
|
||||
|
|
@ -62,7 +62,7 @@ layui.use(['table', 'form','notice', 'layNotify'], function () {
|
|||
//渲染表格
|
||||
table.render({
|
||||
elem: '#demo'
|
||||
, url: ctxPath + '/newPro/getBasicDataList' //数据接口
|
||||
, url: czl_ht_url + '/newPro/getBasicDataList' //数据接口
|
||||
|
||||
, method: 'post' //方式默认是get
|
||||
, toolbar: 'default' //开启工具栏,此处显示默认图标,可以自定义模板,详见文档
|
||||
|
|
@ -166,7 +166,7 @@ function layerOpenProgressView(title,contentUrl){
|
|||
localStorage.removeItem("newProId")
|
||||
localStorage.removeItem("type")
|
||||
table.reload('menuTable', {
|
||||
url: ctxPath + '/newPro/getBasicDataList'
|
||||
url: czl_ht_url + '/newPro/getBasicDataList'
|
||||
, method: 'post' //方式默认是get
|
||||
, page: true
|
||||
, where: {
|
||||
|
|
@ -182,7 +182,7 @@ function ajaxCommonMethod(url,data,success,error){
|
|||
$.ajax({
|
||||
type: 'POST',
|
||||
async: false, // 默认异步true,false表示同步
|
||||
url: ctxPath + url,// 请求地址
|
||||
url: czl_ht_url + url,// 请求地址
|
||||
contentType: "application/x-www-form-urlencoded",
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
data: data, //获取提交的表单字段
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ const token = localStorage.getItem("czl-token");
|
|||
let pers = checkPermission();
|
||||
$("#resetBt").click(function(){
|
||||
table.reload('menuTable', {
|
||||
url: ctxPath + '/owmTeams/getOwnTeamsList'
|
||||
url: czl_ht_url + '/owmTeams/getOwnTeamsList'
|
||||
, method: 'post' //方式默认是get
|
||||
, page: true
|
||||
, where: {
|
||||
|
|
@ -29,7 +29,7 @@ $("#resetBt").click(function(){
|
|||
})
|
||||
$("#searchBt").click(function(){
|
||||
table.reload('menuTable', {
|
||||
url: ctxPath + '/owmTeams/getOwnTeamsList'
|
||||
url: czl_ht_url + '/owmTeams/getOwnTeamsList'
|
||||
, method: 'post' //方式默认是get
|
||||
, page: true
|
||||
, where: {
|
||||
|
|
@ -53,7 +53,7 @@ $("#exportBt").click(function(){
|
|||
keyWord = $("#keyWord").val();
|
||||
status = $("#statusId").val();
|
||||
teamTypeId = $("#teamTypeId").val();
|
||||
window.location.href = ctxPath + "/owmTeams/exportPhysicalCheckResult?"
|
||||
window.location.href = czl_ht_url + "/owmTeams/exportPhysicalCheckResult?"
|
||||
+"keyWord=" + keyWord
|
||||
+ "&status=" + status
|
||||
+ "&teamTypeId=" + teamTypeId
|
||||
|
|
@ -72,7 +72,7 @@ layui.use(['table', 'form','notice', 'layNotify'], function () {
|
|||
//渲染表格
|
||||
table.render({
|
||||
elem: '#demo'
|
||||
, url: ctxPath + '/owmTeams/getOwnTeamsList' //数据接口
|
||||
, url: czl_ht_url + '/owmTeams/getOwnTeamsList' //数据接口
|
||||
|
||||
, method: 'post' //方式默认是get
|
||||
, toolbar: 'default' //开启工具栏,此处显示默认图标,可以自定义模板,详见文档
|
||||
|
|
@ -192,7 +192,7 @@ layui.use(['table', 'form','notice', 'layNotify'], function () {
|
|||
let status = isChecked ? 1 : 0;
|
||||
|
||||
$.ajax({
|
||||
url: ctxPath + '/owmTeams/updateOwnTeamStatus',
|
||||
url: czl_ht_url + '/owmTeams/updateOwnTeamStatus',
|
||||
type: 'POST',
|
||||
data: { id: value, status: status },
|
||||
success: function(res) {
|
||||
|
|
@ -290,7 +290,7 @@ function ajaxCommonMethod(url,data,success,error){
|
|||
$.ajax({
|
||||
type: 'POST',
|
||||
async: false, // 默认异步true,false表示同步
|
||||
url: ctxPath + url,// 请求地址
|
||||
url: czl_ht_url + url,// 请求地址
|
||||
contentType: "application/x-www-form-urlencoded",
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
data: data, //获取提交的表单字段
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ layui.use(['table', 'form','notice', 'layNotify','element','upload'], function (
|
|||
//渲染表格
|
||||
table.render({
|
||||
elem: '#demo'
|
||||
, url: ctxPath + '/personnel/getDerivedRecordList' //数据接口
|
||||
, url: czl_ht_url + '/personnel/getDerivedRecordList' //数据接口
|
||||
|
||||
, method: 'post' //方式默认是get
|
||||
, toolbar: 'default' //开启工具栏,此处显示默认图标,可以自定义模板,详见文档
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ const token = localStorage.getItem("czl-token");
|
|||
let pers = checkPermission();
|
||||
$("#resetBt").click(function(){
|
||||
table.reload('menuTable', {
|
||||
url: ctxPath + '/personnel/getSubsidiaryCompanyList'
|
||||
url: czl_ht_url + '/personnel/getSubsidiaryCompanyList'
|
||||
, method: 'post' //方式默认是get
|
||||
, page: true
|
||||
, where: {
|
||||
|
|
@ -29,7 +29,7 @@ $("#resetBt").click(function(){
|
|||
})
|
||||
$("#searchBt").click(function(){
|
||||
table.reload('menuTable', {
|
||||
url: ctxPath + '/personnel/getSubsidiaryCompanyList'
|
||||
url: czl_ht_url + '/personnel/getSubsidiaryCompanyList'
|
||||
, method: 'post' //方式默认是get
|
||||
, page: true
|
||||
, where: {
|
||||
|
|
@ -52,7 +52,7 @@ $("#exportBt").click(function(){
|
|||
keyWord = $("#keyWord").val();
|
||||
voltageLevelId = $("#volLevelIds").val();
|
||||
orgId = $("#orgId").val();
|
||||
window.location.href = ctxPath + "/personnel/exportPhysicalCheckResult?"
|
||||
window.location.href = czl_ht_url + "/personnel/exportPhysicalCheckResult?"
|
||||
+"keyWord=" + keyWord
|
||||
+ "&voltageLevelId=" + voltageLevelId
|
||||
+ "&orgId=" + orgId
|
||||
|
|
@ -80,7 +80,7 @@ layui.use(['table', 'form','notice', 'layNotify','element','upload'], function (
|
|||
//渲染表格
|
||||
table.render({
|
||||
elem: '#demo'
|
||||
, url: ctxPath + '/personnel/getSubsidiaryCompanyList' //数据接口
|
||||
, url: czl_ht_url + '/personnel/getSubsidiaryCompanyList' //数据接口
|
||||
|
||||
, method: 'post' //方式默认是get
|
||||
, toolbar: 'default' //开启工具栏,此处显示默认图标,可以自定义模板,详见文档
|
||||
|
|
@ -150,7 +150,7 @@ layui.use(['table', 'form','notice', 'layNotify','element','upload'], function (
|
|||
|
||||
// var uploadIns = upload.render({
|
||||
// elem: '#importBt', //绑定元素
|
||||
// url: ctxPath + "/personnel/import",
|
||||
// url: czl_ht_url + "/personnel/import",
|
||||
// accept: 'file', //允许上传的文件类型
|
||||
// exts: 'xlsx|xls',
|
||||
// auto: true, //是否自动上传
|
||||
|
|
@ -223,7 +223,7 @@ layui.use(['table', 'form','notice', 'layNotify','element','upload'], function (
|
|||
layer.close(index);
|
||||
ajaxCommonMethod('/personnel/delById',{'id': data.id},"删除成功","删除失败");
|
||||
table.reload('menuTable', {
|
||||
url: ctxPath + '/personnel/getSubsidiaryCompanyList'
|
||||
url: czl_ht_url + '/personnel/getSubsidiaryCompanyList'
|
||||
, method: 'post' //方式默认是get
|
||||
, page: true
|
||||
, where: {
|
||||
|
|
@ -241,7 +241,7 @@ layui.use(['table', 'form','notice', 'layNotify','element','upload'], function (
|
|||
var value = data.value; // 获取复选框的值
|
||||
let status = isChecked ? 1 : 0;
|
||||
$.ajax({
|
||||
url: ctxPath + '/personnel/switchListen',
|
||||
url: czl_ht_url + '/personnel/switchListen',
|
||||
type: 'POST',
|
||||
data: { id: value, status: status },
|
||||
success: function(res) {
|
||||
|
|
@ -263,7 +263,7 @@ function layerOpenProgressView(title,contentUrl){
|
|||
maxmin: false,
|
||||
cancel:function (){
|
||||
table.reload('menuTable', {
|
||||
url: ctxPath + '/personnel/getSubsidiaryCompanyList'
|
||||
url: czl_ht_url + '/personnel/getSubsidiaryCompanyList'
|
||||
, method: 'post' //方式默认是get
|
||||
, page: true
|
||||
, where: {
|
||||
|
|
|
|||
|
|
@ -133,7 +133,7 @@ function getFileList(id) {
|
|||
//渲染表格
|
||||
table.render({
|
||||
elem: '#fileDemo'
|
||||
, url: ctxPath + '/personnel/getWorkRecordList' //数据接口
|
||||
, url: czl_ht_url + '/personnel/getWorkRecordList' //数据接口
|
||||
, method: 'post' //方式默认是get
|
||||
, toolbar: 'default' //开启工具栏,此处显示默认图标,可以自定义模板,详见文档
|
||||
, where: {
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ $(function () {
|
|||
|
||||
var uploadIns = upload.render({
|
||||
elem: "#importBt", //绑定元素
|
||||
url: ctxPath + "/ma/sendoff/import",
|
||||
url: czl_ht_url + "/ma/sendoff/import",
|
||||
accept: "file", //允许上传的文件类型
|
||||
exts: "xlsx|xls",
|
||||
auto: true, //是否自动上传
|
||||
|
|
@ -70,7 +70,7 @@ $(function () {
|
|||
function init(table, form, keyWord) {
|
||||
table.render({
|
||||
elem: "#layuiTable",
|
||||
url: ctxPath + "/ma/sendoff/list?keyWord=" + keyWord,
|
||||
url: czl_ht_url + "/ma/sendoff/list?keyWord=" + keyWord,
|
||||
method: "post",
|
||||
cols: [
|
||||
[
|
||||
|
|
@ -164,7 +164,7 @@ function edit(id) {
|
|||
localStorage.setItem("type", "2");
|
||||
$.ajax({
|
||||
type: "post",
|
||||
url: ctxPath + "/ma/sendoff/getById",
|
||||
url: czl_ht_url + "/ma/sendoff/getById",
|
||||
data: {
|
||||
id: id,
|
||||
},
|
||||
|
|
@ -202,7 +202,7 @@ function del(id) {
|
|||
layer.confirm("确定删除吗?", function () {
|
||||
$.ajax({
|
||||
type: "post",
|
||||
url: ctxPath + "/ma/sendoff/delete",
|
||||
url: czl_ht_url + "/ma/sendoff/delete",
|
||||
data: {
|
||||
id: id,
|
||||
},
|
||||
|
|
@ -255,7 +255,7 @@ function batchDeleteBtn() {
|
|||
function () {
|
||||
$.ajax({
|
||||
type: "delete",
|
||||
url: ctxPath + "/ma/sendoff/" + ids.toString(),
|
||||
url: czl_ht_url + "/ma/sendoff/" + ids.toString(),
|
||||
success: function (data) {
|
||||
if (data.code == 200) {
|
||||
layer.msg("删除成功", { icon: 1 }, function () {
|
||||
|
|
@ -283,7 +283,7 @@ function exportData() {
|
|||
maCode: maCode,
|
||||
};
|
||||
var url =
|
||||
ctxPath +
|
||||
czl_ht_url +
|
||||
"/ma/sendoff/export?param=" +
|
||||
encodeURIComponent(JSON.stringify(param));
|
||||
var xhr = new XMLHttpRequest();
|
||||
|
|
@ -317,7 +317,7 @@ function exportData() {
|
|||
function downloadFile() {
|
||||
var token = localStorage.getItem("czl-token");
|
||||
window.location.href =
|
||||
ctxPath +
|
||||
czl_ht_url +
|
||||
"/download/download?filename=发货冲销对应表-导入模板.xlsx&token=" +
|
||||
token;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ let pers = checkPermission();
|
|||
const token = localStorage.getItem("czl-token");
|
||||
$("#resetBt").click(function(){
|
||||
table.reload('menuTable', {
|
||||
url: ctxPath + '/personnel/getSelfOwnedList'
|
||||
url: czl_ht_url + '/personnel/getSelfOwnedList'
|
||||
, method: 'post' //方式默认是get
|
||||
, page: true
|
||||
, where: {
|
||||
|
|
@ -26,7 +26,7 @@ $("#resetBt").click(function(){
|
|||
})
|
||||
$("#searchBt").click(function(){
|
||||
table.reload('menuTable', {
|
||||
url: ctxPath + '/personnel/getSelfOwnedList'
|
||||
url: czl_ht_url + '/personnel/getSelfOwnedList'
|
||||
, method: 'post' //方式默认是get
|
||||
, page: true
|
||||
, where: {
|
||||
|
|
@ -42,7 +42,7 @@ $("#addBt").click(function(){
|
|||
$("#exportBt").click(function(){
|
||||
keyWord = $("#keyWord").val();
|
||||
orgId = $("#orgId").val();
|
||||
window.location.href = ctxPath + "/personnel/exportSelfOwnedResult?"
|
||||
window.location.href = czl_ht_url + "/personnel/exportSelfOwnedResult?"
|
||||
+"keyWord=" + keyWord
|
||||
+ "&orgId=" + orgId
|
||||
+ "&type=" + '1'
|
||||
|
|
@ -67,7 +67,7 @@ layui.use(['table', 'form','notice', 'layNotify','element'], function () {
|
|||
//渲染表格
|
||||
table.render({
|
||||
elem: '#demo'
|
||||
, url: ctxPath + '/personnel/getSelfOwnedList' //数据接口
|
||||
, url: czl_ht_url + '/personnel/getSelfOwnedList' //数据接口
|
||||
|
||||
, method: 'post' //方式默认是get
|
||||
, toolbar: 'default' //开启工具栏,此处显示默认图标,可以自定义模板,详见文档
|
||||
|
|
@ -171,7 +171,7 @@ layui.use(['table', 'form','notice', 'layNotify','element'], function () {
|
|||
var value = data.value; // 获取复选框的值
|
||||
let status = isChecked ? 1 : 0;
|
||||
$.ajax({
|
||||
url: ctxPath + '/personnel/SelfOwnedSwitchListen',
|
||||
url: czl_ht_url + '/personnel/SelfOwnedSwitchListen',
|
||||
type: 'POST',
|
||||
data: { id: value, status: status },
|
||||
success: function(res) {
|
||||
|
|
@ -193,7 +193,7 @@ function layerOpenProgressView(title,contentUrl){
|
|||
maxmin: false,
|
||||
cancel:function (){
|
||||
table.reload('menuTable', {
|
||||
url: ctxPath + '/personnel/getSelfOwnedList'
|
||||
url: czl_ht_url + '/personnel/getSelfOwnedList'
|
||||
, method: 'post' //方式默认是get
|
||||
, page: true
|
||||
, where: {
|
||||
|
|
|
|||
|
|
@ -119,7 +119,7 @@ function getFileList(id) {
|
|||
//渲染表格
|
||||
table.render({
|
||||
elem: '#fileDemo'
|
||||
, url: ctxPath + '/personnel/getSelfOwnedWorkRecordList' //数据接口
|
||||
, url: czl_ht_url + '/personnel/getSelfOwnedWorkRecordList' //数据接口
|
||||
, method: 'post' //方式默认是get
|
||||
, toolbar: 'default' //开启工具栏,此处显示默认图标,可以自定义模板,详见文档
|
||||
, where: {
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ let pers = checkPermission();
|
|||
const token = localStorage.getItem("czl-token");
|
||||
$("#resetBt").click(function(){
|
||||
table.reload('menuTable', {
|
||||
url: ctxPath + '/personnel/getSubcontractorList'
|
||||
url: czl_ht_url + '/personnel/getSubcontractorList'
|
||||
, method: 'post' //方式默认是get
|
||||
, page: true
|
||||
, where: {
|
||||
|
|
@ -29,7 +29,7 @@ $("#resetBt").click(function(){
|
|||
})
|
||||
$("#searchBt").click(function(){
|
||||
table.reload('menuTable', {
|
||||
url: ctxPath + '/personnel/getSubcontractorList'
|
||||
url: czl_ht_url + '/personnel/getSubcontractorList'
|
||||
, method: 'post' //方式默认是get
|
||||
, page: true
|
||||
, where: {
|
||||
|
|
@ -54,7 +54,7 @@ $("#exportBt").click(function(){
|
|||
keyWord = $("#keyWord").val();
|
||||
dictKey = $("#dictKey").val();
|
||||
subId = $("#subId").val();
|
||||
window.location.href = ctxPath + "/personnel/exportSubcontractorResult?"
|
||||
window.location.href = czl_ht_url + "/personnel/exportSubcontractorResult?"
|
||||
+"keyWord=" + keyWord
|
||||
+ "&dictKey=" + dictKey
|
||||
+ "&subId=" + subId
|
||||
|
|
@ -81,7 +81,7 @@ layui.use(['table', 'form','notice', 'layNotify','element'], function () {
|
|||
//渲染表格
|
||||
table.render({
|
||||
elem: '#demo'
|
||||
, url: ctxPath + '/personnel/getSubcontractorList' //数据接口
|
||||
, url: czl_ht_url + '/personnel/getSubcontractorList' //数据接口
|
||||
|
||||
, method: 'post' //方式默认是get
|
||||
, toolbar: 'default' //开启工具栏,此处显示默认图标,可以自定义模板,详见文档
|
||||
|
|
@ -196,7 +196,7 @@ layui.use(['table', 'form','notice', 'layNotify','element'], function () {
|
|||
var value = data.value; // 获取复选框的值
|
||||
let status = isChecked ? 1 : 0;
|
||||
$.ajax({
|
||||
url: ctxPath + '/personnel/subcontractorSwitchListen',
|
||||
url: czl_ht_url + '/personnel/subcontractorSwitchListen',
|
||||
type: 'POST',
|
||||
data: { id: value, status: status },
|
||||
success: function(res) {
|
||||
|
|
@ -218,7 +218,7 @@ function layerOpenProgressView(title,contentUrl){
|
|||
maxmin: false,
|
||||
cancel:function (){
|
||||
table.reload('menuTable', {
|
||||
url: ctxPath + '/personnel/getSubcontractorList'
|
||||
url: czl_ht_url + '/personnel/getSubcontractorList'
|
||||
, method: 'post' //方式默认是get
|
||||
, page: true
|
||||
, where: {
|
||||
|
|
|
|||
|
|
@ -132,7 +132,7 @@ function getFileList(id) {
|
|||
//渲染表格
|
||||
table.render({
|
||||
elem: '#fileDemo'
|
||||
, url: ctxPath + '/personnel/getWorkRecordLists' //数据接口
|
||||
, url: czl_ht_url + '/personnel/getWorkRecordLists' //数据接口
|
||||
, method: 'post' //方式默认是get
|
||||
, toolbar: 'default' //开启工具栏,此处显示默认图标,可以自定义模板,详见文档
|
||||
, where: {
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ const token = localStorage.getItem("czl-token");
|
|||
let pers = checkPermission();
|
||||
$("#resetBt").click(function(){
|
||||
table.reload('menuTable', {
|
||||
url: ctxPath + '/linePro/getFirmContentList'
|
||||
url: czl_ht_url + '/linePro/getFirmContentList'
|
||||
, method: 'post' //方式默认是get
|
||||
, page: true
|
||||
, where: {
|
||||
|
|
@ -38,7 +38,7 @@ $("#searchBt").click(function(){
|
|||
volLevelIds = $("#volLevelIds").val();
|
||||
statusId = $("#statusId").val();
|
||||
table.reload('menuTable', {
|
||||
url: ctxPath + '/linePro/getFirmContentList'
|
||||
url: czl_ht_url + '/linePro/getFirmContentList'
|
||||
, method: 'post' //方式默认是get
|
||||
, page: true
|
||||
, where: {
|
||||
|
|
@ -65,7 +65,7 @@ $("#exportBt").click(function(){
|
|||
orgId = $("#orgId").val();
|
||||
volLevelIds = $("#volLevelIds").val();
|
||||
statusId = $("#statusId").val();
|
||||
window.location.href = ctxPath + "/linePro/exportPhysicalCheckResult?"
|
||||
window.location.href = czl_ht_url + "/linePro/exportPhysicalCheckResult?"
|
||||
+"orgId=" + orgId
|
||||
+ "&volLevelIds=" + volLevelIds
|
||||
+ "&keyWord=" + oldKeyWord
|
||||
|
|
@ -90,7 +90,7 @@ layui.use(['table', 'form','notice', 'layNotify'], function () {
|
|||
//渲染表格
|
||||
table.render({
|
||||
elem: '#demo'
|
||||
, url: ctxPath + '/linePro/getFirmContentList' //数据接口
|
||||
, url: czl_ht_url + '/linePro/getFirmContentList' //数据接口
|
||||
, method: 'post' //方式默认是get
|
||||
, toolbar: 'default' //开启工具栏,此处显示默认图标,可以自定义模板,详见文档
|
||||
, where: {} //post请求必须加where ,post请求需要的参数
|
||||
|
|
@ -200,7 +200,7 @@ layui.use(['table', 'form','notice', 'layNotify'], function () {
|
|||
$.ajax({
|
||||
type: 'POST',
|
||||
async: false, // 默认异步true,false表示同步
|
||||
url: ctxPath + '/linePro/delProjectById',// 请求地址
|
||||
url: czl_ht_url + '/linePro/delProjectById',// 请求地址
|
||||
contentType: "application/x-www-form-urlencoded",
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
data: {'id': data.id}, //获取提交的表单字段
|
||||
|
|
@ -218,7 +218,7 @@ layui.use(['table', 'form','notice', 'layNotify'], function () {
|
|||
}
|
||||
});
|
||||
table.reload('menuTable', {
|
||||
url: ctxPath + '/linePro/getFirmContentList'
|
||||
url: czl_ht_url + '/linePro/getFirmContentList'
|
||||
, method: 'post' //方式默认是get
|
||||
, page: true
|
||||
, where: {
|
||||
|
|
@ -238,7 +238,7 @@ layui.use(['table', 'form','notice', 'layNotify'], function () {
|
|||
$.ajax({
|
||||
type: 'POST',
|
||||
async: false, // 默认异步true,false表示同步
|
||||
url: ctxPath + '/linePro/upCompletedById',// 请求地址
|
||||
url: czl_ht_url + '/linePro/upCompletedById',// 请求地址
|
||||
contentType: "application/x-www-form-urlencoded",
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
data: {'id': id}, //获取提交的表单字段
|
||||
|
|
@ -307,7 +307,7 @@ function forcedUnbinding(resMsg, id){
|
|||
$.ajax({
|
||||
type: 'POST',
|
||||
async: false, // 默认异步true,false表示同步
|
||||
url: ctxPath + '/linePro/upForcedUnbinding',// 请求地址
|
||||
url: czl_ht_url + '/linePro/upForcedUnbinding',// 请求地址
|
||||
contentType: "application/x-www-form-urlencoded",
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
data: {'id': id}, //获取提交的表单字段
|
||||
|
|
@ -342,7 +342,7 @@ function forcedUnbinding(resMsg, id){
|
|||
// // $.ajax({
|
||||
// // type: 'POST',
|
||||
// // async: false,
|
||||
// // url: ctxPath + '/linePro/getPermissionList',
|
||||
// // url: czl_ht_url + '/linePro/getPermissionList',
|
||||
// // contentType: "application/x-www-form-urlencoded",
|
||||
// // dataType: 'json',
|
||||
// // data: {},
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ var layNotify;
|
|||
const token = localStorage.getItem("czl-token");
|
||||
$("#resetBt").click(function(){
|
||||
table.reload('menuTable', {
|
||||
url: ctxPath + '/proProgress/getBasicDataList'
|
||||
url: czl_ht_url + '/proProgress/getBasicDataList'
|
||||
, method: 'post' //方式默认是get
|
||||
, where: {
|
||||
keyWord: "",
|
||||
|
|
@ -26,7 +26,7 @@ $("#resetBt").click(function(){
|
|||
})
|
||||
$("#searchBt").click(function(){
|
||||
table.reload('menuTable', {
|
||||
url: ctxPath + '/proProgress/getBasicDataList'
|
||||
url: czl_ht_url + '/proProgress/getBasicDataList'
|
||||
, method: 'post' //方式默认是get
|
||||
, where: {
|
||||
keyWord: $("#keyWord").val(),
|
||||
|
|
@ -39,7 +39,7 @@ $("#exportBt").click(function(){
|
|||
keyWord = $("#keyWord").val();
|
||||
voltageLevelId = $("#volLevelIds").val();
|
||||
orgId = $("#orgId").val();
|
||||
window.location.href = ctxPath + "/proProgress/exportPhysicalCheckResult?"
|
||||
window.location.href = czl_ht_url + "/proProgress/exportPhysicalCheckResult?"
|
||||
+"keyWord=" + keyWord
|
||||
+ "&voltageLevelId=" + voltageLevelId
|
||||
+ "&orgId=" + orgId
|
||||
|
|
@ -60,7 +60,7 @@ layui.use(['table', 'form','notice', 'layNotify','element'], function () {
|
|||
//渲染表格
|
||||
table.render({
|
||||
elem: '#demo'
|
||||
, url: ctxPath + '/proProgress/getBasicDataList' //数据接口
|
||||
, url: czl_ht_url + '/proProgress/getBasicDataList' //数据接口
|
||||
|
||||
, method: 'post' //方式默认是get
|
||||
, toolbar: 'default' //开启工具栏,此处显示默认图标,可以自定义模板,详见文档
|
||||
|
|
@ -142,7 +142,7 @@ function layerOpenProgressView(title,contentUrl){
|
|||
|
||||
function reloadTable(){
|
||||
table.reload('menuTable', {
|
||||
url: ctxPath + '/proProgress/getBasicDataList'
|
||||
url: czl_ht_url + '/proProgress/getBasicDataList'
|
||||
, method: 'post' //方式默认是get
|
||||
, where: {
|
||||
keyWord: "",
|
||||
|
|
|
|||
|
|
@ -93,7 +93,7 @@ function changeTab(){
|
|||
function getProTitleData() {
|
||||
$.ajax({
|
||||
type: 'post',
|
||||
url: ctxPath + '/proProgress/getProTitleData',
|
||||
url: czl_ht_url + '/proProgress/getProTitleData',
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
async: false,
|
||||
data: {
|
||||
|
|
@ -156,7 +156,7 @@ function updateProgress(newPercent) {
|
|||
function getProcessTitles() {
|
||||
$.ajax({
|
||||
type: 'post',
|
||||
url: ctxPath + '/proProgress/getProcessTitles',
|
||||
url: czl_ht_url + '/proProgress/getProcessTitles',
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
async: false,
|
||||
data: {
|
||||
|
|
@ -196,7 +196,7 @@ function showProjectProgressTable() {
|
|||
//渲染表格
|
||||
table.render({
|
||||
elem: '#demo'
|
||||
, url: ctxPath + '/proProgress/getProjectProgress' //数据接口
|
||||
, url: czl_ht_url + '/proProgress/getProjectProgress' //数据接口
|
||||
, method: 'post' //方式默认是get
|
||||
, toolbar: 'default' //开启工具栏,此处显示默认图标,可以自定义模板,详见文档
|
||||
, where: {
|
||||
|
|
@ -259,7 +259,7 @@ function showProjectProgressTable() {
|
|||
function getTowerRecordTimeLine() {
|
||||
$.ajax({
|
||||
type: 'post',
|
||||
url: ctxPath + '/proProgress/getTowerRecordTimeLine',
|
||||
url: czl_ht_url + '/proProgress/getTowerRecordTimeLine',
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
async: false,
|
||||
data: {
|
||||
|
|
@ -320,7 +320,7 @@ function getPersonList() {
|
|||
//渲染表格
|
||||
table.render({
|
||||
elem: '#personDemo'
|
||||
, url: ctxPath + '/proProgress/getPersonList' //数据接口
|
||||
, url: czl_ht_url + '/proProgress/getPersonList' //数据接口
|
||||
, method: 'post' //方式默认是get
|
||||
, toolbar: 'default' //开启工具栏,此处显示默认图标,可以自定义模板,详见文档
|
||||
, where: {
|
||||
|
|
@ -372,7 +372,7 @@ function getFileList() {
|
|||
//渲染表格
|
||||
table.render({
|
||||
elem: '#fileDemo'
|
||||
, url: ctxPath + '/proProgress/getFileList' //数据接口
|
||||
, url: czl_ht_url + '/proProgress/getFileList' //数据接口
|
||||
, method: 'post' //方式默认是get
|
||||
, toolbar: 'default' //开启工具栏,此处显示默认图标,可以自定义模板,详见文档
|
||||
, where: {
|
||||
|
|
@ -544,7 +544,7 @@ function reloadTip(tip,message,type){
|
|||
}
|
||||
|
||||
function downloads(fileName,filePath){
|
||||
const url = ctxPath + `/proProgress/download?filePath=${encodeURIComponent(filePath)}` +`&token=`+token;
|
||||
const url = czl_ht_url + `/proProgress/download?filePath=${encodeURIComponent(filePath)}` +`&token=`+token;
|
||||
fetch(url)
|
||||
.then(response => {
|
||||
if (!response.ok) throw new Error('下载失败');
|
||||
|
|
@ -570,7 +570,7 @@ function ajaxCommonMethod(url,data,success,error){
|
|||
$.ajax({
|
||||
type: 'POST',
|
||||
async: false, // 默认异步true,false表示同步
|
||||
url: ctxPath + url,// 请求地址
|
||||
url: czl_ht_url + url,// 请求地址
|
||||
contentType: "application/x-www-form-urlencoded",
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
data: data, //获取提交的表单字段
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ let pers = checkPermission();
|
|||
|
||||
$("#resetBt").click(function(){
|
||||
table.reload('menuTable', {
|
||||
url: ctxPath + '/RnProjectBind/getRnProjectList'
|
||||
url: czl_ht_url + '/RnProjectBind/getRnProjectList'
|
||||
, method: 'post' //方式默认是get
|
||||
, page: true
|
||||
, where: {
|
||||
|
|
@ -41,7 +41,7 @@ $("#searchBt").click(function(){
|
|||
realName = $("#realName").val();
|
||||
statusId = $("#statusId").val();
|
||||
table.reload('menuTable', {
|
||||
url: ctxPath + '/RnProjectBind/getRnProjectList'
|
||||
url: czl_ht_url + '/RnProjectBind/getRnProjectList'
|
||||
, method: 'post' //方式默认是get
|
||||
, page: true
|
||||
, where: {
|
||||
|
|
@ -59,7 +59,7 @@ $("#exportBt").click(function(){
|
|||
orgId = $("#orgId").val();
|
||||
volLevelIds = $("#volLevelIds").val();
|
||||
statusId = $("#statusId").val();
|
||||
window.location.href = ctxPath + "/RnProjectBind/exportPhysicalCheckResult?"
|
||||
window.location.href = czl_ht_url + "/RnProjectBind/exportPhysicalCheckResult?"
|
||||
+"proName=" + proName
|
||||
+ "&realName=" + realName
|
||||
+ "&statusId=" + statusId
|
||||
|
|
@ -76,7 +76,7 @@ layui.use(['table', 'form','notice', 'layNotify'], function () {
|
|||
//渲染表格
|
||||
table.render({
|
||||
elem: '#demo'
|
||||
, url: ctxPath + '/RnProjectBind/getRnProjectList' //数据接口
|
||||
, url: czl_ht_url + '/RnProjectBind/getRnProjectList' //数据接口
|
||||
, method: 'post' //方式默认是get
|
||||
, toolbar: 'default' //开启工具栏,此处显示默认图标,可以自定义模板,详见文档
|
||||
, where: {
|
||||
|
|
@ -154,7 +154,7 @@ layui.use(['table', 'form','notice', 'layNotify'], function () {
|
|||
$.ajax({
|
||||
type: 'POST',
|
||||
async: false, // 默认异步true,false表示同步
|
||||
url: ctxPath + '/RnProjectBind/delRnProjectById',// 请求地址
|
||||
url: czl_ht_url + '/RnProjectBind/delRnProjectById',// 请求地址
|
||||
contentType: "application/x-www-form-urlencoded",
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
data: {'id': data.id,'proId':data.proId}, //获取提交的表单字段
|
||||
|
|
@ -165,7 +165,7 @@ layui.use(['table', 'form','notice', 'layNotify'], function () {
|
|||
setTimeout(function(){
|
||||
layer.closeAll();
|
||||
table.reload('menuTable', {
|
||||
url: ctxPath + '/RnProjectBind/getRnProjectList'
|
||||
url: czl_ht_url + '/RnProjectBind/getRnProjectList'
|
||||
, method: 'post' //方式默认是get
|
||||
, page: true
|
||||
, where: {
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ var volLevelIds = "";
|
|||
let pers = checkPermission();
|
||||
$("#resetBt").click(function(){
|
||||
table.reload('menuTable', {
|
||||
url: ctxPath + '/towerPro/getFirmContentList'
|
||||
url: czl_ht_url + '/towerPro/getFirmContentList'
|
||||
, method: 'post' //方式默认是get
|
||||
, page: true
|
||||
, where: {
|
||||
|
|
@ -38,7 +38,7 @@ $("#searchBt").click(function(){
|
|||
volLevelIds = $("#volLevelIds").val();
|
||||
statusId = $("#statusId").val();
|
||||
table.reload('menuTable', {
|
||||
url: ctxPath + '/towerPro/getFirmContentList'
|
||||
url: czl_ht_url + '/towerPro/getFirmContentList'
|
||||
, method: 'post' //方式默认是get
|
||||
, page: true
|
||||
, where: {
|
||||
|
|
@ -95,7 +95,7 @@ layui.use(['table', 'form','notice', 'layNotify'], function () {
|
|||
//渲染表格
|
||||
table.render({
|
||||
elem: '#demo'
|
||||
, url: ctxPath + '/towerPro/getFirmContentList' //数据接口
|
||||
, url: czl_ht_url + '/towerPro/getFirmContentList' //数据接口
|
||||
, method: 'post' //方式默认是get
|
||||
, toolbar: 'default' //开启工具栏,此处显示默认图标,可以自定义模板,详见文档
|
||||
, where: {} //post请求必须加where ,post请求需要的参数
|
||||
|
|
|
|||
|
|
@ -1,19 +1,19 @@
|
|||
// var ctxPath = getContextPath();
|
||||
let contentPath="czl-web"
|
||||
contentPath = getContextPath();
|
||||
console.log(contentPath);
|
||||
// // var ctxPath = getContextPath();
|
||||
// let contentPath="czl-web"
|
||||
// contentPath = getContextPath();
|
||||
// console.log(contentPath);
|
||||
|
||||
let host=window.location.host;
|
||||
let ctxPath;
|
||||
console.log(window.location.protocol)
|
||||
ctxPath=window.location.protocol+"//"+host+"/czl";
|
||||
ctxPath = window.location.protocol+"//192.168.0.38:42880/czl";
|
||||
// let host=window.location.host;
|
||||
// let ctxPath;
|
||||
// console.log(window.location.protocol)
|
||||
// ctxPath=window.location.protocol+"//"+host+"/czl";
|
||||
// //czl_ht_url = window.location.protocol+"//192.168.0.38:42880/czl";
|
||||
|
||||
|
||||
function getContextPath() {
|
||||
var pathName = document.location.pathname;
|
||||
var index = pathName.substr(1).indexOf("/");
|
||||
var result = pathName.substr(0, index + 1);
|
||||
return result;
|
||||
}
|
||||
// function getContextPath() {
|
||||
// var pathName = document.location.pathname;
|
||||
// var index = pathName.substr(1).indexOf("/");
|
||||
// var result = pathName.substr(0, index + 1);
|
||||
// return result;
|
||||
// }
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ layui.use(['table', 'layer', 'laydate', 'jquery', 'form'], function () {
|
|||
//渲染table
|
||||
table.render({
|
||||
elem: '#demo'
|
||||
, url: ctxPath + '/roles/getMsgContent' //数据接口
|
||||
, url: czl_ht_url + '/roles/getMsgContent' //数据接口
|
||||
, method: 'post' //方式默认是get
|
||||
, toolbar: 'default' //开启工具栏,此处显示默认图标,可以自定义模板,详见文档
|
||||
, where: {} //post请求必须加where ,post请求需要的参数
|
||||
|
|
@ -91,7 +91,7 @@ layui.use(['table', 'layer', 'laydate', 'jquery', 'form'], function () {
|
|||
case "searchBt":
|
||||
oldKeyWord = $("#keyWord").val();
|
||||
table.reload('menuTable', {
|
||||
url: ctxPath + '/roles/getMsgContent'
|
||||
url: czl_ht_url + '/roles/getMsgContent'
|
||||
, method: 'post' //方式默认是get
|
||||
, page: true
|
||||
, where: {
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ function getOrgName(from,id) {
|
|||
$("#orgId").empty();
|
||||
$.ajax({
|
||||
type: 'post',
|
||||
url: ctxPath + '/selectUtil/getBranchName',
|
||||
url: czl_ht_url + '/selectUtil/getBranchName',
|
||||
async: false,
|
||||
success: function (data) {
|
||||
var res = data;
|
||||
|
|
@ -51,7 +51,7 @@ function getAnnouncementType(from,id) {
|
|||
$("#type").empty();
|
||||
$.ajax({
|
||||
type: 'post',
|
||||
url: ctxPath + '/selectUtil/getAnnouncementType',
|
||||
url: czl_ht_url + '/selectUtil/getAnnouncementType',
|
||||
async: false,
|
||||
success: function (data) {
|
||||
var res = data;
|
||||
|
|
@ -81,7 +81,7 @@ function getProjectName(from,id) {
|
|||
$("#projectIds").empty();
|
||||
$.ajax({
|
||||
type: 'post',
|
||||
url: ctxPath + '/selectUtil/getProjectName',
|
||||
url: czl_ht_url + '/selectUtil/getProjectName',
|
||||
async: false,
|
||||
success: function (data) {
|
||||
var res = data;
|
||||
|
|
@ -111,7 +111,7 @@ function getVoltageLevel(from,id) {
|
|||
$("#volLevelIds").empty();
|
||||
$.ajax({
|
||||
type: 'post',
|
||||
url: ctxPath + '/selectUtil/getVoltageLevel',
|
||||
url: czl_ht_url + '/selectUtil/getVoltageLevel',
|
||||
async: false,
|
||||
success: function (data) {
|
||||
var res = data;
|
||||
|
|
@ -141,7 +141,7 @@ function getReleaseData(from,id) {
|
|||
$("#releaseData").empty();
|
||||
$.ajax({
|
||||
type: 'post',
|
||||
url: ctxPath + '/selectUtil/getReleaseData',
|
||||
url: czl_ht_url + '/selectUtil/getReleaseData',
|
||||
async: false,
|
||||
success: function (data) {
|
||||
var res = data;
|
||||
|
|
@ -171,7 +171,7 @@ function getEngineerLevel(from,id) {
|
|||
$("#engineerIds").empty();
|
||||
$.ajax({
|
||||
type: 'post',
|
||||
url: ctxPath + '/selectUtil/getEngineerLevel',
|
||||
url: czl_ht_url + '/selectUtil/getEngineerLevel',
|
||||
async: false,
|
||||
success: function (data) {
|
||||
var res = data;
|
||||
|
|
@ -202,7 +202,7 @@ function getSub(from,id) {
|
|||
$("#subId").empty();
|
||||
$.ajax({
|
||||
type: 'post',
|
||||
url: ctxPath + '/selectUtil/getSub',
|
||||
url: czl_ht_url + '/selectUtil/getSub',
|
||||
async: false,
|
||||
success: function (data) {
|
||||
var res = data;
|
||||
|
|
@ -232,7 +232,7 @@ function getstrandTeamType(from,id,teamTypeId) {
|
|||
$("#standardTeamTypeId").empty();
|
||||
$.ajax({
|
||||
type: 'post',
|
||||
url: ctxPath + '/selectUtil/getStrandTeamType',
|
||||
url: czl_ht_url + '/selectUtil/getStrandTeamType',
|
||||
data:{
|
||||
id:teamTypeId
|
||||
},
|
||||
|
|
@ -265,7 +265,7 @@ function getStandardTeamTypeForSubTeamId(from,subTeamId) {
|
|||
$("#teamTypeId").empty();
|
||||
$.ajax({
|
||||
type: 'post',
|
||||
url: ctxPath + '/selectUtil/getStandardTeamTypeForSubTeamId',
|
||||
url: czl_ht_url + '/selectUtil/getStandardTeamTypeForSubTeamId',
|
||||
async: false,
|
||||
data:{
|
||||
id : subTeamId
|
||||
|
|
@ -289,7 +289,7 @@ function getStandardTeamType(from,id) {
|
|||
$("#teamTypeId").empty();
|
||||
$.ajax({
|
||||
type: 'post',
|
||||
url: ctxPath + '/selectUtil/getStandardTeamType',
|
||||
url: czl_ht_url + '/selectUtil/getStandardTeamType',
|
||||
async: false,
|
||||
success: function (data) {
|
||||
var res = data;
|
||||
|
|
@ -318,7 +318,7 @@ function getTeamType(from,id,volId) {
|
|||
$("#teamTypeId").empty();
|
||||
$.ajax({
|
||||
type: 'post',
|
||||
url: ctxPath + '/selectUtil/getTeamType',
|
||||
url: czl_ht_url + '/selectUtil/getTeamType',
|
||||
async: false,
|
||||
data: {
|
||||
id : volId
|
||||
|
|
@ -378,7 +378,7 @@ function getRole(form,roleId) {
|
|||
$("#roleId").html("");
|
||||
$.ajax({
|
||||
type: 'post',
|
||||
url: ctxPath + '/users/getRole',
|
||||
url: czl_ht_url + '/users/getRole',
|
||||
data: {
|
||||
},
|
||||
async: false,
|
||||
|
|
@ -409,7 +409,7 @@ function getVoltageLevel(from,id) {
|
|||
$("#volLevelIds").empty();
|
||||
$.ajax({
|
||||
type: 'post',
|
||||
url: ctxPath + '/selectUtil/getVoltageLevel',
|
||||
url: czl_ht_url + '/selectUtil/getVoltageLevel',
|
||||
async: false,
|
||||
success: function (data) {
|
||||
var res = data;
|
||||
|
|
@ -439,7 +439,7 @@ function getProcessEquipment(from,id) {
|
|||
$("#dictKey").empty();
|
||||
$.ajax({
|
||||
type: 'post',
|
||||
url: ctxPath + '/selectUtil/getProcessEquipment',
|
||||
url: czl_ht_url + '/selectUtil/getProcessEquipment',
|
||||
async: false,
|
||||
success: function (data) {
|
||||
var res = data;
|
||||
|
|
@ -469,7 +469,7 @@ function getProcessEquipments(from,id) {
|
|||
$("#dictKey").empty();
|
||||
$.ajax({
|
||||
type: 'post',
|
||||
url: ctxPath + '/selectUtil/getProcessEquipments',
|
||||
url: czl_ht_url + '/selectUtil/getProcessEquipments',
|
||||
async: false,
|
||||
success: function (data) {
|
||||
var res = data;
|
||||
|
|
@ -497,7 +497,7 @@ function getSelect(form,Id) {
|
|||
$("#parentId").html("");
|
||||
$.ajax({
|
||||
type: 'post',
|
||||
url: ctxPath + '/selectUtil/getBranchName',
|
||||
url: czl_ht_url + '/selectUtil/getBranchName',
|
||||
data: {
|
||||
},
|
||||
async: false,
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ const token = localStorage.getItem("czl-token");
|
|||
let pers = checkPermission();
|
||||
$("#resetBt").click(function(){
|
||||
table.reload('menuTable', {
|
||||
url: ctxPath + '/subTeam/getSubcontractaList'
|
||||
url: czl_ht_url + '/subTeam/getSubcontractaList'
|
||||
, method: 'post' //方式默认是get
|
||||
, page: true
|
||||
, where: {
|
||||
|
|
@ -29,7 +29,7 @@ $("#resetBt").click(function(){
|
|||
$("#searchBt").click(function(){
|
||||
oldKeyWord = $("#keyWord").val();
|
||||
table.reload('menuTable', {
|
||||
url: ctxPath + '/subTeam/getSubcontractaList'
|
||||
url: czl_ht_url + '/subTeam/getSubcontractaList'
|
||||
, method: 'post' //方式默认是get
|
||||
, page: true
|
||||
, where: {
|
||||
|
|
@ -44,7 +44,7 @@ $("#addBt").click(function(){
|
|||
})
|
||||
$("#exportBt").click(function(){
|
||||
keyWord = $("#keyWord").val();
|
||||
window.location.href = ctxPath + "/subTeam/exportPhysicalCheckResult?"
|
||||
window.location.href = czl_ht_url + "/subTeam/exportPhysicalCheckResult?"
|
||||
+"keyWord=" + keyWord
|
||||
+ "&type=" + '1'
|
||||
+ "&token=" + token; //下载文件
|
||||
|
|
@ -64,7 +64,7 @@ layui.use(['table', 'form','notice', 'layNotify'], function () {
|
|||
//渲染表格
|
||||
table.render({
|
||||
elem: '#demo'
|
||||
, url: ctxPath + '/subTeam/getSubcontractaList' //数据接口
|
||||
, url: czl_ht_url + '/subTeam/getSubcontractaList' //数据接口
|
||||
, method: 'post' //方式默认是get
|
||||
, toolbar: 'default' //开启工具栏,此处显示默认图标,可以自定义模板,详见文档
|
||||
, where: {} //post请求必须加where ,post请求需要的参数
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ const token = localStorage.getItem("czl-token");
|
|||
let pers = checkPermission();
|
||||
$("#resetBt").click(function(){
|
||||
table.reload('menuTable', {
|
||||
url: ctxPath + '/subTeam/getSubTeamsList'
|
||||
url: czl_ht_url + '/subTeam/getSubTeamsList'
|
||||
, method: 'post' //方式默认是get
|
||||
, page: true
|
||||
, where: {
|
||||
|
|
@ -29,7 +29,7 @@ $("#resetBt").click(function(){
|
|||
})
|
||||
$("#searchBt").click(function(){
|
||||
table.reload('menuTable', {
|
||||
url: ctxPath + '/subTeam/getSubTeamsList'
|
||||
url: czl_ht_url + '/subTeam/getSubTeamsList'
|
||||
, method: 'post' //方式默认是get
|
||||
, page: true
|
||||
, where: {
|
||||
|
|
@ -54,7 +54,7 @@ $("#exportBt").click(function(){
|
|||
keyWord = $("#keyWord").val();
|
||||
status = $("#statusId").val();
|
||||
subTeamTypeId = $("#subTeamTypeId").val();
|
||||
window.location.href = ctxPath + "/subTeam/exportPhysicalCheckResults?"
|
||||
window.location.href = czl_ht_url + "/subTeam/exportPhysicalCheckResults?"
|
||||
+"keyWord=" + keyWord
|
||||
+ "&status=" + status
|
||||
+ "&subTeamTypeId=" + subTeamTypeId
|
||||
|
|
@ -74,7 +74,7 @@ layui.use(['table', 'form','notice', 'layNotify'], function () {
|
|||
//渲染表格
|
||||
table.render({
|
||||
elem: '#demo'
|
||||
, url: ctxPath + '/subTeam/getSubTeamsList' //数据接口
|
||||
, url: czl_ht_url + '/subTeam/getSubTeamsList' //数据接口
|
||||
|
||||
, method: 'post' //方式默认是get
|
||||
, toolbar: 'default' //开启工具栏,此处显示默认图标,可以自定义模板,详见文档
|
||||
|
|
@ -171,7 +171,7 @@ layui.use(['table', 'form','notice', 'layNotify'], function () {
|
|||
let status = isChecked ? 1 : 0;
|
||||
|
||||
$.ajax({
|
||||
url: ctxPath + '/subTeam/updateSubTeamStatus',
|
||||
url: czl_ht_url + '/subTeam/updateSubTeamStatus',
|
||||
type: 'POST',
|
||||
data: { id: value, status: status },
|
||||
success: function(res) {
|
||||
|
|
@ -292,7 +292,7 @@ function ajaxCommonMethod(url,data,success,error){
|
|||
$.ajax({
|
||||
type: 'POST',
|
||||
async: false, // 默认异步true,false表示同步
|
||||
url: ctxPath + url,// 请求地址
|
||||
url: czl_ht_url + url,// 请求地址
|
||||
contentType: "application/x-www-form-urlencoded",
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
data: data, //获取提交的表单字段
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ layui.use(['element', 'layer','form','table','soulTable'], function(){
|
|||
$.ajax({
|
||||
type: 'POST',
|
||||
async: false, // 默认异步true,false表示同步
|
||||
url: ctxPath + "/selectUtil/getDataDictByDickVal",// 请求地址
|
||||
url: czl_ht_url + "/selectUtil/getDataDictByDickVal",// 请求地址
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
data: {"dictKey": "own_type"}, //获取提交的表单字段
|
||||
success: function (data) {
|
||||
|
|
@ -95,7 +95,7 @@ layui.use(['element', 'layer','form','table','soulTable'], function(){
|
|||
$.ajax({
|
||||
type: 'POST',
|
||||
async: false, // 默认异步true,false表示同步
|
||||
url: ctxPath + "/teamSet/saveDataDict",// 请求地址
|
||||
url: czl_ht_url + "/teamSet/saveDataDict",// 请求地址
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
data: {stringKey:JSON.stringify(tableData),resourceSetId:resourceSetId,dataDictType:"own_type"}, //获取提交的表单字段
|
||||
success: function (data) {
|
||||
|
|
@ -140,7 +140,7 @@ layui.use(['element', 'layer','form','table','soulTable'], function(){
|
|||
$.ajax({
|
||||
type: 'POST',
|
||||
async: false, // 默认异步true,false表示同步
|
||||
url: ctxPath + "/teamSet/delDataDict",// 请求地址
|
||||
url: czl_ht_url + "/teamSet/delDataDict",// 请求地址
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
data: {id:id}, //获取提交的表单字段
|
||||
success: function (data) {
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ layui.use(['table', 'form','notice', 'layNotify'], function () {
|
|||
$.ajax({
|
||||
type: 'POST',
|
||||
async: false, // 默认异步true,false表示同步
|
||||
url: ctxPath + "/teamSet/addBranchOfficeTeamSet",// 请求地址
|
||||
url: czl_ht_url + "/teamSet/addBranchOfficeTeamSet",// 请求地址
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
data: {"stringKey":JSON.stringify(tableData),
|
||||
"resourceName":resourceName,
|
||||
|
|
@ -117,7 +117,7 @@ function createTable() {
|
|||
$.ajax({
|
||||
type: 'POST',
|
||||
async: false, // 默认异步true,false表示同步
|
||||
url: ctxPath + "/teamSet/getDataDictByDickValModify",// 请求地址
|
||||
url: czl_ht_url + "/teamSet/getDataDictByDickValModify",// 请求地址
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
data: {"dictKey":"own_type","id":resourceSetId}, //获取提交的表单字段
|
||||
success: function (data) {
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ layui.use(['table', 'form','notice', 'layNotify'], function () {
|
|||
$.ajax({
|
||||
type: 'POST',
|
||||
async: false, // 默认异步true,false表示同步
|
||||
url: ctxPath + "/teamSet/getTeamByTeamTypeAndName",// 请求地址
|
||||
url: czl_ht_url + "/teamSet/getTeamByTeamTypeAndName",// 请求地址
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
data: {"resourceName":resourceName,
|
||||
"groupType":teamType,
|
||||
|
|
@ -62,7 +62,7 @@ layui.use(['table', 'form','notice', 'layNotify'], function () {
|
|||
$.ajax({
|
||||
type: 'POST',
|
||||
async: false, // 默认异步true,false表示同步
|
||||
url: ctxPath + "/teamSet/addBranchOfficeTeamSet",// 请求地址
|
||||
url: czl_ht_url + "/teamSet/addBranchOfficeTeamSet",// 请求地址
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
data: {"stringKey":JSON.stringify(tableData),
|
||||
"resourceName":resourceName,
|
||||
|
|
@ -129,7 +129,7 @@ function createTable() {
|
|||
$.ajax({
|
||||
type: 'POST',
|
||||
async: false, // 默认异步true,false表示同步
|
||||
url: ctxPath + "/selectUtil/getDataDictByDickVal",// 请求地址
|
||||
url: czl_ht_url + "/selectUtil/getDataDictByDickVal",// 请求地址
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
data: {"dictKey":"own_type"}, //获取提交的表单字段
|
||||
success: function (data) {
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ layui.use(['table', 'form','notice', 'layNotify'], function () {
|
|||
});
|
||||
$("#resetBt").click(function(){
|
||||
table.reload('menuTable', {
|
||||
url: ctxPath + '/teamSet/getTeamSetByType'
|
||||
url: czl_ht_url + '/teamSet/getTeamSetByType'
|
||||
, method: 'post' //方式默认是get
|
||||
, page: true
|
||||
, where: {
|
||||
|
|
@ -65,7 +65,7 @@ layui.use(['table', 'form','notice', 'layNotify'], function () {
|
|||
//渲染表格
|
||||
table.render({
|
||||
elem: '#demo'
|
||||
, url: ctxPath + '/teamSet/getTeamSetByType' //数据接口
|
||||
, url: czl_ht_url + '/teamSet/getTeamSetByType' //数据接口
|
||||
|
||||
, method: 'post' //方式默认是get
|
||||
, toolbar: 'default' //开启工具栏,此处显示默认图标,可以自定义模板,详见文档
|
||||
|
|
@ -125,7 +125,7 @@ layui.use(['table', 'form','notice', 'layNotify'], function () {
|
|||
// alert("value="+value+" ,status="+status);
|
||||
// 发送请求到后端更新数据库中的状态字段
|
||||
$.ajax({
|
||||
url: ctxPath + '/teamSet/updateTeamSetStatus',
|
||||
url: czl_ht_url + '/teamSet/updateTeamSetStatus',
|
||||
type: 'POST',
|
||||
data: { resourceSetId: value, isEnable: status },
|
||||
success: function(res) {
|
||||
|
|
@ -193,7 +193,7 @@ layui.use(['table', 'form','notice', 'layNotify'], function () {
|
|||
$.ajax({
|
||||
type: 'POST',
|
||||
async: false, // 默认异步true,false表示同步
|
||||
url: ctxPath + '/teamSet/delTeamSet',// 请求地址
|
||||
url: czl_ht_url + '/teamSet/delTeamSet',// 请求地址
|
||||
contentType: "application/x-www-form-urlencoded",
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
data: {'resourceSetId': resourceSetId,'deleteType':'3'}, //获取提交的表单字段
|
||||
|
|
@ -237,7 +237,7 @@ function query(){
|
|||
let keyWord = $("#keyWord").val();
|
||||
let teamType = $("#teamType").find("option:selected").val();//获取选中文本
|
||||
table.reload('menuTable', {
|
||||
url: ctxPath + '/teamSet/getTeamSetByType'
|
||||
url: czl_ht_url + '/teamSet/getTeamSetByType'
|
||||
, method: 'post' //方式默认是get
|
||||
, page: true
|
||||
, where: {
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ function addSubTableMessage() {
|
|||
$.ajax({
|
||||
type: 'POST',
|
||||
async: false, // 默认异步true,false表示同步
|
||||
url: ctxPath + "/selectUtil/getDataDictByDickVal",// 请求地址
|
||||
url: czl_ht_url + "/selectUtil/getDataDictByDickVal",// 请求地址
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
data: {"dictKey": "sub_type"}, //获取提交的表单字段
|
||||
success: function (data) {
|
||||
|
|
@ -94,7 +94,7 @@ function addSubTableMessage() {
|
|||
$.ajax({
|
||||
type: 'POST',
|
||||
async: false, // 默认异步true,false表示同步
|
||||
url: ctxPath + "/teamSet/saveDataDict",// 请求地址
|
||||
url: czl_ht_url + "/teamSet/saveDataDict",// 请求地址
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
data: {stringKey:JSON.stringify(tableData),resourceSetId:resourceSetId,dataDictType:"sub_type"}, //获取提交的表单字段
|
||||
success: function (data) {
|
||||
|
|
@ -139,7 +139,7 @@ function addSubTableMessage() {
|
|||
$.ajax({
|
||||
type: 'POST',
|
||||
async: false, // 默认异步true,false表示同步
|
||||
url: ctxPath + "/teamSet/delDataDict",// 请求地址
|
||||
url: czl_ht_url + "/teamSet/delDataDict",// 请求地址
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
data: {id:id}, //获取提交的表单字段
|
||||
success: function (data) {
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ layui.use(['table', 'form','notice', 'layNotify'], function () {
|
|||
$.ajax({
|
||||
type: 'POST',
|
||||
async: false, // 默认异步true,false表示同步
|
||||
url: ctxPath + "/teamSet/addBranchOfficeTeamSet",// 请求地址
|
||||
url: czl_ht_url + "/teamSet/addBranchOfficeTeamSet",// 请求地址
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
data: {"stringKey":JSON.stringify(tableData),
|
||||
"resourceName":resourceName,
|
||||
|
|
@ -119,7 +119,7 @@ function createTable() {
|
|||
$.ajax({
|
||||
type: 'POST',
|
||||
async: false, // 默认异步true,false表示同步
|
||||
url: ctxPath + "/teamSet/getDataDictByDickValModify",// 请求地址
|
||||
url: czl_ht_url + "/teamSet/getDataDictByDickValModify",// 请求地址
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
data: {"dictKey":"sub_type","id":resourceSetId}, //获取提交的表单字段
|
||||
success: function (data) {
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ layui.use(['table', 'form','notice', 'layNotify'], function () {
|
|||
$.ajax({
|
||||
type: 'POST',
|
||||
async: false, // 默认异步true,false表示同步
|
||||
url: ctxPath + "/teamSet/getTeamByTeamTypeAndName",// 请求地址
|
||||
url: czl_ht_url + "/teamSet/getTeamByTeamTypeAndName",// 请求地址
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
data: {"resourceName":resourceName,
|
||||
"groupType":teamType,
|
||||
|
|
@ -62,7 +62,7 @@ layui.use(['table', 'form','notice', 'layNotify'], function () {
|
|||
$.ajax({
|
||||
type: 'POST',
|
||||
async: false, // 默认异步true,false表示同步
|
||||
url: ctxPath + "/teamSet/addBranchOfficeTeamSet",// 请求地址
|
||||
url: czl_ht_url + "/teamSet/addBranchOfficeTeamSet",// 请求地址
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
data: {"stringKey":JSON.stringify(tableData),
|
||||
"resourceName":resourceName,
|
||||
|
|
@ -131,7 +131,7 @@ function createTable() {
|
|||
$.ajax({
|
||||
type: 'POST',
|
||||
async: false, // 默认异步true,false表示同步
|
||||
url: ctxPath + "/selectUtil/getDataDictByDickVal",// 请求地址
|
||||
url: czl_ht_url + "/selectUtil/getDataDictByDickVal",// 请求地址
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
data: {"dictKey":"sub_type"}, //获取提交的表单字段
|
||||
success: function (data) {
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ layui.use(['table', 'form','notice', 'layNotify'], function () {
|
|||
});
|
||||
$("#resetBt").click(function(){
|
||||
table.reload('menuTable', {
|
||||
url: ctxPath + '/teamSet/getTeamSetByType'
|
||||
url: czl_ht_url + '/teamSet/getTeamSetByType'
|
||||
, method: 'post' //方式默认是get
|
||||
, page: true
|
||||
, where: {
|
||||
|
|
@ -65,7 +65,7 @@ layui.use(['table', 'form','notice', 'layNotify'], function () {
|
|||
//渲染表格
|
||||
table.render({
|
||||
elem: '#demo'
|
||||
, url: ctxPath + '/teamSet/getTeamSetByType' //数据接口
|
||||
, url: czl_ht_url + '/teamSet/getTeamSetByType' //数据接口
|
||||
|
||||
, method: 'post' //方式默认是get
|
||||
, toolbar: 'default' //开启工具栏,此处显示默认图标,可以自定义模板,详见文档
|
||||
|
|
@ -125,7 +125,7 @@ layui.use(['table', 'form','notice', 'layNotify'], function () {
|
|||
// alert("value="+value+" ,status="+status);
|
||||
// 发送请求到后端更新数据库中的状态字段
|
||||
$.ajax({
|
||||
url: ctxPath + '/teamSet/updateTeamSetStatus',
|
||||
url: czl_ht_url + '/teamSet/updateTeamSetStatus',
|
||||
type: 'POST',
|
||||
data: { resourceSetId: value, isEnable: status },
|
||||
success: function(res) {
|
||||
|
|
@ -193,7 +193,7 @@ layui.use(['table', 'form','notice', 'layNotify'], function () {
|
|||
$.ajax({
|
||||
type: 'POST',
|
||||
async: false, // 默认异步true,false表示同步
|
||||
url: ctxPath + '/teamSet/delTeamSet',// 请求地址
|
||||
url: czl_ht_url + '/teamSet/delTeamSet',// 请求地址
|
||||
contentType: "application/x-www-form-urlencoded",
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
data: {'resourceSetId': resourceSetId,'deleteType':'2'}, //获取提交的表单字段
|
||||
|
|
@ -237,7 +237,7 @@ function query(){
|
|||
let keyWord = $("#keyWord").val();
|
||||
let teamType = $("#teamType").find("option:selected").val();//获取选中文本
|
||||
table.reload('menuTable', {
|
||||
url: ctxPath + '/teamSet/getTeamSetByType'
|
||||
url: czl_ht_url + '/teamSet/getTeamSetByType'
|
||||
, method: 'post' //方式默认是get
|
||||
, page: true
|
||||
, where: {
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ function addUnitTableMessage() {
|
|||
$.ajax({
|
||||
type: 'POST',
|
||||
async: false, // 默认异步true,false表示同步
|
||||
url: ctxPath + "/selectUtil/getDataDictByDickVal",// 请求地址
|
||||
url: czl_ht_url + "/selectUtil/getDataDictByDickVal",// 请求地址
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
data: {"dictKey": "org_type"}, //获取提交的表单字段
|
||||
success: function (data) {
|
||||
|
|
@ -95,7 +95,7 @@ function addUnitTableMessage() {
|
|||
$.ajax({
|
||||
type: 'POST',
|
||||
async: false, // 默认异步true,false表示同步
|
||||
url: ctxPath + "/teamSet/saveDataDict",// 请求地址
|
||||
url: czl_ht_url + "/teamSet/saveDataDict",// 请求地址
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
data: {stringKey:JSON.stringify(tableData),resourceSetId:resourceSetId,dataDictType:"org_type"}, //获取提交的表单字段
|
||||
success: function (data) {
|
||||
|
|
@ -139,7 +139,7 @@ function addUnitTableMessage() {
|
|||
$.ajax({
|
||||
type: 'POST',
|
||||
async: false, // 默认异步true,false表示同步
|
||||
url: ctxPath + "/teamSet/delDataDict",// 请求地址
|
||||
url: czl_ht_url + "/teamSet/delDataDict",// 请求地址
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
data: {id:id}, //获取提交的表单字段
|
||||
success: function (data) {
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ layui.use(['table', 'form','notice', 'layNotify'], function () {
|
|||
$.ajax({
|
||||
type: 'POST',
|
||||
async: false, // 默认异步true,false表示同步
|
||||
url: ctxPath + "/teamSet/addBranchOfficeTeamSet",// 请求地址
|
||||
url: czl_ht_url + "/teamSet/addBranchOfficeTeamSet",// 请求地址
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
data: {"stringKey":JSON.stringify(tableData),
|
||||
"resourceName":resourceName,
|
||||
|
|
@ -115,7 +115,7 @@ function createTable() {
|
|||
$.ajax({
|
||||
type: 'POST',
|
||||
async: false, // 默认异步true,false表示同步
|
||||
url: ctxPath + "/teamSet/getDataDictByDickValModify",// 请求地址
|
||||
url: czl_ht_url + "/teamSet/getDataDictByDickValModify",// 请求地址
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
data: {"dictKey":"org_type","id":resourceSetId}, //获取提交的表单字段
|
||||
success: function (data) {
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ layui.use(['table', 'form','notice', 'layNotify'], function () {
|
|||
$.ajax({
|
||||
type: 'POST',
|
||||
async: false, // 默认异步true,false表示同步
|
||||
url: ctxPath + "/teamSet/getTeamByLevelAndName",// 请求地址
|
||||
url: czl_ht_url + "/teamSet/getTeamByLevelAndName",// 请求地址
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
data: {"resourceName":resourceName,
|
||||
"volLevel":volLevelIds,
|
||||
|
|
@ -60,7 +60,7 @@ layui.use(['table', 'form','notice', 'layNotify'], function () {
|
|||
$.ajax({
|
||||
type: 'POST',
|
||||
async: false, // 默认异步true,false表示同步
|
||||
url: ctxPath + "/teamSet/addBranchOfficeTeamSet",// 请求地址
|
||||
url: czl_ht_url + "/teamSet/addBranchOfficeTeamSet",// 请求地址
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
data: {"stringKey":JSON.stringify(tableData),
|
||||
"resourceName":resourceName,
|
||||
|
|
@ -128,7 +128,7 @@ function createTable() {
|
|||
$.ajax({
|
||||
type: 'POST',
|
||||
async: false, // 默认异步true,false表示同步
|
||||
url: ctxPath + "/selectUtil/getDataDictByDickVal",// 请求地址
|
||||
url: czl_ht_url + "/selectUtil/getDataDictByDickVal",// 请求地址
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
data: {"dictKey":"org_type"}, //获取提交的表单字段
|
||||
success: function (data) {
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ layui.use(['table', 'form','notice', 'layNotify'], function () {
|
|||
});
|
||||
$("#resetBt").click(function(){
|
||||
table.reload('menuTable', {
|
||||
url: ctxPath + '/teamSet/getTeamSetByType'
|
||||
url: czl_ht_url + '/teamSet/getTeamSetByType'
|
||||
, method: 'post' //方式默认是get
|
||||
, page: true
|
||||
, where: {
|
||||
|
|
@ -65,7 +65,7 @@ layui.use(['table', 'form','notice', 'layNotify'], function () {
|
|||
//渲染表格
|
||||
table.render({
|
||||
elem: '#demo'
|
||||
, url: ctxPath + '/teamSet/getTeamSetByType' //数据接口
|
||||
, url: czl_ht_url + '/teamSet/getTeamSetByType' //数据接口
|
||||
|
||||
, method: 'post' //方式默认是get
|
||||
, toolbar: 'default' //开启工具栏,此处显示默认图标,可以自定义模板,详见文档
|
||||
|
|
@ -126,7 +126,7 @@ layui.use(['table', 'form','notice', 'layNotify'], function () {
|
|||
// alert("value="+value+" ,status="+status);
|
||||
// 发送请求到后端更新数据库中的状态字段
|
||||
$.ajax({
|
||||
url: ctxPath + '/teamSet/updateTeamSetStatus',
|
||||
url: czl_ht_url + '/teamSet/updateTeamSetStatus',
|
||||
type: 'POST',
|
||||
data: { resourceSetId: value, isEnable: status },
|
||||
success: function(res) {
|
||||
|
|
@ -189,7 +189,7 @@ layui.use(['table', 'form','notice', 'layNotify'], function () {
|
|||
$.ajax({
|
||||
type: 'POST',
|
||||
async: false, // 默认异步true,false表示同步
|
||||
url: ctxPath + '/teamSet/delTeamSet',// 请求地址
|
||||
url: czl_ht_url + '/teamSet/delTeamSet',// 请求地址
|
||||
contentType: "application/x-www-form-urlencoded",
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
data: {'resourceSetId': resourceSetId,'deleteType':'1'}, //获取提交的表单字段
|
||||
|
|
@ -233,7 +233,7 @@ function query(){
|
|||
let keyWord = $("#keyWord").val();
|
||||
let volLevelIds = $("#volLevelIds").find("option:selected").text();//获取选中文本
|
||||
table.reload('menuTable', {
|
||||
url: ctxPath + '/teamSet/getTeamSetByType'
|
||||
url: czl_ht_url + '/teamSet/getTeamSetByType'
|
||||
, method: 'post' //方式默认是get
|
||||
, page: true
|
||||
, where: {
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ layui.use(function(){
|
|||
var tree = layui.tree;
|
||||
$.ajax({
|
||||
type: 'post',
|
||||
url: ctxPath + '/announcement/tree',//数据接口
|
||||
url: czl_ht_url + '/announcement/tree',//数据接口
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
async: true,
|
||||
data: {},
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ layui.use(['table', 'layer', 'laydate', 'jquery', 'form'], function () {
|
|||
//渲染table
|
||||
table.render({
|
||||
elem: '#demo'
|
||||
, url: ctxPath + '/users/getMsgContent' //数据接口
|
||||
, url: czl_ht_url + '/users/getMsgContent' //数据接口
|
||||
, method: 'post' //方式默认是get
|
||||
, toolbar: 'default' //开启工具栏,此处显示默认图标,可以自定义模板,详见文档
|
||||
, where: {} //post请求必须加where ,post请求需要的参数
|
||||
|
|
@ -62,7 +62,7 @@ layui.use(['table', 'layer', 'laydate', 'jquery', 'form'], function () {
|
|||
// }
|
||||
// 发送请求到后端更新数据库中的状态字段
|
||||
$.ajax({
|
||||
url: ctxPath + '/users/switchListen',
|
||||
url: czl_ht_url + '/users/switchListen',
|
||||
type: 'POST',
|
||||
data: { id: value, status: status },
|
||||
success: function(res) {
|
||||
|
|
@ -113,7 +113,7 @@ layui.use(['table', 'layer', 'laydate', 'jquery', 'form'], function () {
|
|||
oldDepartment = $("#department").val();
|
||||
oldDepartmentId = $("#departmentId").val();
|
||||
table.reload('menuTable', {
|
||||
url: ctxPath + '/users/getMsgContent'
|
||||
url: czl_ht_url + '/users/getMsgContent'
|
||||
, method: 'post' //方式默认是get
|
||||
, page: true
|
||||
, where: {
|
||||
|
|
@ -140,7 +140,7 @@ layui.use(['table', 'layer', 'laydate', 'jquery', 'form'], function () {
|
|||
$("#department").val("点击进行部门选择");
|
||||
$("#departmentId").val("");
|
||||
table.reload('menuTable', {
|
||||
url: ctxPath + '/users/getMsgContent'
|
||||
url: czl_ht_url + '/users/getMsgContent'
|
||||
, method: 'post' //方式默认是get
|
||||
, page: true
|
||||
, where: {
|
||||
|
|
@ -214,7 +214,7 @@ var mapinfo={};
|
|||
function loadOrgTree(){
|
||||
$.ajax({
|
||||
type: "post",
|
||||
url: ctxPath + "/users/getDepartmentTree",
|
||||
url: czl_ht_url + "/users/getDepartmentTree",
|
||||
data: {},
|
||||
dataType: "json",
|
||||
success: function(data) {
|
||||
|
|
|
|||
|
|
@ -94,6 +94,7 @@
|
|||
<script src="js/jquery/jquery-3.6.0.js"></script>
|
||||
<script src="js/layui2.7.6/layui.js"></script>
|
||||
<script src="js/aes.js"></script>
|
||||
<script type="text/javascript" src="../public/public.js"></script>
|
||||
<script src="js/publicJs.js"></script>
|
||||
<script type="text/javascript">
|
||||
layui.use('layer', function () {
|
||||
|
|
@ -132,7 +133,7 @@
|
|||
// if (token != null && token.trim().length != 0) {
|
||||
// $.ajax({
|
||||
// type: 'get',
|
||||
// url: ctxPath + '/users/current?token=' + token,
|
||||
// url: czl_ht_url + '/users/current?token=' + token,
|
||||
// success: function (data) {
|
||||
// localStorage.setItem("userId", data.id);
|
||||
// window.location.href="index.html";
|
||||
|
|
@ -152,7 +153,7 @@
|
|||
|
||||
//获取验证码
|
||||
function getVerifyCode() {
|
||||
var url = ctxPath + "/getCode/vCode?" + Math.random();
|
||||
var url = czl_ht_url + "/getCode/vCode?" + Math.random();
|
||||
$.ajax({
|
||||
//请求方式
|
||||
type: "GET",
|
||||
|
|
@ -192,7 +193,7 @@
|
|||
} else {
|
||||
$.ajax({
|
||||
type: 'post',
|
||||
url: ctxPath + '/login',
|
||||
url: czl_ht_url + '/login',
|
||||
data: {
|
||||
username: encrypt(username),
|
||||
password: encrypt(password),
|
||||
|
|
|
|||
|
|
@ -205,6 +205,7 @@
|
|||
<script src="../../layui-v2.8.18/layui/layui.js"></script>
|
||||
<script type="text/javascript" src="../../js/jq.js"></script>
|
||||
<script src="../../js/common_methon.js"></script>
|
||||
<script type="text/javascript" src="../../../public/public.js"></script>
|
||||
<script type="text/javascript" src="../../js/publicJs.js"></script>
|
||||
<script type="text/javascript" src="../../js/select.js"></script>
|
||||
<script type="text/javascript" src="../../js/my/permission.js"></script>
|
||||
|
|
@ -272,7 +273,7 @@
|
|||
*/
|
||||
$.ajax({
|
||||
type: 'post',
|
||||
url: ctxPath + '/announcement/tree',//数据接口
|
||||
url: czl_ht_url + '/announcement/tree',//数据接口
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
async: true,
|
||||
data: {},
|
||||
|
|
@ -401,7 +402,7 @@
|
|||
var code = 'success';
|
||||
$.ajax({
|
||||
type: 'post',
|
||||
url: ctxPath + '/announcement/checkTitle',
|
||||
url: czl_ht_url + '/announcement/checkTitle',
|
||||
dataType: 'text', // 服务器返回数据类型
|
||||
async: false,
|
||||
data: {
|
||||
|
|
@ -430,7 +431,7 @@
|
|||
var uploadListIns = upload.render({
|
||||
elem: '#ID-upload-demo-files',
|
||||
elemList: $('#ID-upload-demo-files-list'), // 列表元素对象
|
||||
url: ctxPath + '/announcement/upload', // 实际使用时改成您自己的上传接口即可。
|
||||
url: czl_ht_url + '/announcement/upload', // 实际使用时改成您自己的上传接口即可。
|
||||
accept: 'file', // 只允许上传文件
|
||||
acceptMime: '.rar,.zip,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/pdf',
|
||||
exts: 'xls|xlsx|doc|docx|pdf|pptx', // 只允许上传指定格式的文件
|
||||
|
|
@ -516,7 +517,7 @@
|
|||
ctrUpdateTable = table.render({
|
||||
elem: '#test_demo'
|
||||
, test: '#test_demo'
|
||||
, url: ctxPath + '/announcement/getUserList' //数据接口
|
||||
, url: czl_ht_url + '/announcement/getUserList' //数据接口
|
||||
, method: 'post' //方式默认是get
|
||||
, toolbar: 'default' //开启工具栏,此处显示默认图标,可以自定义模板,详见文档
|
||||
, where: {
|
||||
|
|
@ -655,7 +656,7 @@
|
|||
userId: userIdArray.length == 0 ? "" : userIdArray.join(","),
|
||||
}
|
||||
|
||||
var formUrl = ctxPath + "/announcement/addAnnouncementInfo";
|
||||
var formUrl = czl_ht_url + "/announcement/addAnnouncementInfo";
|
||||
// 加载提示
|
||||
var addLoadingMsg = top.layer.msg('数据上传中,请稍候...', {
|
||||
icon: 16,
|
||||
|
|
|
|||
|
|
@ -79,6 +79,7 @@
|
|||
<script src="../../layui-v2.8.18/layui/layui.js"></script>
|
||||
<script type="text/javascript" src="../../js/jq.js"></script>
|
||||
<script src="../../js/common_methon.js"></script>
|
||||
<script type="text/javascript" src="../../../public/public.js"></script>
|
||||
<script type="text/javascript" src="../../js/publicJs.js"></script>
|
||||
<script type="text/javascript" src="../../js/select.js"></script>
|
||||
<script type="text/javascript" src="../../js/my/permission.js"></script>
|
||||
|
|
@ -105,7 +106,7 @@
|
|||
layNotify = layui.layNotify;
|
||||
$.ajax({
|
||||
type: 'post',
|
||||
url: ctxPath + '/announcement/personTree',//数据接口
|
||||
url: czl_ht_url + '/announcement/personTree',//数据接口
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
async: true,
|
||||
data: {
|
||||
|
|
|
|||
|
|
@ -97,6 +97,7 @@
|
|||
<script src="../../layui-v2.8.18/layui/layui.js"></script>
|
||||
<script type="text/javascript" src="../../js/jq.js"></script>
|
||||
<script src="../../js/common_methon.js"></script>
|
||||
<script type="text/javascript" src="../../../public/public.js"></script>
|
||||
<script type="text/javascript" src="../../js/publicJs.js"></script>
|
||||
<script type="text/javascript" src="../../js/select.js"></script>
|
||||
<script type="text/javascript" src="../../js/my/permission.js"></script>
|
||||
|
|
@ -128,7 +129,7 @@
|
|||
function getData() {
|
||||
$.ajax({
|
||||
type: 'post',
|
||||
url: ctxPath + '/announcement/getAnnouncementView',
|
||||
url: czl_ht_url + '/announcement/getAnnouncementView',
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
async: false,
|
||||
data: {
|
||||
|
|
@ -157,7 +158,7 @@
|
|||
//渲染表格
|
||||
table.render({
|
||||
elem: '#fileDemo'
|
||||
, url: ctxPath + '/announcement/getFileList' //数据接口
|
||||
, url: czl_ht_url + '/announcement/getFileList' //数据接口
|
||||
, method: 'post' //方式默认是get
|
||||
, toolbar: 'default' //开启工具栏,此处显示默认图标,可以自定义模板,详见文档
|
||||
, where: {
|
||||
|
|
@ -211,14 +212,14 @@
|
|||
if (data.filePath.indexOf("http") != -1) {
|
||||
truePath = data.filePath;
|
||||
} else {
|
||||
truePath = ctxPath + "/statics/" + data.filePath;
|
||||
truePath = czl_ht_url + "/statics/" + data.filePath;
|
||||
}
|
||||
var fileName = data.fileName;
|
||||
var data = {
|
||||
fileName: fileName,
|
||||
filePath: data.filePath,
|
||||
}
|
||||
var formUrl = ctxPath + "/announcement/insertFileDownLoadRecord";
|
||||
var formUrl = czl_ht_url + "/announcement/insertFileDownLoadRecord";
|
||||
// 加载提示
|
||||
$.ajax({
|
||||
type: 'post',
|
||||
|
|
|
|||
|
|
@ -66,6 +66,7 @@
|
|||
<script src="../../layui-v2.8.18/layui/layui.js"></script>
|
||||
<script type="text/javascript" src="../../js/jq.js"></script>
|
||||
<script src="../../js/common_methon.js"></script>
|
||||
<script type="text/javascript" src="../../../public/public.js"></script>
|
||||
<script type="text/javascript" src="../../js/publicJs.js"></script>
|
||||
<script type="text/javascript" src="../../js/select.js"></script>
|
||||
<script type="text/javascript" src="../../js/my/permission.js"></script>
|
||||
|
|
@ -85,7 +86,7 @@
|
|||
var util;
|
||||
$("#resetBt").click(function(){
|
||||
table.reload('menuTable', {
|
||||
url: ctxPath + '/announcement/getAnnouncementList'
|
||||
url: czl_ht_url + '/announcement/getAnnouncementList'
|
||||
, method: 'post' //方式默认是get
|
||||
, page: true
|
||||
, where: {
|
||||
|
|
@ -100,7 +101,7 @@
|
|||
})
|
||||
$("#searchBt").click(function(){
|
||||
table.reload('menuTable', {
|
||||
url: ctxPath + '/announcement/getAnnouncementList'
|
||||
url: czl_ht_url + '/announcement/getAnnouncementList'
|
||||
, method: 'post' //方式默认是get
|
||||
, page: true
|
||||
, where: {
|
||||
|
|
@ -132,7 +133,7 @@
|
|||
//渲染表格
|
||||
table.render({
|
||||
elem: '#demo'
|
||||
, url: ctxPath + '/announcement/getAnnouncementList' //数据接口
|
||||
, url: czl_ht_url + '/announcement/getAnnouncementList' //数据接口
|
||||
|
||||
, method: 'post' //方式默认是get
|
||||
, toolbar: 'default' //开启工具栏,此处显示默认图标,可以自定义模板,详见文档
|
||||
|
|
@ -310,7 +311,7 @@
|
|||
$.ajax({
|
||||
type: 'POST',
|
||||
async: false, // 默认异步true,false表示同步
|
||||
url: ctxPath + url,// 请求地址
|
||||
url: czl_ht_url + url,// 请求地址
|
||||
contentType: "application/x-www-form-urlencoded",
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
data: data, //获取提交的表单字段
|
||||
|
|
|
|||
|
|
@ -40,6 +40,7 @@
|
|||
<script src="../../layui-v2.8.18/layui/layui.js"></script>
|
||||
<script type="text/javascript" src="../../js/jq.js"></script>
|
||||
<script src="../../js/common_methon.js"></script>
|
||||
<script type="text/javascript" src="../../../public/public.js"></script>
|
||||
<script type="text/javascript" src="../../js/publicJs.js"></script>
|
||||
<script type="text/javascript" src="../../js/select.js"></script>
|
||||
<script type="text/javascript" src="../../js/my/permission.js"></script>
|
||||
|
|
@ -109,7 +110,7 @@
|
|||
$.ajax({
|
||||
type: 'POST',
|
||||
async: false, // 默认异步true,false表示同步
|
||||
url: ctxPath + "/announcement/delAnnouncementTypeById",// 请求地址
|
||||
url: czl_ht_url + "/announcement/delAnnouncementTypeById",// 请求地址
|
||||
contentType: "application/x-www-form-urlencoded",
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
data: {
|
||||
|
|
@ -164,7 +165,7 @@
|
|||
function showTable() {
|
||||
$.ajax({
|
||||
type: 'post',
|
||||
url: ctxPath + '/announcement/getAnnouncementType',//数据接口
|
||||
url: czl_ht_url + '/announcement/getAnnouncementType',//数据接口
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
async: true,
|
||||
data: {},
|
||||
|
|
@ -207,7 +208,7 @@
|
|||
finalData: JSON.stringify(finalData),
|
||||
}
|
||||
var tip = "操作";
|
||||
var formUrl = ctxPath + "/announcement/categoricalManagementOfOperations";
|
||||
var formUrl = czl_ht_url + "/announcement/categoricalManagementOfOperations";
|
||||
// 加载提示
|
||||
var addLoadingMsg = top.layer.msg('数据上传中,请稍候...', {
|
||||
icon: 16,
|
||||
|
|
@ -258,7 +259,7 @@
|
|||
$.ajax({
|
||||
type: 'POST',
|
||||
async: false, // 默认异步true,false表示同步
|
||||
url: ctxPath + url,// 请求地址
|
||||
url: czl_ht_url + url,// 请求地址
|
||||
contentType: "application/x-www-form-urlencoded",
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
data: data, //获取提交的表单字段
|
||||
|
|
|
|||
|
|
@ -28,6 +28,7 @@
|
|||
<script src="../../layui-v2.8.18/layui/layui.js"></script>
|
||||
<script type="text/javascript" src="../../js/jq.js"></script>
|
||||
<script src="../../js/common_methon.js"></script>
|
||||
<script type="text/javascript" src="../../../public/public.js"></script>
|
||||
<script type="text/javascript" src="../../js/publicJs.js"></script>
|
||||
<script type="text/javascript" src="../../js/select.js"></script>
|
||||
<script type="text/javascript" src="../../js/my/permission.js"></script>
|
||||
|
|
@ -65,7 +66,7 @@
|
|||
function showTable(){
|
||||
$.ajax({
|
||||
type: 'post',
|
||||
url: ctxPath + '/owmTeamQuery/getowmTeamQueryTeamsFormList',//数据接口
|
||||
url: czl_ht_url + '/owmTeamQuery/getowmTeamQueryTeamsFormList',//数据接口
|
||||
dataType: 'json', // 服务器返回数据类型
|
||||
async: false,
|
||||
data: {
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue