no message

This commit is contained in:
chenxuanThinkpad
2023-10-18 16:30:26 +08:00
parent 2fdae738f0
commit 730c511206
3037 changed files with 987677 additions and 0 deletions
+84
View File
@@ -0,0 +1,84 @@
/*!
* jQuery cxSelect
* @name jquery.cxselect.js
* @version 1.3.4
* #date 2013-12-18
* @author ciaoca
* @email ciaoca@gmail.com
* @site https://github.com/ciaoca/cxSelect
* @license Released under the MIT license
*/
! function(a) {
"function" == typeof define && define.amd ? define(["jquery"], a) : a(jQuery)
}(function(a) {
a.cxSelect = function(b) {
var c, h, i, d = {
dom: {},
api: {}
},
e = function(a) {
return a && ("function" == typeof HTMLElement || "object" == typeof HTMLElement) && a instanceof HTMLElement ? !0 : a && a.nodeType && 1 === a.nodeType ? !0 : !1
},
f = function(a) {
return a && a.length && ("function" == typeof jQuery || "object" == typeof jQuery) && a instanceof jQuery ? !0 : !1
},
g = function(a) {
return Array.isArray ? Array.isArray(a) : "[object Array]" === Object.prototype.toString.call(a)
};
for (h = 0, i = arguments.length; i > h; h++) f(arguments[h]) ? c = arguments[h] : e(arguments[h]) ? c = a(arguments[h]) : "object" == typeof arguments[h] && (b = arguments[h]);
if (!(c.length < 1)) return d.init = function() {
var e, d = this;
if (d.dom.box = c, d.settings = a.extend({}, a.cxSelect.defaults, b, {
url: d.dom.box.data("url"),
nodata: d.dom.box.data("nodata"),
required: d.dom.box.data("required"),
firstTitle: d.dom.box.data("firstTitle"),
firstValue: d.dom.box.data("firstValue")
}), d.settings.selects.length) {
for (d.selectArray = [], d.selectSum = d.settings.selects.length, e = 0; e < d.selectSum && d.dom.box.find("select." + d.settings.selects[e]); e++) d.selectArray.push(d.dom.box.find("select." + d.settings.selects[e]));
d.selectSum = d.selectArray.length, d.selectSum && ("string" == typeof d.settings.url ? a.getJSON(d.settings.url, function(a) {
d.dataJson = a, d.buildContent()
}) : "object" == typeof d.settings.url && (d.dataJson = d.settings.url, d.buildContent()))
}
}, d.getIndex = function(a) {
return this.settings.required ? a : a - 1
}, d.getNewOptions = function(b, c) {
var d, e, f, g, h;
if (b) return d = this.settings.firstTitle, e = this.settings.firstValue, f = b.data("firstTitle"), g = b.data("firstValue"), h = "", ("string" == typeof f || "number" == typeof f || "boolean" == typeof f) && (d = f.toString()), ("string" == typeof g || "number" == typeof g || "boolean" == typeof g) && (e = g.toString()), this.settings.required || (h = '<option value="' + e + '">' + d + "</option>"), a.each(c, function(a, b) {
h += "string" == typeof b.v || "number" == typeof b.v || "boolean" == typeof b.v ? '<option value="' + b.v + '">' + b.n + "</option>" : '<option value="' + b.n + '">' + b.n + "</option>"
}), h
}, d.buildContent = function() {
var b, a = this;
a.dom.box.on("change", "select", function() {
a.selectChange(this.className)
}), b = a.getNewOptions(a.selectArray[0], a.dataJson), a.selectArray[0].html(b).prop("disabled", !1).trigger("change"), a.setDefaultValue()
}, d.setDefaultValue = function(a) {
var b, c;
a = a || 0, b = this, a >= b.selectSum || !b.selectArray[a] || (c = b.selectArray[a].data("value"), ("string" == typeof c || "number" == typeof c || "boolean" == typeof c) && (c = c.toString(), setTimeout(function() {
b.selectArray[a].val(c).trigger("change"), a++, b.setDefaultValue(a)
}, 1)))
}, d.selectChange = function(a) {
var b, c, d, e, f, h;
for (a = a.replace(/ /g, ","), a = "," + a + ",", b = [], h = 0; h < this.selectSum; h++) b.push(this.getIndex(this.selectArray[h].get(0).selectedIndex)), "number" == typeof c && h > c && (this.selectArray[h].empty().prop("disabled", !0), "none" === this.settings.nodata ? this.selectArray[h].css("display", "none") : "hidden" === this.settings.nodata && this.selectArray[h].css("visibility", "hidden")), a.indexOf("," + this.settings.selects[h] + ",") > -1 && (c = h);
for (d = c + 1, e = this.dataJson, h = 0; d > h; h++) {
if ("undefined" == typeof e[b[h]] || g(e[b[h]].s) === !1 || !e[b[h]].s.length) return;
e = e[b[h]].s
}
this.selectArray[d] && (f = this.getNewOptions(this.selectArray[d], e), this.selectArray[d].html(f).prop("disabled", !1).css({
display: "",
visibility: ""
}).trigger("change"))
}, d.init(), this
}, a.cxSelect.defaults = {
selects: [],
url: null,
nodata: null,
required: !1,
firstTitle: "请选择",
firstValue: "0"
}, a.fn.cxSelect = function(b, c) {
return this.each(function() {
a.cxSelect(this, b, c)
}), this
}
});
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+761
View File
@@ -0,0 +1,761 @@
$(window).load(function() {
$(".loading").fadeOut()
});
$(function() {
i();
j();
k();
l();
m();
n();
o();
p();
function i() {
var a = echarts.init(document.getElementById("echart1"));
option = {
tooltip: {
trigger: "item",
formatter: "{b} : {c} ({d}%)"
},
legend: {
right: 0,
top: 30,
height: 160,
itemWidth: 10,
itemHeight: 10,
itemGap: 10,
textStyle: {
color: "rgba(255,255,255,.6)",
fontSize: 12
},
orient: "vertical",
data: ["图例1", "图例2", "图例3", "图例4", "图例5"]
},
calculable: true,
series: [{
name: " ",
color: ["#62c98d", "#2f89cf", "#4cb9cf", "#53b666", "#62c98d", "#205acf", "#c9c862", "#c98b62", "#c962b9", "#7562c9", "#c96262", "#c25775", "#00b7be"],
type: "pie",
radius: [30, 70],
center: ["35%", "50%"],
roseType: "radius",
label: {
normal: {
show: true
},
emphasis: {
show: true
}
},
lableLine: {
normal: {
show: true
},
emphasis: {
show: true
}
},
data: [{
value: 10,
name: "图例1"
}, {
value: 5,
name: "图例2"
}, {
value: 15,
name: "图例3"
}, {
value: 25,
name: "图例4"
}, {
value: 20,
name: "图例5"
}, ]
}, ]
};
a.setOption(option);
window.addEventListener("resize", function() {
a.resize()
})
a.on('click', function() {
window.open("http://www.anydo.wang");
});
}
function j() {
var a = echarts.init(document.getElementById("echart2"));
option = {
tooltip: {
trigger: "item",
formatter: "{b} : {c} ({d}%)"
},
legend: {
top: "15%",
data: ["图例1", "图例2", "图例3", "图例4", "图例5"],
icon: "circle",
textStyle: {
color: "rgba(255,255,255,.6)",
}
},
calculable: true,
series: [{
name: "",
color: ["#62c98d", "#2f89cf", "#4cb9cf", "#53b666", "#62c98d", "#205acf", "#c9c862", "#c98b62", "#c962b9", "#c96262"],
type: "pie",
startAngle: 0,
radius: [51, 100],
center: ["50%", "45%"],
roseType: "area",
avoidLabelOverlap: false,
label: {
normal: {
show: true,
},
emphasis: {
show: true
}
},
labelLine: {
normal: {
show: true,
length2: 1,
},
emphasis: {
show: true
}
},
data: [{
value: 1,
name: "图例1",
}, {
value: 4,
name: "图例2",
}, {
value: 5,
name: "图例3",
}, {
value: 6,
name: "图例4",
}, {
value: 9,
name: "图例5",
}, {
value: 0,
name: "",
label: {
show: false
},
labelLine: {
show: false
}
}, {
value: 0,
name: "",
label: {
show: false
},
labelLine: {
show: false
}
}, {
value: 0,
name: "",
label: {
show: false
},
labelLine: {
show: false
}
}, {
value: 0,
name: "",
label: {
show: false
},
labelLine: {
show: false
}
}, {
value: 0,
name: "",
label: {
show: false
},
labelLine: {
show: false
}
}, ]
}]
};
a.setOption(option);
window.addEventListener("resize", function() {
a.resize()
})
a.on('click', function() {
window.open("http://www.anydo.wang");
});
}
function k() {
var a = echarts.init(document.getElementById("echart3"));
option = {
tooltip: {
trigger: "axis",
axisPointer: {
lineStyle: {
color: "#57617B"
}
}
},
legend: {
data: ["销售额", "利润"],
top: "0",
textStyle: {
color: "#fff"
},
itemGap: 20,
},
grid: {
left: "0",
right: "20",
top: "10",
bottom: "20",
containLabel: true
},
xAxis: [{
type: "category",
boundaryGap: false,
axisLabel: {
show: true,
textStyle: {
color: "rgba(255,255,255,.6)"
}
},
axisLine: {
lineStyle: {
color: "rgba(255,255,255,.1)"
}
},
data: ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月"]
}, {}],
yAxis: [{
axisLabel: {
show: true,
textStyle: {
color: "rgba(255,255,255,.6)"
}
},
axisLine: {
lineStyle: {
color: "rgba(255,255,255,.1)"
}
},
splitLine: {
lineStyle: {
color: "rgba(255,255,255,.1)"
}
}
}],
series: [{
name: "销售额",
type: "line",
smooth: true,
symbol: "circle",
symbolSize: 5,
showSymbol: false,
lineStyle: {
normal: {
width: 2
}
},
areaStyle: {
normal: {
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
offset: 0,
color: "rgba(24, 163, 64, 0.3)"
}, {
offset: 0.8,
color: "rgba(24, 163, 64, 0)"
}], false),
shadowColor: "rgba(0, 0, 0, 0.1)",
shadowBlur: 10
}
},
itemStyle: {
normal: {
color: "#cdba00",
borderColor: "rgba(137,189,2,0.27)",
borderWidth: 12
}
},
data: [220, 182, 191, 134, 150, 120, 110, 125, 145, 122, 165, 122]
}, {
name: "利润",
type: "line",
smooth: true,
symbol: "circle",
symbolSize: 5,
showSymbol: false,
lineStyle: {
normal: {
width: 2
}
},
areaStyle: {
normal: {
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
offset: 0,
color: "rgba(39, 122,206, 0.3)"
}, {
offset: 0.8,
color: "rgba(39, 122,206, 0)"
}], false),
shadowColor: "rgba(0, 0, 0, 0.1)",
shadowBlur: 10
}
},
itemStyle: {
normal: {
color: "#277ace",
borderColor: "rgba(0,136,212,0.2)",
borderWidth: 12
}
},
data: [120, 110, 125, 145, 122, 165, 122, 220, 182, 191, 134, 150]
}]
};
a.setOption(option);
window.addEventListener("resize", function() {
a.resize()
})
a.on('click', function() {
window.open("http://www.anydo.wang");
});
}
function l() {
var a = echarts.init(document.getElementById("echart4"));
option = {
tooltip: {
trigger: "axis",
axisPointer: {
lineStyle: {
color: "#57617B"
}
}
},
legend: {
data: [{
name: "图例1"
}, {
name: "图例2"
}, {
name: "完成率"
}],
top: "0%",
textStyle: {
color: "rgba(255,255,255,0.9)"
}
},
xAxis: [{
type: "category",
data: ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月"],
axisLine: {
lineStyle: {
color: "rgba(255,255,255,.1)"
}
},
axisLabel: {
textStyle: {
color: "rgba(255,255,255,.6)",
fontSize: "14",
},
},
}, ],
yAxis: [{
type: "value",
name: "金额",
min: 0,
max: 50,
interval: 10,
axisLabel: {
show: true,
},
axisLine: {
lineStyle: {
color: "rgba(255,255,255,.4)"
}
},
}, {
type: "value",
name: "完成率",
show: true,
axisLabel: {
show: true,
},
axisLine: {
lineStyle: {
color: "rgba(255,255,255,.4)"
}
},
splitLine: {
show: true,
lineStyle: {
color: "#001e94"
}
},
}, ],
grid: {
top: "10%",
right: "30",
bottom: "30",
left: "30",
},
series: [{
name: "图例1",
type: "bar",
data: [4, 6, 36, 6, 8, 6, 4, 6, 30, 6, 8, 12],
barWidth: "auto",
itemStyle: {
normal: {
color: {
type: "linear",
x: 0,
y: 0,
x2: 0,
y2: 1,
colorStops: [{
offset: 0,
color: "#609db8"
}, {
offset: 1,
color: "#609db8"
}],
globalCoord: false
}
}
}
}, {
name: "图例2",
type: "bar",
data: [4, 2, 34, 6, 8, 6, 4, 2, 32, 6, 8, 18],
barWidth: "auto",
itemStyle: {
normal: {
color: {
type: "linear",
x: 0,
y: 0,
x2: 0,
y2: 1,
colorStops: [{
offset: 0,
color: "#66b8a7"
}, {
offset: 1,
color: "#66b8a7"
}],
globalCoord: false
}
}
},
barGap: "0"
}, {
name: "完成率",
type: "line",
yAxisIndex: 1,
data: [100, 50, 80, 30, 90, 40, 70, 33, 100, 40, 80, 20],
lineStyle: {
normal: {
width: 2
},
},
itemStyle: {
normal: {
color: "#cdba00",
}
},
smooth: true
}]
};
a.setOption(option);
window.addEventListener("resize", function() {
a.resize()
})
a.on('click', function() {
alert("更多模板,前往http://www.anydo.wang下载")
});
}
function m() {
var b = echarts.init(document.getElementById("echart5"));
var a = {
type: "linear",
x: 0,
y: 0,
x2: 0,
y2: 1,
colorStops: [{
offset: 0,
color: "rgba(41, 121, 255, 1)"
}, {
offset: 1,
color: "rgba(0, 192, 255, 1)"
}],
globalCoord: false
};
var c = {
tooltip: {
show: false
},
grid: {
top: "0%",
left: "65",
right: "14%",
bottom: "0%",
},
xAxis: {
min: 0,
max: 100,
splitLine: {
show: false
},
axisTick: {
show: false
},
axisLine: {
show: false
},
axisLabel: {
show: false
}
},
yAxis: {
data: ["字段名称", "字段名称", "字段名称", "字段名称", "字段名称", "字段名称", "字段名称", "字段名称", "字段名称", "字段名称", "字段名称"],
axisTick: {
show: false
},
axisLine: {
show: false
},
axisLabel: {
color: "rgba(255,255,255,.6)",
fontSize: 14
}
},
series: [{
type: "bar",
label: {
show: true,
zlevel: 10000,
position: "right",
padding: 10,
color: "#49bcf7",
fontSize: 14,
formatter: "{c}%"
},
itemStyle: {
color: "#49bcf7"
},
barWidth: "15",
data: [49, 80, 67, 99, 12, 19, 39, 84, 28, 47, 57, 100],
z: 10
}, {
type: "bar",
barGap: "-100%",
itemStyle: {
color: "#fff",
opacity: 0.1
},
barWidth: "15",
data: [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100],
z: 5
}],
};
b.setOption(c);
window.addEventListener("resize", function() {
b.resize()
})
}
function n() {
var a = echarts.init(document.getElementById("zb1"));
var b = 298;
var c = 523;
var d = b + c;
option = {
series: [{
type: "pie",
radius: ["60%", "70%"],
color: "#49bcf7",
label: {
normal: {
position: "center"
}
},
data: [{
value: c,
name: "女消费",
label: {
normal: {
formatter: c + "",
textStyle: {
fontSize: 20,
color: "#fff",
}
}
}
}, {
value: b,
name: "男消费",
label: {
normal: {
formatter: function(e) {
return "占比" + Math.round(c / d * 100) + "%"
},
textStyle: {
color: "#aaa",
fontSize: 12
}
}
},
itemStyle: {
normal: {
color: "rgba(255,255,255,.2)"
},
emphasis: {
color: "#fff"
}
},
}]
}]
};
a.setOption(option);
window.addEventListener("resize", function() {
a.resize()
})
a.on('click', function() {
alert("更多模板,前往http://www.anydo.wang下载")
});
}
function o() {
var a = echarts.init(document.getElementById("zb2"));
var b = 298;
var c = 523;
var d = b + c;
option = {
series: [{
type: "pie",
radius: ["60%", "70%"],
color: "#cdba00",
label: {
normal: {
position: "center"
}
},
data: [{
value: b,
name: "男消费",
label: {
normal: {
formatter: b + "",
textStyle: {
fontSize: 20,
color: "#fff",
}
}
}
}, {
value: c,
name: "女消费",
label: {
normal: {
formatter: function(e) {
return "占比" + Math.round(b / d * 100) + "%"
},
textStyle: {
color: "#aaa",
fontSize: 12
}
}
},
itemStyle: {
normal: {
color: "rgba(255,255,255,.2)"
},
emphasis: {
color: "#fff"
}
},
}]
}]
};
a.setOption(option);
window.addEventListener("resize", function() {
a.resize()
})
}
function p() {
var a = echarts.init(document.getElementById("zb3"));
var b = 298;
var c = 523;
var d = b + c;
option = {
series: [{
type: "pie",
radius: ["60%", "70%"],
color: "#62c98d",
label: {
normal: {
position: "center"
}
},
data: [{
value: c,
name: "女消费",
label: {
normal: {
formatter: c + "",
textStyle: {
fontSize: 20,
color: "#fff",
}
}
}
}, {
value: b,
name: "男消费",
label: {
normal: {
formatter: function(e) {
return "占比" + Math.round(c / d * 100) + "%"
},
textStyle: {
color: "#aaa",
fontSize: 12
}
}
},
itemStyle: {
normal: {
color: "rgba(255,255,255,.2)"
},
emphasis: {
color: "#fff"
}
},
}]
}]
};
a.setOption(option);
window.addEventListener("resize", function() {
a.resize()
})
a.on('click', function() {
alert("更多模板,前往http://www.anydo.wang下载")
});
}
});