bug修复
This commit is contained in:
parent
58fa9d92fb
commit
bd9b696a11
|
|
@ -355,7 +355,7 @@ function selectAll(selectStatus) {//传入参数(全选框的选中状态)
|
||||||
n.checked = true;
|
n.checked = true;
|
||||||
});
|
});
|
||||||
$.each(jjDataArr, function (index, item) {
|
$.each(jjDataArr, function (index, item) {
|
||||||
delIdArr.push(item.id);
|
delIdArr.push(item.partId);
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
$("input[name='check']").each(function (i, n) {
|
$("input[name='check']").each(function (i, n) {
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ layui.config({
|
||||||
dtreeData = getDTreeData();
|
dtreeData = getDTreeData();
|
||||||
fitTypeTree = dtree.render({
|
fitTypeTree = dtree.render({
|
||||||
elem: "#fitTypeTree",
|
elem: "#fitTypeTree",
|
||||||
width: "30%", // 指定树的宽度
|
width: "50%", // 指定树的宽度
|
||||||
dataFormat: "list",
|
dataFormat: "list",
|
||||||
none: "无数据",
|
none: "无数据",
|
||||||
menubar: true,
|
menubar: true,
|
||||||
|
|
@ -77,7 +77,7 @@ function addOrEditFitType(type, node, $div) {
|
||||||
title = '修改';
|
title = '修改';
|
||||||
}
|
}
|
||||||
console.log(node);
|
console.log(node);
|
||||||
openIframeByDtree("fit_type_form", title, './child/fit_type_form.html', '40%', '50%', node, $div);
|
openIframeByDtree("fit_type_form", title, './child/fit_type_form.html', '50%', '50%', node, $div);
|
||||||
}
|
}
|
||||||
|
|
||||||
// 赋值新增节点
|
// 赋值新增节点
|
||||||
|
|
|
||||||
119
js/public.js
119
js/public.js
|
|
@ -181,64 +181,77 @@ function getUrlParam(key) {
|
||||||
|
|
||||||
// 预览文件
|
// 预览文件
|
||||||
function commonViewFile(params) {
|
function commonViewFile(params) {
|
||||||
let path = fileUrl + params + '?auth=' + sessionStorage.getItem("gz-token");
|
let path = fileUrl + params + '?auth=' + sessionStorage.getItem("gz-token");
|
||||||
// path = fileUrl + params
|
// path = fileUrl + params
|
||||||
console.log(path);
|
console.log(path);
|
||||||
let encodePath = encodeURIComponent(useBase64.encode64(path));
|
let encodePath = encodeURIComponent(useBase64.encode64(path));
|
||||||
window.open(viewFileUrl + encodePath + '&token=' + generateToken());
|
window.open(viewFileUrl + encodePath + '&token=' + generateToken());
|
||||||
}
|
}
|
||||||
|
|
||||||
let _keyStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
|
let _keyStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
|
||||||
const useBase64 = {
|
const useBase64 = {
|
||||||
encode64:(e) => {
|
encode64: (e) => {
|
||||||
let t = "";
|
let t = "";
|
||||||
let f = 0;
|
let f = 0;
|
||||||
e = useBase64.encodeUTF8(e);
|
e = useBase64.encodeUTF8(e);
|
||||||
while (f < e.length) {
|
while (f < e.length) {
|
||||||
const n = e.charCodeAt(f++);
|
const n = e.charCodeAt(f++);
|
||||||
const r = e.charCodeAt(f++);
|
const r = e.charCodeAt(f++);
|
||||||
const i = e.charCodeAt(f++);
|
const i = e.charCodeAt(f++);
|
||||||
let s = n >> 2;
|
let s = n >> 2;
|
||||||
let o = (n & 3) << 4 | r >> 4;
|
let o = (n & 3) << 4 | r >> 4;
|
||||||
let u = (r & 15) << 2 | i >> 6;
|
let u = (r & 15) << 2 | i >> 6;
|
||||||
let a = i & 63;
|
let a = i & 63;
|
||||||
if (isNaN(r)) {
|
if (isNaN(r)) {
|
||||||
u = a = 64;
|
u = a = 64;
|
||||||
} else if (isNaN(i)) {
|
} else if (isNaN(i)) {
|
||||||
a = 64;
|
a = 64;
|
||||||
}
|
}
|
||||||
t += _keyStr[s] + _keyStr[o] + _keyStr[u] + _keyStr[a];
|
t += _keyStr[s] + _keyStr[o] + _keyStr[u] + _keyStr[a];
|
||||||
}
|
}
|
||||||
return t;
|
return t;
|
||||||
},
|
},
|
||||||
decode64: (e) => {
|
decode64: (e) => {
|
||||||
let t = "";
|
let t = "";
|
||||||
let f = 0;
|
let f = 0;
|
||||||
e = e.replace(/[^A-Za-z0-9+/=]/g, "");
|
e = e.replace(/[^A-Za-z0-9+/=]/g, "");
|
||||||
while (f < e.length) {
|
while (f < e.length) {
|
||||||
const s = _keyStr.indexOf(e.charAt(f++));
|
const s = _keyStr.indexOf(e.charAt(f++));
|
||||||
const o = _keyStr.indexOf(e.charAt(f++));
|
const o = _keyStr.indexOf(e.charAt(f++));
|
||||||
const u = _keyStr.indexOf(e.charAt(f++));
|
const u = _keyStr.indexOf(e.charAt(f++));
|
||||||
const a = _keyStr.indexOf(e.charAt(f++));
|
const a = _keyStr.indexOf(e.charAt(f++));
|
||||||
let n = s << 2 | o >> 4;
|
let n = s << 2 | o >> 4;
|
||||||
let r = (o & 15) << 4 | u >> 2;
|
let r = (o & 15) << 4 | u >> 2;
|
||||||
let i = (u & 3) << 6 | a;
|
let i = (u & 3) << 6 | a;
|
||||||
t += String.fromCharCode(n);
|
t += String.fromCharCode(n);
|
||||||
if (u !== 64) {
|
if (u !== 64) {
|
||||||
t += String.fromCharCode(r);
|
t += String.fromCharCode(r);
|
||||||
}
|
}
|
||||||
if (a !== 64) {
|
if (a !== 64) {
|
||||||
t += String.fromCharCode(i);
|
t += String.fromCharCode(i);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return useBase64.decodeUTF8(t);
|
return useBase64.decodeUTF8(t);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
encodeUTF8: (input) => {
|
||||||
|
return unescape(encodeURIComponent(input));
|
||||||
|
},
|
||||||
|
|
||||||
|
decodeUTF8: (input) => {
|
||||||
|
return decodeURIComponent(escape(input));
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 校验查询关键字是否包含特殊字符 */
|
||||||
|
function checkValue(value) {
|
||||||
|
if (value) {
|
||||||
|
let pattern = new RegExp("[%<>]");
|
||||||
|
if (pattern.test(value)) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
encodeUTF8: (input) => {
|
|
||||||
return unescape(encodeURIComponent(input));
|
|
||||||
},
|
|
||||||
|
|
||||||
decodeUTF8: (input) => {
|
|
||||||
return decodeURIComponent(escape(input));
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>发货</title>
|
<title>配件退回</title>
|
||||||
<link rel="stylesheet" href="../../../lib/layui-v2.9.18/layui/css/layui.css" media="all">
|
<link rel="stylesheet" href="../../../lib/layui-v2.9.18/layui/css/layui.css" media="all">
|
||||||
<link rel="stylesheet" href="../../../css/font.css" media="all">
|
<link rel="stylesheet" href="../../../css/font.css" media="all">
|
||||||
<link rel="stylesheet" href="../../../css/data_form.css" media="all">
|
<link rel="stylesheet" href="../../../css/data_form.css" media="all">
|
||||||
|
|
|
||||||
|
|
@ -55,7 +55,7 @@
|
||||||
<label class="layui-form-label required" style="width: 100px !important;">计划说明</label>
|
<label class="layui-form-label required" style="width: 100px !important;">计划说明</label>
|
||||||
<div class="layui-input-inline" style="width: 764px;">
|
<div class="layui-input-inline" style="width: 764px;">
|
||||||
<textarea placeholder="请输入计划说明" lay-verify="required" id="remark" name="remark"
|
<textarea placeholder="请输入计划说明" lay-verify="required" id="remark" name="remark"
|
||||||
class="layui-textarea" maxLength="60" lay-affix="clear"></textarea>
|
class="layui-textarea" maxLength="250" lay-affix="clear"></textarea>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<button type="submit" id="formSubmit" class="layui-btn" lay-submit="" lay-filter="formData"
|
<button type="submit" id="formSubmit" class="layui-btn" lay-submit="" lay-filter="formData"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue