".concat(i.getAttribute("data-longitude"), " , ").concat(i.getAttribute("data-latitude"), " ").concat(i.getAttribute("data-address"), "")), t.setScroll())
}, i = 0; i < e.children.length; i++) n(i)
}))
}), 0), n
}, getDetail: function () {
var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, e = t.type, n = t.src,
i = t.name, o = t.longitude, a = t.latitude, r = t.address;
return "img" === e ? '') : "video" === e ? '') : "audio" === e ? '') : "file" === e ? '') : "map" === e ? '') : void 0
}, handleEvent: function (t) {
var e = this, n = function () {
"IMG" === t.type ? (e.imgSrc = t.src, e.show = !0) : "VIDEO" === t.type ? (e.videoSrc = t.src, e.show = !0) : "AUDIO" === t.type ? (e.audioSrc = t.src, e.show = !0) : "FILE" === t.type && window.open(t.src)
};
"function" == typeof this.beforeOpen ? this.beforeOpen(t, n) : n()
}, rootSendMsg: function (t) {
this.pushMsg({text: t}), this.notice && this.getNotification(t.text || t)
}
}
}), P = Object(c.a)(I, (function () {
var t = this, e = t.$createElement, n = t._self._c || e;
return n("div", {
class: t.b(), style: t.heightStyleName, on: {
keyup: function (e) {
return !e.type.indexOf("key") && t._k(e.keyCode, "enter", 13, e.key, "Enter") ? null : t.handleSend(e)
}
}
}, [n("audio", {ref: "chatAudio"}, [n("source", {
attrs: {
src: t.audio[0],
type: "audio/ogg"
}
}), t._v(" "), n("source", {
attrs: {
src: t.audio[1],
type: "audio/mpeg"
}
}), t._v(" "), n("source", {
attrs: {
src: t.audio[2],
type: "audio/wav"
}
})]), t._v(" "), n("div", {staticClass: "web__logo"}, [n("img", {
staticClass: "web__logo-img",
attrs: {src: t.config.img, alt: ""}
}), t._v(" "), n("div", {staticClass: "web__logo-info"}, [n("p", {staticClass: "web__logo-name"}, [t._v(t._s(t.config.name))]), t._v(" "), n("p", {staticClass: "web__logo-dept"}, [t._v(t._s(t.config.dept))])]), t._v(" "), t._t("header")], 2), t._v(" "), n("div", {staticClass: "web__content"}, [n("div", {style: t.widthStyleName}, [n("div", {
ref: "main",
staticClass: "web__main"
}, t._l(t.list, (function (e, i) {
return n("div", {
key: i,
staticClass: "web__main-item",
class: {"web__main-item--mine": e.mine}
}, [n("div", {staticClass: "web__main-user"}, [n("img", {attrs: {src: e.img}}), t._v(" "), n("cite", [t._v("\n " + t._s(e.name) + "\n "), n("i", [t._v(t._s(e.date))])])]), t._v(" "), n("div", {staticClass: "web__main-text"}, [n("div", {staticClass: "web__main-arrow"}), t._v(" "), n("span", {
ref: "content",
refInFor: !0,
domProps: {innerHTML: t._s(t.handleDetail(e.text.text))}
}), t._v(" "), t.validatenull(e.text.list) ? t._e() : n("ul", {staticClass: " web__main-list"}, t._l(e.text.list, (function (e, i) {
return n("li", {
key: i, on: {
click: function (n) {
return t.handleItemMsg(e)
}
}
}, [t._v(t._s(e.text))])
})), 0)])])
})), 0), t._v(" "), n("div", {
staticClass: "web__footer",
style: t.widthStyleName
}, [n("div", {staticClass: "web__tools"}, [t.tools.img ? n("i", {
staticClass: "el-icon-picture-outline",
on: {
click: function (e) {
return t.handleUpload("img")
}
}
}) : t._e(), t._v(" "), t.tools.video ? n("i", {
staticClass: "el-icon-video-camera", on: {
click: function (e) {
return t.handleUpload("video")
}
}
}) : t._e(), t._v(" "), t.tools.file ? n("i", {
staticClass: "el-icon-folder-opened", on: {
click: function (e) {
return t.handleUpload("file")
}
}
}) : t._e()]), t._v(" "), n("div", {staticClass: "web__msg"}, [n("textarea", {
directives: [{
name: "model",
rawName: "v-model",
value: t.msg,
expression: "msg"
}],
staticClass: "web__msg-input",
attrs: {rows: "2", placeholder: t.placeholder},
domProps: {value: t.msg},
on: {
input: function (e) {
e.target.composing || (t.msg = e.target.value)
}
}
}), t._v(" "), n("div", {staticClass: "web__msg-menu"}, [n("el-dropdown", {
staticClass: "web__msg-submit",
attrs: {"split-button": "", type: "primary", size: "mini", trigger: "click"},
on: {click: t.handleSend}
}, [t._v("\n 发送\n "), n("el-dropdown-menu", {
attrs: {slot: "dropdown"},
slot: "dropdown"
}, [n("el-dropdown-item", [n("el-popover", {
attrs: {placement: "top", width: "160"},
model: {
value: t.visible, callback: function (e) {
t.visible = e
}, expression: "visible"
}
}, [n("el-input", {
staticStyle: {"margin-bottom": "10px"},
attrs: {
size: "mini",
rows: 3,
"show-word-limit": "",
maxlength: "100",
placeholder: "请输入快捷回复语",
type: "textarea"
},
model: {
value: t.keys, callback: function (e) {
t.keys = e
}, expression: "keys"
}
}), t._v(" "), n("div", {
staticStyle: {
"text-align": "right",
margin: "0"
}
}, [n("el-button", {
attrs: {size: "mini", type: "text"}, on: {
click: function (e) {
t.visible = !1
}
}
}, [t._v("取消")]), t._v(" "), n("el-button", {
attrs: {type: "primary", size: "mini"},
on: {click: t.addKey}
}, [t._v("确定")])], 1), t._v(" "), n("el-button", {
attrs: {slot: "reference", type: "text", icon: "el-icon-plus"},
slot: "reference"
})], 1)], 1), t._v(" "), n("el-scrollbar", {staticStyle: {height: "100px"}}, t._l(t.keylist, (function (e, i) {
return n("el-dropdown-item", {
key: i, nativeOn: {
click: function (n) {
return t.sendKey(e)
}
}
}, [n("el-tooltip", {
attrs: {
effect: "dark",
content: e,
placement: "top"
}
}, [n("span", [t._v(" " + t._s(e.substr(0, 10)) + t._s(e.length > 10 ? "..." : ""))])])], 1)
})), 1)], 1)], 1)], 1)])])]), t._v(" "), t._t("default")], 2), t._v(" "), n("el-dialog", {
attrs: {
title: t.upload.title,
"append-to-body": "",
visible: t.upload.box,
width: "30%"
}, on: {
"update:visible": function (e) {
return t.$set(t.upload, "box", e)
}
}
}, [n("el-form", {ref: "form", attrs: {model: t.upload}}, [n("el-form-item", {
attrs: {
prop: "src",
rules: [{required: !0, message: "地址不能为空"}]
}
}, [n("el-input", {
staticStyle: {"margin-bottom": "10px"},
attrs: {size: "mini", rows: 4, "show-word-limit": "", maxlength: "100", placeholder: "请输入地址", type: "textarea"},
model: {
value: t.upload.src, callback: function (e) {
t.$set(t.upload, "src", e)
}, expression: "upload.src"
}
})], 1)], 1), t._v(" "), n("span", {
staticClass: "dialog-footer",
attrs: {slot: "footer"},
slot: "footer"
}, [n("el-button", {
attrs: {size: "small"}, on: {
click: function (e) {
t.upload.box = !1
}
}
}, [t._v("取 消")]), t._v(" "), n("el-button", {
attrs: {type: "primary", size: "small"},
on: {click: t.uploadSubmit}
}, [t._v("确 定")])], 1)], 1), t._v(" "), n("el-dialog", {
staticClass: "web__dialog",
attrs: {visible: t.show, width: "40%", "append-to-body": "", "before-close": t.handleClose},
on: {
"update:visible": function (e) {
t.show = e
}
}
}, [t.imgSrc ? n("img", {
staticStyle: {width: "100%", "object-fit": "cover"},
attrs: {src: t.imgSrc}
}) : t._e(), t._v(" "), t.videoSrc ? n("video", {
staticStyle: {width: "100%", "object-fit": "cover"},
attrs: {src: t.videoSrc, controls: "controls"}
}) : t._e(), t._v(" "), t.audioSrc ? n("audio", {
staticStyle: {width: "100%", "object-fit": "cover"},
attrs: {src: t.audioSrc, controls: "controls"}
}) : t._e()])], 1)
}), [], !1, null, null, null).exports, $ = {avatar: "avatar", author: "author", body: "body"}, L = Object(i.a)({
name: "comment",
props: {
reverse: {type: Boolean, default: !1}, data: {
type: Object, default: function () {
return {}
}
}, props: {
type: Object, default: function () {
return $
}
}, option: {
type: Object, default: function () {
return {}
}
}
},
computed: {
avatarKey: function () {
return this.props.avatar || $.avatar
}, authorKey: function () {
return this.props.author || $.author
}, bodyKey: function () {
return this.props.body || $.body
}, avatar: function () {
return this.data[this.avatarKey]
}, author: function () {
return this.data[this.authorKey]
}, body: function () {
return this.data[this.bodyKey]
}
},
mounted: function () {
}
}), N = Object(c.a)(L, (function () {
var t = this, e = t.$createElement, n = t._self._c || e;
return n("div", {class: t.b({reverse: t.reverse})}, [n("img", {
class: t.b("avatar"),
attrs: {src: t.avatar, alt: ""}
}), t._v(" "), n("div", {class: t.b("main")}, [n("div", {class: t.b("header")}, [t.author ? n("div", {
class: t.b("author"),
domProps: {textContent: t._s(t.author)}
}) : t._e(), t._v(" "), t._t("default")], 2), t._v(" "), t.body ? n("div", {
class: t.b("body"),
domProps: {innerHTML: t._s(t.body)}
}) : t._e()])])
}), [], !1, null, null, null).exports, z = n(22).a, B = Object(c.a)(z, (function () {
var t = this, e = t.$createElement, n = t._self._c || e;
return n("div", {
class: [t.b(), {"avue--view": t.isView, "avue--detail": t.isDetail}],
style: {width: t.setPx(t.parentOption.formWidth, "100%")}
}, [n("el-form", {
ref: "form",
attrs: {
"status-icon": t.parentOption.statusIcon,
model: t.form,
"label-suffix": t.labelSuffix,
size: t.$AVUE.formSize || t.controlSize,
"label-position": t.parentOption.labelPosition,
"label-width": t.setPx(t.parentOption.labelWidth, t.labelWidth)
},
nativeOn: {
submit: function (t) {
t.preventDefault()
}
}
}, [n("el-row", {
class: {"avue-form__tabs": t.isTabs},
attrs: {span: 24}
}, [t._l(t.columnOption, (function (e, i) {
return n("avue-group", {
key: e.prop,
attrs: {
tabs: t.isTabs,
arrow: e.arrow,
collapse: e.collapse,
display: e.display,
icon: e.icon,
index: i,
header: !t.isTabs,
active: t.activeName,
label: e.label
},
on: {change: t.handleGroupClick}
}, [t.isTabs && 1 == i ? n("el-tabs", {
class: t.b("tabs"),
attrs: {slot: "tabs", type: t.tabsType},
on: {"tab-click": t.handleTabClick},
slot: "tabs",
model: {
value: t.activeName, callback: function (e) {
t.activeName = e
}, expression: "activeName"
}
}, [t._l(t.columnOption, (function (e, i) {
return [t.vaildData(e.display, !0) && 0 != i ? n("el-tab-pane", {
key: i,
attrs: {name: i + ""}
}, [n("span", {
attrs: {slot: "label"},
slot: "label"
}, [t.$slots[t.getSlotName(e, "H")] ? t._t(t.getSlotName(e, "H")) : [n("i", {class: e.icon}, [t._v(" ")]), t._v("\n " + t._s(e.label) + "\n ")]], 2)]) : t._e()]
}))], 2) : t._e(), t._v(" "), t.$slots[t.getSlotName(e, "H")] ? n("template", {slot: "header"}, [t._t(t.getSlotName(e, "H"))], 2) : t._e(), t._v(" "), n("div", {
directives: [{
name: "show",
rawName: "v-show",
value: t.isGroupShow(e, i),
expression: "isGroupShow(item,index)"
}], class: t.b("group", {flex: t.vaildData(e.flex, !0)})
}, [t._l(e.column, (function (i, o) {
return [t.vaildDisplay(i) ? n("el-col", {
key: o,
class: [t.b("row"), {"avue--detail": t.vaildDetail(i)}, i.className],
style: {
paddingLeft: t.setPx((t.parentOption.gutter || 20) / 2),
paddingRight: t.setPx((t.parentOption.gutter || 20) / 2)
},
attrs: {span: t.getSpan(i), md: t.getSpan(i), sm: 12, xs: 24, offset: i.offset || 0}
}, [n("el-form-item", {
class: t.b("item--" + (i.labelPosition || e.labelPosition || "")),
attrs: {
prop: i.prop,
label: i.label,
rules: i.rules,
"label-position": i.labelPosition || e.labelPosition || t.parentOption.labelPosition,
"label-width": t.getLabelWidth(i, e)
},
scopedSlots: t._u([{
key: "error", fn: function (e) {
return t.$scopedSlots[i.prop + "Error"] ? [t._t(i.prop + "Error", null, null, Object.assign(e, {
column: i,
value: t.form[i.prop],
readonly: i.readonly || t.readonly,
disabled: t.getDisabled(i),
size: i.size || t.controlSize,
dic: t.DIC[i.prop]
}))] : void 0
}
}], null, !0)
}, [t.$scopedSlots[t.getSlotName(i, "L")] ? n("template", {slot: "label"}, [t._t(t.getSlotName(i, "L"), null, {
column: i,
value: t.form[i.prop],
readonly: t.readonly || i.readonly,
disabled: t.getDisabled(i),
size: i.size || t.controlSize,
dic: t.DIC[i.prop]
})], 2) : i.labelTip ? n("template", {slot: "label"}, [n("el-tooltip", {
staticClass: "item",
attrs: {effect: "dark", placement: i.labelTipPlacement || "top-start"}
}, [n("div", {
attrs: {slot: "content"},
domProps: {innerHTML: t._s(i.labelTip)},
slot: "content"
}), t._v(" "), n("i", {staticClass: "el-icon-info"})]), t._v(" "), n("span", [t._v(" " + t._s(i.label) + t._s(t.labelSuffix))])], 1) : t._e(), t._v(" "), t._v(" "), n(t.validTip(i) ? "div" : "elTooltip", {
tag: "component",
attrs: {
disabled: t.validTip(i),
content: t.vaildData(i.tip, t.getPlaceholder(i)),
placement: i.tipPlacement
}
}, [t.$scopedSlots[i.prop] ? t._t(i.prop, null, {
value: t.form[i.prop],
column: i,
label: t.form["$" + i.prop],
size: i.size || t.controlSize,
readonly: t.readonly || i.readonly,
disabled: t.getDisabled(i),
dic: t.DIC[i.prop]
}) : n("form-temp", t._b({
ref: i.prop,
refInFor: !0,
attrs: {
column: i,
dic: t.DIC[i.prop],
props: t.parentOption.props,
propsHttp: t.parentOption.propsHttp,
disabled: t.getDisabled(i),
enter: t.parentOption.enter,
size: t.parentOption.size,
"column-slot": t.getChildrenColumn(i)
},
on: {
enter: t.submit, change: function (n) {
return t.propChange(e.column, i)
}
},
scopedSlots: t._u([t._l(t.getChildrenColumn(i), (function (e) {
return {
key: e.prop, fn: function (n) {
return [t._t(e.prop, null, null, n)]
}
}
})), t._l(t.$scopedSlots[t.getSlotName(i, "T")] ? [i] : [], (function (e) {
return {
key: t.getSlotName(i, "T"), fn: function (n) {
return [t._t(t.getSlotName(e, "T"), null, null, n)]
}
}
}))], null, !0),
model: {
value: t.form[i.prop], callback: function (e) {
t.$set(t.form, i.prop, e)
}, expression: "form[column.prop]"
}
}, "form-temp", t.$uploadFun(i), !1))], 2)], 2)], 1) : t._e(), t._v(" "), t.vaildDisplay(i) && i.row && 24 !== i.span && i.count ? n("div", {
key: "line" + o,
class: t.b("line"),
style: {width: i.count / 24 * 100 + "%"}
}) : t._e()]
})), t._v(" "), t._t("search"), t._v(" "), t.isDetail || t.isMenu ? t._e() : n("form-menu", {
scopedSlots: t._u([{
key: "menuForm",
fn: function (e) {
return [t._t("menuForm", null, null, e)]
}
}], null, !0)
})], 2)], 2)
})), t._v(" "), !t.isDetail && t.isMenu ? n("form-menu", {
scopedSlots: t._u([{
key: "menuForm", fn: function (e) {
return [t._t("menuForm", null, null, e)]
}
}], null, !0)
}) : t._e()], 2)], 1)], 1)
}), [], !1, null, null, null).exports, F = n(3), R = n(14), K = function () {
return {
mixins: [R.a], data: function () {
return {stringMode: !1, name: "", text: void 0, propsHttpDefault: F.d, propsDefault: F.e}
}, props: {
blur: Function,
focus: Function,
change: Function,
click: Function,
typeformat: Function,
control: Function,
separator: {type: String, default: F.g},
params: {
type: Object, default: function () {
return {}
}
},
listType: {type: String},
value: {},
column: {
type: Object, default: function () {
return {}
}
},
label: {type: String, default: ""},
readonly: {type: Boolean, default: !1},
size: {type: String, default: ""},
tip: {type: String, default: ""},
disabled: {type: Boolean, default: !1},
dataType: {type: String},
clearable: {type: Boolean, default: !0},
type: {type: String, default: ""},
dicUrl: {type: String, default: ""},
dicMethod: {type: String, default: ""},
dicFormatter: Function,
dicQuery: {
type: Object, default: function () {
return {}
}
},
dic: {
type: Array, default: function () {
return []
}
},
placeholder: {type: String, default: ""},
rules: {type: Array},
min: {type: Number},
max: {type: Number},
multiple: {type: Boolean, default: !1},
button: {type: Boolean, default: !1},
group: {type: Boolean, default: !1},
row: {type: Boolean, default: !1},
prop: {type: String, default: ""},
border: {type: Boolean, default: !1},
propsHttp: {
type: Object, default: function () {
return F.d
}
},
props: {
type: Object, default: function () {
return F.e
}
}
}, watch: {
text: {
handler: function (t) {
this.handleChange(t)
}
}, value: {
handler: function () {
this.initVal()
}
}
}, computed: {
componentName: function () {
var t = this.$AVUE.ui.type;
return "".concat(t, "-").concat(this.name).concat(this.button ? "-button" : "")
}, required: function () {
return !this.validatenull(this.rules)
}, isArray: function () {
return "array" === this.dataType
}, isString: function () {
return "string" === this.dataType
}, isNumber: function () {
return "number" === this.dataType
}, nameKey: function () {
return this.propsHttp.name || this.propsHttpDefault.name
}, urlKey: function () {
return this.propsHttp.url || this.propsHttpDefault.url
}, resKey: function () {
return this.propsHttp.res || this.propsHttpDefault.res
}, groupsKey: function () {
return this.props.groups || this.propsDefault.groups
}, valueKey: function () {
return this.props.value || this.propsDefault.value
}, descKey: function () {
return this.props.desc || this.propsDefault.desc
}, leafKey: function () {
return this.props.leaf || this.propsDefault.leaf
}, labelKey: function () {
return this.props.label || this.propsDefault.label
}, childrenKey: function () {
return this.props.children || this.propsDefault.children
}, disabledKey: function () {
return this.props.disabled || this.propsDefault.disabled
}, idKey: function () {
return this.props.id || this.propsDefault.id
}
}, created: function () {
this.initVal()
}
}
}, W = n(7);
function U(t, e, n) {
"function" == typeof t[e] && t[e]({value: t.value, column: t.column}), t.$emit(e, t.value, n)
}
var V, H = function () {
return {
methods: {
initVal: function () {
var t = this;
this.text = Object(W.h)({
type: this.type,
multiple: this.multiple,
dataType: this.dataType,
value: this.value,
separator: this.separator,
callback: function (e) {
t.stringMode = e
}
})
}, getLabelText: function (t) {
return this.validatenull(t) ? "" : "function" == typeof this.typeformat ? this.typeformat(t, this.labelKey, this.valueKey) : t[this.labelKey]
}, handleFocus: function (t) {
U(this, "focus", t)
}, handleBlur: function (t) {
U(this, "blur", t)
}, handleClick: function (t) {
U(this, "click", t)
}, handleChange: function (t) {
var e = t;
(this.isString || this.isNumber || this.stringMode || "picture-img" === this.listType) && Array.isArray(t) && (e = t.join(",")), "function" == typeof this.change && !0 !== this.column.cell && this.change({
value: e,
column: this.column
}), this.$emit("input", e), this.$emit("change", e)
}
}
}
}, q = Object(i.a)({
name: "checkbox",
props: {all: {type: Boolean, default: !1}},
mixins: [K(), H()],
data: function () {
return {checkAll: !1, isIndeterminate: !1, name: "checkbox"}
},
watch: {
dic: function () {
this.handleCheckChange(this.text)
}, text: {
handler: function (t) {
this.handleChange(t), this.handleCheckChange(t)
}, immediate: !0
}
},
created: function () {
},
mounted: function () {
},
methods: {
handleCheckAll: function (t) {
var e = this;
this.all && (this.text = t ? this.dic.map((function (t) {
return t[e.valueKey]
})) : [], this.isIndeterminate = !1)
}, handleCheckChange: function () {
var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : [];
if (this.all) {
var e = t.length;
if (0 !== e) {
var n = this.dic.length;
this.checkAll = e === n, this.isIndeterminate = e > 0 && e < n
}
}
}
}
}), Y = Object(c.a)(q, (function () {
var t = this, e = t.$createElement, n = t._self._c || e;
return n("div", {class: t.b()}, [t.all ? [n("el-checkbox", {
attrs: {indeterminate: t.isIndeterminate},
on: {change: t.handleCheckAll},
model: {
value: t.checkAll, callback: function (e) {
t.checkAll = e
}, expression: "checkAll"
}
}, [t._v("全选")]), t._v(" "), n("div", {staticStyle: {margin: "5px 0"}})] : t._e(), t._v(" "), n("el-checkbox-group", {
attrs: {
disabled: t.disabled,
size: t.size,
min: t.min,
max: t.max
}, on: {change: t.handleCheckChange}, nativeOn: {
click: function (e) {
return t.handleClick(e)
}
}, model: {
value: t.text, callback: function (e) {
t.text = e
}, expression: "text"
}
}, t._l(t.dic, (function (e, i) {
return n(t.componentName, {
key: i,
tag: "component",
attrs: {
label: e[t.valueKey],
border: t.border,
size: t.size,
readonly: t.readonly,
disabled: e[t.disabledKey]
}
}, [t._v(t._s(e[t.labelKey]) + "\n ")])
})), 1)], 2)
}), [], !1, null, null, null).exports, G = n(6), X = Object(i.a)({
name: "date",
mixins: [K(), H(), G.a],
data: function () {
return {text: "", menu: []}
},
props: {
unlinkPanels: {type: Boolean, default: !1},
value: {},
startPlaceholder: {type: String, default: "开始日期"},
endPlaceholder: {type: String, default: "结束日期"},
rangeSeparator: {type: String},
defaultValue: {type: [String, Array]},
defaultTime: {type: [String, Array]},
pickerOptions: {
type: Object, default: function () {
}
},
type: {type: String, default: "date"},
valueFormat: {},
format: {}
}
}), Q = Object(c.a)(X, (function () {
var t = this, e = t.$createElement, n = t._self._c || e;
return n("div", {class: t.b()}, [n("el-date-picker", {
attrs: {
type: t.type,
size: t.size,
"unlink-panels": t.unlinkPanels,
readonly: t.readonly,
"default-value": t.defaultValue,
"default-time": t.defaultTime,
"range-separator": t.rangeSeparator,
"start-placeholder": t.startPlaceholder,
"end-placeholder": t.endPlaceholder,
format: t.format,
clearable: !t.disabled && t.clearable,
"picker-options": t.pickerOptions,
"value-format": t.valueFormat,
placeholder: t.placeholder,
disabled: t.disabled
}, on: {blur: t.handleBlur, focus: t.handleFocus}, nativeOn: {
click: function (e) {
return t.handleClick(e)
}
}, model: {
value: t.text, callback: function (e) {
t.text = e
}, expression: "text"
}
})], 1)
}), [], !1, null, null, null).exports, J = n(2), Z = Object(i.a)({
name: "draggable",
props: {
index: {type: [String, Number]},
mask: {type: Boolean, default: !0},
scale: {type: Number, default: 1},
readonly: {type: Boolean, default: !1},
resize: {type: Boolean, default: !0},
disabled: {type: Boolean, default: !1},
step: {type: Number, default: 1},
zIndex: {type: [Number, String], default: 1},
left: {type: Number, default: 0},
top: {type: Number, default: 0},
width: {type: Number},
height: {type: Number}
},
data: function () {
return {
value: "",
baseWidth: 0,
baseHeight: 0,
baseLeft: 0,
baseTop: 0,
children: {},
moveActive: !1,
overActive: !1,
rangeActive: !1,
active: !1,
keyDown: null,
rangeList: [{classname: "left"}, {classname: "right"}, {classname: "top"}, {classname: "bottom"}, {classname: "top-left"}, {classname: "top-right"}, {classname: "bottom-left"}, {classname: "bottom-right"}]
}
},
computed: {
scaleVal: function () {
return this.scale
}, styleMenuName: function () {
return {transformOrigin: "0 0", transform: "scale(".concat(this.scaleVal, ")")}
}, styleLineName: function () {
return {borderWidth: this.setPx(this.scaleVal)}
}, styleRangeName: function () {
var t = 10 * this.scaleVal;
return {width: this.setPx(t), height: this.setPx(t)}
}, styleLabelName: function () {
return {fontSize: this.setPx(18 * this.scaleVal)}
}, styleName: function () {
var t = this;
return Object.assign(t.active ? Object.assign({zIndex: 9999}, t.styleLineName) : {zIndex: t.zIndex}, {
top: this.setPx(this.baseTop),
left: this.setPx(this.baseLeft),
width: this.setPx(this.baseWidth),
height: this.setPx(this.baseHeight)
})
}
},
watch: {
active: function (t) {
t ? this.handleKeydown() : document.onkeydown = this.keyDown
}, width: function (t) {
this.baseWidth = Object(J.m)(t) || this.children.offsetWidth
}, height: function (t) {
this.baseHeight = Object(J.m)(t) || this.children.offsetHeight
}, left: function (t) {
this.baseLeft = Object(J.m)(t)
}, top: function (t) {
this.baseTop = Object(J.m)(t)
}, baseWidth: function (t) {
this.$refs.wrapper.style.width = this.setPx(t), this.resize && this.children.style && (this.children.style.width = this.setPx(t))
}, baseHeight: function (t) {
this.$refs.wrapper.style.height = this.setPx(t), this.resize && this.children.style && (this.children.style.height = this.setPx(t))
}
},
mounted: function () {
this.init()
},
methods: {
init: function () {
this.children = this.$refs.item.firstChild, this.baseWidth = Object(J.m)(this.width) || this.children.offsetWidth, this.baseHeight = Object(J.m)(this.height) || this.children.offsetHeight, this.baseLeft = Object(J.m)(this.left), this.baseTop = Object(J.m)(this.top), this.keyDown = document.onkeydown
}, setLeft: function (t) {
this.baseLeft = t
}, setTop: function (t) {
this.baseTop = t
}, getRangeStyle: function (t) {
var e = this, n = 10 * this.scaleVal / 2, i = {};
return t.split("-").forEach((function (t) {
i[t] = e.setPx(-n)
})), i
}, setOverActive: function (t) {
this.overActive = t
}, setActive: function (t) {
this.active = t
}, rangeMove: function (t, e) {
var n = this;
if (!this.disabled) {
var i, o, a, r, s, l;
this.rangeActive = !0, this.handleMouseDown();
var c = t.clientX, u = t.clientY;
document.onmousemove = function (t) {
n.moveActive = !0, "right" === e ? (i = !0, o = !1) : "left" === e ? (i = !0, a = !0, s = !0, o = !1) : "top" === e ? (i = !1, o = !0, r = !0, l = !0) : "bottom" === e ? (i = !1, o = !0) : "bottom-right" === e ? (i = !0, o = !0) : "bottom-left" === e ? (i = !0, o = !0, a = !0, s = !0) : "top-right" === e ? (i = !0, o = !0, r = !0, l = !0) : "top-left" === e && (i = !0, o = !0, a = !0, s = !0, r = !0, l = !0);
var d = t.clientX - c, p = t.clientY - u;
if (c = t.clientX, u = t.clientY, i) {
var h = d * n.step;
s && (h = -h), a && (n.baseLeft = Object(J.m)(n.baseLeft - h)), n.baseWidth = Object(J.m)(n.baseWidth + h)
}
if (o) {
var f = p * n.step;
l && (f = -f), r && (n.baseTop = Object(J.m)(n.baseTop - f)), n.baseHeight = Object(J.m)(n.baseHeight + f)
}
}, this.handleClear()
}
}, handleOut: function () {
this.overActive = !1, this.$emit("out", {
index: this.index,
width: this.baseWidth,
height: this.baseHeight,
left: this.baseLeft,
top: this.baseTop
})
}, handleOver: function () {
this.disabled || (this.overActive = !0, this.$emit("over", {
index: this.index,
width: this.baseWidth,
height: this.baseHeight,
left: this.baseLeft,
top: this.baseTop
}))
}, handleMove: function (t) {
var e = this;
if (!this.disabled) {
setTimeout((function () {
e.$refs.input.focus()
})), this.active = !0, this.handleMouseDown();
var n = t.clientX, i = t.clientY;
document.onmousemove = function (t) {
var o = t.clientX - n, a = t.clientY - i;
n = t.clientX, i = t.clientY, e.baseLeft = Object(J.m)(e.baseLeft + o * e.step), e.baseTop = Object(J.m)(e.baseTop + a * e.step)
}, this.handleClear()
}
}, handleClear: function () {
var t = this;
document.onmouseup = function () {
document.onmousemove = null, document.onmouseup = null, t.handleMouseUp()
}
}, handleKeydown: function () {
var t = arguments, e = this;
document.onkeydown = function (n) {
var i = n || window.event || t.callee.caller.arguments[0], o = 1 * e.step;
e.$refs.input.focused && (i && 38 == i.keyCode ? e.baseTop = Object(J.m)(e.baseTop - o) : i && 37 == i.keyCode ? e.baseLeft = Object(J.m)(e.baseLeft - o) : i && 40 == i.keyCode ? e.baseTop = Object(J.m)(e.baseTop + o) : i && 39 == i.keyCode && (e.baseLeft = Object(J.m)(e.baseLeft + o)), n.stopPropagation(), n.preventDefault(), e.$emit("blur", {
index: e.index,
width: e.baseWidth,
height: e.baseHeight,
left: e.baseLeft,
top: e.baseTop
}), e.keyDown && e.keyDown(n))
}
}, handleMouseDown: function (t) {
this.moveActive = !0, this.$emit("focus", {
index: this.index,
width: this.baseWidth,
height: this.baseHeight,
left: this.baseLeft,
top: this.baseTop
})
}, handleMouseUp: function () {
this.moveActive = !1, this.rangeActive = !1, this.$emit("blur", {
index: this.index,
width: this.baseWidth,
height: this.baseHeight,
left: this.baseLeft,
top: this.baseTop
})
}
}
}), tt = Object(c.a)(Z, (function () {
var t = this, e = t.$createElement, n = t._self._c || e;
return n("div", {
class: t.b({
active: (t.active || t.overActive) && !t.readonly,
move: t.moveActive,
click: t.disabled
}), style: t.styleName, on: {
mousedown: function (e) {
return e.stopPropagation(), t.handleMove(e)
}, mouseover: function (e) {
return e.stopPropagation(), t.handleOver(e)
}, mouseout: function (e) {
return e.stopPropagation(), t.handleOut(e)
}
}
}, [n("el-input", {
ref: "input", class: t.b("focus"), model: {
value: t.value, callback: function (e) {
t.value = e
}, expression: "value"
}
}), t._v(" "), n("div", {
ref: "wrapper",
class: t.b("wrapper")
}, [(t.active || t.overActive || t.moveActive) && !t.readonly ? [n("div", {
class: t.b("line", ["left"]),
style: t.styleLineName
}), t._v(" "), n("div", {
class: t.b("line", ["top"]),
style: t.styleLineName
}), t._v(" "), n("div", {
class: t.b("line", ["label"]),
style: t.styleLabelName
}, [t._v(t._s(t.baseLeft) + "," + t._s(t.baseTop))])] : t._e(), t._v(" "), t._l(t.rangeList, (function (e, i) {
return t.readonly ? t._e() : [t.active ? n("div", {
key: i,
class: t.b("range", [e.classname]),
style: [t.styleRangeName, t.getRangeStyle(e.classname)],
on: {
mousedown: function (n) {
return n.stopPropagation(), t.rangeMove(n, e.classname)
}
}
}) : t._e()]
})), t._v(" "), n("div", {
directives: [{
name: "show",
rawName: "v-show",
value: t.active || t.overActive,
expression: "active || overActive"
}], class: t.b("menu"), style: t.styleMenuName
}, [t._t("menu", null, {zIndex: t.zIndex, index: t.index})], 2), t._v(" "), n("div", {
ref: "item",
class: t.b("item")
}, [t._t("default")], 2), t._v(" "), !t.disabled && t.mask ? n("div", {class: t.b("mask")}) : t._e()], 2)], 1)
}), [], !1, null, null, null).exports, et = Object(i.a)({
name: "empty", props: {
size: {type: String},
image: {
type: String,
default: "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTg0IiBoZWlnaHQ9IjE1MiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgPGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMjQgMzEuNjcpIj4KICAgICAgPGVsbGlwc2UgZmlsbC1vcGFjaXR5PSIuOCIgZmlsbD0iI0Y1RjVGNyIgY3g9IjY3Ljc5NyIgY3k9IjEwNi44OSIgcng9IjY3Ljc5NyIgcnk9IjEyLjY2OCIvPgogICAgICA8cGF0aCBkPSJNMTIyLjAzNCA2OS42NzRMOTguMTA5IDQwLjIyOWMtMS4xNDgtMS4zODYtMi44MjYtMi4yMjUtNC41OTMtMi4yMjVoLTUxLjQ0Yy0xLjc2NiAwLTMuNDQ0LjgzOS00LjU5MiAyLjIyNUwxMy41NiA2OS42NzR2MTUuMzgzaDEwOC40NzVWNjkuNjc0eiIgZmlsbD0iI0FFQjhDMiIvPgogICAgICA8cGF0aCBkPSJNMTAxLjUzNyA4Ni4yMTRMODAuNjMgNjEuMTAyYy0xLjAwMS0xLjIwNy0yLjUwNy0xLjg2Ny00LjA0OC0xLjg2N0gzMS43MjRjLTEuNTQgMC0zLjA0Ny42Ni00LjA0OCAxLjg2N0w2Ljc2OSA4Ni4yMTR2MTMuNzkyaDk0Ljc2OFY4Ni4yMTR6IiBmaWxsPSJ1cmwoI2xpbmVhckdyYWRpZW50LTEpIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxMy41NikiLz4KICAgICAgPHBhdGggZD0iTTMzLjgzIDBoNjcuOTMzYTQgNCAwIDAgMSA0IDR2OTMuMzQ0YTQgNCAwIDAgMS00IDRIMzMuODNhNCA0IDAgMCAxLTQtNFY0YTQgNCAwIDAgMSA0LTR6IiBmaWxsPSIjRjVGNUY3Ii8+CiAgICAgIDxwYXRoIGQ9Ik00Mi42NzggOS45NTNoNTAuMjM3YTIgMiAwIDAgMSAyIDJWMzYuOTFhMiAyIDAgMCAxLTIgMkg0Mi42NzhhMiAyIDAgMCAxLTItMlYxMS45NTNhMiAyIDAgMCAxIDItMnpNNDIuOTQgNDkuNzY3aDQ5LjcxM2EyLjI2MiAyLjI2MiAwIDEgMSAwIDQuNTI0SDQyLjk0YTIuMjYyIDIuMjYyIDAgMCAxIDAtNC41MjR6TTQyLjk0IDYxLjUzaDQ5LjcxM2EyLjI2MiAyLjI2MiAwIDEgMSAwIDQuNTI1SDQyLjk0YTIuMjYyIDIuMjYyIDAgMCAxIDAtNC41MjV6TTEyMS44MTMgMTA1LjAzMmMtLjc3NSAzLjA3MS0zLjQ5NyA1LjM2LTYuNzM1IDUuMzZIMjAuNTE1Yy0zLjIzOCAwLTUuOTYtMi4yOS02LjczNC01LjM2YTcuMzA5IDcuMzA5IDAgMCAxLS4yMjItMS43OVY2OS42NzVoMjYuMzE4YzIuOTA3IDAgNS4yNSAyLjQ0OCA1LjI1IDUuNDJ2LjA0YzAgMi45NzEgMi4zNyA1LjM3IDUuMjc3IDUuMzdoMzQuNzg1YzIuOTA3IDAgNS4yNzctMi40MjEgNS4yNzctNS4zOTNWNzUuMWMwLTIuOTcyIDIuMzQzLTUuNDI2IDUuMjUtNS40MjZoMjYuMzE4djMzLjU2OWMwIC42MTctLjA3NyAxLjIxNi0uMjIxIDEuNzg5eiIgZmlsbD0iI0RDRTBFNiIvPgogICAgPC9nPgogICAgPHBhdGggZD0iTTE0OS4xMjEgMzMuMjkybC02LjgzIDIuNjVhMSAxIDAgMCAxLTEuMzE3LTEuMjNsMS45MzctNi4yMDdjLTIuNTg5LTIuOTQ0LTQuMTA5LTYuNTM0LTQuMTA5LTEwLjQwOEMxMzguODAyIDguMTAyIDE0OC45MiAwIDE2MS40MDIgMCAxNzMuODgxIDAgMTg0IDguMTAyIDE4NCAxOC4wOTdjMCA5Ljk5NS0xMC4xMTggMTguMDk3LTIyLjU5OSAxOC4wOTctNC41MjggMC04Ljc0NC0xLjA2Ni0xMi4yOC0yLjkwMnoiIGZpbGw9IiNEQ0UwRTYiLz4KICAgIDxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKDE0OS42NSAxNS4zODMpIiBmaWxsPSIjRkZGIj4KICAgICAgPGVsbGlwc2UgY3g9IjIwLjY1NCIgY3k9IjMuMTY3IiByeD0iMi44NDkiIHJ5PSIyLjgxNSIvPgogICAgICA8cGF0aCBkPSJNNS42OTggNS42M0gwTDIuODk4LjcwNHpNOS4yNTkuNzA0aDQuOTg1VjUuNjNIOS4yNTl6Ii8+CiAgICA8L2c+CiAgPC9nPgo8L3N2Zz4K"
},
desc: {type: String, default: "暂无数据"}
}, methods: {}
}), nt = Object(c.a)(et, (function () {
var t = this, e = t.$createElement, n = t._self._c || e;
return n("div", {class: t.b()}, [n("div", {
class: t.b("image"),
style: {height: t.setPx(t.size)}
}, [n("img", {
attrs: {
src: t.image,
alt: ""
}
})]), t._v(" "), n("p", {class: t.b("desc")}, [t._v(t._s(t.desc))]), t._v(" "), t._t("default")], 2)
}), [], !1, null, null, null).exports, it = Object(i.a)({
name: "flow",
props: {active: [String, Number], index: [String, Number], node: Object},
data: function () {
return {mouseEnter: !1}
},
computed: {
flowNodeContainer: {
get: function () {
return {
position: "absolute",
width: "200px",
top: this.setPx(this.node.top),
left: this.setPx(this.node.left),
boxShadow: this.mouseEnter ? "#66a6e0 0px 0px 12px 0px" : "",
backgroundColor: "transparent"
}
}
}
},
methods: {
showDelete: function () {
this.mouseEnter = !0
}, hideDelete: function () {
this.mouseEnter = !1
}, changeNodeSite: function () {
this.node.left == this.$refs.node.style.left && this.node.top == this.$refs.node.style.top || this.$emit("changeNodeSite", {
index: this.index,
left: Number(this.$refs.node.style.left.replace("px", "")),
top: Number(this.$refs.node.style.top.replace("px", ""))
})
}
}
}), ot = Object(c.a)(it, (function () {
var t = this, e = t.$createElement, n = t._self._c || e;
return n("div", {
ref: "node",
style: t.flowNodeContainer,
attrs: {left: t.node.left, top: t.node.top, disabled: "", mask: !1},
on: {mouseenter: t.showDelete, mouseleave: t.hideDelete, mouseup: t.changeNodeSite}
}, [n("div", {class: t.b("node", {active: t.active === t.node.id})}, [n("div", {class: t.b("node-header")}, [n("i", {
staticClass: "el-icon-rank",
class: t.b("node-drag")
}), t._v(" "), t._t("header", null, {node: t.node})], 2), t._v(" "), n("div", {class: t.b("node-body")}, [t._t("default", null, {node: t.node})], 2)])])
}), [], !1, null, null, null).exports, at = Object(i.a)({
name: "flow",
components: {flowNode: ot},
data: function () {
return {
active: "",
jsPlumb: {},
id: "",
jsplumbSetting: {
Anchors: ["Top", "TopCenter", "TopRight", "TopLeft", "Right", "RightMiddle", "Bottom", "BottomCenter", "BottomRight", "BottomLeft", "Left", "LeftMiddle"],
Container: "",
Connector: "Flowchart",
ConnectionsDetachable: !1,
DeleteEndpointsOnDetach: !1,
Endpoint: ["Rectangle", {height: 10, width: 10}],
EndpointStyle: {fill: "rgba(255,255,255,0)", outlineWidth: 1},
LogEnabled: !0,
PaintStyle: {stroke: "black", strokeWidth: 3},
Overlays: [["Arrow", {width: 12, length: 12, location: 1}]],
RenderMode: "svg"
},
jsplumbConnectOptions: {isSource: !0, isTarget: !0, anchor: "Continuous"},
jsplumbSourceOptions: {
filter: ".avue-flow__node-drag",
filterExclude: !1,
anchor: "Continuous",
allowLoopback: !1
},
jsplumbTargetOptions: {
filter: ".avue-flow__node-drag",
filterExclude: !1,
anchor: "Continuous",
allowLoopback: !1
},
loadEasyFlowFinish: !1
}
},
props: {
value: {type: String},
option: {type: Object},
width: {type: [Number, String], default: "100%"},
height: {type: [Number, String], default: "100%"}
},
watch: {
value: {
handler: function () {
this.active = this.value
}, immediate: !0
}, active: function (t) {
this.$emit("input", t)
}
},
created: function () {
this.id = Object(J.t)(), this.jsplumbSetting.Container = this.id
},
mounted: function () {
this.init()
},
computed: {
styleName: function () {
return {position: "relative", width: this.setPx(this.width), height: this.setPx(this.height)}
}
},
methods: {
init: function () {
var t = this;
this.jsPlumb = jsPlumb.getInstance(), this.$nextTick((function () {
t.jsPlumbInit()
}))
}, handleClick: function (t) {
this.$emit("click", t)
}, hasLine: function (t, e) {
for (var n = 0; n < this.data.lineList.length; n++) {
var i = this.data.lineList[n];
if (i.from === t && i.to === e) return !0
}
return !1
}, hashOppositeLine: function (t, e) {
return this.hasLine(e, t)
}, deleteLine: function (t, e) {
this.option.lineList = this.option.lineList.filter((function (n) {
return n.from !== t && n.to !== e
}))
}, changeLine: function (t, e) {
this.deleteLine(t, e)
}, changeNodeSite: function (t) {
for (var e = t.index, n = t.left, i = t.top, o = 0; o < this.option.nodeList.length; o++) {
this.option.nodeList[o];
o === e && (this.$set(this.option.nodeList[o], "left", n), this.$set(this.option.nodeList[o], "top", i))
}
}, deleteNode: function (t) {
var e = this;
return this.$confirm("确定要删除节点" + t + "?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
closeOnClickModal: !1
}).then((function () {
e.option.nodeList.forEach((function (e) {
e.id === t && (e.display = !0)
})), e.$nextTick((function () {
this.jsPlumb.removeAllEndpoints(t)
}))
})).catch((function () {
})), !0
}, addNode: function (t) {
var e = this.option.nodeList.length, n = "node" + e;
this.option.nodeList.push({id: "node" + e, name: t, left: 0, top: 0}), this.$nextTick((function () {
this.jsPlumb.makeSource(n, this.jsplumbSourceOptions), this.jsPlumb.makeTarget(n, this.jsplumbTargetOptions), this.jsPlumb.draggable(n, {containment: "parent"})
}))
}, loadEasyFlow: function () {
for (var t = 0; t < this.option.nodeList.length; t++) {
var e = this.option.nodeList[t];
this.jsPlumb.makeSource(e.id, this.jsplumbSourceOptions), this.jsPlumb.makeTarget(e.id, this.jsplumbTargetOptions), this.jsPlumb.draggable(e.id)
}
for (t = 0; t < this.option.lineList.length; t++) {
var n = this.option.lineList[t];
this.jsPlumb.connect({source: n.from, target: n.to}, this.jsplumbConnectOptions)
}
this.$nextTick((function () {
this.loadEasyFlowFinish = !0
}))
}, jsPlumbInit: function () {
var t = this;
this.jsPlumb.ready((function () {
t.jsPlumb.importDefaults(t.jsplumbSetting), t.jsPlumb.setSuspendDrawing(!1, !0), t.loadEasyFlow(), t.jsPlumb.bind("click", (function (e, n) {
console.log("click", e), t.$confirm("确定删除所点击的线吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
}).then((function () {
t.jsPlumb.deleteConnection(e)
})).catch((function () {
}))
})), t.jsPlumb.bind("connection", (function (e) {
console.log("connection", e);
var n = e.source.id, i = e.target.id;
t.loadEasyFlowFinish && t.option.lineList.push({from: n, to: i})
})), t.jsPlumb.bind("connectionDetached", (function (e) {
console.log("connectionDetached", e), t.deleteLine(e.sourceId, e.targetId)
})), t.jsPlumb.bind("connectionMoved", (function (e) {
console.log("connectionMoved", e), t.changeLine(e.originalSourceId, e.originalTargetId)
})), t.jsPlumb.bind("contextmenu", (function (t) {
console.log("contextmenu", t)
})), t.jsPlumb.bind("beforeDrop", (function (e) {
console.log("beforeDrop", e);
var n = e.sourceId, i = e.targetId;
return n === i ? (t.$message.error("不能连接自己"), !1) : t.hasLine(n, i) ? (t.$message.error("不能重复连线"), !1) : !t.hashOppositeLine(n, i) || (t.$message.error("不能回环哦"), !1)
})), t.jsPlumb.bind("beforeDetach", (function (t) {
console.log("beforeDetach", t)
}))
}))
}
}
}), rt = Object(c.a)(at, (function () {
var t = this, e = t.$createElement, n = t._self._c || e;
return n("div", {class: t.b(), style: t.styleName}, [n("div", {
style: t.styleName,
attrs: {id: t.id}
}, [n("div", {staticClass: "avue-grid"}), t._v(" "), t._l(t.option.nodeList, (function (e, i) {
return e.display ? t._e() : n("flow-node", {
key: i,
attrs: {node: e, id: e.id, index: i, active: t.active},
on: {changeNodeSite: t.changeNodeSite},
nativeOn: {
click: function (n) {
return t.handleClick(e)
}
},
scopedSlots: t._u([{
key: "header", fn: function (e) {
var n = e.node;
return [t._t("header", null, {node: n})]
}
}], null, !0)
}, [t._v(" "), t._t("default", null, {node: e})], 2)
}))], 2)])
}), [], !1, null, null, null).exports,
st = {img: "img", title: "title", subtile: "title", tag: "tag", status: "status"}, lt = Object(i.a)({
name: "notice", props: {
option: {
type: Object, default: function () {
return {}
}
}, data: {
type: Array, default: function () {
return []
}
}
}, data: function () {
return {page: 1, loading: !1}
}, computed: {
props: function () {
return this.option.props || st
}, imgKey: function () {
return this.props.img || st.img
}, titleKey: function () {
return this.props.title || st.title
}, subtitleKey: function () {
return this.props.subtitle || st.subtitle
}, tagKey: function () {
return this.props.tag || st.tag
}, statusKey: function () {
return this.props.status || st.status
}
}, methods: {
click: function (t) {
this.$emit("click", t)
}, handleClick: function () {
var t = this;
this.loading = !0;
this.page++, this.$emit("page-change", this.page, (function () {
t.loading = !1
}))
}, getType: function () {
var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : 0;
return 0 == t ? "info" : 1 == t ? "" : 2 == t ? "warning" : 3 == t ? "danger" : 4 == t ? "success" : void 0
}
}
}), ct = Object(c.a)(lt, (function () {
var t = this, e = t.$createElement, n = t._self._c || e;
return n("div", {class: t.b()}, [t._l(t.data, (function (e, i) {
return n("div", {
key: i, class: t.b("item"), on: {
click: function (n) {
return t.click(e)
}
}
}, [e[t.imgKey] ? n("div", {class: t.b("img")}, [n("img", {
attrs: {
src: e[t.imgKey],
alt: ""
}
})]) : t._e(), t._v(" "), n("div", {class: t.b("content")}, [n("div", {class: t.b("title")}, [n("span", {class: t.b("name")}, [t._v(t._s(e[t.titleKey]))]), t._v(" "), e[t.tagKey] ? n("span", {class: t.b("tag")}, [n("el-tag", {
attrs: {
size: "small",
type: t.getType(e[t.statusKey])
}
}, [t._v(t._s(e[t.tagKey]))])], 1) : t._e()]), t._v(" "), n("div", {class: t.b("subtitle")}, [t._v(t._s(e[t.subtitleKey]))])])])
})), t._v(" "), n("div", {
directives: [{
name: "loading",
rawName: "v-loading",
value: t.loading,
expression: "loading"
}], class: t.b("more"), on: {click: t.handleClick}
}, [t._v("\n 加载更多\n ")])], 2)
}), [], !1, null, null, null).exports, ut = Object(i.a)({
name: "license", props: {
id: {type: String, default: ""}, option: {
type: Object, default: function () {
return {}
}
}
}, watch: {
option: {
handler: function () {
this.init()
}, deep: !0
}
}, data: function () {
return {base64: "", draw: !1, canvas: "", context: ""}
}, computed: {
img: function () {
return this.option.img
}, list: function () {
return this.option.list || []
}
}, mounted: function () {
this.canvas = document.getElementById("canvas" + this.id), this.context = this.canvas.getContext("2d"), this.init()
}, methods: {
init: function () {
var t = this;
this.draw = !1;
var e = new Image;
e.src = this.img, e.onload = function () {
var n = t.option.width || e.width, i = t.option.width ? e.height / e.width * t.option.width : e.height;
t.$refs.canvas.width = n, t.$refs.canvas.height = i, t.context.clearRect(0, 0, n, i), t.context.drawImage(e, 0, 0, n, i), t.list.forEach((function (e, n) {
var i = function () {
n == t.list.length - 1 && setTimeout((function () {
t.draw = !0
}), 0)
};
if (e.img) {
var o = new Image;
o.src = e.img, o.onload = function () {
var n = e.width || o.width, a = e.width ? o.height / o.width * e.width : o.height;
t.context.drawImage(o, e.left, e.top, n, a), i()
}
} else e.bold ? t.context.font = "bold ".concat(e.size, "px ").concat(e.style) : t.context.font = "".concat(e.size, "px ").concat(e.style), t.context.fillStyle = e.color, t.context.fillText(e.text, e.left, e.top), t.context.stroke(), i()
}))
}
}, getFile: function () {
var t = this, e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : (new Date).getTime();
return new Promise((function (n) {
var i = setInterval((function () {
if (t.draw) {
var o = t.canvas.toDataURL("image/jpeg", 1), a = t.dataURLtoFile(o, e);
clearInterval(i), n(a)
}
}), 1e3)
}))
}, downFile: function () {
var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : (new Date).getTime();
Object(J.g)(this.base64, t)
}, getBase64: function () {
var t = this;
return new Promise((function (e) {
var n = setInterval((function () {
if (t.draw) {
var i = t.canvas.toDataURL("image/jpeg", 1);
t.base64 = i, clearInterval(n), e(i)
}
}), 100)
}))
}, getPdf: function () {
var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : (new Date).getTime(),
e = this.canvas.width, n = this.canvas.height, i = e / 592.28 * 841.89, o = n, a = 0, r = 595.28,
s = 592.28 / e * n, l = this.canvas.toDataURL("image/jpeg", 1), c = new window.jsPDF("", "pt", "a4");
if (o < i) c.addImage(l, "JPEG", 0, 0, r, s); else for (; o > 0;) c.addImage(l, "JPEG", 0, a, r, s), a -= 841.89, (o -= i) > 0 && c.addPage();
c.save("".concat(t, ".pdf"))
}
}
}), dt = Object(c.a)(ut, (function () {
var t = this.$createElement, e = this._self._c || t;
return e("div", {class: this.b(), staticStyle: {position: "relative"}}, [e("canvas", {
ref: "canvas",
attrs: {id: "canvas" + this.id}
}), this._v(" "), this._t("default")], 2)
}), [], !1, null, null, null).exports, pt = Object(i.a)({
name: "progress",
props: {
showText: {type: Boolean},
width: {type: [Number, String]},
strokeWidth: {type: [Number, String]},
type: {type: String},
color: {type: String},
percentage: {type: [Number]}
}
}), ht = Object(c.a)(pt, (function () {
var t = this.$createElement, e = this._self._c || t;
return e("div", {class: this.b()}, [e("el-progress", {
attrs: {
type: this.type,
color: this.color,
width: this.width,
"text-inside": "",
"show-text": this.showText,
"stroke-width": this.strokeWidth,
percentage: this.percentage
}
})], 1)
}), [], !1, null, null, null).exports, ft = Object(i.a)({
name: "time",
mixins: [K(), H(), G.a],
data: function () {
return {}
},
props: {
startPlaceholder: {type: String, default: "开始时间"},
endPlaceholder: {type: String, default: "结束时间"},
rangeSeparator: {type: String},
value: {required: !0},
defaultValue: {type: [String, Array]},
valueFormat: {default: ""},
arrowControl: {type: Boolean, default: !1},
type: {default: ""},
format: {default: ""}
},
watch: {
text: function () {
Array.isArray(this.text) && this.validatenull(this.text) && (this.text = this.text.join(","))
}
},
created: function () {
},
mounted: function () {
},
computed: {
isRange: function () {
return "timerange" === this.type
}
},
methods: {}
}), mt = Object(c.a)(ft, (function () {
var t = this, e = t.$createElement, n = t._self._c || e;
return n("div", {class: t.b()}, [n("el-time-picker", {
attrs: {
"is-range": t.isRange,
size: t.size,
"default-value": t.defaultValue,
"range-separator": t.rangeSeparator,
"arrow-control": t.arrowControl,
"start-placeholder": t.startPlaceholder,
"end-placeholder": t.endPlaceholder,
format: t.format,
readonly: t.readonly,
clearable: !t.disabled && t.clearable,
"value-format": t.valueFormat,
placeholder: t.placeholder,
disabled: t.disabled
}, on: {change: t.handleChange}, nativeOn: {
click: function (e) {
return t.handleClick(e)
}
}, model: {
value: t.text, callback: function (e) {
t.text = e
}, expression: "text"
}
})], 1)
}), [], !1, null, null, null).exports, bt = n(5);
function vt(t, e, n) {
return e in t ? Object.defineProperty(t, e, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : t[e] = n, t
}
var yt, gt = Object(i.a)({
name: "input",
mixins: [K(), H()],
data: function () {
return {}
},
props: (V = {
value: {},
maxlength: "",
minlength: "",
showPassword: {type: Boolean, default: !0},
showWordLimit: {type: Boolean, default: !1},
target: {type: String, default: " _blank"},
prefixIcon: {type: String},
suffixIcon: {type: String},
prependClick: {
type: Function, default: function () {
}
},
prepend: {type: String},
appendClick: {
type: Function, default: function () {
}
},
append: {type: String}
}, vt(V, "minlength", {type: Number}), vt(V, "maxlength", {type: Number}), vt(V, "minRows", {
type: Number,
default: 5
}), vt(V, "maxRows", {type: Number, default: 10}), vt(V, "autocomplete", {type: String}), V),
computed: {
isSearch: function () {
return "search" == this.type
}, typeParam: function () {
return "textarea" === this.type ? "textarea" : "password" === this.type ? "password" : "text"
}
}
}), _t = Object(c.a)(gt, (function () {
var t = this, e = t.$createElement, n = t._self._c || e;
return n("el-input", {
class: t.b(),
attrs: {
size: t.size,
clearable: !t.disabled && t.clearable,
type: t.typeParam,
maxlength: t.maxlength,
minlength: t.minlength,
"show-password": "password" == t.typeParam && t.showPassword,
autosize: {minRows: t.minRows, maxRows: t.maxRows},
"prefix-icon": t.prefixIcon,
"suffix-icon": t.suffixIcon,
readonly: t.readonly,
placeholder: t.placeholder,
"show-word-limit": t.showWordLimit,
disabled: t.disabled,
autocomplete: t.autocomplete
},
on: {
keyup: function (e) {
if (!e.type.indexOf("key") && t._k(e.keyCode, "enter", 13, e.key, "Enter")) return null;
t.isSearch && t.appendClick()
}, focus: t.handleFocus, blur: t.handleBlur
},
nativeOn: {
click: function (e) {
return t.handleClick(e)
}
},
model: {
value: t.text, callback: function (e) {
t.text = e
}, expression: "text"
}
}, [t.prepend ? n("template", {slot: "prepend"}, [n("span", {
on: {
click: function (e) {
return t.prependClick()
}
}
}, [t._v(t._s(t.prepend))])]) : t._e(), t._v(" "), t.append ? n("template", {slot: "append"}, [n("span", {
on: {
click: function (e) {
return t.appendClick()
}
}
}, [t._v(t._s(t.append))])]) : t.isSearch ? n("el-button", {
attrs: {slot: "append", icon: "el-icon-search"},
on: {
click: function (e) {
return t.appendClick()
}
},
slot: "append"
}) : t._e()], 2)
}), [], !1, null, null, null).exports, xt = Object(i.a)({
name: "radio", mixins: [K(), H()], data: function () {
return {name: "radio"}
}, props: {value: {}}, watch: {}, created: function () {
}, mounted: function () {
}, methods: {}
}), wt = Object(c.a)(xt, (function () {
var t = this, e = t.$createElement, n = t._self._c || e;
return n("div", {class: t.b()}, [n("el-radio-group", {
attrs: {size: t.size, disabled: t.disabled},
on: {change: t.handleChange},
nativeOn: {
click: function (e) {
return t.handleClick(e)
}
},
model: {
value: t.text, callback: function (e) {
t.text = e
}, expression: "text"
}
}, t._l(t.dic, (function (e, i) {
return n(t.componentName, {
key: i,
tag: "component",
attrs: {label: e[t.valueKey], border: t.border, readonly: t.readonly, disabled: e[t.disabledKey]}
}, [t._v(t._s(e[t.labelKey]))])
})), 1)], 1)
}), [], !1, null, null, null).exports, St = n(11), Ot = Object(i.a)({
name: "select",
mixins: [K(), H()],
data: function () {
return {created: !1, netDic: [], loading: !1}
},
props: {
value: {},
loadingText: {type: String},
noMatchText: {type: String},
noDataText: {type: String},
drag: {type: Boolean, default: !1},
remote: {type: Boolean, default: !1},
tags: {type: Boolean, default: !1},
limit: {type: Number, default: 0},
filterable: {type: Boolean, default: !1},
allowCreate: {type: Boolean, default: !1},
defaultFirstOption: {type: Boolean, default: !1}
},
watch: {
value: function (t) {
this.validatenull(t) || this.remote && !this.created && (this.created = !0, this.handleRemoteMethod(this.multiple ? this.text.join(",") : this.text))
}, dic: {
handler: function (t) {
this.netDic = t
}, immediate: !0
}
},
mounted: function () {
this.drag && this.setSort()
},
methods: {
setSort: function () {
var t = this;
if (window.Sortable) {
var e = this.$refs.main.$el.querySelectorAll(".el-select__tags > span")[0];
this.sortable = window.Sortable.create(e, {
ghostClass: "sortable-ghost", setData: function (t) {
t.setData("Text", "")
}, onEnd: function (e) {
var n = t.value.splice(e.oldIndex, 1)[0];
t.value.splice(e.newIndex, 0, n)
}
})
} else D.a.logs("Sortable")
}, handleRemoteMethod: function (t) {
var e = this;
this.loading = !0, Object(St.d)({column: this.column, value: t}).then((function (t) {
e.loading = !1, e.netDic = t
}))
}
}
}), Ct = Object(c.a)(Ot, (function () {
var t = this, e = t.$createElement, n = t._self._c || e;
return n("el-select", {
ref: "main",
class: t.b(),
attrs: {
size: t.size,
loading: t.loading,
"loading-text": t.loadingText,
multiple: t.multiple,
filterable: !!t.remote || t.filterable,
remote: t.remote,
readonly: t.readonly,
"no-match-text": t.noMatchText,
"no-data-text": t.noDataText,
"remote-method": t.handleRemoteMethod,
"collapse-tags": t.tags,
clearable: !t.disabled && t.clearable,
placeholder: t.placeholder,
"multiple-limit": t.limit,
"allow-create": t.allowCreate,
"default-first-option": t.defaultFirstOption,
disabled: t.disabled
},
on: {focus: t.handleFocus, blur: t.handleBlur},
nativeOn: {
click: function (e) {
return t.handleClick(e)
}
},
model: {
value: t.text, callback: function (e) {
t.text = e
}, expression: "text"
}
}, [t.group ? t._l(t.netDic, (function (e, i) {
return n("el-option-group", {key: i, attrs: {label: t.getLabelText(e)}}, t._l(e[t.groupsKey], (function (e, i) {
return n("el-option", {
key: i,
attrs: {disabled: e[t.disabledKey], label: t.getLabelText(e), value: e[t.valueKey]}
}, [t.$scopedSlots.default ? t._t("default", null, {
label: t.labelKey,
value: t.valueKey,
item: e
}) : [n("span", [t._v(t._s(t.getLabelText(e)))]), t._v(" "), e.desc ? n("span", {class: t.b("desc")}, [t._v(t._s(e.desc))]) : t._e()]], 2)
})), 1)
})) : t._l(t.netDic, (function (e, i) {
return n("el-option", {
key: i,
attrs: {disabled: e[t.disabledKey], label: t.getLabelText(e), value: e[t.valueKey]}
}, [t.$scopedSlots.default ? t._t("default", null, {
label: t.labelKey,
value: t.valueKey,
item: e
}) : [n("span", [t._v(t._s(t.getLabelText(e)))]), t._v(" "), e[t.descKey] ? n("span", {class: t.b("desc")}, [t._v(t._s(e[t.descKey]))]) : t._e()]], 2)
}))], 2)
}), [], !1, null, null, null).exports;
function kt(t, e, n) {
return e in t ? Object.defineProperty(t, e, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : t[e] = n, t
}
var jt = Object(i.a)({
name: "cascader",
mixins: [K(), H()],
props: (yt = {
checkStrictly: {type: Boolean, default: !1},
emitPath: {type: Boolean, default: !0},
tags: {type: Boolean, default: !1},
value: {
type: Array, default: function () {
return []
}
},
changeOnSelect: {type: Boolean, default: !1},
expandTrigger: {type: String, default: "hover"},
showAllLevels: {type: Boolean, default: !0},
lazy: {type: Boolean, default: !1},
lazyLoad: Function,
filterable: {type: Boolean, default: !1}
}, kt(yt, "expandTrigger", {type: String, default: "click"}), kt(yt, "separator", {type: String}), yt),
data: function () {
return {}
},
watch: {},
computed: {
allProps: function () {
var t = this;
return {
label: this.labelKey,
value: this.valueKey,
children: this.childrenKey,
checkStrictly: this.checkStrictly,
multiple: this.multiple,
lazy: this.lazy,
lazyLoad: function (e, n) {
t.lazyLoad && t.lazyLoad(e, (function (i) {
!function e(n, i, o) {
n.forEach((function (n) {
n[t.valueKey] == i ? n[t.childrenKey] = o : n[t.childrenKey] && e(n[t.childrenKey])
}))
}(t.dic, e[t.valueKey], i), n(i)
}))
},
expandTrigger: this.expandTrigger
}
}
},
created: function () {
},
mounted: function () {
},
methods: {}
}), Dt = Object(c.a)(jt, (function () {
var t = this, e = t.$createElement, n = t._self._c || e;
return n("el-cascader", {
attrs: {
options: t.dic,
placeholder: t.placeholder,
props: t.allProps,
size: t.size,
"emit-path": t.emitPath,
"change-on-select": t.changeOnSelect,
clearable: !t.disabled && t.clearable,
"expand-trigger": t.expandTrigger,
"show-all-levels": t.showAllLevels,
filterable: t.filterable,
separator: t.separator,
disabled: t.disabled,
"collapse-tags": t.tags
}, on: {focus: t.handleFocus, blur: t.handleBlur}, nativeOn: {
click: function (e) {
return t.handleClick(e)
}
}, scopedSlots: t._u([{
key: "default", fn: function (e) {
var i = e.data, o = e.node;
return [t.$scopedSlots.default ? t._t("default", null, {
data: i,
node: o
}) : n("span", [t._v(t._s(i[t.labelKey]))])]
}
}], null, !0), model: {
value: t.text, callback: function (e) {
t.text = e
}, expression: "text"
}
})
}), [], !1, null, null, null).exports, Et = Object(i.a)({
name: "input-color",
mixins: [K(), H()],
props: {
colorFormat: String, iconList: {
type: Array, default: function () {
return []
}
}
},
data: function () {
return {predefineColors: ["#ff4500", "#ff8c00", "#ffd700", "#90ee90", "#00ced1", "#1e90ff", "#c71585", "rgba(255, 69, 0, 0.68)", "rgb(255, 120, 0)", "hsv(51, 100, 98)", "hsva(120, 40, 94, 0.5)", "hsl(181, 100%, 37%)", "hsla(209, 100%, 56%, 0.73)", "#c7158577"]}
},
methods: {}
}), Mt = Object(c.a)(Et, (function () {
var t = this, e = t.$createElement, n = t._self._c || e;
return n("div", {class: t.b()}, [n("el-input", {
ref: "main",
attrs: {
placeholder: t.placeholder,
size: t.size,
readonly: t.readonly,
clearable: !t.disabled && t.clearable,
disabled: t.disabled
},
on: {change: t.handleChange},
nativeOn: {
click: function (e) {
return t.handleClick(e)
}
},
model: {
value: t.text, callback: function (e) {
t.text = e
}, expression: "text"
}
}, [n("template", {slot: "append"}, [n("el-color-picker", {
attrs: {
size: "mini",
"color-format": t.colorFormat,
disabled: t.disabled,
"show-alpha": "",
predefine: t.predefineColors
}, on: {change: t.handleChange}, model: {
value: t.text, callback: function (e) {
t.text = e
}, expression: "text"
}
})], 1)], 2)], 1)
}), [], !1, null, null, null).exports, Tt = Object(i.a)({
name: "input-number",
mixins: [K(), H()],
data: function () {
return {}
},
props: {
controls: {type: Boolean, default: !0},
step: {type: Number, default: 1},
controlsPosition: {type: String, default: "right"},
precision: {type: Number},
minRows: {type: Number, default: -1 / 0},
maxRows: {type: Number, default: 1 / 0}
},
created: function () {
},
mounted: function () {
},
methods: {}
}), At = Object(c.a)(Tt, (function () {
var t = this, e = t.$createElement;
return (t._self._c || e)("el-input-number", {
class: t.b(),
attrs: {
precision: t.precision,
placeholder: t.placeholder,
size: t.size,
min: t.minRows,
max: t.maxRows,
step: t.step,
clearable: !t.disabled && t.clearable,
readonly: t.readonly,
"controls-position": t.controlsPosition,
controls: t.controls,
label: t.placeholder,
disabled: t.disabled
},
on: {focus: t.handleFocus, blur: t.handleBlur},
nativeOn: {
click: function (e) {
return t.handleClick(e)
}
},
model: {
value: t.text, callback: function (e) {
t.text = t._n(e)
}, expression: "text"
}
})
}), [], !1, null, null, null).exports, It = Object(i.a)({
name: "input-tree",
mixins: [K(), H()],
data: function () {
return {node: [], filterValue: "", box: !1}
},
props: {
nodeClick: Function,
treeLoad: Function,
checked: Function,
value: {},
lazy: {type: Boolean, default: !1},
leafOnly: {type: Boolean, default: !1},
tags: {type: Boolean, default: !1},
limit: {type: Number, default: 0},
expandOnClickNode: {type: Boolean, default: !0},
filter: {type: Boolean, default: !0},
filterText: {type: String, default: "输入关键字进行过滤"},
checkStrictly: {type: Boolean, default: !1},
accordion: {type: Boolean, default: !1},
parent: {type: Boolean, default: !0},
defaultExpandedKeys: {type: Array},
iconClass: {type: String},
defaultCheckedKeys: {type: Array},
defaultExpandAll: {type: Boolean, default: !1}
},
watch: {
text: {
handler: function (t) {
this.init(), this.validatenull(t) && this.clearHandle()
}
}, dic: function () {
this.init()
}, filterValue: function (t) {
this.$refs.tree.filter(t)
}
},
computed: {
treeProps: function () {
return Object.assign(this.props, {isLeaf: this.leafKey})
}, dicList: function () {
var t = this.dic;
return function t(e, n) {
e.forEach((function (e) {
var i = e.children;
i && t(i, e), n && (e.$parent = n)
}))
}(t), t
}, keysList: function () {
var t = this;
if (this.validatenull(this.text)) return [];
return Array.isArray(this.text) ? this.text : (this.text + "").split(this.separator).map((function (e) {
return Object(J.e)(e, t.dataType)
}))
}, labelShow: function () {
var t = this, e = [], n = this.deepClone(this.node);
return e = this.typeformat ? n.map((function (e) {
return t.getLabelText(e)
})) : n.map((function (e) {
return e[t.labelKey]
})), this.multiple ? e : e.join("")
}
},
methods: {
handleClear: function () {
this.multiple ? this.text = [] : this.text = "", this.node = []
}, handleTreeLoad: function (t, e) {
var n = this;
this.treeLoad && this.treeLoad(t, (function (i) {
!function t(e, i, o) {
e.forEach((function (e) {
e[n.valueKey] == i ? e[n.childrenKey] = o : e[n.childrenKey] && t(e[n.childrenKey])
}))
}(n.dic, t.key, i), e(i)
}))
}, initScroll: function (t) {
var e = this;
setTimeout((function () {
e.$nextTick((function () {
document.querySelectorAll(".el-scrollbar .el-select-dropdown__wrap").forEach((function (t) {
t.scrollTop = 0
}))
}))
}), 0), this.handleClick(t)
}, filterNode: function (t, e) {
return !t || -1 !== e[this.labelKey].indexOf(t)
}, checkChange: function (t, e, n, i) {
var o = this;
this.text = [], this.$refs.tree.getCheckedNodes(this.leafOnly, !1).forEach((function (t) {
return o.text.push(t[o.valueKey])
})), "function" == typeof this.checked && this.checked(t, e, n, i)
}, getHalfList: function () {
var t = this, e = this.$refs.tree.getCheckedNodes(!1, !0);
return e = e.map((function (e) {
return e[t.valueKey]
}))
}, init: function () {
var t = this;
this.$nextTick((function () {
if (t.node = [], t.multiple) {
t.$refs.tree.getCheckedNodes(t.leafOnly, !1).forEach((function (e) {
t.node.push(e)
}))
} else {
var e = t.$refs.tree.getNode(t.text);
if (e) {
var n = e.data;
t.$refs.tree.setCurrentKey(n[t.valueKey]), t.node.push(n)
}
}
})), this.disabledParentNode(this.dic, this.parent)
}, disabledParentNode: function (t, e) {
var n = this;
t.forEach((function (t) {
var i = t[n.childrenKey];
n.validatenull(i) || (e || (t.disabled = !0), n.disabledParentNode(i, e))
}))
}, clearHandle: function () {
this.filterValue = "", this.$refs.tree.setCurrentKey(null), this.$refs.tree.setCheckedKeys([])
}, handleNodeClick: function (t, e, n) {
t.disabled || ("function" == typeof this.nodeClick && this.nodeClick(t, e, n), this.multiple || (this.validatenull(t[this.childrenKey]) && !this.multiple || this.parent) && (this.text = t[this.valueKey], this.$refs.main.blur()))
}
}
}), Pt = Object(c.a)(It, (function () {
var t = this, e = t.$createElement, n = t._self._c || e;
return n("el-select", {
ref: "main",
class: t.b(),
attrs: {
size: t.size,
multiple: t.multiple,
"multiple-limit": t.limit,
"collapse-tags": t.tags,
value: t.labelShow,
clearable: !t.disabled && t.clearable,
placeholder: t.placeholder,
disabled: t.disabled
},
on: {focus: t.handleFocus, blur: t.handleBlur, clear: t.handleClear},
nativeOn: {
click: function (e) {
return t.initScroll(e)
}
}
}, [t.filter ? n("div", {
staticStyle: {
padding: "0 10px",
margin: "5px 0 0 0"
}
}, [n("el-input", {
attrs: {size: "mini", placeholder: t.filterText},
model: {
value: t.filterValue, callback: function (e) {
t.filterValue = e
}, expression: "filterValue"
}
})], 1) : t._e(), t._v(" "), n("el-option", {attrs: {value: t.text}}, [n("el-tree", {
ref: "tree",
staticClass: "tree-option",
staticStyle: {padding: "10px 0"},
attrs: {
data: t.dicList,
lazy: t.lazy,
load: t.handleTreeLoad,
"node-key": t.valueKey,
accordion: t.accordion,
"icon-class": t.iconClass,
"show-checkbox": t.multiple,
"expand-on-click-node": t.expandOnClickNode,
props: t.treeProps,
"check-strictly": t.checkStrictly,
"highlight-current": !t.multiple,
"current-node-key": t.multiple ? "" : t.text,
"filter-node-method": t.filterNode,
"default-expanded-keys": t.defaultExpandedKeys ? t.defaultExpandedKeys : t.defaultExpandAll ? [] : t.keysList,
"default-checked-keys": t.defaultCheckedKeys ? t.defaultCheckedKeys : t.keysList,
"default-expand-all": t.defaultExpandAll
},
on: {
check: t.checkChange, "node-click": function (e) {
return e.target !== e.currentTarget ? null : t.handleNodeClick(e)
}
},
scopedSlots: t._u([{
key: "default", fn: function (e) {
var i = e.data;
return n("div", {
staticStyle: {
width: "100%",
"padding-right": "10px"
}
}, [t.$scopedSlots.default ? t._t("default", null, {
label: t.labelKey,
value: t.valueKey,
item: i
}) : n("span", {class: {"avue--disabled": i[t.disabledKey]}}, [t._v(t._s(i[t.labelKey]))])], 2)
}
}], null, !0)
})], 1)], 1)
}), [], !1, null, null, null).exports, $t = Object(i.a)({
name: "input-map", mixins: [K(), H()], data: function () {
return {formattedAddress: "", address: "", poi: {}, marker: null, map: null, box: !1}
}, watch: {
poi: function (t) {
this.formattedAddress = t.formattedAddress
}, value: function (t) {
this.validatenull(t) && (this.poi = {})
}, text: function (t) {
this.validatenull(t) || (this.poi = {
longitude: t[0],
latitude: t[1],
formattedAddress: t[2]
}, this.address = t[2])
}, box: {
handler: function () {
var t = this;
this.box && this.$nextTick((function () {
return t.init((function () {
t.longitude && t.latitude && (t.addMarker(t.longitude, t.latitude), t.getAddress(t.longitude, t.latitude))
}))
}))
}, immediate: !0
}
}, computed: {
longitude: function () {
return this.text[0]
}, latitude: function () {
return this.text[1]
}, title: function () {
return this.disabled || this.readonly ? "查看" : "选择"
}
}, methods: {
clear: function () {
this.poi = {}, this.clearMarker()
}, handleSubmit: function () {
this.setVal(), this.box = !1
}, handleClear: function () {
this.text = [], this.poi = {}, this.handleChange(this.text)
}, setVal: function () {
this.text = [this.poi.longitude, this.poi.latitude, this.poi.formattedAddress], this.handleChange(this.text)
}, handleShow: function () {
this.$refs.main.blur(), this.box = !0
}, addMarker: function (t, e) {
this.clearMarker(), this.marker = new window.AMap.Marker({position: [t, e]}), this.marker.setMap(this.map)
}, clearMarker: function () {
this.marker && (this.marker.setMap(null), this.marker = null)
}, getAddress: function (t, e) {
var n = this;
new window.AMap.service("AMap.Geocoder", (function () {
new window.AMap.Geocoder({}).getAddress([t, e], (function (i, o) {
if ("complete" === i && "OK" === o.info) {
var a = o.regeocode;
n.poi = Object.assign(a, {longitude: t, latitude: e});
var r = document.createElement("div"), s = document.createElement("img");
s.src = "//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-default.png", r.appendChild(s);
var l = document.createElement("span");
l.className = "avue-input-map__marker", l.innerHTML = n.poi.formattedAddress, r.appendChild(l), n.marker.setContent(r)
}
}))
}))
}, handleClose: function () {
window.poiPicker.clearSearchResults()
}, addClick: function () {
var t = this;
this.map.on("click", (function (e) {
if (!t.disabled && !t.readonly) {
var n = e.lnglat, i = n.P || n.Q, o = n.R;
t.addMarker(o, i), t.getAddress(o, i)
}
}))
}, init: function (t) {
var e = this;
window.AMap ? (this.map = new window.AMap.Map("map__container", Object.assign({
zoom: 13, center: function () {
if (e.longitude && e.latitude) return [e.longitude, e.latitude]
}()
}, this.params)), this.initPoip(), this.addClick(), t()) : D.a.logs("Map")
}, initPoip: function () {
var t = this;
window.AMapUI ? window.AMapUI.loadUI(["misc/PoiPicker"], (function (e) {
var n = new e({
input: "map__input",
placeSearchOptions: {map: t.map, pageSize: 10},
searchResultsContainer: "map__result"
});
t.poiPickerReady(n)
})) : D.a.logs("MapUi")
}, poiPickerReady: function (t) {
var e = this;
window.poiPicker = t, t.on("poiPicked", (function (n) {
e.clearMarker();
var i = n.source, o = n.item;
e.poi = Object.assign(o, {
formattedAddress: o.name,
longitude: o.location.R,
latitude: o.location.P || o.location.Q
}), "search" !== i && t.searchByKeyword(o.name)
}))
}
}
}), Lt = Object(c.a)($t, (function () {
var t = this, e = t.$createElement, n = t._self._c || e;
return n("div", {class: t.b()}, [n("el-input", {
ref: "main",
attrs: {size: t.size, clearable: !t.disabled && t.clearable, disabled: t.disabled, placeholder: t.placeholder},
on: {clear: t.handleClear, focus: t.handleShow},
nativeOn: {
click: function (e) {
return t.handleClick(e)
}
},
model: {
value: t.address, callback: function (e) {
t.address = e
}, expression: "address"
}
}), t._v(" "), n("el-dialog", {
staticClass: "avue-dialog",
attrs: {width: "80%", "append-to-body": "", title: t.placeholder, visible: t.box},
on: {
close: t.handleClose, "update:visible": function (e) {
t.box = e
}
}
}, [t.box ? n("div", {class: t.b("content")}, [n("el-input", {
class: t.b("content-input"),
attrs: {id: "map__input", size: t.size, readonly: t.disabled, clearable: "", placeholder: "输入关键字选取地点"},
on: {clear: t.clear},
model: {
value: t.formattedAddress, callback: function (e) {
t.formattedAddress = e
}, expression: "formattedAddress"
}
}), t._v(" "), n("div", {class: t.b("content-box")}, [n("div", {
class: t.b("content-container"),
attrs: {id: "map__container", tabindex: "0"}
}), t._v(" "), n("div", {
class: t.b("content-result"),
attrs: {id: "map__result"}
})])], 1) : t._e(), t._v(" "), n("span", {
staticClass: "dialog-footer",
attrs: {slot: "footer"},
slot: "footer"
}, [t.disabled || t.readonly ? t._e() : n("el-button", {
attrs: {
type: "primary",
size: t.size,
icon: "el-icon-check"
}, on: {click: t.handleSubmit}
}, [t._v("确 定")])], 1)])], 1)
}), [], !1, null, null, null).exports, Nt = Object(i.a)({
name: "input-icon", mixins: [K(), H()], props: {
iconList: {
type: Array, default: function () {
return []
}
}
}, data: function () {
return {box: !1, tabs: {}}
}, computed: {
list: function () {
var t = (this.tabs.list || []).map((function (t) {
return t.value ? t : {value: t}
}));
return t
}, option: function () {
return {column: this.iconList}
}
}, created: function () {
this.tabs = this.iconList[0] || {}
}, methods: {
handleTabs: function (t) {
this.tabs = t
}, handleSubmit: function (t) {
this.box = !1, this.text = t, this.handleChange(t)
}, handleShow: function () {
this.$refs.main.blur(), this.disabled || this.readonly || (this.box = !0)
}
}
}), zt = Object(c.a)(Nt, (function () {
var t = this, e = t.$createElement, n = t._self._c || e;
return n("div", {class: t.b()}, [n("el-input", {
ref: "main",
attrs: {placeholder: t.placeholder, size: t.size, clearable: !t.disabled && t.clearable, disabled: t.disabled},
on: {change: t.handleChange, focus: t.handleShow},
nativeOn: {
click: function (e) {
return t.handleClick(e)
}
},
model: {
value: t.text, callback: function (e) {
t.text = e
}, expression: "text"
}
}, [n("span", {
attrs: {slot: "append"},
on: {click: t.handleShow},
slot: "append"
}, [n("i", {
staticClass: "avue-crud__icon--small",
class: t.text
})])]), t._v(" "), n("el-dialog", {
staticClass: "avue-dialog",
attrs: {title: t.placeholder, "append-to-body": "", visible: t.box, width: "80%"},
on: {
"update:visible": function (e) {
t.box = e
}
}
}, [n("el-scrollbar", {
staticStyle: {
height: "400px",
"overflow-x": "hidden"
}
}, [n("avue-tabs", {
attrs: {option: t.option},
on: {change: t.handleTabs}
}), t._v(" "), n("div", {class: t.b("list")}, t._l(t.list, (function (e, i) {
return n("div", {key: i, class: t.b("item", {active: t.text === e})}, [n("i", {
class: [t.b("icon"), e.value],
on: {
click: function (n) {
return t.handleSubmit(e.value)
}
}
}), t._v(" "), n("p", [t._v(t._s(e.label || e.value))])])
})), 0)], 1)], 1)], 1)
}), [], !1, null, null, null).exports, Bt = Object(i.a)({
name: "input-table", mixins: [K(), H()], data: function () {
return {object: {}, active: {}, page: {}, loading: !1, box: !1, created: !1, data: []}
}, props: {formatter: Function, onLoad: Function}, watch: {
value: function (t) {
this.validatenull(t) && (this.active = {}, this.object = {})
}, box: function (t) {
var e = this;
t && setTimeout((function () {
var t = e.data.find((function (t) {
return t[e.valueKey] == e.object[e.valueKey]
}));
e.$refs.crud.setCurrentRow(t)
}))
}, text: function (t) {
var e = this;
this.created || this.validatenull(t) || "function" == typeof this.onLoad && this.onLoad({value: this.text}, (function (t) {
e.active = t, e.object = t, e.created = !0
}))
}
}, computed: {
title: function () {
return this.disabled || this.readonly ? "查看" : "选择"
}, labelShow: function () {
return "function" == typeof this.formatter ? this.formatter(this.object) : this.object[this.labelKey] || ""
}, option: function () {
return Object.assign({
menu: !1,
header: !1,
size: "mini",
headerAlign: "center",
align: "center",
highlightCurrentRow: !0
}, this.column.children)
}
}, methods: {
handleClear: function () {
this.active = {}, this.setVal()
}, handleShow: function () {
this.$refs.main.blur(), this.disabled || this.readonly || (this.box = !0)
}, setVal: function () {
this.object = this.active, this.text = this.active[this.valueKey] || "", this.handleChange(this.text), this.box = !1
}, handleCurrentRowChange: function (t) {
this.active = t
}, handleSearchChange: function (t, e) {
var n = this;
this.onLoad({page: this.page, data: t}, (function (t) {
n.page.total = t.total, n.data = t.data
})), e && e()
}, onList: function (t) {
var e = this;
this.loading = !0, "function" == typeof this.onLoad && this.onLoad({page: this.page}, (function (t) {
e.page.total = t.total, e.data = t.data, e.loading = !1
}))
}
}
}), Ft = Object(c.a)(Bt, (function () {
var t = this, e = t.$createElement, n = t._self._c || e;
return n("div", {class: t.b()}, [n("el-input", {
ref: "main",
attrs: {
size: t.size,
value: t.labelShow,
clearable: !t.disabled && t.clearable,
placeholder: t.placeholder,
disabled: t.disabled
},
on: {clear: t.handleClear, focus: t.handleShow},
nativeOn: {
click: function (e) {
return t.handleClick(e)
}
}
}), t._v(" "), n("el-dialog", {
staticClass: "avue-dialog",
attrs: {width: "80%", "append-to-body": "", title: t.placeholder, visible: t.box},
on: {
"update:visible": function (e) {
t.box = e
}
}
}, [n("avue-crud", {
directives: [{
name: "loading",
rawName: "v-loading",
value: t.loading,
expression: "loading"
}],
ref: "crud",
class: t.b("crud"),
attrs: {option: t.option, data: t.data, page: t.page},
on: {
"on-load": t.onList,
"search-change": t.handleSearchChange,
"search-reset": t.handleSearchChange,
"current-row-change": t.handleCurrentRowChange,
"update:page": function (e) {
t.page = e
}
}
}), t._v(" "), n("span", {
staticClass: "dialog-footer",
attrs: {slot: "footer"},
slot: "footer"
}, [n("el-button", {
attrs: {type: "primary", size: t.size, icon: "el-icon-check"},
on: {click: t.setVal}
}, [t._v("确 定")])], 1)], 1)], 1)
}), [], !1, null, null, null).exports, Rt = Object(i.a)({
name: "verify",
props: {
size: {type: [Number, String], default: 50},
value: [Number, String],
len: {type: [Number, String], default: 6}
},
computed: {
styleName: function () {
return {
padding: "".concat(this.setPx(this.size / 7), " ").concat(this.setPx(this.size / 4)),
fontSize: this.setPx(this.size)
}
}, list: function () {
return this.data.split("")
}
},
watch: {
value: {
handler: function (t) {
this.validatenull(t) ? this.randomn() : this.data = t + ""
}, immediate: !0
}, data: {
handler: function (t) {
this.$emit("input", t)
}, immediate: !0
}
},
data: function () {
return {data: 0}
},
methods: {
randomn: function () {
var t = this.len;
if (t > 21) return null;
var e = new RegExp("(\\d{" + t + "})(\\.|$)"),
n = (Array(t - 1).join(0) + Math.pow(10, t) * Math.random()).match(e)[1];
this.data = n
}
}
}), Kt = Object(c.a)(Rt, (function () {
var t = this, e = t.$createElement, n = t._self._c || e;
return n("div", {class: t.b()}, t._l(t.list, (function (e, i) {
return n("span", {key: i, class: t.b("item"), style: t.styleName}, [t._v("\n " + t._s(e) + "\n ")])
})), 0)
}), [], !1, null, null, null).exports, Wt = Object(i.a)({
name: "switch",
mixins: [K(), H()],
props: {
value: {},
activeIconClass: String,
inactiveIconClass: String,
activeColor: String,
inactiveColor: String,
len: Number
},
data: function () {
return {}
},
watch: {},
created: function () {
},
mounted: function () {
},
computed: {
active: function () {
return this.dic[1] || {}
}, inactive: function () {
return this.dic[0] || {}
}
},
methods: {}
}), Ut = Object(c.a)(Wt, (function () {
var t = this, e = t.$createElement;
return (t._self._c || e)("el-switch", {
attrs: {
"active-text": t.active[t.labelKey],
"active-value": t.active[t.valueKey],
"inactive-value": t.inactive[t.valueKey],
"inactive-text": t.inactive[t.labelKey],
"active-icon-class": t.activeIconClass,
"inactive-icon-class": t.inactiveIconClass,
"active-color": t.activeColor,
"inactive-color": t.inactiveColor,
width: t.len,
disabled: t.disabled,
readonly: t.readonly,
size: t.size
}, nativeOn: {
click: function (e) {
return t.handleClick(e)
}
}, model: {
value: t.text, callback: function (e) {
t.text = e
}, expression: "text"
}
})
}), [], !1, null, null, null).exports, Vt = Object(i.a)({
name: "rate",
mixins: [K(), H()],
props: {
value: {type: Number, default: 0},
colors: {type: Array},
max: {type: Number, default: 5},
iconClasses: {type: Array},
texts: {type: Array},
showText: {type: Boolean, default: !1},
voidIconClass: {type: String}
},
data: function () {
return {}
},
watch: {},
created: function () {
},
mounted: function () {
},
methods: {}
}), Ht = Object(c.a)(Vt, (function () {
var t = this, e = t.$createElement;
return (t._self._c || e)("el-rate", {
staticStyle: {"margin-top": "10px"},
attrs: {
max: t.max,
readonly: t.readonly,
texts: t.texts,
"show-text": t.showText,
"icon-classes": t.iconClasses,
"void-icon-class": t.voidIconClass,
disabled: t.disabled,
colors: t.colors
},
on: {change: t.handleChange},
nativeOn: {
click: function (e) {
return t.handleClick(e)
}
},
model: {
value: t.text, callback: function (e) {
t.text = e
}, expression: "text"
}
})
}), [], !1, null, null, null).exports;
function qt(t, e) {
if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function")
}
function Yt(t, e) {
for (var n = 0; n < e.length; n++) {
var i = e[n];
i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(t, i.key, i)
}
}
var Gt, Xt, Qt = function () {
function t() {
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
qt(this, t), this.CONTAINERID = Object(J.t)(), this.drawCanvas = this.drawCanvas.bind(this), this.parentObserver = this.parentObserver.bind(this), this.Repaint = this.Repaint.bind(this), this.isOberserve = !1, this.init(e), this.drawCanvas(), this.parentObserver()
}
var e, n, i;
return e = t, (n = [{
key: "init", value: function (t) {
this.option = {}, this.option.text = t.text || "avue商用通用无敌大水印", this.option.font = t.font || "30px 黑体", this.option.canvasWidth = t.canvasWidth || 500, this.option.canvasHeight = t.canvasHeight || 200, this.option.textAlign = t.textAlign || "center", this.option.textStyle = t.textStyle || "rgba(100,100,100,0.15)", this.option.degree = t.degree || -20
}
}, {
key: "drawCanvas", value: function () {
this.isOberserve = !0;
var t = document.createElement("div"), e = document.createElement("canvas"), n = e.getContext("2d");
t.id = this.CONTAINERID, e.width = this.option.canvasWidth, e.height = this.option.canvasHeight, n.font = this.option.font, n.textAlign = this.option.textAlign, n.fillStyle = this.option.textStyle, n.translate(e.width / 2, e.height / 2), n.rotate(this.option.degree * Math.PI / 180), n.fillText(this.option.text, 0, 0);
var i = e.toDataURL("image/png");
this.styleStr = "\n position:fixed;\n top:0;\n left:0;\n width:100%;\n height:100%;\n z-index:9999;\n pointer-events:none;\n background-repeat:repeat;\n background-image:url('".concat(i, "')"), t.setAttribute("style", this.styleStr), document.body.appendChild(t), this.wmObserver(t), this.isOberserve = !1
}
}, {
key: "wmObserver", value: function (t) {
var e = this, n = new MutationObserver((function (t) {
if (!e.isOberserve) {
var i = t[0].target;
i.setAttribute("style", e.styleStr), i.setAttribute("id", e.CONTAINERID), n.takeRecords()
}
}));
n.observe(t, {attributes: !0, childList: !0, characterData: !0})
}
}, {
key: "parentObserver", value: function () {
var t = this;
new MutationObserver((function () {
if (!t.isOberserve) {
var e = document.querySelector("#".concat(t.CONTAINERID));
e ? e.getAttribute("style") !== t.styleStr && e.setAttribute("style", t.styleStr) : t.drawCanvas()
}
})).observe(document.querySelector("#".concat(this.CONTAINERID)).parentNode, {childList: !0})
}
}, {
key: "Repaint", value: function () {
var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
this.remove(), this.init(t), this.drawCanvas()
}
}, {
key: "remove", value: function () {
this.isOberserve = !0;
var t = document.querySelector("#".concat(this.CONTAINERID));
t.parentNode.removeChild(t)
}
}]) && Yt(e.prototype, n), i && Yt(e, i), t
}(), Jt = 200, Zt = 200, te = {
text: "avue.top",
fontFamily: "microsoft yahei",
color: "#999",
fontSize: 16,
opacity: 100,
bottom: 10,
right: 10,
ratio: 1
};
function ee(t) {
var e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
return new Promise((function (n, i) {
var o = e.text, a = e.fontFamily, r = e.color, s = e.fontSize, l = e.opacity, c = e.bottom, u = e.right,
d = e.ratio;
te.text = o || te.text, te.fontFamily = a || te.fontFamily, te.color = r || te.color, te.fontSize = s || te.fontSize, te.opacity = l || te.opacity, te.bottom = c || te.bottom, te.right = u || te.right, te.ratio = d || te.ratio, function (t, e) {
var n = new FileReader;
n.readAsDataURL(t), n.onload = function (t) {
e(t.target.result)
}
}(t, (function (e) {
var i = new Image;
i.src = e, i.onload = function () {
var e = i.width, o = i.height;
!function (t, e) {
null === (Gt = document.getElementById("canvas")) && ((Gt = document.createElement("canvas")).id = "canvas", Gt.className = "avue-canvas", document.body.appendChild(Gt));
Xt = Gt.getContext("2d"), Gt.width = t, Gt.height = e
}(e, o), Xt.drawImage(i, 0, 0, e, o), function (t, e) {
var n = te.text, i = function (t, e, n) {
var i, o, a = te.fontSize / Jt * e;
o = te.bottom ? Zt - te.bottom : te.top;
i = te.right ? Jt - te.right : te.left;
Xt.font = te.fontSize + "px " + te.fontFamily;
var r = Number(Xt.measureText(t).width);
return {x: i = (i = i - r) / Jt * e, y: o = o / Zt * n, fontSize: a}
}(n, t, e);
Xt.font = i.fontSize + "px " + te.fontFamily, Xt.fillStyle = te.color, Xt.globalAlpha = te.opacity / 100, Xt.fillText(n, i.x, i.y)
}(e, o), n(Object(J.c)(document.getElementById("canvas").toDataURL(t.type, te.ratio), t.name))
}
}))
}))
}
var ne = function (t, e, n) {
var i = function (t) {
var e, n, i, o, a, r;
i = t.length, n = 0, e = "";
for (; n < i;) {
if (o = 255 & t.charCodeAt(n++), n == i) {
e += ie.charAt(o >> 2), e += ie.charAt((3 & o) << 4), e += "==";
break
}
if (a = t.charCodeAt(n++), n == i) {
e += ie.charAt(o >> 2), e += ie.charAt((3 & o) << 4 | (240 & a) >> 4), e += ie.charAt((15 & a) << 2), e += "=";
break
}
r = t.charCodeAt(n++), e += ie.charAt(o >> 2), e += ie.charAt((3 & o) << 4 | (240 & a) >> 4), e += ie.charAt((15 & a) << 2 | (192 & r) >> 6), e += ie.charAt(63 & r)
}
return e
}(function (t) {
var e, n, i, o;
for (e = "", i = t.length, n = 0; n < i; n++) (o = t.charCodeAt(n)) >= 1 && o <= 127 ? e += t.charAt(n) : o > 2047 ? (e += String.fromCharCode(224 | o >> 12 & 15), e += String.fromCharCode(128 | o >> 6 & 63), e += String.fromCharCode(128 | o >> 0 & 63)) : (e += String.fromCharCode(192 | o >> 6 & 31), e += String.fromCharCode(128 | o >> 0 & 63));
return e
}(JSON.stringify(n))), o = CryptoJS.HmacSHA1(i, e).toString(CryptoJS.enc.Base64);
return t + ":" + oe(o) + ":" + i
};
var ie = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_";
new Array(-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 62, -1, -1, -1, 63, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, -1, -1, -1, -1, -1, -1, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, -1, -1, -1, -1, -1, -1, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, -1, -1, -1, -1, -1);
var oe = function (t) {
return t = (t = t.replace(/\+/g, "-")).replace(/\//g, "_")
};
function ae(t) {
var e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : "";
return e.match(/(^http:\/\/|^https:\/\/|^\/\/|data:image\/)/) ? e : t + e
}
var re = Object(i.a)({
name: "upload", mixins: [K(), H(), {
data: function () {
return {res: "", loading: !1, text: [], file: {}}
}, props: {
data: {
type: Object, default: function () {
return {}
}
},
onRemove: Function,
showFileList: {type: Boolean, default: !0},
oss: {type: String},
limit: {type: Number, default: 10},
headers: {
type: Object, default: function () {
return {}
}
},
accept: {type: [String, Array], default: ""},
canvasOption: {
type: Object, default: function () {
return {}
}
},
fileSize: {type: Number},
drag: {type: Boolean, default: !1},
isVideo: {type: Boolean, default: !1},
isImage: {type: Boolean, default: !0},
loadText: {type: String, default: "文件上传中,请稍等"},
action: {type: String, default: ""},
uploadBefore: Function,
uploadAfter: Function,
uploadDelete: Function,
uploadPreview: Function,
uploadError: Function,
uploadExceed: Function
}, computed: {
isMultiple: function () {
return this.isArray || this.isString || this.stringMode
}, acceptList: function () {
return Array.isArray(this.accept) ? this.accept.join(",") : this.accept
}, homeUrl: function () {
return this.propsHttp.home || ""
}, allParams: function () {
return this.$typeList.video.test(this.imgUrl) || this.isVideo ? Object.assign({is: "video"}, this.params) : this.params
}, fileName: function () {
return this.propsHttp.fileName || "file"
}, isAliOss: function () {
return "ali" === this.oss
}, isQiniuOss: function () {
return "qiniu" === this.oss
}, isPictureImg: function () {
return "picture-img" === this.listType
}, imgUrl: function () {
if (!this.validatenull(this.text)) return ae(this.homeUrl, this.text[0])
}, fileList: function () {
var t = this, e = [];
return (this.text || []).forEach((function (n, i) {
if (n) {
var o;
if (t.isMultiple) {
var a = n.lastIndexOf("/");
o = n.substring(a + 1)
}
e.push({
uid: i + "",
status: "done",
isImage: t.isImage,
name: t.isMultiple ? o : n[t.labelKey],
url: ae(t.homeUrl, t.isMultiple ? n : n[t.valueKey])
})
}
})), e
}
}, methods: {
handleSuccess: function (t) {
if (this.isPictureImg) this.text.splice(0, 1, t[this.urlKey]); else if (this.isMultiple) this.text.push(t[this.urlKey]); else {
var e = {};
e[this.labelKey] = t[this.nameKey], e[this.valueKey] = t[this.urlKey], this.text.push(e)
}
}, handleRemove: function (t, e) {
this.onRemove && this.onRemove(t, e), this.delete(t)
}, handleError: function (t) {
this.uploadError && this.uploadError(t, this.column)
}, delete: function (t) {
var e = this;
(this.text || []).forEach((function (n, i) {
(e.isMultiple ? n : n[e.valueKey]) === t.url.replace(e.homeUrl, "") && e.text.splice(i, 1)
}))
}, show: function (t) {
this.loading = !1, this.handleSuccess(t || this.res)
}, hide: function (t) {
this.loading = !1, this.handleError(t)
}, handleFileChange: function (t, e) {
e.splice(e.length - 1, 1)
}, httpRequest: function (t) {
var e = this;
this.loading = !0;
var n = t.file, i = n.size / 1024;
if (this.file = t.file, !this.validatenull(i) && i > this.fileSize) this.hide("文件太大不符合"); else {
var o = Object.assign(this.headers, {"Content-Type": "multipart/form-data"}), a = {}, r = {},
s = new FormData, l = function () {
var t = function (t) {
var i = e.action;
for (var l in e.data) s.append(l, e.data[l]);
var c = t || n;
if (s.append(e.fileName, c), e.isQiniuOss) {
if (!window.CryptoJS) return D.a.logs("CryptoJS"), void e.hide();
a = e.$AVUE.qiniu;
var u = ne(a.AK, a.SK, {scope: a.scope, deadline: (new Date).getTime() + 3600 * a.deadline});
s.append("token", u), i = a.bucket
} else if (e.isAliOss) {
if (!window.OSS) return D.a.logs("AliOSS"), void e.hide();
a = e.$AVUE.ali, r = new OSS(a)
}
(e.isAliOss ? r.put(c.name, c) : window.axios ? e.$axios.post(i, s, {headers: o}) : (D.a.logs("axios"), Promise.reject())).then((function (t) {
e.res = {}, e.isQiniuOss && (t.data.key = a.url + t.data.key), e.isAliOss ? e.res = Object(J.l)(t, e.resKey) : e.res = Object(J.l)(t.data, e.resKey), "function" == typeof e.uploadAfter ? e.uploadAfter(e.res, e.show, (function () {
e.loading = !1
}), e.column) : e.show(e.res)
})).catch((function (t) {
"function" == typeof e.uploadAfter ? e.uploadAfter(t, e.hide, (function () {
e.loading = !1
}), e.column) : e.hide(t)
}))
};
"function" == typeof e.uploadBefore ? e.uploadBefore(e.file, t, (function () {
e.loading = !1
}), e.column) : t()
};
this.validatenull(this.canvasOption) ? l() : ee(n, this.canvasOption).then((function (t) {
n = t, l()
}))
}
}, handleExceed: function (t, e) {
this.uploadExceed && this.uploadExceed(this.limit, t, e, this.column)
}, handlePreview: function (t) {
var e = this, n = function () {
var n = t.url, i = e.fileList.map((function (t) {
return Object.assign(t, {type: e.$typeList.video.test(t.url) || e.isVideo ? "video" : ""})
})), o = e.fileList.findIndex((function (t) {
return t.url === n
}));
e.$isVan || e.$ImagePreview(i, o)
};
"function" == typeof this.uploadPreview ? this.uploadPreview(t, this.column, n) : n()
}, handleDelete: function (t) {
var e = this;
this.beforeRemove(t).then((function () {
e.text = [], e.menu = !1
})).catch((function () {
}))
}, beforeRemove: function (t) {
return "function" == typeof this.uploadDelete ? this.uploadDelete(t, this.column) : Promise.resolve()
}
}
}, G.a], data: function () {
return {menu: !1}
}
}), se = Object(c.a)(re, (function () {
var t = this, e = t.$createElement, n = t._self._c || e;
return n("div", {
directives: [{
name: "loading",
rawName: "v-loading.lock",
value: t.loading,
expression: "loading",
modifiers: {lock: !0}
}], class: t.b()
}, [n("el-upload", {
class: t.b({list: "picture-img" == t.listType, upload: t.disabled}),
attrs: {
action: t.action,
"on-remove": t.handleRemove,
accept: t.acceptList,
"before-remove": t.beforeRemove,
multiple: t.multiple,
"on-preview": t.handlePreview,
limit: t.limit,
"http-request": t.httpRequest,
drag: t.drag,
readonly: t.readonly,
"show-file-list": !t.isPictureImg && t.showFileList,
"list-type": t.listType,
"on-change": t.handleFileChange,
"on-exceed": t.handleExceed,
disabled: t.disabled,
"file-list": t.fileList
},
nativeOn: {
click: function (e) {
return t.handleClick(e)
}
},
scopedSlots: t._u([{
key: "file", fn: function (e) {
return t.$scopedSlots.default ? [t._t("default", null, null, e)] : void 0
}
}], null, !0)
}, ["picture-card" == t.listType ? [n("i", {staticClass: "el-icon-plus"})] : "picture-img" == t.listType ? [t.$scopedSlots.default ? t._t("default", null, {file: {url: t.imgUrl}}) : [t.imgUrl ? n("img", t._b({
class: t.b("avatar"),
attrs: {src: t.imgUrl},
on: {
mouseover: function (e) {
t.menu = !0
}
}
}, "img", t.allParams, !1)) : n("i", {
staticClass: "el-icon-plus",
class: t.b("icon")
}), t._v(" "), t.menu ? n("div", {
staticClass: "el-upload-list__item-actions",
class: t.b("menu"),
on: {
mouseover: function (e) {
t.menu = !0
}, mouseout: function (e) {
t.menu = !1
}, click: function (t) {
return t.stopPropagation(), !1
}
}
}, [n("i", {
staticClass: "el-icon-zoom-in", on: {
click: function (e) {
return e.stopPropagation(), t.handlePreview({url: t.imgUrl})
}
}
}), t._v(" "), t.disabled ? t._e() : n("i", {
staticClass: "el-icon-delete", on: {
click: function (e) {
return e.stopPropagation(), t.handleDelete(t.imgUrl)
}
}
})]) : t._e()]] : t.drag ? [n("i", {staticClass: "el-icon-upload"}), t._v(" "), n("div", {staticClass: "el-upload__text"}, [t._v("\n " + t._s(t.t("upload.tip")) + "\n "), n("em", [t._v(t._s(t.t("upload.upload")))])])] : [n("el-button", {
attrs: {
size: "small",
type: "primary"
}
}, [t._v(t._s(t.t("upload.upload")))])], t._v(" "), n("div", {
staticClass: "el-upload__tip",
attrs: {slot: "tip"},
slot: "tip"
}, [t._v(t._s(t.tip))])], 2)], 1)
}), [], !1, null, null, null).exports, le = Object(i.a)({
name: "sign",
props: {width: {type: Number, default: 600}, height: {type: Number, default: 400}},
data: function () {
return {linex: [], liney: [], linen: [], canvas: {}, context: {}}
},
computed: {
styleName: function () {
return {width: this.setPx(this.width), height: this.setPx(this.height)}
}
},
mounted: function () {
this.init()
},
methods: {
getStar: function (t, e, n) {
var i = this.canvas, o = this.context, a = i.width / 2, r = i.height / 2;
o.lineWidth = 7, o.strokeStyle = "#f00", o.beginPath(), o.arc(a, r, 110, 0, 2 * Math.PI), o.stroke(), function (t, e, n, i, o, a) {
t.save(), t.fillStyle = o, t.translate(e, n), t.rotate(Math.PI + a), t.beginPath();
for (var r = Math.sin(0), s = Math.cos(0), l = Math.PI / 5 * 4, c = 0; c < 5; c++) {
r = Math.sin(c * l), s = Math.cos(c * l);
t.lineTo(r * i, s * i)
}
t.closePath(), t.stroke(), t.fill(), t.restore()
}(o, a, r, 20, "#f00", 0), o.font = "18px 黑体", o.textBaseline = "middle", o.textAlign = "center", o.lineWidth = 1, o.strokeStyle = "#f00", o.strokeText(t, a, r + 50), o.font = "14px 黑体", o.textBaseline = "middle", o.textAlign = "center", o.lineWidth = 1, o.strokeStyle = "#f00", o.strokeText(n, a, r + 80), o.translate(a, r), o.font = "22px 黑体";
for (var s, l = e.length, c = 4 * Math.PI / (3 * (l - 1)), u = e.split(""), d = 0; d < l; d++) s = u[d], 0 == d ? o.rotate(5 * Math.PI / 6) : o.rotate(c), o.save(), o.translate(90, 0), o.rotate(Math.PI / 2), o.strokeText(s, 0, 0), o.restore(), o.save()
}, submit: function (t, e) {
return t || (t = this.width), e || (e = this.height), this.canvas.toDataURL("i/png")
}, clear: function () {
this.linex = new Array, this.liney = new Array, this.linen = new Array, this.canvas.width = this.canvas.width
}, init: function () {
this.canvas = this.$refs.canvas;
var t = this.canvas, e = this;
void 0 !== document.ontouchstart ? (t.addEventListener("touchmove", s, !1), t.addEventListener("touchstart", l, !1), t.addEventListener("touchend", c, !1)) : (t.addEventListener("mousemove", s, !1), t.addEventListener("mousedown", l, !1), t.addEventListener("mouseup", c, !1), t.addEventListener("mouseleave", c, !1)), this.context = t.getContext("2d");
var n = this.context;
this.linex = new Array, this.liney = new Array, this.linen = new Array;
var i = 1, o = 30, a = 0;
function r(t, e) {
var n, i, o = t.getBoundingClientRect();
return e.targetTouches ? (n = e.targetTouches[0].clientX, i = e.targetTouches[0].clientY) : (n = e.clientX, i = e.clientY), {
x: (n - o.left) * (t.width / o.width),
y: (i - o.top) * (t.height / o.height)
}
}
function s(s) {
var l = r(t, s).x, c = r(t, s).y;
if (1 == a) {
e.linex.push(l), e.liney.push(c), e.linen.push(1), n.save(), n.translate(n.canvas.width / 2, n.canvas.height / 2), n.translate(-n.canvas.width / 2, -n.canvas.height / 2), n.beginPath(), n.lineWidth = 2;
for (var u = 1; u < e.linex.length; u++) i = e.linex[u], o = e.liney[u], 0 == e.linen[u] ? n.moveTo(i, o) : n.lineTo(i, o);
n.shadowBlur = 10, n.stroke(), n.restore()
}
s.preventDefault()
}
function l(n) {
var i = r(t, n).x, o = r(t, n).y;
a = 1, e.linex.push(i), e.liney.push(o), e.linen.push(0)
}
function c() {
a = 0
}
}
}
}), ce = Object(c.a)(le, (function () {
var t = this.$createElement, e = this._self._c || t;
return e("div", {class: this.b()}, [e("canvas", {
ref: "canvas",
class: this.b("canvas"),
attrs: {width: this.width, height: this.height}
})])
}), [], !1, null, null, null).exports, ue = Object(i.a)({
name: "slider",
mixins: [K(), H()],
props: {
value: {},
step: {type: Number},
min: {type: Number},
max: {type: Number},
marks: {type: Object},
range: {type: Boolean, default: !1},
showInput: {type: Boolean, default: !1},
showStops: {type: Boolean, default: !1},
formatTooltip: Function
},
data: function () {
return {}
},
watch: {},
created: function () {
},
mounted: function () {
},
methods: {}
}), de = Object(c.a)(ue, (function () {
var t = this, e = t.$createElement;
return (t._self._c || e)("el-slider", {
attrs: {
disabled: t.disabled,
step: t.step,
min: t.min,
max: t.max,
range: t.range,
"show-stops": t.showStops,
"show-input": t.showInput,
marks: t.marks,
"format-tooltip": t.formatTooltip
}, on: {change: t.handleChange}, nativeOn: {
click: function (e) {
return t.handleClick(e)
}
}, model: {
value: t.text, callback: function (e) {
t.text = e
}, expression: "text"
}
})
}), [], !1, null, null, null).exports;
function pe(t) {
return (pe = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) {
return typeof t
} : function (t) {
return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t
})(t)
}
function he(t, e) {
for (var n = 0; n < e.length; n++) {
var i = e[n];
i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(t, i.key, i)
}
}
var fe = function () {
function t(e) {
if (function (t, e) {
if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function")
}(this, t), "object" === pe(e)) {
this.obj = e;
var n = document.querySelector(e.el), i = "";
if ("object" === pe(e.style)) for (var o in e.style) i += o + ": " + e.style[o] + ";";
for (var a = '
', r = [], s = 1; s < 10; s++) r.push(s.toString());
r.push("0");
for (var l, c = e.keys || [["`"].concat(r).concat(["-", "=", "Delete"]), ["Tab", "q", "w", "e", "r", "t", "y", "u", "i", "o", "p", "[", "]", "\\"], ["Caps", "a", "s", "d", "f", "g", "h", "j", "k", "l", ";", "'", "Enter"], ["Shift", "z", "x", "c", "v", "b", "n", "m", ",", ".", "/", "Shift"], ["Space"]], u = [], d = [], p = 0; p < c.length; p++) {
u.push([]), d.push([]), l = c[p];
for (var h = 0; h < l.length; h++) if (1 !== l[h].length) u[p].push(l[h]), d[p].push(l[h]); else {
switch (d[p].push(l[h].toUpperCase()), l[h]) {
case"`":
u[p].push("~");
continue;
case"1":
u[p].push("!");
continue;
case"2":
u[p].push("@");
continue;
case"3":
u[p].push("#");
continue;
case"4":
u[p].push("$");
continue;
case"5":
u[p].push("%");
continue;
case"6":
u[p].push("^");
continue;
case"7":
u[p].push("&");
continue;
case"8":
u[p].push("*");
continue;
case"9":
u[p].push("(");
continue;
case"0":
u[p].push(")");
continue;
case"-":
u[p].push("_");
continue;
case"=":
u[p].push("+");
continue;
case"[":
u[p].push("{");
continue;
case"]":
u[p].push("}");
continue;
case"\\":
u[p].push("|");
continue;
case";":
u[p].push(":");
continue;
case"'":
u[p].push('"');
continue;
case",":
u[p].push("<");
continue;
case".":
u[p].push(">");
continue;
case"/":
u[p].push("?");
continue
}
u[p].push(l[h].toUpperCase())
}
}
for (var f = 0; f < c.length; f++) {
l = c[f], a += '
';
for (var m = 0; m < l.length; m++) a += '
' + l[m] + "
";
a += "
"
}
a += "
", n.innerHTML = a;
var b = !1;
if (c.forEach((function (t) {
t.includes("Shift") && (b = !0)
})), b) document.querySelectorAll(e.el + " .akeyboard-keyboard-keys-Shift").forEach((function (t) {
t.onclick = function () {
if (this.isShift) {
t.isShift = !1, t.innerHTML = "Shift", this.classList.remove("keyboard-keyboard-keys-focus");
for (var n, i = document.querySelectorAll(e.el + " .akeyboard-keyboard-innerKeys"), o = 0; o < i.length; o++) {
n = i[o];
for (var a = 0; a < n.childNodes.length; a++) n.childNodes[a].innerHTML = c[o][a]
}
} else {
var r = document.querySelector(e.el + " .akeyboard-keyboard-keys-Caps");
if (r && r.isCaps) return;
t.isShift = !0, t.innerHTML = "SHIFT", this.classList.add("keyboard-keyboard-keys-focus");
for (var s, l = document.querySelectorAll(e.el + " .akeyboard-keyboard-innerKeys"), d = 0; d < l.length; d++) {
s = l[d];
for (var p = 0; p < s.childNodes.length; p++) "Shift" !== u[d][p] && (s.childNodes[p].innerHTML = u[d][p])
}
}
}
}));
var v = !1;
if (c.forEach((function (t) {
t.includes("Caps") && (v = !0)
})), v) document.querySelectorAll(e.el + " .akeyboard-keyboard-keys-Caps").forEach((function (t) {
t.onclick = function () {
if (this.isCaps) {
this.isCaps = !1, this.classList.remove("keyboard-keyboard-keys-focus");
for (var t, n = document.querySelectorAll(e.el + " .akeyboard-keyboard-innerKeys"), i = 0; i < n.length; i++) {
t = n[i];
for (var o = 0; o < t.childNodes.length; o++) t.childNodes[o].innerHTML = c[i][o]
}
} else {
var a = document.querySelector(e.el + " .akeyboard-keyboard-keys-Shift");
if (a && a.isShift) return;
this.isCaps = !0, this.classList.add("keyboard-keyboard-keys-focus");
for (var r, s = document.querySelectorAll(e.el + " .akeyboard-keyboard-innerKeys"), l = 0; l < s.length; l++) {
r = s[l];
for (var u = 0; u < r.childNodes.length; u++) r.childNodes[u].innerHTML = d[l][u]
}
}
}
}))
} else console.error('aKeyboard: The obj parameter needs to be an object ')
}
var e, n, i;
return e = t, (n = [{
key: "inputOn", value: function (t, e, n, i) {
if ("string" == typeof t) if ("string" == typeof e) for (var o = document.querySelector(t), a = document.querySelectorAll(this.obj.el + " .akeyboard-keyboard-keys"), r = 0; r < a.length; r++) ["Shift", "Caps"].includes(a[r].innerHTML) || ("Delete" !== a[r].innerHTML ? "Tab" !== a[r].innerHTML ? "Enter" !== a[r].innerHTML ? "Space" !== a[r].innerHTML ? i && "object" === pe(i) && Object.keys(i).length > 0 && i[a[r].innerHTML] ? a[r].onclick = i[a[r].innerHTML] : a[r].onclick = function () {
o[e] += this.innerText, n(this.innerText, o[e])
} : a[r].onclick = function () {
o[e] += " ", n("Space", o[e])
} : a[r].onclick = function () {
o[e] += "\n", n("Enter", o[e])
} : a[r].onclick = function () {
o[e] += " ", n("Tab", o[e])
} : a[r].onclick = function () {
o[e] = o[e].substr(0, o[e].length - 1), n("Delete", o[e])
}); else console.error('aKeyboard: The type parameter needs to be a string '); else console.error('aKeyboard: The inputEle parameter needs to be a string ')
}
}, {
key: "onclick", value: function (t, e) {
if ("string" == typeof t) if ("function" == typeof e) {
var n = document.querySelector(this.obj.el + " .akeyboard-keyboard-keys-" + t);
n ? n.onclick = e : console.error("Can not find key: " + t)
} else console.error('aKeyboard: The fn parameter needs to be a function '); else console.error('aKeyboard: The btn parameter needs to be a string ')
}
}]) && he(e.prototype, n), i && he(e, i), t
}();
function me(t) {
return (me = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) {
return typeof t
} : function (t) {
return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t
})(t)
}
function be(t, e) {
for (var n = 0; n < e.length; n++) {
var i = e[n];
i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(t, i.key, i)
}
}
var ve = function () {
function t(e) {
if (function (t, e) {
if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function")
}(this, t), "object" === me(e)) {
this.obj = e;
var n = document.querySelector(e.el), i = "";
if ("object" === me(e.style)) for (var o in e.style) i += o + ": " + e.style[o] + ";";
var a = '
';
a += '
';
for (var r = 1; r < 10; r++) a += '
' + r + "
", r % 3 == 0 && (a += '
');
a += '
0
Delete
Enter
', a += "
", n.innerHTML = a
} else console.error('aKeyboard: The obj parameter needs to be an object ')
}
var e, n, i;
return e = t, (n = [{
key: "inputOn", value: function (t, e, n, i) {
if ("string" == typeof t) if ("string" == typeof e) for (var o = document.querySelector(t), a = document.querySelectorAll(this.obj.el + " .akeyboard-keyboard-keys"), r = 0; r < a.length; r++) "Delete" !== a[r].innerHTML ? "Enter" !== a[r].innerHTML ? i && "object" === me(i) && Object.keys(i).length > 0 && i[a[r].innerHTML] ? a[r].onclick = i[a[r].innerHTML] : a[r].onclick = function () {
o[e] += this.innerText, n(this.innerText, o[e])
} : a[r].onclick = function () {
o[e] += "\n", n("Enter", o[e])
} : a[r].onclick = function () {
o[e] = o[e].substr(0, o[e].length - 1), n("Delete", o[e])
}; else console.error('aKeyboard: The type parameter needs to be a string '); else console.error('aKeyboard: The inputEle parameter needs to be a string ')
}
}, {
key: "onclick", value: function (t, e) {
if ("string" == typeof t) if ("function" == typeof e) {
var n = document.querySelector(this.obj.el + " .akeyboard-keyboard-keys-" + t);
n ? n.onclick = e : console.error("Can not find key: " + t)
} else console.error('aKeyboard: The fn parameter needs to be a function '); else console.error('aKeyboard: The btn parameter needs to be a string ')
}
}]) && be(e.prototype, n), i && be(e, i), t
}();
var ye = Object(i.a)({
name: "keyboard",
props: {
ele: {type: String, required: !0},
keys: Array,
theme: {
type: String, default: "default", validator: function (t) {
return ["default", "dark", "green", "classic"].includes(t)
}
},
type: {
type: String, default: "default", validator: function (t) {
return ["default", "number", "mobile"].includes(t)
}
},
fixedBottomCenter: {type: Boolean, default: !1},
rebind: {type: Boolean, default: !0}
},
watch: {
ele: function () {
this.init()
}
},
data: function () {
return {customClick: {}}
},
computed: {
className: function () {
return "avue-keyboard--".concat(this.theme)
}
},
mounted: function () {
this.init()
},
methods: {
init: function () {
var t = this;
if (this.ele) {
var e, n = {el: "#keyboard", style: {}, keys: this.keys, fixedBottomCenter: this.fixedBottomCenter};
"default" == this.type ? e = new fe(n) : "number" == this.type ? e = new ve(n) : "mobile" == this.type && (e = new MobileKeyBoard(n));
var i = 0 == this.ele.indexOf("#") ? this.ele.substring(1) : this.ele;
e.inputOn("#".concat(i), "value", (function (e, n) {
t.$emit("click", e, n)
}), this.rebind ? this.customClick : null), this.keyboard = e
}
}, bindClick: function (t, e) {
this.keyboard.onclick(t, e), this.customClick[t] = e
}
}
}), ge = Object(c.a)(ye, (function () {
var t = this.$createElement, e = this._self._c || t;
return e("div", {class: [this.b(), this.className]}, [e("div", {attrs: {id: "keyboard"}})])
}), [], !1, null, null, null).exports, _e = n(12);
function xe(t) {
return function (t) {
if (Array.isArray(t)) return we(t)
}(t) || function (t) {
if ("undefined" != typeof Symbol && Symbol.iterator in Object(t)) return Array.from(t)
}(t) || function (t, e) {
if (!t) return;
if ("string" == typeof t) return we(t, e);
var n = Object.prototype.toString.call(t).slice(8, -1);
"Object" === n && t.constructor && (n = t.constructor.name);
if ("Map" === n || "Set" === n) return Array.from(t);
if ("Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return we(t, e)
}(t) || function () {
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")
}()
}
function we(t, e) {
(null == e || e > t.length) && (e = t.length);
for (var n = 0, i = new Array(e); n < e; n++) i[n] = t[n];
return i
}
var Se = Object(i.a)({
name: "tree",
mixins: [G.a],
directives: {permission: _e.a},
props: {
filterNodeMethod: Function,
permission: {
type: [Function, Object], default: function () {
return {}
}
},
iconClass: {type: String},
loading: {type: Boolean, default: !1},
expandOnClickNode: {type: Boolean, default: !1},
option: {
type: Object, default: function () {
return {}
}
},
data: {
type: Array, default: function () {
return []
}
},
value: {
type: Object, default: function () {
return {}
}
}
},
data: function () {
return {filterValue: "", client: {x: 0, y: 0, show: !1}, box: !1, type: "", node: {}, obj: {}, form: {}}
},
computed: {
styleName: function () {
return {top: this.setPx(this.client.y - 10), left: this.setPx(this.client.x - 10)}
}, treeProps: function () {
return Object.assign(this.props, {isLeaf: this.leafKey})
}, menu: function () {
return this.vaildData(this.option.menu, !0)
}, title: function () {
return this.option.title
}, treeLoad: function () {
return this.option.treeLoad
}, checkStrictly: function () {
return this.option.checkStrictly
}, accordion: function () {
return this.option.accordion
}, multiple: function () {
return this.option.multiple
}, lazy: function () {
return this.option.lazy
}, addText: function () {
return this.addFlag ? this.t("crud.addBtn") : this.t("crud.editBtn")
}, addFlag: function () {
return ["add", "parentAdd"].includes(this.type)
}, size: function () {
return this.option.size || "small"
}, props: function () {
return this.option.props || {}
}, leafKey: function () {
return this.props.leaf || F.e.leaf
}, valueKey: function () {
return this.props.value || F.e.value
}, labelKey: function () {
return this.props.label || F.e.label
}, childrenKey: function () {
return this.props.children || F.e.children
}, nodeKey: function () {
return this.option.nodeKey || F.e.nodeKey
}, defaultExpandAll: function () {
return this.option.defaultExpandAll
}, defaultExpandedKeys: function () {
return this.option.defaultExpandedKeys
}, formColumnOption: function () {
return (this.option.formOption || {}).column || []
}, formOption: function () {
var t, e = this;
return Object.assign({
submitText: this.addText,
column: [{label: this.valueKey, prop: this.valueKey, display: !1}].concat(xe(this.formColumnOption))
}, (delete (t = e.option.formOption || {}).column, t))
}
},
mounted: function () {
var t = this;
document.addEventListener("click", (function (e) {
t.$el.contains(e.target) || (t.client.show = !1)
})), this.initFun()
},
watch: {
filterValue: function (t) {
this.$refs.tree.filter(t)
}, value: function (t) {
this.form = t
}, form: function (t) {
this.$emit("input", t)
}
},
methods: {
getPermission: function (t) {
return "function" == typeof this.permission ? this.permission(t, this.node) : !!this.validatenull(this.permission[t]) || this.permission[t]
}, initFun: function () {
var t = this;
["filter", "updateKeyChildren", "getCheckedNodes", "setCheckedNodes", "getCheckedKeys", "setCheckedKeys", "setChecked", "getHalfCheckedNodes", "getHalfCheckedKeys", "getCurrentKey", "getCurrentNode", "setCurrentKey", "setCurrentNode", "getNode", "remove", "append", "insertBefore", "insertAfter"].forEach((function (e) {
t[e] = t.$refs.tree[e]
}))
}, nodeContextmenu: function (t, e) {
this.node = this.deepClone(e), this.client.x = t.clientX, this.client.y = t.clientY, this.client.show = !0
}, handleCheckChange: function (t, e, n) {
this.$emit("check-change", t, e, n)
}, handleSubmit: function (t, e) {
this.addFlag ? this.save(t, e) : this.update(t, e)
}, nodeClick: function (t, e, n) {
this.$emit("node-click", t, e, n)
}, filterNode: function (t, e) {
return "function" == typeof this.filterNodeMethod ? this.filterNodeMethod(t, e) : !t || -1 !== e[this.labelKey].indexOf(t)
}, hide: function () {
this.box = !1, this.node = {}, this.$refs.form.resetForm(), this.$refs.form.clearValidate()
}, save: function (t, e) {
var n = this;
this.$emit("save", this.node, t, (function () {
var t = n.deepClone(n.form);
"add" === n.type ? n.$refs.tree.append(t, n.node[n.valueKey]) : "parentAdd" === n.type && n.$refs.tree.append(t), n.hide(), e()
}), e)
}, update: function (t, e) {
var n = this;
this.$emit("update", this.node, t, (function () {
var t = n.$refs.tree.getNode(n.node[n.valueKey]), i = n.deepClone(n.form);
t.data = i, n.hide(), e()
}), e)
}, rowEdit: function (t) {
this.type = "edit", this.form = this.node, this.show()
}, parentAdd: function () {
this.type = "parentAdd", this.show()
}, rowAdd: function () {
this.type = "add", this.show()
}, show: function () {
this.client.show = !1, this.box = !0
}, rowRemove: function () {
var t = this;
this.client.show = !1;
this.$emit("del", this.node, (function () {
t.$refs.tree.remove(t.node[t.valueKey])
}))
}
}
}), Oe = Object(c.a)(Se, (function () {
var t = this, e = t.$createElement, n = t._self._c || e;
return n("div", {class: t.b()}, [t.vaildData(t.option.filter, !0) ? n("div", {class: t.b("filter")}, [n("el-input", {
attrs: {
placeholder: t.vaildData(t.option.filterText, "输入关键字进行过滤"),
size: t.size
}, model: {
value: t.filterValue, callback: function (e) {
t.filterValue = e
}, expression: "filterValue"
}
}, [t.vaildData(t.option.addBtn, !0) && !t.$slots.addBtn ? n("el-button", {
attrs: {
slot: "append",
size: t.size,
icon: "el-icon-plus"
}, on: {click: t.parentAdd}, slot: "append"
}) : t._t("addBtn", null, {slot: "append"})], 2)], 1) : t._e(), t._v(" "), n("el-scrollbar", {class: t.b("content")}, [n("el-tree", {
directives: [{
name: "loading",
rawName: "v-loading",
value: t.loading,
expression: "loading"
}],
ref: "tree",
attrs: {
data: t.data,
lazy: t.lazy,
load: t.treeLoad,
props: t.treeProps,
"icon-class": t.iconClass,
"highlight-current": !t.multiple,
"show-checkbox": t.multiple,
accordion: t.accordion,
"node-key": t.props.value,
"check-strictly": t.checkStrictly,
"filter-node-method": t.filterNode,
"expand-on-click-node": t.expandOnClickNode,
"default-expand-all": t.defaultExpandAll,
"default-expanded-keys": t.defaultExpandedKeys
},
on: {"check-change": t.handleCheckChange, "node-click": t.nodeClick, "node-contextmenu": t.nodeContextmenu},
scopedSlots: t._u([{
key: "default", fn: function (e) {
var i = e.node, o = e.data;
return t.$scopedSlots.default ? n("span", {}, [t._t("default", null, {
node: i,
data: o
})], 2) : n("span", {staticClass: "el-tree-node__label"}, [n("span", [t._v(t._s(i.label))])])
}
}], null, !0)
})], 1), t._v(" "), t.client.show && t.menu ? n("div", {
staticClass: "el-cascader-panel is-bordered",
class: t.b("menu"),
style: t.styleName,
on: {
click: function (e) {
t.client.show = !1
}
}
}, [t.vaildData(t.option.addBtn, !0) ? n("div", {
directives: [{
name: "permission",
rawName: "v-permission",
value: t.getPermission("addBtn"),
expression: "getPermission('addBtn')"
}], class: t.b("item"), on: {click: t.rowAdd}
}, [t._v("新增")]) : t._e(), t._v(" "), t.vaildData(t.option.editBtn, !0) ? n("div", {
directives: [{
name: "permission",
rawName: "v-permission",
value: t.getPermission("editBtn"),
expression: "getPermission('editBtn')"
}], class: t.b("item"), on: {click: t.rowEdit}
}, [t._v("修改")]) : t._e(), t._v(" "), t.vaildData(t.option.delBtn, !0) ? n("div", {
directives: [{
name: "permission",
rawName: "v-permission",
value: t.getPermission("delBtn"),
expression: "getPermission('delBtn')"
}], class: t.b("item"), on: {click: t.rowRemove}
}, [t._v("删除")]) : t._e(), t._v(" "), t._t("menu", null, {node: t.node})], 2) : t._e(), t._v(" "), n("el-dialog", {
staticClass: "avue-dialog",
class: t.b("dialog"),
attrs: {
title: t.node[t.labelKey] || t.title,
visible: t.box,
"modal-append-to-body": "",
"append-to-body": "",
width: t.vaildData(t.option.dialogWidth, "50%")
},
on: {
"update:visible": function (e) {
t.box = e
}, close: t.hide
}
}, [n("avue-form", {
ref: "form",
attrs: {option: t.formOption},
on: {submit: t.handleSubmit},
model: {
value: t.form, callback: function (e) {
t.form = e
}, expression: "form"
}
})], 1)], 1)
}), [], !1, null, null, null).exports, Ce = Object(i.a)({
name: "title", mixins: [K(), H()], props: {
styles: {
type: Object, default: function () {
return {}
}
}
}, mounted: function () {
}, methods: {}
}), ke = Object(c.a)(Ce, (function () {
var t = this.$createElement, e = this._self._c || t;
return e("div", {class: this.b()}, [e("p", {style: this.styles}, [this._v(this._s(this.text))])])
}), [], !1, null, null, null).exports, je = n(18);
function De(t) {
return function (t) {
if (Array.isArray(t)) return Ee(t)
}(t) || function (t) {
if ("undefined" != typeof Symbol && Symbol.iterator in Object(t)) return Array.from(t)
}(t) || function (t, e) {
if (!t) return;
if ("string" == typeof t) return Ee(t, e);
var n = Object.prototype.toString.call(t).slice(8, -1);
"Object" === n && t.constructor && (n = t.constructor.name);
if ("Map" === n || "Set" === n) return Array.from(t);
if ("Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Ee(t, e)
}(t) || function () {
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")
}()
}
function Ee(t, e) {
(null == e || e > t.length) && (e = t.length);
for (var n = 0, i = new Array(e); n < e; n++) i[n] = t[n];
return i
}
var Me = Object(i.a)({
name: "search", mixins: [Object(je.a)()], props: {value: {}}, computed: {
isCard: function () {
return this.parentOption.card
}, parentOption: function () {
return this.deepClone(this.tableOption)
}, propOption: function () {
var t = [];
return this.columnOption.forEach((function (e) {
return t.push(e)
})), t
}, columnOption: function () {
return De(this.parentOption.column) || []
}
}, data: function () {
return {form: {}}
}, watch: {
value: {
handler: function () {
this.setVal()
}, deep: !0
}
}, created: function () {
this.dataformat(), this.setVal()
}, methods: {
setVal: function () {
var t = this;
Object.keys(this.value).forEach((function (e) {
t.$set(t.form, e, t.value[e])
}))
}, getKey: function () {
var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {},
e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {},
n = arguments.length > 2 ? arguments[2] : void 0;
return t[e[n] || (this.parentOption.props || {})[n] || n]
}, dataformat: function () {
var t = this;
this.columnOption.forEach((function (e) {
var n = e.prop;
t.validatenull(t.form[n]) && (!1 === e.multiple ? t.$set(t.form, n, "") : t.$set(t.form, n, []))
}))
}, getActive: function (t, e) {
var n = this.getKey(t, e.props, "value");
return !1 === e.multiple ? this.form[e.prop] === n : this.form[e.prop].includes(n)
}, handleClick: function (t, e) {
var n = this.getKey(e, t.props, "value");
if (!1 === t.multiple) this.form[t.prop] = n; else {
var i = this.form[t.prop].indexOf(n);
-1 === i ? this.form[t.prop].push(n) : this.form[t.prop].splice(i, 1)
}
this.$emit("change", this.form), this.$emit("input", this.form)
}
}
}), Te = Object(c.a)(Me, (function () {
var t = this, e = t.$createElement, n = t._self._c || e;
return n("el-row", {
class: [t.b(), {"avue--card": t.isCard}],
attrs: {span: 24}
}, t._l(t.columnOption, (function (e, i) {
return n("el-col", {
key: e.prop,
class: t.b("item"),
attrs: {span: e.span || 24}
}, [n("p", {class: t.b("title")}, [t._v(t._s(e.label) + ":")]), t._v(" "), n("div", {class: t.b("content")}, [e.slot ? t._t(e.prop, null, {dic: t.DIC[e.prop]}) : t._l(t.DIC[e.prop], (function (i) {
return n("span", {
key: t.getKey(i, e.props, "value"),
class: [t.b("tags"), {"avue-search__tags--active": t.getActive(i, e)}],
on: {
click: function (n) {
return t.handleClick(e, i)
}
}
}, [t._v(t._s(t.getKey(i, e.props, "label")))])
}))], 2)])
})), 1)
}), [], !1, null, null, null).exports;
var Ae = Object(i.a)({
name: "skeleton",
props: {
loading: {type: Boolean, default: !0},
avatar: Boolean,
active: {type: Boolean, default: !0},
block: Boolean,
number: {type: Number, default: 1},
rows: {type: Number, default: 3}
},
computed: {
styleName: function () {
return this.block ? {width: "100%"} : {}
}, className: function () {
var t, e, n, i = this.active;
return t = {}, e = "".concat("avue-skeleton", "__loading"), n = i, e in t ? Object.defineProperty(t, e, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : t[e] = n, t
}
}
}), Ie = Object(c.a)(Ae, (function () {
var t = this, e = t.$createElement, n = t._self._c || e;
return n("div", {class: t.b()}, t._l(t.number, (function (e, i) {
return t.loading ? n("div", {
key: i,
class: t.b("item")
}, [n("div", {class: t.b("header")}, [t.avatar ? n("span", {class: [t.b("avatar"), t.className]}) : t._e()]), t._v(" "), n("div", {class: t.b("content")}, [n("h3", {class: [t.b("title"), t.className]}), t._v(" "), n("div", {class: t.b("list")}, t._l(t.rows, (function (e, i) {
return n("li", {key: i, class: [t.b("li"), t.className], style: t.styleName})
})), 0)])]) : n("div", [t._t("default")], 2)
})), 0)
}), [], !1, null, null, null).exports, Pe = Object(i.a)({
name: "tabs", props: {
option: {
type: Object, required: !0, default: function () {
return {}
}
}
}, data: function () {
return {active: "0"}
}, watch: {
active: function () {
this.$emit("change", this.tabsObj)
}
}, computed: {
tabsObj: function () {
return this.columnOption[this.active]
}, parentOption: function () {
return this.option
}, columnOption: function () {
return this.parentOption.column || []
}
}, methods: {
changeTabs: function (t) {
this.active = t + ""
}
}
}), $e = Object(c.a)(Pe, (function () {
var t = this, e = t.$createElement, n = t._self._c || e;
return n("div", {class: t.b()}, [n("el-tabs", {
attrs: {
"tab-position": t.parentOption.position,
type: t.parentOption.type
}, model: {
value: t.active, callback: function (e) {
t.active = e
}, expression: "active"
}
}, t._l(t.columnOption, (function (e, i) {
return n("el-tab-pane", {
key: i,
attrs: {name: i + "", disabled: e.disabled}
}, [n("span", {
attrs: {slot: "label"},
slot: "label"
}, [n("i", {class: e.icon}), t._v(" \n " + t._s(e.label) + "\n ")])])
})), 1)], 1)
}), [], !1, null, null, null).exports, Le = Object(i.a)({
name: "dynamic", mixins: [K(), H()], data: function () {
return {hoverList: []}
}, props: {
columnSlot: {
type: Array, default: function () {
return []
}
}, children: {
type: Object, default: function () {
return {}
}
}
}, computed: {
showIndex: function () {
return this.vaildData(this.children.index, !0)
}, showType: function () {
return this.children.type || "crud"
}, isForm: function () {
return "form" === this.showType
}, isCrud: function () {
return "crud" === this.showType
}, selectionChange: function () {
return this.children.selectionChange
}, sortableChange: function () {
return this.children.sortableChange
}, rowAdd: function () {
return this.children.rowAdd
}, rowDel: function () {
return this.children.rowDel
}, viewBtn: function () {
return !1 === this.children.viewBtn
}, addBtn: function () {
return !1 === this.children.addBtn
}, delBtn: function () {
return !1 === this.children.delBtn
}, valueOption: function () {
var t = {};
return this.columnOption.forEach((function (e) {
e.value && (t[e.prop] = e.value)
})), t
}, rulesOption: function () {
var t = {};
return this.columnOption.forEach((function (e) {
e.rules && (t[e.prop] = e.rules)
})), t
}, columnOption: function () {
return this.children.column || []
}, option: function () {
var t, e = this;
return Object.assign({
border: !0,
header: !1,
menu: !1,
size: this.size,
disabled: this.disabled,
readonly: this.readonly,
emptyBtn: !1,
submitBtn: !1
}, function () {
var t = e.deepClone(e.children);
return delete t.column, t
}(), (t = [{
label: e.children.indexLabel || "#",
prop: "_index",
display: e.showIndex,
detail: !0,
fixed: !0,
align: "center",
headerAlign: "center",
span: 24,
width: 50,
renderHeader: function (t, n) {
if (n.column, n.$index, !e.addBtn && !e.readonly) return t("el-button", {
attrs: {
size: "mini",
type: "primary",
icon: "el-icon-plus",
disabled: e.disabled,
circle: !0
}, on: {click: e.addRow}
})
}
}], e.columnOption.forEach((function (n) {
t.push(Object.assign(n, {cell: e.vaildData(n.cell, !0)}))
})), {column: t}))
}
}, mounted: function () {
this.initData()
}, watch: {
textLen: function () {
return this.text.length
}, text: function () {
this.initData()
}
}, methods: {
handleSelectionChange: function (t) {
this.selectionChange && this.selectionChange(t)
}, handleSortableChange: function (t, e, n, i) {
this.sortableChange && this.sortableChange(t, e, n, i)
}, cellMouseenter: function (t) {
var e = t.$index;
this.mouseoverRow(e)
}, cellMouseLeave: function (t, e, n, i) {
var o = t.$index;
this.mouseoutRow(o)
}, initData: function () {
this.text.forEach((function (t, e) {
t = Object.assign(t, {$cellEdit: !0, $index: e})
}))
}, mouseoverRow: function (t) {
this.delBtn || (this.flagList(), this.$set(this.hoverList, t, !0))
}, mouseoutRow: function (t) {
this.delBtn || (this.flagList(), this.$set(this.hoverList, t, !1))
}, flagList: function () {
this.hoverList.forEach((function (t, e) {
!1
}))
}, delRow: function (t) {
var e = this, n = function () {
var n = e.deepClone(e.text);
n.splice(t, 1), e.text = n
};
"function" == typeof this.rowDel ? this.rowDel(this.text[t], n) : n()
}, addRow: function () {
var t = this, e = function () {
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
e = Object.assign(t.valueOption, e, {$index: t.textLen}), t.isCrud ? t.$refs.main.rowCellAdd(e) : t.isForm && t.text.push(e)
};
"function" == typeof this.rowAdd ? this.rowAdd(e) : e()
}
}
}), Ne = Object(c.a)(Le, (function () {
var t = this, e = t.$createElement, n = t._self._c || e;
return n("div", {class: t.b()}, [t.isForm ? [n("div", {class: t.b("header")}, [t.readonly || t.disabled || t.addBtn ? t._e() : n("el-button", {
attrs: {
size: "mini",
circle: "",
disabled: t.disabled,
type: "primary",
icon: "el-icon-plus"
}, on: {click: t.addRow}
})], 1), t._v(" "), n("div", t._l(t.text, (function (e, i) {
return n("div", {
key: i, class: t.b("row"), on: {
mouseenter: function (e) {
return t.cellMouseenter({$index: i})
}, mouseleave: function (e) {
return t.cellMouseLeave({$index: i})
}
}
}, [t.readonly || t.disabled || t.delBtn || !t.hoverList[i] ? t._e() : n("el-button", {
class: t.b("menu"),
attrs: {type: "danger", size: "mini", disabled: t.disabled, icon: "el-icon-delete", circle: ""},
on: {
click: function (n) {
return t.delRow(e.$index)
}
}
}), t._v(" "), n("avue-form", {
key: i,
ref: "main",
refInFor: !0,
attrs: {option: t.option},
scopedSlots: t._u([{
key: "_index", fn: function (i) {
return n("div", {}, [n("span", [t._v(t._s(e.$index + 1))])])
}
}, t._l(t.columnSlot, (function (e) {
return {
key: e.prop, fn: function (n) {
return [t._t(e.prop, null, null, Object.assign(n, {row: t.text[i]}))]
}
}
}))], null, !0),
model: {
value: t.text[i], callback: function (e) {
t.$set(t.text, i, e)
}, expression: "text[index]"
}
})], 1)
})), 0)] : t.isCrud ? n("avue-crud", {
ref: "main",
attrs: {option: t.option, disabled: t.disabled, data: t.text},
on: {
"cell-mouse-enter": t.cellMouseenter,
"cell-mouse-leave": t.cellMouseLeave,
"selection-change": t.handleSelectionChange,
"sortable-change": t.handleSortableChange
},
scopedSlots: t._u([{
key: "_index", fn: function (e) {
return [t.readonly || t.disabled || t.delBtn || !t.hoverList[e.row.$index] ? n("div", [t._v(t._s(e.row.$index + 1))]) : n("el-button", {
attrs: {
type: "danger",
size: "mini",
disabled: t.disabled,
icon: "el-icon-delete",
circle: ""
}, on: {
click: function (n) {
return t.delRow(e.row.$index)
}
}
})]
}
}, t._l(t.columnSlot, (function (e) {
return {
key: t.getSlotName(e, "F"), fn: function (n) {
return [t._t(e.prop, null, null, n)]
}
}
}))], null, !0)
}) : t._e()], 2)
}), [], !1, null, null, null).exports, ze = Object(i.a)({
name: "queue",
props: {
enter: {type: String, default: "fadeInLeft"},
leave: {type: String, default: "fadeOutRight"},
block: {type: Boolean, default: !1},
delay: {type: Number, default: 0}
},
data: function () {
return {isFixed: 0, animate: []}
},
mounted: function () {
var t = this;
this.$nextTick((function () {
addEventListener("scroll", t.handleAnimate), t.handleAnimate()
}))
},
methods: {
handleAnimate: function () {
var t = this;
(pageYOffset || document.documentElement.scrollTop || document.body.scrollTop) + document.documentElement.clientHeight > this.$refs.queue.offsetTop ? setTimeout((function () {
t.animate = [t.enter, "avue-opacity--active"]
}), this.delay) : this.animate = ["avue-opacity"]
}
},
destroyed: function () {
removeEventListener("scroll", this.handleAnimate)
}
}), Be = Object(c.a)(ze, (function () {
var t = this.$createElement, e = this._self._c || t;
return e("div", {class: [this.b(), {"avue-queue--block": this.block}]}, [e("div", {
ref: "queue",
staticClass: "animated",
class: this.animate
}, [this._t("default")], 2)])
}), [], !1, null, null, null).exports;
function Fe(t, e) {
for (var n = 0; n < e.length; n++) {
var i = e[n];
i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(t, i.key, i)
}
}
var Re, Ke = function () {
function t(e) {
!function (t, e) {
if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function")
}(this, t), this.video = e, this.mediaRecorder = null, this.chunks = []
}
var e, n, i;
return e = t, (n = [{
key: "init", value: function () {
var t = this;
return new Promise((function (e, n) {
navigator.mediaDevices.getUserMedia({audio: !0, video: !0}).then((function (n) {
"srcObject" in t.video ? t.video.srcObject = n : t.video.src = window.URL.createObjectURL(n), t.video.addEventListener("loadmetadata", (function () {
t.video.play()
})), t.mediaRecorder = new MediaRecorder(n), t.mediaRecorder.addEventListener("dataavailable", (function (e) {
t.chunks.push(e.data)
})), e()
})).catch((function (t) {
n(t)
}))
}))
}
}, {
key: "startRecord", value: function () {
"inactive" === this.mediaRecorder.state && this.mediaRecorder.start()
}
}, {
key: "stopRecord", value: function () {
"recording" === this.mediaRecorder.state && this.mediaRecorder.stop()
}
}, {
key: "isSupport", value: function () {
if (navigator.mediaDevices && navigator.mediaDevices.getUserMedia) return !0
}
}]) && Fe(e.prototype, n), i && Fe(e, i), t
}(), We = Object(i.a)({
name: "video",
props: {background: {type: String}, width: {type: [String, Number], default: 500}},
computed: {
styleName: function () {
return {width: this.setPx(this.width)}
}, imgStyleName: function () {
return {width: this.setPx(this.width / 2)}
}, borderStyleName: function () {
return {width: this.setPx(this.width / 15), height: this.setPx(this.width / 15), borderWidth: this.setPx(5)}
}
},
data: function () {
return {videoObj: null}
},
mounted: function () {
this.init()
},
methods: {
init: function () {
var t = this;
this.videoObj = new Ke(this.$refs.main), this.videoObj.init().then((function () {
t.videoObj.mediaRecorder.addEventListener("stop", t.getData, !1)
}))
}, startRecord: function () {
this.videoObj.startRecord()
}, stopRecord: function () {
this.videoObj.stopRecord()
}, getData: function () {
var t = this, e = new Blob(this.videoObj.chunks, {type: "video/mp4"}), n = new FileReader;
n.readAsDataURL(e), n.addEventListener("loadend", (function () {
var e = n.result;
t.$emit("data-change", e)
}))
}
}
}), Ue = Object(c.a)(We, (function () {
var t = this, e = t.$createElement, n = t._self._c || e;
return n("div", {
class: t.b(),
style: t.styleName
}, [n("div", {class: t.b("border")}, [n("span", {style: t.borderStyleName}), t._v(" "), n("span", {style: t.borderStyleName}), t._v(" "), n("span", {style: t.borderStyleName}), t._v(" "), n("span", {style: t.borderStyleName})]), t._v(" "), n("img", {
class: t.b("img"),
style: t.imgStyleName,
attrs: {src: t.background}
}), t._v(" "), n("video", {
ref: "main",
class: t.b("main"),
attrs: {autoplay: "", muted: ""},
domProps: {muted: !0}
})])
}), [], !1, null, null, null).exports, Ve = Object(i.a)({
name: "login", props: {
codesrc: {type: String}, option: {
type: Object, default: function () {
return {}
}
}
}, computed: {
labelWidth: function () {
return this.option.labelWidth || 80
}, time: function () {
return this.option.time || 60
}, isImg: function () {
return "img" === this.codeType
}, isPhone: function () {
return "phone" === this.codeType
}, codeType: function () {
return this.option.codeType || "img"
}, width: function () {
return this.option.width || "100%"
}, username: function () {
return this.column.username || {}
}, password: function () {
return this.column.password || {}
}, code: function () {
return this.column.code || {}
}, column: function () {
return this.option.column || {}
}, sendDisabled: function () {
return !this.validatenull(this.check)
}
}, data: function () {
return {text: "", nowtime: "", check: {}, flag: !1, form: {}}
}, created: function () {
this.text = "发送验证码"
}, methods: {
onSend: function () {
var t = this;
this.sendDisabled || this.$emit("send", (function () {
t.nowtime = t.time, t.text = "{{time}}s后重获取".replace("{{time}}", t.nowtime), t.check = setInterval((function () {
t.nowtime--, 0 === t.nowtime ? (t.text = "发送验证码", clearInterval(t.check), t.check = null) : t.text = "{{time}}s后重获取".replace("{{time}}", t.nowtime)
}), 1e3)
}))
}, onRefresh: function () {
this.$emit("refresh")
}, onSubmit: function () {
var t = this;
this.$refs.form.validate((function (e) {
e && t.$emit("submit", function () {
var e = {};
for (var n in t.form) {
var i = n;
t[n].prop && (i = t[n].prop), e[i] = t.form[n]
}
return e
}())
}))
}
}
}), He = Object(c.a)(Ve, (function () {
var t = this, e = t.$createElement, n = t._self._c || e;
return n("div", {class: t.b(), style: {width: t.setPx(t.width)}}, [n("el-form", {
ref: "form",
attrs: {model: t.form, "label-suffix": ":", "label-width": t.setPx(t.labelWidth)}
}, [t.username.hide ? t._e() : n("el-form-item", {
attrs: {
label: t.username.label || "用户名",
rules: t.username.rules,
"label-width": t.setPx(t.username.labelWidth),
prop: "username"
}
}, [n("el-tooltip", {
attrs: {
content: t.username.tip,
disabled: void 0 === t.username.tip,
placement: "top-start"
}
}, [n("el-input", {
attrs: {
size: "small",
"prefix-icon": t.username.prefixIcon || "el-icon-user",
placeholder: t.username.placeholder || "请输入用户名",
autocomplete: t.username.autocomplete
}, model: {
value: t.form.username, callback: function (e) {
t.$set(t.form, "username", e)
}, expression: "form.username"
}
})], 1)], 1), t._v(" "), t.password.hide ? t._e() : n("el-form-item", {
attrs: {
label: t.password.label || "密码",
rules: t.password.rules,
"label-width": t.setPx(t.password.labelWidth),
prop: "password"
}
}, [n("el-tooltip", {
attrs: {
content: t.password.tip,
disabled: void 0 === t.password.tip,
placement: "top-start"
}
}, [n("el-input", {
attrs: {
type: "password",
size: "small",
"prefix-icon": t.password.prefixIcon || "el-icon-unlock",
placeholder: t.password.placeholder || "请输入密码",
"show-password": "",
autocomplete: t.password.autocomplete
}, model: {
value: t.form.password, callback: function (e) {
t.$set(t.form, "password", e)
}, expression: "form.password"
}
})], 1)], 1), t._v(" "), t.code.hide ? t._e() : n("el-form-item", {
attrs: {
label: t.code.label || "验证码",
rules: t.code.rules,
"label-width": t.setPx(t.code.labelWidth),
prop: "code"
}
}, [n("el-tooltip", {
attrs: {
content: t.code.tip,
disabled: void 0 === t.code.tip,
placement: "top-start"
}
}, [n("el-input", {
attrs: {
size: "small",
"prefix-icon": t.code.prefixIcon || "el-icon-c-scale-to-original",
placeholder: t.code.placeholder || "请输入验证码",
autocomplete: t.code.autocomplete
}, model: {
value: t.form.code, callback: function (e) {
t.$set(t.form, "code", e)
}, expression: "form.code"
}
}, [n("template", {slot: "append"}, [t.isPhone ? n("el-button", {
class: t.b("send"),
attrs: {type: "primary", disabled: t.sendDisabled},
on: {click: t.onSend}
}, [t._v(t._s(t.text))]) : t._e(), t._v(" "), t.isImg ? n("span", [n("img", {
attrs: {
src: t.codesrc,
alt: "",
width: "80",
height: "25"
}, on: {click: t.onRefresh}
})]) : t._e()], 1)], 2)], 1)], 1), t._v(" "), n("el-form-item", [n("el-button", {
class: t.b("submit"),
attrs: {type: "primary"},
on: {click: t.onSubmit}
}, [t._v("登录")])], 1)], 1)], 1)
}), [], !1, null, null, null).exports, qe = Object(i.a)({
name: "array",
mixins: [K(), H()],
data: function () {
return {text: []}
},
computed: {
isImg: function () {
return "img" === this.type
}, isUrl: function () {
return "url" === this.type
}
},
props: {
alone: Boolean,
type: String,
size: String,
placeholder: String,
readonly: Boolean,
disabled: Boolean,
value: [Array, String]
},
methods: {
add: function () {
this.text.push("")
}, remove: function (t) {
this.text.splice(t, 1)
}, openImg: function (t) {
var e = this.text.map((function (t) {
return {thumbUrl: t, url: t}
}));
this.$ImagePreview(e, t)
}
}
}), Ye = Object(c.a)(qe, (function () {
var t = this, e = t.$createElement, n = t._self._c || e;
return n("div", {class: t.b()}, t._l(t.text, (function (e, i) {
return n("div", {
key: i,
class: t.b("item")
}, [n("div", {class: t.b("input")}, [n("el-tooltip", {
attrs: {
placement: "bottom",
disabled: !t.isImg && !t.isUrl || t.validatenull(e)
}
}, [n("div", {
attrs: {slot: "content"},
slot: "content"
}, [t.isImg ? n("el-image", {
staticStyle: {width: "150px"},
attrs: {src: e, fit: "cover"},
on: {
click: function (e) {
return t.openImg(i)
}
}
}) : t.isUrl ? n("el-link", {
attrs: {
type: "primary",
href: e,
target: t.target
}
}, [t._v(t._s(e))]) : t._e()], 1), t._v(" "), n("el-input", {
attrs: {
placeholder: t.placeholder,
disabled: t.disabled
}, model: {
value: t.text[i], callback: function (e) {
t.$set(t.text, i, e)
}, expression: "text[index]"
}
})], 1), t._v(" "), t.disabled || t.readonly || t.alone ? t._e() : [n("el-button", 0 === i ? {
attrs: {
type: "primary",
icon: "el-icon-plus",
circle: "",
size: t.size
}, on: {
click: function (e) {
return t.add()
}
}
} : {
attrs: {type: "danger", icon: "el-icon-minus", circle: "", size: t.size}, on: {
click: function (e) {
return t.remove(i)
}
}
})]], 2)])
})), 0)
}), [], !1, null, null, null).exports, Ge = Object(i.a)({
name: "text-ellipsis",
props: {
text: String,
height: Number,
width: Number,
isLimitHeight: {type: Boolean, default: !0},
useTooltip: {type: Boolean, default: !1},
placement: String
},
data: function () {
return {keyIndex: 0, oversize: !1, isHide: !1}
},
watch: {
isLimitHeight: function () {
this.init()
}, text: function () {
this.init()
}, height: function () {
this.init()
}
},
mounted: function () {
this.init()
},
methods: {
init: function () {
this.oversize = !1, this.keyIndex += 1, this.$refs.more.style.display = "none", this.isLimitHeight && this.limitShow()
}, limitShow: function () {
var t = this;
this.$nextTick((function () {
var e = t.$refs.text, n = t.$el, i = t.$refs.more, o = 1e3;
if (e) if (n.offsetHeight > t.height) {
i.style.display = "inline-block";
for (var a = t.text; n.offsetHeight > t.height && o > 0;) n.offsetHeight > 3 * t.height ? e.innerText = a = a.substring(0, Math.floor(a.length / 2)) : e.innerText = a = a.substring(0, a.length - 1), o--;
t.$emit("hide"), t.isHide = !0
} else t.$emit("show"), t.isHide = !1
}))
}
}
}), Xe = Object(c.a)(Ge, (function () {
var t = this, e = t.$createElement, n = t._self._c || e;
return n("div", {
class: t.b(),
style: {width: t.setPx(t.width, "100%")}
}, [t._t("before"), t._v(" "), n("el-tooltip", {
attrs: {
content: t.text,
disabled: !(t.useTooltip && t.isHide),
placement: t.placement
}
}, [n("span", [n("span", {
key: t.keyIndex,
ref: "text",
class: t.b("text")
}, [t._v(t._s(t.text))])])]), t._v(" "), n("span", {
ref: "more",
class: t.b("more")
}, [t._t("more")], 2), t._v(" "), t._t("after")], 2)
}), [], !1, null, null, null).exports, Qe = Object(i.a)({
name: "data-tabs", data: function () {
return {}
}, computed: {
animation: function () {
return this.option.animation
}, decimals: function () {
return this.option.decimals || 0
}, span: function () {
return this.option.span || 8
}, data: function () {
return this.option.data || []
}
}, props: {
option: {
type: Object, default: function () {
}
}
}
}), Je = Object(c.a)(Qe, (function () {
var t = this, e = t.$createElement, n = t._self._c || e;
return n("div", {staticClass: "avue-data-tabs"}, [n("el-row", {attrs: {span: 24}}, t._l(t.data, (function (e, i) {
return n("el-col", {key: i, attrs: {md: t.span, xs: 24, sm: 12}}, [n("div", {
staticClass: "item",
style: {background: e.color}
}, [n("a", {
attrs: {href: e.href ? e.href : "javascript:void(0);", target: e.target}, on: {
click: function (t) {
e.click && e.click(e)
}
}
}, [n("div", {staticClass: "item-header"}, [n("p", [t._v(t._s(e.title))]), t._v(" "), n("span", [t._v(t._s(e.subtitle))])]), t._v(" "), n("div", {staticClass: "item-body"}, [n("avue-count-up", {
staticClass: "h2",
attrs: {decimals: t.decimals, animation: t.animation, end: e.count}
})], 1), t._v(" "), n("div", {staticClass: "item-footer"}, [n("span", [t._v(t._s(e.allcount))]), t._v(" "), n("p", [t._v(t._s(e.text))])]), t._v(" "), n("p", {staticClass: "item-tip"}, [t._v(t._s(e.key))])])])])
})), 1)], 1)
}), [], !1, null, null, null).exports, Ze = Object(i.a)({
name: "data-cardtext", data: function () {
return {}
}, computed: {
icon: function () {
return this.option.icon
}, color: function () {
return this.option.color || "#333"
}, span: function () {
return this.option.span || 8
}, data: function () {
return this.option.data || []
}
}, props: {
option: {
type: Object, default: function () {
}
}
}
}), tn = Object(c.a)(Ze, (function () {
var t = this, e = t.$createElement, n = t._self._c || e;
return n("div", {staticClass: "avue-data-cardText"}, [n("el-row", {attrs: {span: 24}}, t._l(t.data, (function (e, i) {
return n("el-col", {
key: i,
attrs: {md: t.span, xs: 24, sm: 12}
}, [n("div", {staticClass: "item"}, [n("a", {
attrs: {href: e.href || "javascript:void(0);", target: e.target},
on: {
click: function (t) {
e.click && e.click(e)
}
}
}, [n("div", {staticClass: "item-header"}, [n("i", {
class: e.icon || "el-icon-bell",
style: {color: e.color || "red"}
}), t._v(" "), n("a", {}, [t._v(t._s(e.title))])]), t._v(" "), n("div", {staticClass: "item-content"}, [t._v(t._s(e.content))]), t._v(" "), n("div", {staticClass: "item-footer"}, [n("span", [t._v(t._s(e.name))]), t._v(" "), n("span", [t._v(t._s(e.date))])])])])])
})), 1)], 1)
}), [], !1, null, null, null).exports, en = Object(i.a)({
name: "data-box", data: function () {
return {}
}, props: {
option: {
type: Object, default: function () {
}
}
}, computed: {
animation: function () {
return this.option.animation
}, decimals: function () {
return this.option.decimals || 0
}, span: function () {
return this.option.span || 8
}, data: function () {
return this.option.data || []
}
}, created: function () {
}, mounted: function () {
}, watch: {}, methods: {}
}), nn = Object(c.a)(en, (function () {
var t = this, e = t.$createElement, n = t._self._c || e;
return n("div", {staticClass: "data-box"}, [n("el-row", {attrs: {span: 24}}, t._l(t.data, (function (e, i) {
return n("el-col", {
key: i,
attrs: {md: t.span, xs: 24, sm: 12}
}, [n("div", {staticClass: "item"}, [n("a", {
attrs: {
href: e.href ? e.href : "javascript:void(0);",
target: e.target
}, on: {
click: function (t) {
e.click && e.click(e)
}
}
}, [n("div", {
staticClass: "item-icon",
style: {backgroundColor: e.color}
}, [n("i", {class: e.icon})]), t._v(" "), n("div", {staticClass: "item-info"}, [n("avue-count-up", {
staticClass: "title",
style: {color: e.color},
attrs: {animation: t.animation, decimals: t.decimals, end: e.count}
}), t._v(" "), n("div", {staticClass: "info"}, [t._v(t._s(e.title))])], 1)])])])
})), 1)], 1)
}), [], !1, null, null, null).exports, on = Object(i.a)({
name: "data-progress", data: function () {
return {}
}, props: {
option: {
type: Object, default: function () {
}
}
}, computed: {
animation: function () {
return this.option.animation
}, decimals: function () {
return this.option.decimals || 0
}, span: function () {
return this.option.span || 8
}, data: function () {
return this.option.data || []
}
}, created: function () {
}, mounted: function () {
}, watch: {}, methods: {}
}), an = Object(c.a)(on, (function () {
var t = this, e = t.$createElement, n = t._self._c || e;
return n("div", {staticClass: "data-progress"}, [n("el-row", {attrs: {span: 24}}, t._l(t.data, (function (e, i) {
return n("el-col", {
key: i,
attrs: {md: t.span, xs: 24, sm: 12}
}, [n("div", {staticClass: "item"}, [n("a", {
attrs: {
href: e.href ? e.href : "javascript:void(0);",
target: e.target
}, on: {
click: function (t) {
e.click && e.click(e)
}
}
}, [n("div", {staticClass: "item-header"}, [n("avue-count-up", {
staticClass: "item-count",
attrs: {animation: t.animation, decimals: t.decimals, end: e.count}
}), t._v(" "), n("div", {
staticClass: "item-title",
domProps: {textContent: t._s(e.title)}
})], 1), t._v(" "), n("el-progress", {
attrs: {
"stroke-width": 15,
percentage: e.count,
color: e.color,
"show-text": !1
}
})], 1)])])
})), 1)], 1)
}), [], !1, null, null, null).exports, rn = Object(i.a)({
name: "data-icons", data: function () {
return {}
}, computed: {
animation: function () {
return this.option.animation
}, decimals: function () {
return this.option.decimals || 0
}, span: function () {
return this.option.span || 4
}, data: function () {
return this.option.data
}, color: function () {
return this.option.color || "rgb(63, 161, 255)"
}, discount: function () {
return this.option.discount || !1
}
}, props: {
option: {
type: Object, default: function () {
}
}
}
}), sn = Object(c.a)(rn, (function () {
var t = this, e = t.$createElement, n = t._self._c || e;
return n("div", {staticClass: "data-icons"}, [n("el-row", {attrs: {span: 24}}, [t._l(t.data, (function (e, i) {
return [n("el-col", {key: i, attrs: {xs: 12, sm: 6, md: t.span}}, [n("div", {
staticClass: "item",
class: [{"item--easy": t.discount}]
}, [n("a", {
attrs: {href: e.href ? e.href : "javascript:void(0);", target: e.target}, on: {
click: function (t) {
e.click && e.click(e)
}
}
}, [n("div", {
staticClass: "item-icon",
style: {color: t.color}
}, [n("i", {class: e.icon})]), t._v(" "), n("div", {staticClass: "item-info"}, [n("span", [t._v(t._s(e.title))]), t._v(" "), n("avue-count-up", {
staticClass: "count",
style: {color: t.color},
attrs: {animation: t.animation, decimals: t.decimals, end: e.count}
})], 1)])])])]
}))], 2)], 1)
}), [], !1, null, null, null).exports, ln = Object(i.a)({
name: "data-card", data: function () {
return {}
}, props: {
option: {
type: Object, default: function () {
}
}
}, computed: {
span: function () {
return this.option.span || 6
}, data: function () {
return this.option.data || []
}, colorText: function () {
return this.option.colorText || "#fff"
}, bgText: function () {
return this.option.bgText || "#2e323f"
}, borderColor: function () {
return this.option.borderColor || "#2e323f"
}
}, created: function () {
}, mounted: function () {
}, watch: {}, methods: {}
}), cn = Object(c.a)(ln, (function () {
var t = this, e = t.$createElement, n = t._self._c || e;
return n("div", {staticClass: "data-card"}, [n("el-row", {attrs: {span: 24}}, t._l(t.data, (function (e, i) {
return n("el-col", {
key: i,
attrs: {md: t.span, xs: 24, sm: 12}
}, [n("div", {staticClass: "item"}, [n("a", {
attrs: {
href: e.href ? e.href : "javascript:void(0);",
target: e.target
}, on: {
click: function (t) {
e.click && e.click(e)
}
}
}, [n("img", {staticClass: "item-img", attrs: {src: e.src}}), t._v(" "), n("div", {
staticClass: "item-text",
style: {backgroundColor: t.bgText}
}, [n("h3", {style: {color: t.colorText}}, [t._v(t._s(e.name))]), t._v(" "), n("p", {style: {color: t.colorText}}, [t._v(t._s(e.text))])])])])])
})), 1)], 1)
}), [], !1, null, null, null).exports, un = Object(i.a)({
name: "data-display", data: function () {
return {}
}, computed: {
animation: function () {
return this.option.animation
}, decimals: function () {
return this.option.decimals || 0
}, span: function () {
return this.option.span || 6
}, data: function () {
return this.option.data || []
}, color: function () {
return this.option.color || "rgb(63, 161, 255)"
}
}, props: {
option: {
type: Object, default: function () {
}
}
}, created: function () {
}, methods: {}
}), dn = Object(c.a)(un, (function () {
var t = this, e = t.$createElement, n = t._self._c || e;
return n("div", {staticClass: "avue-data-display"}, [n("el-row", {attrs: {span: 24}}, t._l(t.data, (function (e, i) {
return n("el-col", {key: i, attrs: {md: t.span, xs: 12, sm: 12}}, [n("div", {
staticClass: "item",
style: {color: t.color}
}, [n("a", {
attrs: {href: e.href ? e.href : "javascript:void(0);", target: e.target}, on: {
click: function (t) {
e.click && e.click(e)
}
}
}, [n("avue-count-up", {
staticClass: "count",
attrs: {animation: t.animation, decimals: t.decimals, end: e.count}
}), t._v(" "), n("span", {staticClass: "splitLine"}), t._v(" "), n("div", {staticClass: "title"}, [t._v(t._s(e.title))])], 1)])])
})), 1)], 1)
}), [], !1, null, null, null).exports, pn = Object(i.a)({
name: "data-imgtext", data: function () {
return {}
}, computed: {
span: function () {
return this.option.span || 6
}, data: function () {
return this.option.data || []
}, color: function () {
return this.option.color || "rgb(63, 161, 255)"
}
}, props: {
option: {
type: Object, default: function () {
}
}
}, created: function () {
}, methods: {}
}), hn = Object(c.a)(pn, (function () {
var t = this, e = t.$createElement, n = t._self._c || e;
return n("div", {staticClass: "avue-data-imgtext"}, [n("el-row", {attrs: {span: 24}}, t._l(t.data, (function (e, i) {
return n("el-col", {key: i, attrs: {md: t.span, xs: 24, sm: 12}}, [n("div", {
staticClass: "item",
style: {color: t.color}
}, [n("a", {
attrs: {href: e.href ? e.href : "javascript:void(0);", target: e.target}, on: {
click: function (t) {
e.click && e.click(e)
}
}
}, [n("div", {staticClass: "item-header"}, [n("img", {
attrs: {
src: e.imgsrc,
alt: ""
}
})]), t._v(" "), n("div", {staticClass: "item-content"}, [n("span", [t._v(t._s(e.title))]), t._v(" "), n("p", [t._v(t._s(e.content))])]), t._v(" "), n("div", {staticClass: "item-footer"}, [n("div", {staticClass: "time"}, [n("span", [t._v(t._s(e.time))])]), t._v(" "), n("div", {staticClass: "imgs"}, [n("ul", t._l(e.headimg, (function (t, e) {
return n("li", {key: e}, [n("el-tooltip", {
attrs: {
effect: "dark",
content: t.name,
placement: "top-start"
}
}, [n("img", {attrs: {src: t.src, alt: ""}})])], 1)
})), 0)])])])])])
})), 1)], 1)
}), [], !1, null, null, null).exports, fn = Object(i.a)({
name: "data-operatext", data: function () {
return {}
}, computed: {
span: function () {
return this.option.span || 6
}, data: function () {
return this.option.data || []
}
}, props: {
option: {
type: Object, default: function () {
}
}
}, created: function () {
}, methods: {}
}), mn = Object(c.a)(fn, (function () {
var t = this, e = t.$createElement, n = t._self._c || e;
return n("div", {staticClass: "avue-data-operatext"}, [n("el-row", {attrs: {span: 24}}, t._l(t.data, (function (e, i) {
return n("el-col", {
key: i,
attrs: {md: t.span, xs: 24, sm: 12}
}, [n("div", {staticClass: "item"}, [n("a", {
attrs: {href: e.href ? e.href : "javascript:void(0);"},
on: {
click: function (t) {
e.click && e.click(e)
}
}
}, [n("div", {
staticClass: "item-header",
style: {backgroundColor: e.color, backgroundImage: "url(" + e.colorImg + ")"}
}, [n("span", {staticClass: "item-title"}, [t._v(t._s(e.title))]), t._v(" "), n("span", {staticClass: "item-subtitle"}, [t._v(t._s(e.subtitle))])]), t._v(" "), n("div", {staticClass: "item-content"}, [n("div", {staticClass: "item-img"}, [n("img", {
attrs: {
src: e.img,
alt: ""
}
})]), t._v(" "), n("div", {staticClass: "item-list"}, t._l(e.list, (function (e, i) {
return n("div", {
key: i,
staticClass: "item-row"
}, [n("span", {staticClass: "item-label"}, [t._v(t._s(e.label))]), t._v(" "), n("span", {staticClass: "item-value"}, [t._v(t._s(e.value))])])
})), 0)])])])])
})), 1)], 1)
}), [], !1, null, null, null).exports, bn = Object(i.a)({
name: "data-rotate", data: function () {
return {}
}, props: {
option: {
type: Object, default: function () {
}
}
}, computed: {
animation: function () {
return this.option.animation
}, decimals: function () {
return this.option.decimals || 0
}, span: function () {
return this.option.span || 8
}, data: function () {
return this.option.data || []
}
}, created: function () {
}, mounted: function () {
}, watch: {}, methods: {}
}), vn = Object(c.a)(bn, (function () {
var t = this, e = t.$createElement, n = t._self._c || e;
return n("div", {staticClass: "avue-data-rotate"}, [n("el-row", {attrs: {span: 24}}, t._l(t.data, (function (e, i) {
return n("el-col", {key: i, attrs: {md: t.span, xs: 24, sm: 12}}, [n("div", {
staticClass: "item",
style: {backgroundColor: e.color}
}, [n("div", {staticClass: "item-box"}, [n("avue-count-up", {
staticClass: "item-count",
attrs: {decimals: t.decimals, animation: t.animation, end: e.count}
}), t._v(" "), n("span", {staticClass: "item-title"}, [t._v(t._s(e.title))]), t._v(" "), n("i", {
staticClass: "item-icon",
class: e.icon
})], 1), t._v(" "), n("a", {
attrs: {href: e.href ? e.href : "javascript:void(0);"}, on: {
click: function (t) {
e.click && e.click(e)
}
}
}, [n("p", {staticClass: "item-more"}, [t._v("更多"), n("i", {staticClass: "el-icon-arrow-right"})])])])])
})), 1)], 1)
}), [], !1, null, null, null).exports, yn = Object(i.a)({
name: "data-pay", props: {
option: {
type: Object, default: function () {
}
}
}, computed: {
animation: function () {
return this.option.animation
}, decimals: function () {
return this.option.decimals || 0
}, span: function () {
return this.option.span || 6
}, data: function () {
return this.option.data || []
}
}
}), gn = Object(c.a)(yn, (function () {
var t = this, e = t.$createElement, n = t._self._c || e;
return n("div", {class: t.b()}, [n("el-row", {attrs: {span: 24}}, t._l(t.data, (function (e, i) {
return n("el-col", {
key: i,
attrs: {md: t.span, xs: 24, sm: 12}
}, [n("div", {staticClass: "item"}, [n("div", {
staticClass: "top",
style: {backgroundColor: e.color}
}), t._v(" "), n("div", {staticClass: "header"}, [n("p", {staticClass: "title"}, [t._v(t._s(e.title))]), t._v(" "), n("img", {
staticClass: "img",
attrs: {src: e.src, alt: ""}
}), t._v(" "), e.subtitle ? [n("p", {
staticClass: "subtitle",
style: {color: e.color}
}, [t._v(t._s(e.subtitle))])] : t._e(), t._v(" "), e.money || e.dismoney ? [n("p", {
staticClass: "money",
style: {color: e.color}
}, [n("span", [t._v("¥")]), t._v(" "), n("avue-count-up", {
staticClass: "b",
attrs: {decimals: t.decimals, animation: t.animation, end: e.dismoney}
}), t._v(" "), n("s", [t._v(t._s(e.money))]), t._v(" "), n("em", [t._v(t._s(e.tip))])], 1)] : t._e(), t._v(" "), n("div", {staticClass: "line"}), t._v(" "), n("a", {
staticClass: "btn",
style: {backgroundColor: e.color},
attrs: {href: e.href ? e.href : "javascript:void(0);"},
on: {
click: function (t) {
e.click && e.click(e)
}
}
}, [t._v(t._s(e.subtext))])], 2), t._v(" "), n("div", {staticClass: "list"}, t._l(e.list, (function (i, o) {
return n("div", {staticClass: "list-item"}, [i.check ? n("i", {
staticClass: "list-item-icon list-item--check",
style: {color: e.color}
}, [t._v("√")]) : n("i", {staticClass: "list-item-icon list-item--no"}, [t._v("x")]), t._v(" "), n("a", {attrs: {href: i.href ? i.href : "javascript:void(0);"}}, [n("el-tooltip", {
attrs: {
effect: "dark",
disabled: !i.tip,
placement: "top"
}
}, [n("div", {
attrs: {slot: "content"},
domProps: {innerHTML: t._s(i.tip)},
slot: "content"
}), t._v(" "), n("span", {class: {"list-item--link": i.href}}, [t._v(t._s(i.title))])])], 1)])
})), 0)])])
})), 1)], 1)
}), [], !1, null, null, null).exports, _n = Object(i.a)({
name: "data-price", data: function () {
return {}
}, computed: {
span: function () {
return this.option.span || 6
}, data: function () {
return this.option.data
}
}, props: {
option: {
type: Object, default: function () {
}
}
}
}), xn = Object(c.a)(_n, (function () {
var t = this, e = t.$createElement, n = t._self._c || e;
return n("div", {staticClass: "data-price"}, [n("el-row", {attrs: {span: 24}}, [t._l(t.data, (function (e, i) {
return [n("el-col", {
key: i,
attrs: {xs: 12, sm: 6, md: t.span}
}, [n("div", {staticClass: "item item--active"}, [n("a", {
attrs: {
href: e.href ? e.href : "javascript:void(0);",
target: e.target
}, on: {
click: function (t) {
e.click && e.click(e)
}
}
}, [n("div", {staticClass: "title"}, [t._v("\n " + t._s(e.title) + "\n ")]), t._v(" "), n("div", {staticClass: "body"}, [n("span", {staticClass: "price"}, [t._v(t._s(e.price))]), t._v(" "), n("span", {staticClass: "append"}, [t._v(t._s(e.append))])]), t._v(" "), n("div", {staticClass: "list"}, t._l(e.list, (function (e, i) {
return n("p", {key: i}, [t._v("\n " + t._s(e) + "\n ")])
})), 0)])])])]
}))], 2)], 1)
}), [], !1, null, null, null).exports, wn = Object(i.a)({
name: "data-panel", data: function () {
return {}
}, computed: {
decimals: function () {
return this.option.decimals || 0
}, animation: function () {
return this.option.animation
}, span: function () {
return this.option.span || 6
}, data: function () {
return this.option.data || []
}
}, props: {
option: {
type: Object, default: function () {
}
}
}, created: function () {
}, methods: {}
}), Sn = {
DataTabs: Je,
DataCardText: tn,
DataBox: nn,
DataProgress: an,
DataIcons: sn,
DataCard: cn,
DataDisplay: dn,
DataImgText: hn,
DataOperaText: mn,
DataRotate: vn,
DataPay: gn,
DataPrice: xn,
DataPanel: Object(c.a)(wn, (function () {
var t = this, e = t.$createElement, n = t._self._c || e;
return n("div", {staticClass: "avue-data-panel"}, [n("el-row", {attrs: {span: 24}}, t._l(t.data, (function (e, i) {
return n("el-col", {
key: i,
attrs: {md: t.span, xs: 24, sm: 12}
}, [n("a", {
attrs: {href: e.href ? e.href : "javascript:void(0);"}, on: {
click: function (t) {
e.click && e.click(e)
}
}
}, [n("div", {staticClass: "item"}, [n("div", {staticClass: "item-icon"}, [n("i", {
class: e.icon,
style: {color: e.color}
})]), t._v(" "), n("div", {staticClass: "item-info"}, [n("div", {staticClass: "item-title"}, [t._v(t._s(e.title))]), t._v(" "), n("avue-count-up", {
staticClass: "item-count",
attrs: {animation: t.animation, decimals: t.decimals, end: e.count}
})], 1)])])])
})), 1)], 1)
}), [], !1, null, null, null).exports
}, On = {
name: F.i + F.j,
homeurl: "${HOME_URL}",
echart: ["common", "map", "pictorialbar", "wordcloud", "scatter", "bar", "line", "pie", "gauge", "funnel", "radar"]
}, Cn = {
props: {
click: Function,
stylesFormatter: Function,
dataFormatter: Function,
titleFormatter: Function,
labelFormatter: Function,
clickFormatter: Function,
sqlFormatter: Function,
formatter: Function,
echartFormatter: Function,
width: {type: [Number, String], default: 600},
height: {type: [Number, String], default: 600},
theme: {type: String},
animation: {type: Boolean, default: !0},
child: {
type: Object, default: function () {
return {}
}
},
sql: {type: String},
time: {type: Number, default: 0},
url: {type: String},
disabled: {type: Boolean, default: !0},
dataType: {type: Number, default: 0},
dataQuery: {
type: Object, default: function () {
return {}
}
},
homeUrl: {type: String},
dataAppend: {type: Boolean, default: !1},
dataMethod: {type: String, default: "get"},
id: {type: String, default: "main_" + (new Date).getTime()},
data: {type: [Object, String, Array]},
component: {
type: Object, default: function () {
return {}
}
},
option: {
type: Object, default: function () {
return {}
}
}
}, data: function () {
return {
propQuery: {},
dataCount: 0,
headerHeight: "",
checkChart: "",
myChart: "",
dataChart: [],
dataUrl: "",
key: !1,
isChart: !1,
styles: {}
}
}, watch: {
echartFormatter: function () {
this.updateChart()
}, styleChartName: function () {
var t = this;
this.$nextTick((function () {
t.myChart && t.myChart.resize()
}))
}, url: {
handler: function (t) {
this.dataUrl = t || ""
}, deep: !0, immediate: !0
}, data: {
handler: function () {
this.updateData()
}, deep: !0, immediate: !0
}, width: function () {
this.updateData()
}, height: function () {
this.updateData()
}, theme: function () {
this.myChart.dispose(), this.init(), this.updateData()
}, option: {
handler: function () {
this.myChart && this.isChart && this.updateData()
}, deep: !0, immediate: !0
}
}, computed: {
dataChartLen: function () {
return (this.dataChart || []).length
}, switchTheme: function () {
return this.vaildData(this.option.switchTheme, !1)
}, name: function () {
return this.$el.className.replace(On.name, "")
}, minWidth: function () {
var t = this.option.minWidth;
if (t > this.width) return t
}, isApi: function () {
return 1 === this.dataType
}, isSql: function () {
return 2 === this.dataType
}, style: function () {
return this.component.style || {}
}, styleChartName: function () {
return {width: Object(J.v)(this.minWidth || this.width), height: Object(J.v)(this.height)}
}, styleSizeName: function () {
var t = this;
return Object.assign({
width: Object(J.v)(this.width),
height: Object(J.v)(this.height)
}, t.minWidth ? {overflowX: "auto", overflowY: "hidden"} : {}, this.styles)
}
}, mounted: function () {
this.init()
}, methods: {
init: function () {
if (window.echarts) {
var t = this.$refs[this.id];
t && (this.isChart = On.echart.includes(this.name), this.isChart && (this.myChart = window.echarts.init(t, this.theme)), "datav" == this.name && (this.isChart = !0, this.updateData()))
} else D.a.logs("echarts")
}, updateUrl: function (t) {
this.dataUrl = t, this.updateData()
}, updateData: function () {
var t = this;
return new Promise((function (e, n) {
if (t.resetData && t.resetData(), !t.key) {
t.key = !0;
var i = function () {
t.key = !1;
var n = function () {
t.isChart && t.updateChart(), t.myChart && t.bindClick(), "function" == typeof t.stylesFormatter && (t.styles = t.stylesFormatter(t.dataChart) || {}), e(t.dataChart)
};
if (t.isApi) {
var i = t.dataUrl.replace(On.homeurl, t.homeUrl), o = Object(J.p)(i), a = o.url,
r = Object.assign(o.params, t.dataQuery, t.propQuery);
if (!window.axios) return void D.a.logs("axios");
t.$axios[t.dataMethod](a, "get" === t.dataMethod ? {params: r} : "post" === t.dataMethod ? r : void 0).then((function (e) {
!function (e) {
var i = "function" == typeof t.dataFormatter ? t.dataFormatter(e.data) : e.data || {};
t.dataAppend ? i.forEach((function (e) {
t.dataCount++, setTimeout((function () {
t.dataChart.unshift(e)
}), 1500 * t.dataCount)
})) : t.dataChart = i, n()
}(e)
}))
} else t.isSql ? t.sqlFormatter(t.sql).then((function (e) {
"function" == typeof t.dataFormatter ? t.dataChart = t.dataFormatter(e.data.data) : t.dataChart = e.data.data, n()
})) : ("function" == typeof t.dataFormatter ? t.dataChart = t.dataFormatter(t.data) : t.dataChart = t.data, n())
};
t.$nextTick((function () {
i(), clearInterval(t.checkChart), 0 !== t.time && t.disabled && (t.checkChart = setInterval((function () {
i()
}), t.time))
}))
}
}))
}, getLabelFormatter: function (t) {
return this.labelFormatter ? this.labelFormatter(t, this.dataChart) : t.value
}, bindClick: function () {
var t = this;
this.myChart.off("click"), this.myChart.on("click", (function (e) {
e.marker && t.clickFormatter && t.clickFormatter({
type: t.name,
name: e.name,
value: e.value[2] || e.value,
data: t.dataChart
})
}))
}, getColor: function (t, e) {
var n = this.option.barColor || [];
if (n[t]) {
var i = n[t].color1, o = n[t].color2, a = .01 * (n[t].postion || .9);
return e ? i : o ? {
type: "linear",
x: 0,
y: 0,
x2: 0,
y2: 1,
colorStops: [{offset: 0, color: i}, {offset: a, color: o}],
global: !1
} : i
}
}, ishasprop: function (t, e, n) {
return Object.assign(t ? e : {}, n)
}
}
}, kn = function (t) {
return t.name = F.j + t.name, t.mixins = t.mixins || [], t.mixins.push(Cn), Object(i.a)(t)
}, jn = kn({
name: "bar", computed: {
x2: function () {
return this.option.gridX2 || 20
}
}, methods: {
updateChart: function () {
var t = this, e = this.deepClone(this.dataChart), n = {
title: this.ishasprop(this.option.titleShow, {
text: this.option.title,
subtext: this.option.subtext || "",
textStyle: {color: this.option.titleColor || "#333", fontSize: this.option.titleFontSize || 16},
left: this.option.titlePostion || "auto",
subtextStyle: {color: this.option.subTitleColor || "#aaa", fontSize: this.option.subTitleFontSize || 14}
}, {}),
tooltip: this.ishasprop(this.formatter, {
formatter: function (e) {
return t.formatter(e, t.dataChart)
}
}, {textStyle: {fontSize: this.option.tipFontSize, color: this.option.tipColor || "#fff"}}),
grid: {
left: this.option.gridX || 20,
top: this.option.gridY || 60,
right: this.x2,
bottom: this.option.gridY2 || 60
},
legend: {
show: this.vaildData(this.option.legend, !1),
orient: this.option.legendOrient || "vertical",
x: this.option.legendPostion || "left",
top: 0,
right: this.x2,
textStyle: {fontSize: this.option.legendFontSize || 12},
data: (e.series || []).map((function (e, n) {
return {name: e.name, textStyle: t.ishasprop(!t.switchTheme, {color: t.getColor(n, !0)}, {})}
}))
},
xAxis: {
type: this.option.category ? "value" : "category",
name: this.option.xAxisName,
axisLine: {lineStyle: {color: this.option.lineColor || "#333"}},
data: e.categories || [],
inverse: this.vaildData(this.option.xAxisInverse, !1),
show: this.vaildData(this.option.xAxisShow, !0),
splitLine: {show: this.vaildData(this.option.xAxisSplitLineShow, !1)},
axisLabel: {
interval: this.option.xAxisinterval || "auto",
rotate: this.option.xAxisRotate || 0,
textStyle: {color: this.option.nameColor || "#333", fontSize: this.option.xNameFontSize || 14}
}
},
yAxis: {
type: this.option.category ? "category" : "value",
name: this.option.yAxisName,
data: e.categories || [],
axisLabel: {
textStyle: {
color: this.option.nameColor || "#333",
fontSize: this.option.yNameFontSize || 14
}
},
axisLine: {lineStyle: {color: this.option.lineColor || "#333"}},
inverse: this.vaildData(this.option.yAxisInverse, !1),
show: this.vaildData(this.option.yAxisShow, !0),
splitLine: {show: this.vaildData(this.option.yAxisSplitLineShow, !0)}
},
series: function () {
t.option.barColor;
return (e.series || []).map((function (e, n) {
return Object.assign(e, {
type: "bar",
stack: e.stack,
barWidth: t.option.barWidth || 16,
barMinHeight: t.option.barMinHeight || 0,
itemStyle: t.ishasprop(!t.switchTheme, {color: t.getColor(n)}, {barBorderRadius: t.option.barRadius || 0}),
label: {
show: t.vaildData(t.option.labelShow, !1),
position: "top",
formatter: function (e) {
return t.getLabelFormatter(e)
},
textStyle: {
fontSize: t.option.labelShowFontSize || 14,
color: t.option.labelShowColor || "#333",
fontWeight: t.option.labelShowFontWeight || 500
}
}
})
}))
}()
};
this.myChart.resize(), this.myChart.setOption(n, !0)
}
}
}), Dn = Object(c.a)(jn, (function () {
var t = this.$createElement, e = this._self._c || t;
return e("div", {class: this.b(), style: this.styleSizeName}, [e("div", {
ref: this.id,
style: this.styleChartName
})])
}), [], !1, null, null, null).exports, En = kn({
name: "pie", computed: {
labelShow: function () {
return this.vaildData(this.option.labelShow, !1)
}, x2: function () {
return this.option.gridX2 || 20
}, fontSize: function () {
return this.option.fontSize || 14
}
}, methods: {
updateChart: function () {
var t = this, e = this.deepClone(this.dataChart) || [], n = {
title: this.ishasprop(this.option.titleShow, {
text: this.option.title,
subtext: this.option.subtext || "",
textStyle: {color: this.option.titleColor || "#333", fontSize: this.option.titleFontSize || 16},
left: this.option.titlePostion || "auto",
subtextStyle: {color: this.option.subTitleColor || "#aaa", fontSize: this.option.subTitleFontSize || 14}
}, {}),
tooltip: Object.assign(t.formatter ? {
formatter: function (e) {
return t.formatter(e, t.dataChart)
}
} : {}, {textStyle: {fontSize: t.option.tipFontSize, color: t.option.tipColor || "#fff"}}),
grid: {
left: this.option.gridX || 20,
top: this.option.gridY || 60,
right: this.x2,
bottom: this.option.gridY2 || 60
},
legend: {
show: this.vaildData(this.option.legend, !1),
orient: this.option.legendOrient || "vertical",
x: this.option.legendPostion || "left",
top: 0,
right: this.x2,
textStyle: {fontSize: this.option.legendFontSize || 12},
data: e.map((function (e, n) {
return {name: e.name, textStyle: t.ishasprop(!t.switchTheme, {color: t.getColor(n, !0)}, {})}
}))
},
series: function () {
t.option.barColor;
return [{
type: "pie",
roseType: t.option.roseType ? "radius" : "",
radius: t.option.radius ? ["40%", "55%"] : "50%",
center: ["50%", "60%"],
animationType: "scale",
animationEasing: "elasticOut",
animationDelay: function (t) {
return 200 * Math.random()
},
label: {normal: {show: t.labelShow, formatter: "{b}:{c}({d}%)", textStyle: {fontSize: t.fontSize}}},
data: function () {
var n = e;
return t.option.notCount && (n = n.filter((function (t) {
if (0 !== t.value && t.value) return !0
}))), t.option.sort && n.sort((function (t, e) {
return t.value - e.value
})), n
}(),
itemStyle: t.ishasprop(!t.switchTheme, {
color: function (e) {
return t.getColor(e.dataIndex)
}
}, {emphasis: {shadowBlur: 10, shadowOffsetX: 0, shadowColor: "rgba(0, 0, 0, 0.5)"}})
}]
}()
};
this.myChart.resize(), this.myChart.setOption(n, !0)
}
}
}), Mn = Object(c.a)(En, (function () {
var t = this, e = t.$createElement, n = t._self._c || e;
return n("div", {class: t.b(), style: t.styleSizeName}, [n("div", {
class: t.b("title"),
domProps: {innerHTML: t._s(t.titleFormatter && t.titleFormatter(t.dataChart))}
}), t._v(" "), n("div", {ref: t.id, style: t.styleChartName})])
}), [], !1, null, null, null).exports, Tn = kn({
name: "line", computed: {
x2: function () {
return this.option.gridX2 || 20
}
}, methods: {
updateChart: function () {
var t = this, e = this.deepClone(this.dataChart), n = {
title: this.ishasprop(this.option.titleShow, {
text: this.option.title,
subtext: this.option.subtext || "",
textStyle: {color: this.option.titleColor || "#333", fontSize: this.option.titleFontSize || 16},
left: this.option.titlePostion || "auto",
subtextStyle: {color: this.option.subTitleColor || "#aaa", fontSize: this.option.subTitleFontSize || 14}
}, {}),
tooltip: Object.assign(t.formatter ? {
formatter: function (e) {
return t.formatter(e, t.dataChart)
}
} : {}, {
backgroundColor: "rgba(0,0,0,1)",
trigger: "axis",
textStyle: {fontSize: t.option.tipFontSize, color: t.option.tipColor || "#fff"}
}),
grid: {
left: this.option.gridX || 20,
top: this.option.gridY || 60,
right: this.x2,
bottom: this.option.gridY2 || 60
},
legend: {
show: this.vaildData(this.option.legend, !1),
orient: this.option.legendOrient || "horizontal",
x: this.option.legendPostion || "right",
top: 0,
right: this.x2,
textStyle: {fontSize: this.option.legendFontSize || 12},
data: (e.series || []).map((function (e, n) {
return {name: e.name, textStyle: {color: t.getColor(n, !0)}}
}))
},
xAxis: {
type: this.option.category ? "value" : "category",
name: this.option.xAxisName,
axisLine: {lineStyle: {color: this.option.lineColor || "#333"}},
data: e.categories || [],
inverse: this.vaildData(this.option.xAxisInverse, !1),
show: this.vaildData(this.option.xAxisShow, !0),
splitLine: {show: this.vaildData(this.option.xAxisSplitLineShow, !1)},
axisLabel: {
textStyle: {
color: this.option.nameColor || "#333",
fontSize: this.option.xNameFontSize || 14
}
}
},
yAxis: {
type: this.option.category ? "category" : "value",
name: this.option.yAxisName,
data: e.categories || [],
axisLabel: {
textStyle: {
color: this.option.nameColor || "#333",
fontSize: this.option.yNameFontSize || 14
}
},
axisLine: {lineStyle: {color: this.option.lineColor || "#333"}},
inverse: this.vaildData(this.option.yAxisInverse, !1),
show: this.vaildData(this.option.yAxisShow, !0),
splitLine: {show: this.vaildData(this.option.yAxisSplitLineShow, !0)}
},
series: (e.series || []).map((function (e, n) {
return Object.assign(e, {
type: "line",
smooth: t.vaildData(t.option.smooth, !0),
symbolSize: t.option.symbolSize || 10,
areaStyle: function () {
if (t.option.areaStyle) return {opacity: .7}
}(),
lineStyle: {width: t.option.lineWidth || 1},
itemStyle: t.ishasprop(!t.switchTheme, {color: t.getColor(n)}, {}),
label: {
show: t.vaildData(t.option.labelShow, !1),
position: "top",
formatter: function (e) {
return t.getLabelFormatter(e)
},
textStyle: {
fontSize: t.option.labelShowFontSize || 14,
color: t.option.labelShowColor || "#333",
fontWeight: t.option.labelShowFontWeight || 500
}
}
})
}))
};
this.myChart.resize(), this.myChart.setOption(n, !0)
}
}
}), An = Object(c.a)(Tn, (function () {
var t = this.$createElement, e = this._self._c || t;
return e("div", {class: this.b(), style: this.styleSizeName}, [e("div", {
ref: this.id,
style: this.styleChartName
})])
}), [], !1, null, null, null).exports;
function In(t, e, n) {
return e in t ? Object.defineProperty(t, e, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : t[e] = n, t
}
var Pn = kn({
name: "table", data: function () {
return {
visible: !1,
listVisible: !1,
columnData: [],
indexWidth: 80,
top: 0,
prop: "",
scrollCheck: "",
activeIndex: 0,
query: {}
}
}, watch: (Re = {
columnOption: {
handler: function () {
var t = this;
this.columnData = [], this.columnOption.forEach((function (e) {
1 != e.hide && t.columnData.push(e.prop)
}))
}, immediate: !0
}, scrollCount: function () {
this.setTime()
}, count: function () {
this.setTime()
}, scrollTime: function () {
this.setTime()
}
}, In(Re, "count", (function () {
this.setTime()
})), In(Re, "scroll", {
handler: function (t) {
this.setTime()
}, immediate: !0
}), Re), computed: {
listOption: function () {
var t = this;
return Object.assign({
align: "center",
headerAlign: "center",
size: "mini",
menu: !1,
header: !1,
height: 500,
sumText: "合计",
showSummary: !0,
column: this.option.column
}, {
sumColumnList: t.totalList.map((function (t) {
return {name: t, type: "sum"}
}))
})
}, totalList: function () {
return this.option.totalList || []
}, totalFlag: function () {
return !this.validatenull(this.totalList)
}, totalData: function () {
var t = this, e = {};
return this.totalList.forEach((function (n) {
t.dataChart.forEach((function (t) {
e[n] = (e[n] || 0) + Number(t[n]), e[n] = Number(e[n].toFixed(2))
}))
})), e
}, columnShow: function () {
return this.option.columnShow
}, columnViews: function () {
return this.option.columnViews
}, columnShowWhite: function () {
return this.option.columnShowWhite || []
}, columnShowList: function () {
return this.option.columnShowList || []
}, dataTabelLen: function () {
return this.dataChart.length
}, dataTabel: function () {
var t = this.dataChart;
return this.validatenull(this.prop) || (t = this.sortArrys(t, this.prop)), t
}, allHeight: function () {
var t = this.count - (this.totalFlag ? 2 : 1);
return (this.dataChartLen - t) * this.lineHeight
}, count: function () {
return (this.option.count || 10) + 1
}, dataChartLen: function () {
return (this.dataChart || []).length
}, lineHeight: function () {
return parseInt(this.height / this.count)
}, index: function () {
return this.option.index
}, scroll: function () {
return this.option.scroll
}, scrollTime: function () {
return this.option.scrollTime || 5e3
}, fontSize: function () {
return this.option.fontSize || 14
}, scrollCount: function () {
return this.option.scrollCount || this.count
}, speed: function () {
return this.scrollCount * this.lineHeight
}, styleThName: function () {
return {
fontSize: this.setPx(this.fontSize),
background: this.option.headerBackground || "rgba(0, 0, 0, 0.01)",
color: this.option.headerColor || "rgba(154, 168, 212, 1)"
}
}, columnOption: function () {
return this.crudOption.column || []
}, styleTdName: function () {
return {
fontSize: this.setPx(this.fontSize),
lineHeight: this.setPx(this.lineHeight),
height: this.setPx(this.lineHeight),
color: this.option.bodyColor || "rgba(154, 168, 212, 1)",
borderColor: this.option.borderColor || "rgba(51, 65, 107, 1)"
}
}, styleMenuName: function () {
return {lineHeight: this.setPx(this.lineHeight), color: this.option.headerColor || "rgba(154, 168, 212, 1)"}
}, sortableProp: function () {
return this.option.sortableProp || "order"
}, crudOption: function () {
return Object.assign(this.option, {menu: !1, align: "center", headerAlign: "center", header: !1})
}
}, props: {
option: {
type: Object, default: function () {
return {}
}
}
}, methods: {
styleWidth: function (t) {
return {width: this.setPx(t), flex: t ? "initial" : 1}
}, resetData: function () {
this.top = 0
}, handleSortable: function (t) {
this.propQuery[this.sortableProp] = t, this.updateData()
}, setTime: function () {
var t = this;
this.top = 0, clearInterval(this.scrollCheck), setTimeout((function () {
t.scroll && (t.scrollCheck = setInterval((function () {
t.top <= -t.allHeight ? t.top = 0 : t.top = t.top - t.speed
}), t.scrollTime))
}), 2e3)
}, styleTrName: function (t) {
var e = {lineHeight: this.setPx(this.lineHeight)};
return e.background = t % 2 == 0 ? this.option.othColor : this.option.nthColor, e
}, rowClick: function (t, e) {
this.clickFormatter && this.clickFormatter({type: e, value: t, data: this.dataChart})
}, handleClick: function (t, e) {
this.activeIndex = e, this.query.type = t, this.updateData()
}
}
}), $n = Object(c.a)(Pn, (function () {
var t = this, e = t.$createElement, n = t._self._c || e;
return n("div", {
class: t.b(),
style: [t.styleSizeName, {overflow: t.scroll ? "hidden" : "inherit"}]
}, [n("el-dialog", {
attrs: {
visible: t.visible,
"modal-append-to-body": "",
"append-to-body": "",
title: "数据显隐",
width: "30%"
}, on: {
"update:visible": function (e) {
t.visible = e
}
}
}, [n("avue-checkbox", {
attrs: {dic: t.columnOption, props: {value: "prop"}},
model: {
value: t.columnData, callback: function (e) {
t.columnData = e
}, expression: "columnData"
}
})], 1), t._v(" "), n("el-dialog", {
class: t.b("allview"),
attrs: {visible: t.listVisible, "modal-append-to-body": "", title: "详细数据", "append-to-body": "", width: "80%"},
on: {
"update:visible": function (e) {
t.listVisible = e
}
}
}, [n("avue-crud", {
attrs: {
option: t.listOption,
data: t.dataTabel
}
})], 1), t._v(" "), n("div", {
class: t.b("table"),
style: t.styleTdName
}, [n("div", {class: t.b("tr")}, [t.index ? n("div", {
class: t.b("td"),
style: [t.styleThName, t.styleWidth(t.indexWidth)]
}, [n("div", {class: t.b("menu"), style: t.styleMenuName}, [t.columnShow ? n("i", {
staticClass: "el-icon-menu",
on: {
click: function (e) {
t.visible = !0
}
}
}) : t._e(), t._v(" "), t.columnViews ? n("i", {
staticClass: "el-icon-view", on: {
click: function (e) {
t.listVisible = !0
}
}
}) : t._e()])]) : t._e(), t._v(" "), t._l(t.columnOption, (function (e, i) {
return [(t.columnData || []).includes(e.prop) ? n("div", {
key: i,
class: t.b("td"),
style: [t.styleThName, t.styleWidth(e.width)],
on: {
click: function (n) {
return t.handleSortable(e.prop)
}
}
}, [t._v("\n " + t._s(e.label) + "\n ")]) : t._e()]
}))], 2), t._v(" "), t.totalFlag ? n("div", {class: t.b("tr")}, [t.index ? n("div", {
class: [t.b("td")],
style: [t.styleWidth(t.indexWidth)]
}, [t._v("\n 合计\n ")]) : t._e(), t._v(" "), t._l(t.columnOption, (function (e, i) {
return [(t.columnData || []).includes(e.prop) ? n("div", {
key: i,
class: t.b("td"),
style: [t.styleWidth(e.width)]
}, [t._v("\n " + t._s(t.totalData[e.prop]) + "\n ")]) : t._e()]
}))], 2) : t._e(), t._v(" "), n("div", {
ref: "body",
class: t.b("body"),
style: t.styleSizeName
}, [n("transition-group", {
attrs: {
"enter-active-class": t.option.enterActiveClass,
"leave-active-class": t.option.leaveActiveClass,
tag: "div"
}
}, t._l(t.dataTabel, (function (e, i) {
return n("div", {
key: t.dataTabelLen - i,
class: t.b("tr", ["line"]),
style: [t.styleTrName(i), {top: t.setPx(i * t.lineHeight + t.top)}],
on: {
click: function (n) {
return t.rowClick(e, i)
}
}
}, [t.index ? n("div", {
key: t.index,
class: t.b("td"),
style: [t.styleWidth(t.indexWidth)]
}, [n("div", {class: t.b("index", [i + 1 + ""])}, [t._v(" " + t._s(i + 1))])]) : t._e(), t._v(" "), t._l(t.columnOption, (function (i, o) {
return [(t.columnData || []).includes(i.prop) ? n("div", {
key: o,
class: t.b("td"),
style: [t.styleTdName, t.styleWidth(i.width)]
}, [n("el-tooltip", {
staticClass: "item",
attrs: {effect: "dark", content: e[i.prop], placement: "top"}
}, [n("span", {domProps: {innerHTML: t._s(e[i.prop])}})])], 1) : t._e()]
}))], 2)
})), 0)], 1)])], 1)
}), [], !1, null, null, null).exports, Ln = kn({
name: "flop", data: function () {
return {statusDIC: [".", ","]}
}, computed: {
isArray: function () {
return Array.isArray(this.dataChart)
}, decimals: function () {
return this.option.decimals || 0
}, listData: function () {
return this.isArray ? this.dataChart : [this.dataChart]
}, isWhole: function () {
return this.vaildData(this.option.whole, !1)
}, type: function () {
return this.option.type
}, isBorder: function () {
return "border" === this.type
}, isImg: function () {
return "img" === this.type
}, span: function () {
return this.option.span || 1
}, prefixStyle: function () {
return {
display: this.option.prefixInline ? "inline-block" : "block",
textAlign: this.option.prefixTextAlign,
marginBottom: this.setPx(this.option.prefixSplity),
marginRight: this.setPx(this.option.prefixSplitx),
color: this.option.prefixColor || "#fff",
fontSize: this.setPx(this.option.prefixFontSize || 24)
}
}, suffixStyle: function () {
return {
display: this.option.suffixInline ? "inline-block" : "block",
textAlign: this.option.suffixTextAlign,
marginTop: this.setPx(this.option.suffixSplity),
marginLeft: this.setPx(this.option.suffixSplitx),
color: this.option.suffixColor || "#fff",
fontSize: this.setPx(this.option.suffixFontSize || 24)
}
}, styleParentSize: function () {
var t = {boxSizing: "border-box", display: "inline-block", width: 100 / this.span - 1 + "%"};
return this.option.splitx && (t.paddingRight = this.setPx(this.option.splitx)), this.option.splity && (t.paddingBottom = this.setPx(this.option.splity)), t
}, styleParentName: function () {
var t = {};
return this.isImg || this.isBorder || (t = Object.assign(t, {
backgroundImage: "url(".concat(this.option.backgroundImage, ")"),
backgroundColor: this.option.backgroundColor
})), this.option.padding && (t.padding = this.setPx(this.option.padding)), t
}, styleName: function () {
var t, e = this;
return Object.assign((t = {}, e.option.splitx && (t.marginRight = e.setPx(e.option.splitx)), e.option.splity && (t.marginBottom = e.setPx(e.option.splity)), e.option.backgroundImage && (t = Object.assign(t, {
backgroundImage: "url(".concat(e.option.backgroundImage, ")"),
backgroundSize: "100% 100%"
})), t), {
textAlign: this.option.textAlign,
backgroundColor: this.option.backgroundColor,
color: this.option.color || "#fff",
fontSize: this.setPx(this.option.fontSize || 64),
fontWeight: this.option.fontWeight
}, "img" === e.type ? {borderImageSource: "url(".concat(e.option.backgroundBorder, ")")} : "border" === e.type ? {
borderColor: e.option.borderColor || "#fff",
borderStyle: "solid",
borderWidth: e.setPx(e.option.borderWidth)
} : void 0)
}
}, props: {
option: {
type: Object, default: function () {
return {}
}
}
}, created: function () {
}, methods: {
handleClick: function (t, e) {
this.clickFormatter && this.clickFormatter({type: e, value: t, data: this.dataChart})
}, getValByArray: function (t, e) {
return this.isArray ? t[e] : this.option[e]
}
}
}), Nn = Object(c.a)(Ln, (function () {
var t = this, e = t.$createElement, n = t._self._c || e;
return n("div", {class: t.b(), style: t.styleSizeName}, t._l(t.listData, (function (e, i) {
return n("div", {
key: i,
style: t.styleParentSize
}, [n("el-tooltip", {
style: [t.styleParentName, {backgroundColor: e.backgroundColor || t.option.backgroundColor}],
attrs: {disabled: !e.formatter, placement: "top-start"}
}, [n("div", {
attrs: {slot: "content"},
domProps: {innerHTML: t._s(e.formatter && e.formatter())},
slot: "content"
}), t._v(" "), n("div", {
class: t.b("item", {
none: t.statusDIC.includes(e) || "" === t.type,
whole: t.isWhole,
img: t.isWhole && (t.isImg || t.isBorder)
}), style: t.isWhole ? t.styleName : "", on: {
click: function (n) {
return t.handleClick(e, i)
}
}
}, [t.getValByArray(e, "prefixText") ? n("div", {style: t.prefixStyle}, [t._v(t._s(t.getValByArray(e, "prefixText")))]) : t._e(), t._v(" "), t.isWhole ? n("avue-count-up", {
attrs: {
decimals: t.decimals,
end: e.data || e.value
}
}) : n("div", {class: t.b("count")}, t._l((e.data || e.value) + "".split(","), (function (e, i) {
return n("div", {
key: i,
class: t.b("item", {none: t.statusDIC.includes(e) || "" === t.type, img: t.isImg}),
style: t.styleName,
on: {
click: function (n) {
return t.handleClick(e, i)
}
}
}, [t.statusDIC.includes(e) ? n("div", [t._v(t._s(e))]) : n("avue-count-up", {
attrs: {
decimals: t.decimals,
end: e
}
})], 1)
})), 0), t._v(" "), t.getValByArray(e, "suffixText") ? n("div", {style: t.suffixStyle}, [t._v(t._s(t.getValByArray(e, "suffixText")))]) : t._e()], 1)])], 1)
})), 0)
}), [], !1, null, null, null).exports, zn = n(19), Bn = n.n(zn), Fn = kn({
name: "datetime", data: function () {
return {date: new Date}
}, computed: {
nowDate: function () {
if ("day" === this.option.format) return "星期" + Object(T.b)();
var t = (this.option.format || "yyyy-MM-dd hh:mm:ss").replace("dd", "DD").replace("yyyy", "YYYY");
return Bn()(this.date).format(t)
}, styleName: function () {
return {
width: "100%",
height: "100%",
textAlign: this.option.textAlign,
letterSpacing: this.setPx(this.option.split),
textIndent: this.setPx(this.option.split),
backgroundColor: this.option.backgroundColor,
fontWeight: this.option.fontWeight || "normal",
fontSize: (this.option.fontSize || 30) + "px",
color: this.option.color || "#333"
}
}
}, created: function () {
var t = this;
setInterval((function () {
t.date = new Date
}), 1e3)
}, props: {
option: {
type: Object, default: function () {
return {}
}
}
}, methods: {
handleClick: function () {
this.clickFormatter && this.clickFormatter({data: this.dataChart})
}
}
}), Rn = Object(c.a)(Fn, (function () {
var t = this.$createElement, e = this._self._c || t;
return e("div", {
ref: "main",
class: this.b(),
style: this.styleSizeName,
on: {click: this.handleClick}
}, [e("p", {style: this.styleName}, [this._v(this._s(this.nowDate))])])
}), [], !1, null, null, null).exports, Kn = kn({
name: "text", data: function () {
return {check: "", date: new Date, left: 0}
}, computed: {
scroll: function () {
return this.vaildData(this.option.scroll, !1)
}, linkHref: function () {
return this.option.linkHref || "#"
}, linkTarget: function () {
return this.option.linkTarget || "_self"
}, step: function () {
return this.option.step || 5
}, speed: function () {
return this.option.speed || 100
}, lineHeight: function () {
return this.option.lineHeight || 40
}, fontSize: function () {
return this.option.fontSize || 30
}, split: function () {
return this.option.split
}, textWidth: function () {
return (this.dataChart.value || "").length * this.fontSize
}, styleName: function () {
return {
width: this.scroll ? this.setPx(this.textWidth) : "auto",
transform: "translateX(" + this.left + "px)",
textAlign: this.option.textAlign,
letterSpacing: this.setPx(this.split),
textIndent: this.setPx(this.split),
backgroundColor: this.option.backgroundColor,
fontWeight: this.option.fontWeight || "normal",
fontSize: this.fontSize + "px",
lineHeight: this.lineHeight + "px",
color: this.option.color || "#333"
}
}
}, watch: {
scroll: function () {
this.move()
}, speed: function () {
this.move()
}
}, created: function () {
var t = this;
setInterval((function () {
t.date = new Date
}), 1e3)
}, mounted: function () {
this.move()
}, methods: {
handleClick: function () {
this.clickFormatter && this.clickFormatter({data: this.dataChart})
}, move: function () {
var t = this;
clearInterval(this.check), this.scroll ? this.check = setInterval((function () {
t.left < -t.textWidth && (t.left = t.width), t.left = t.left - t.step
}), this.speed) : this.left = 0
}
}, props: {
option: {
type: Object, default: function () {
return {}
}
}
}
}), Wn = Object(c.a)(Kn, (function () {
var t = this, e = t.$createElement, n = t._self._c || e;
return n("div", {
ref: "main",
class: t.b(),
style: t.styleSizeName,
on: {click: t.handleClick}
}, [n("div", {ref: "box", class: t.b("box")}, [n("a", {
ref: "text",
class: t.b("text"),
style: t.styleName,
attrs: {href: t.linkHref, target: t.linkTarget}
}, [t._v(t._s(t.dataChart.value))])])])
}), [], !1, null, null, null).exports, Un = kn({
name: "swiper", data: function () {
return {}
}, computed: {
styleName: function () {
return {opacity: this.opacity}
}, indicator: function () {
return this.opacity.indicator || "none"
}, opacity: function () {
return .01 * (this.option.opacity || 100)
}, type: function () {
return this.option.type || ""
}, interval: function () {
return this.option.interval || 5e3
}
}, created: function () {
}, mounted: function () {
}, methods: {
handleClick: function (t, e) {
this.clickFormatter && this.clickFormatter({type: e, value: t, data: this.dataChart})
}
}, props: {
option: {
type: Object, default: function () {
return {}
}
}
}
}), Vn = Object(c.a)(Un, (function () {
var t = this, e = t.$createElement, n = t._self._c || e;
return n("div", {ref: "main", class: t.b(), style: t.styleSizeName}, [n("el-carousel", {
attrs: {
type: t.type,
"indicator-position": t.indicator,
interval: t.interval,
height: t.height
}
}, t._l(t.dataChart, (function (e) {
return n("el-carousel-item", {
key: e, on: {
click: function (n) {
return t.handleClick(e, t.index)
}
}
}, [n("img", {style: t.styleName, attrs: {src: e.value, draggable: "false"}})])
})), 1)], 1)
}), [], !1, null, null, null).exports, Hn = kn({
name: "iframe", data: function () {
return {}
}, computed: {}, created: function () {
}, mounted: function () {
}, methods: {
handleClick: function () {
this.clickFormatter && this.clickFormatter({data: this.dataChart})
}
}, props: {
option: {
type: Object, default: function () {
return {}
}
}
}
}), qn = Object(c.a)(Hn, (function () {
var t = this.$createElement, e = this._self._c || t;
return e("div", {
ref: "main",
class: this.b(),
style: this.styleSizeName,
on: {click: this.handleClick}
}, [e("iframe", {attrs: {src: this.dataChart.value, draggable: "false"}})])
}), [], !1, null, null, null).exports, Yn = kn({
name: "video", data: function () {
return {}
}, computed: {}, created: function () {
}, mounted: function () {
}, methods: {
handleClick: function () {
this.clickFormatter && this.clickFormatter({type: index, value: item, data: this.dataChart})
}
}, props: {
option: {
type: Object, default: function () {
return {}
}
}
}
}), Gn = Object(c.a)(Yn, (function () {
var t = this.$createElement, e = this._self._c || t;
return e("div", {
ref: "main",
class: this.b(),
style: this.styleSizeName,
on: {click: this.handleClick}
}, [e("video", {
staticStyle: {"object-fit": "fill"},
attrs: {controls: "", autoplay: "", loop: "", width: this.width, height: this.height}
}, [e("source", {attrs: {src: this.dataChart.value}})])])
}), [], !1, null, null, null).exports, Xn = kn({
name: "wordcloud", methods: {
updateChart: function () {
var t = this, e = this.deepClone(this.dataChart) || [], n = {
series: [{
type: "wordCloud",
left: "center",
top: "center",
width: "100%",
height: "100%",
right: null,
bottom: null,
sizeRange: [t.option.minFontSize || 12, t.option.maxFontSize || 60],
rotationRange: t.option.rotate ? [-90, 90] : [0, 0],
rotationStep: t.option.rotate ? 45 : 0,
gridSize: this.option.split || 30,
drawOutOfBound: !1,
textStyle: {
normal: {
fontFamily: "sans-serif", fontWeight: "bold", color: function () {
return "rgb(" + [Math.round(160 * Math.random()), Math.round(160 * Math.random()), Math.round(160 * Math.random())].join(",") + ")"
}
}, emphasis: {shadowBlur: 10, shadowColor: "#333"}
},
data: e
}]
};
this.myChart.resize(), this.myChart.setOption(n, !0)
}
}
}), Qn = Object(c.a)(Xn, (function () {
var t = this.$createElement, e = this._self._c || t;
return e("div", {class: this.b(), style: this.styleSizeName}, [e("div", {
ref: this.id,
style: this.styleChartName
})])
}), [], !1, null, null, null).exports, Jn = kn({
name: "gauge", computed: {
x2: function () {
return this.option.gridX2 || 20
}
}, methods: {
updateChart: function () {
var t, e = this, n = this.deepClone(this.dataChart), i = {
title: this.ishasprop(this.option.titleShow, {
text: this.option.title,
subtext: this.option.subtext || "",
textStyle: {color: this.option.titleColor || "#333", fontSize: this.option.titleFontSize || 16},
left: this.option.titlePostion || "auto",
subtextStyle: {color: this.option.subTitleColor || "#aaa", fontSize: this.option.subTitleFontSize || 14}
}, {}),
grid: {
left: this.option.gridX || 20,
top: this.option.gridY || 60,
right: this.x2,
bottom: this.option.gridY2 || 60
},
series: [{
name: "业务指标",
type: "gauge",
detail: {fontSize: this.option.valueFontSize || 30, formatter: "{value}" + n.unit},
min: n.min,
max: n.max,
axisLine: {
lineStyle: {
color: (t = [], (e.option.barColor || []).forEach((function (e) {
t.push([e.postion, e.color1])
})), e.validatenull(t) && (t = [[0, 2, "#91c7ae"], [.8, "#638693"], [1, "#c23531"]]), t),
width: this.option.lineSize || 5
}
},
axisLabel: {
show: this.vaildData(this.option.axisLabelShow, !0),
fontSize: this.option.axisLabelFontSize || 25
},
axisTick: {lineStyle: {color: this.option.lineColor || "#eee"}},
title: {color: this.option.nameColor, fontSize: this.option.nameFontSize || 20},
data: [n]
}]
};
this.myChart.resize(), this.myChart.setOption(i, !0)
}
}
}), Zn = Object(c.a)(Jn, (function () {
var t = this.$createElement, e = this._self._c || t;
return e("div", {class: this.b(), style: this.styleSizeName}, [e("div", {
ref: this.id,
style: this.styleChartName
})])
}), [], !1, null, null, null).exports, ti = kn({
name: "progress", computed: {
styleSuffixName: function () {
return {
fontWeight: this.option.suffixFontWeight || "normal",
fontSize: (this.option.suffixFontSize || 40) + "px",
color: this.option.suffixColor || "#333"
}
}, styleName: function () {
return {
marginBottom: this.option.split + "px",
fontWeight: this.option.fontWeight || "normal",
fontSize: (this.option.fontSize || 40) + "px",
color: this.option.color || "#333"
}
}, type: function () {
return this.option.type || "line"
}, color: function () {
return this.option.borderColor || "#333"
}, strokeWidth: function () {
return this.option.strokeWidth || 14
}
}, props: {
option: {
type: Object, default: function () {
return {}
}
}
}, methods: {
handleClick: function () {
this.clickFormatter && this.clickFormatter({data: this.dataChart})
}
}
}), ei = Object(c.a)(ti, (function () {
var t = this, e = t.$createElement, n = t._self._c || e;
return n("div", {
ref: "main",
class: t.b(),
style: t.styleSizeName,
on: {click: t.handleClick}
}, [n("div", {
class: t.b("text", {
line: "line" === t.type,
circle: "circle" === t.type
})
}, [n("p", {style: t.styleSuffixName}, [t._v(t._s(t.dataChart.label))]), t._v(" "), n("p", {style: t.styleName}, [t.dataChart.value ? n("avue-count-up", {attrs: {end: Number(t.dataChart.value)}}) : t._e()], 1)]), t._v(" "), n("avue-progress", {
attrs: {
color: t.color,
width: t.width,
showText: !1,
strokeWidth: t.strokeWidth,
percentage: t.dataChart.data,
type: t.type
}
})], 1)
}), [], !1, null, null, null).exports;
function ni(t, e, n) {
return e in t ? Object.defineProperty(t, e, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : t[e] = n, t
}
var ii = kn({
name: "map", data: function () {
return {
bannerCount: 0,
bannerCheck: "",
move: !1,
step: 1,
startLeft: 0,
startTop: 0,
baseScale: 0,
left: 0,
top: 0,
centerData: [],
zoomData: 1
}
}, watch: {
mapData: function () {
this.updateChart()
}, dataChartLen: function () {
this.setBanner()
}, bannerTime: function () {
this.setBanner()
}, banner: {
handler: function () {
this.setBanner()
}, immediate: !0
}, type: function () {
var t = this;
this.isEchart && this.$nextTick((function () {
t.init(), t.updateData()
}))
}, width: function () {
this.updateData()
}, height: function () {
this.updateData()
}, zoom: {
handler: function () {
this.zoomData = this.zoom
}, immediate: !0
}, scale: {
handler: function (t) {
this.baseScale = t
}, immediate: !0
}
}, computed: {
zoomShow: function () {
return this.option.zoomShow || 1
}, zoom: function () {
return this.option.zoom || 1
}, mapData: function () {
return this.option.mapData || {}
}, borderWidth: function () {
return this.option.borderWidth || 3
}, borderColor: function () {
return this.option.borderColor || "#389BB7"
}, areaColor: function () {
return this.option.areaColor || "#0c162f"
}, empColor: function () {
return this.option.empColor || "#fff"
}, empAreaColor: function () {
return this.option.empAreaColor || "yellow"
}, color: function () {
return this.option.color || "#fff"
}, roam: function () {
return this.vaildData(this.option.roam, !0)
}, fontSize: function () {
return this.option.fontSize || 24
}, isEchart: function () {
return 0 === this.type
}, bannerTime: function () {
return this.option.bannerTime || 3e3
}, banner: function () {
return this.option.banner
}, scale: function () {
return this.option.scale || 100
}, styleImgName: function () {
return {
marginLeft: this.setPx(this.left),
marginTop: this.setPx(this.top),
transform: "scale(".concat(this.baseScale / 100, ", ").concat(this.baseScale / 100, ")")
}
}, location: function () {
return this.option.location || []
}, img: function () {
return this.option.img
}, type: function () {
return this.option.type
}, locationData: function () {
var t = this;
return (this.dataChart || []).map((function (e) {
e.zoom = e.zoom || 1;
var n = t.zoomData < 1 ? 1 : t.zoomData;
return Object.assign(e.zoom <= n ? {name: e.name} : {}, {value: [e.lng, e.lat, e.value]})
}))
}
}, methods: {
docMouseUp: function () {
var t = this;
window.document.onmouseup = function (e) {
window.document.onmousemove = void 0, t.move = !1
}
}, handleMouseDown: function (t) {
this.move = !0, this.startLeft = t.clientX, this.startTop = t.clientY, this.docMouseUp()
}, handleMouseMove: function (t) {
var e = this;
this.move && (window.document.onmousemove = function (t) {
var n = t.clientX, i = t.clientY;
e.left = e.left + (n - e.startLeft) * e.step, e.top = e.top + (i - e.startTop) * e.step, e.startLeft = n, e.startTop = i
})
}, handleMouseUp: function () {
this.move = !1
}, handleMousewheel: function (t) {
var e = t.deltaY;
this.baseScale = e > 0 ? this.baseScale + 10 : this.baseScale - 10
}, resetBanner: function () {
var t = this;
this.$nextTick((function () {
t.myChart.dispatchAction({type: "hideTip"})
}))
}, setBanner: function () {
var t = this;
clearInterval(this.bannerCheck), this.banner && (this.bannerCheck = setInterval((function () {
var e = t.bannerCount % t.dataChartLen;
t.myChart.dispatchAction({
type: "showTip",
seriesIndex: "0",
dataIndex: e
}), t.myChart.dispatchAction({type: "downplay"}), t.myChart.dispatchAction({
type: "highlight",
dataIndex: e
}), t.bannerCount += 1
}), this.bannerTime))
}, updateChart: function () {
var t = this;
window.axios ? this.$axios(this.mapData).then((function (e) {
var n, i = e.data, o = t.deepClone(i);
window.echarts.registerMap("HK", o);
var a = {
tooltip: Object.assign(t.formatter ? {
formatter: function (e) {
return t.formatter(e, t.dataChart)
}
} : {}, {
backgroundColor: t.option.tipBackgroundColor || "rgba(0,0,0,1)",
textStyle: {fontSize: t.option.tipFontSize, color: t.option.tipColor || "red"}
}),
geo: Object.assign(t.validatenull(t.centerData) ? {} : {center: t.centerData}, (n = {
map: "HK",
label: {emphasis: {show: !1}},
zoom: t.zoomData,
layoutCenter: ["50%", "50%"],
layoutSize: 1200,
roam: t.roam
}, ni(n, "label", {
show: !0,
fontSize: t.fontSize,
color: t.color
}), ni(n, "left", t.option.gridX), ni(n, "top", t.option.gridY), ni(n, "right", t.option.gridX2), ni(n, "bottom", t.option.gridY2), ni(n, "emphasis", {
label: {color: t.empColor},
itemStyle: {areaColor: t.empAreaColor}
}), ni(n, "itemStyle", {
borderWidth: t.borderWidth,
borderColor: t.borderColor,
areaColor: t.areaColor
}), n)),
series: [{
type: "effectScatter",
coordinateSystem: "geo",
showEffectOn: "emphasis",
rippleEffect: {brushType: "fill", scale: 4},
symbolSize: t.fontSize,
hoverAnimation: !0,
data: t.locationData,
label: {
show: !0,
position: ["130%", "0"],
fontSize: t.fontSize,
color: t.color,
formatter: function (t) {
return t.name
}
},
itemStyle: {color: t.color},
emphasis: {
label: {show: !0, fontSize: t.fontSize + 20, color: t.option.empColor},
itemStyle: {color: t.option.empColor}
}
}]
};
t.myChart.off("mouseover"), t.myChart.off("mouseout"), t.myChart.off("georoam"), t.myChart.on("mouseover", (function () {
clearInterval(t.bannerCheck), t.resetBanner()
})), t.myChart.on("mouseout", (function () {
t.bannerCount = 0, t.setBanner()
})), t.myChart.on("georoam", (function (e) {
var n = t.myChart.getOption().geo[0];
t.centerData = n.center, t.zoomData = n.zoom, t.zoomData < 1 && (t.zoomData = 1)
})), t.myChart.resize(), t.myChart.setOption(a, !0)
})) : D.a.logs("axios")
}
}
}), oi = Object(c.a)(ii, (function () {
var t = this, e = t.$createElement, n = t._self._c || e;
return n("div", {
class: t.b(), style: t.styleSizeName, on: {
mousewheel: function (e) {
return e.preventDefault(), t.handleMousewheel(e)
}
}
}, [t.isEchart ? n("div", {
ref: t.id,
style: t.styleChartName
}) : n("div", {class: t.b("map")}, [n("div", {
class: t.b("box"),
style: t.styleImgName,
on: {
mousedown: function (e) {
!t.disabled && t.handleMouseDown(e)
}, mousemove: function (e) {
!t.disabled && t.handleMouseMove(e)
}, mouseup: function (e) {
!t.disabled && t.handleMouseUp(e)
}
}
}, [n("img", {
ref: "img",
class: t.b("bg"),
attrs: {src: t.img, draggable: "false"}
}), t._v(" "), t._l(t.location, (function (e, i) {
return n("span", {class: t.b("location"), style: {left: t.setPx(e.x), top: t.setPx(e.y)}})
}))], 2)])])
}), [], !1, null, null, null).exports, ai = kn({
name: "img", computed: {
styleImgName: function () {
var t = this;
return Object.assign(t.rotate ? {animationDuration: t.duration / 1e3 + "s"} : {}, {opacity: this.option.opacity || 1})
}, duration: function () {
return this.option.duration || 3e3
}, rotate: function () {
return this.option.rotate
}
}, methods: {
handleClick: function () {
this.clickFormatter && this.clickFormatter({data: this.dataChart})
}
}
}), ri = Object(c.a)(ai, (function () {
var t = this, e = t.$createElement, n = t._self._c || e;
return n("div", {
class: t.b(),
style: t.styleSizeName,
on: {click: t.handleClick}
}, [n("img", {
class: t.b({rotate: t.rotate}),
style: [t.styleImgName, t.styleSizeName],
attrs: {src: t.dataChart.value, draggable: "false"}
})])
}), [], !1, null, null, null).exports, si = kn({
name: "imgborder", computed: {
styleImgName: function () {
var t = this;
return Object.assign({
width: "100%",
height: "100%",
backgroundColor: this.option.backgroundColor || "rgba(180, 181, 198, 0.1)",
backgroundClip: "padding-box",
opacity: this.option.opacity || 1,
filter: "blur(0px)"
}, t.validatenull(t.dataChart) ? {} : {
borderImageSource: "url(" + t.dataChart + ")",
borderImageSlice: "10 16 15 10 fill",
borderWidth: "10px 16px 15px 10px",
borderStyle: "solid",
boxSizing: "border-box"
})
}
}, methods: {}
}), li = Object(c.a)(si, (function () {
var t = this.$createElement, e = this._self._c || t;
return e("div", {class: this.b(), style: this.styleSizeName}, [e("div", {style: this.styleImgName})])
}), [], !1, null, null, null).exports, ci = kn({
name: "tabs", data: function () {
return {active: ""}
}, watch: {
active: function (t) {
t && this.handleClick(t)
}, dataChart: {
handler: function (t) {
0 !== t.length && (this.active = t[0].value)
}, immediate: !0
}
}, computed: {
isSelect: function () {
return "select" === this.type
}, type: function () {
return this.option.type
}, paramName: function () {
return this.option.paramName
}, iconSize: function () {
return this.option.iconSize || 20
}, styleSelectName: function () {
return Object.assign({fontSize: this.setPx(this.option.fontSize || 30)}, this.styleSizeName)
}, styleIconName: function () {
return Object.assign({
marginRight: this.setPx(this.option.iconSplit),
width: this.setPx(this.option.iconSize),
height: this.setPx(this.option.iconSize)
})
}, styleName: function () {
var t = this;
return Object.assign(t.option.backgroundImage ? {
backgroundImage: "url(".concat(t.option.backgroundImage, ")"),
backgroundSize: "100% 100%"
} : {}, {
borderColor: this.option.borderColor || "#fff",
borderStyle: "solid",
borderWidth: this.setPx(this.option.borderWidth || 0),
margin: "0 ".concat(this.setPx(this.option.split)),
backgroundColor: this.option.backgroundColor,
fontSize: this.setPx(this.option.fontSize || 30),
color: this.option.color
})
}
}, created: function () {
}, mounted: function () {
}, methods: {
styleIconBgName: function (t) {
if (t.icon) return {backgroundImage: "url(".concat(t.icon, ")"), backgroundSize: "100% 100%"}
}, styleIconActiveName: function (t) {
if (this.active == t.value && t.empIcon) return {
backgroundImage: "url(".concat(t.empIcon, ")"),
backgroundSize: "100% 100%"
}
}, styleActiveName: function (t) {
var e = this;
if (this.active == t.value) return Object.assign(e.option.empBackgroundImage ? {
backgroundImage: "url(".concat(e.option.empBackgroundImage, ")"),
backgroundSize: "100% 100%"
} : {}, {
borderColor: this.option.empBorderColor || "#fff",
borderStyle: "solid",
borderWidth: this.setPx(this.option.empBorderWidth || 0),
color: this.option.empColor
})
}, handleClick: function (t) {
this.active = t, this.click({type: this.name, child: this.child, value: this.active})
}
}, props: {
option: {
type: Object, default: function () {
return {}
}
}
}
}), ui = Object(c.a)(ci, (function () {
var t = this, e = t.$createElement, n = t._self._c || e;
return n("div", {
ref: "main",
class: t.b(),
style: t.styleSizeName
}, [t.isSelect ? n("avue-select", {
style: t.styleSelectName,
attrs: {dic: "string" == typeof t.dataChart ? [] : t.dataChart},
model: {
value: t.active, callback: function (e) {
t.active = e
}, expression: "active"
}
}) : n("div", {class: t.b("list")}, t._l(t.dataChart, (function (e, i) {
return n("div", {
key: i,
class: t.b("item"),
style: [t.styleName, t.styleActiveName(e)],
on: {
click: function (n) {
return t.handleClick(e.value)
}
}
}, [e.icon ? n("div", {
class: t.b("icon"),
style: [t.styleIconName, t.styleIconBgName(e), t.styleIconActiveName(e)]
}) : t._e(), t._v(" "), n("span", [t._v(t._s(e.label))])])
})), 0)], 1)
}), [], !1, null, null, null).exports, di = kn({
name: "slide", data: function () {
return {reload: !0}
}, mounted: function () {
this.init()
}, computed: {
delay: function () {
return this.option.delay || 3e3
}, autoplay: function () {
return this.vaildData(this.option.autoplay, !1)
}
}, watch: {
option: {
handler: function () {
var t = this;
this.reload = !1, this.$nextTick((function () {
t.reload = !0, t.init()
}))
}, deep: !0
}
}, methods: {
init: function () {
var t = this;
new Swiper(".swiper-container", Object.assign(t.autoplay ? {
autoplay: {
delay: t.delay,
disableOnInteraction: !1
}
} : {}, {
spaceBetween: 80,
pagination: {el: ".swiper-pagination", clickable: !0},
observer: !0,
observeParents: !0
}))
}
}
}), pi = Object(c.a)(di, (function () {
var t = this.$createElement, e = this._self._c || t;
return e("div", {
class: this.b(),
style: this.styleSizeName
}, [e("div", {staticClass: "swiper-container"}, [this.reload ? e("div", {staticClass: "swiper-wrapper"}, [this._t("default")], 2) : this._e(), this._v(" "), e("div", {staticClass: "swiper-pagination"})])])
}), [], !1, null, null, null).exports, hi = kn({
name: "pictorialbar", methods: {
updateChart: function () {
var t = this, e = this.deepClone(this.dataChart),
n = this.validatenull(this.option.symbol) ? "" : "image://" + this.option.symbol,
i = this.option.color || "#fff", o = this.option.fontSize || 20, a = 0;
e.forEach((function (t) {
t.value > a && (a = t.value)
}));
var r = {
tooltip: Object.assign(t.formatter ? {
formatter: function (e) {
return t.formatter(e, t.dataChart)
}
} : {}, {textStyle: {fontSize: t.option.tipFontSize, color: t.option.tipColor || "#fff"}}),
xAxis: {
show: this.vaildData(this.option.xAxisShow, !0),
max: a,
splitLine: {show: !1},
offset: 10,
axisTick: {show: !1},
axisLine: {show: !1},
axisLabel: {
margin: 10,
textStyle: {color: this.option.nameColor || "#333", fontSize: this.option.xNameFontSize || 14}
}
},
yAxis: {
data: e.map((function (t) {
return t.name
})),
show: this.vaildData(this.option.yAxisShow, !0),
inverse: !0,
axisTick: {show: !1},
axisLine: {show: !1},
axisLabel: {
margin: 10,
textStyle: {color: this.option.nameColor || "#333", fontSize: this.option.yNameFontSize || 14}
}
},
grid: {
top: "center",
height: 10 * Number(this.option.split),
left: this.option.gridX || 70,
right: this.option.gridX2 || 100
},
series: [{
type: "pictorialBar",
symbol: n,
symbolRepeat: "fixed",
symbolMargin: "5%",
symbolClip: !0,
symbolSize: this.option.symbolSize || 30,
symbolBoundingData: a,
data: e.map((function (t) {
return t.value
}))
}, {
type: "pictorialBar",
itemStyle: {normal: {opacity: .2}},
label: {normal: {show: !0, position: "right", offset: [10, 0], textStyle: {color: i, fontSize: o}}},
animationDuration: 0,
symbol: n,
symbolRepeat: "fixed",
symbolMargin: "5%",
symbolSize: 30,
symbolBoundingData: a,
data: e.map((function (t) {
return t.value
}))
}]
};
this.myChart.resize(), this.myChart.setOption(r, !0)
}
}
}), fi = Object(c.a)(hi, (function () {
var t = this.$createElement, e = this._self._c || t;
return e("div", {class: this.b(), style: this.styleSizeName}, [e("div", {
ref: this.id,
style: this.styleChartName
})])
}), [], !1, null, null, null).exports, mi = kn({
name: "radar", x2: function () {
return this.option.gridX2 || "80%"
}, methods: {
updateChart: function () {
var t = this, e = this.deepClone(this.dataChart), n = {
title: this.ishasprop(this.option.titleShow, {
text: this.option.title,
subtext: this.option.subtext || "",
textStyle: {color: this.option.titleColor || "#333", fontSize: this.option.titleFontSize || 16},
left: this.option.titlePostion || "auto",
subtextStyle: {color: this.option.subTitleColor || "#aaa", fontSize: this.option.subTitleFontSize || 14}
}, {}),
tooltip: Object.assign(t.formatter ? {
formatter: function (e) {
return t.formatter(e, t.dataChart)
}
} : {}, {
backgroundColor: t.option.tipBackgroundColor || "rgba(50,50,50,0.7)",
textStyle: {fontSize: t.option.tipFontSize || 14, color: t.option.tipColor || "#fff"}
}),
grid: {
left: this.option.gridX || 20,
top: this.option.gridY || 60,
right: this.x2,
bottom: this.option.gridY2 || 60
},
legend: {
show: this.vaildData(this.option.legend, !1),
top: 0,
x: this.option.legendPostion || "right",
right: this.x2,
textStyle: {fontSize: this.option.legendFontSize || 12},
data: (e.series[0].data || []).map((function (e, n) {
return {name: e.name, textStyle: t.ishasprop(!t.option.switchTheme, {color: t.getColor(n, !0)}, {})}
}))
},
radar: {
name: {fontSize: this.option.radarNameSize || 12, color: this.option.radarNameColor || "#333"},
indicator: e.indicator || [],
shape: this.option.shape || "polygon",
radius: this.option.radius || "75%"
},
series: function () {
t.option.barColor;
return [{
type: "radar",
barWidth: t.option.barWidth || 16,
barMinHeight: t.option.barMinHeight || 0,
itemStyle: {barBorderRadius: t.option.barRadius || 0},
data: (e.series[0].data || []).map((function (e, n) {
return {
name: e.name,
value: e.value,
label: {
show: t.vaildData(t.option.labelShow, !1),
textStyle: {
fontSize: t.option.fontSize || 14,
color: t.getColor(n),
fontWeight: t.option.labelShowFontWeight || 500
}
},
areaStyle: {color: t.getColor(n), opacity: t.option.areaOpacity || .9}
}
}))
}]
}()
};
this.myChart.resize(), this.myChart.setOption(n, !0)
}
}
}), bi = Object(c.a)(mi, (function () {
var t = this.$createElement, e = this._self._c || t;
return e("div", {class: this.b(), style: this.styleSizeName}, [e("div", {
ref: this.id,
style: this.styleChartName
})])
}), [], !1, null, null, null).exports, vi = kn({
name: "funnel", computed: {
x2: function () {
return this.option.gridX2 || 20
}, fontSize: function () {
return this.option.fontSize || 14
}
}, methods: {
updateChart: function () {
var t = this, e = this.deepClone(this.dataChart), n = {
title: this.ishasprop(this.option.titleShow, {
text: this.option.title,
subtext: this.option.subtext || "",
textStyle: {color: this.option.titleColor || "#333", fontSize: this.option.titleFontSize || 16},
left: this.option.titlePostion || "auto",
subtextStyle: {color: this.option.subTitleColor || "#aaa", fontSize: this.option.subTitleFontSize || 14}
}, {}),
tooltip: this.ishasprop(this.formatter, {
formatter: function (e) {
return t.formatter(e, t.dataChart)
}
}, {
backgroundColor: this.option.tipBackgroundColor || "rgba(50,50,50,0.7)",
textStyle: {fontSize: this.option.tipFontSize, color: this.option.tipColor || "#fff"}
}),
grid: {
left: this.option.gridX || 20,
top: this.option.gridY || 60,
right: this.x2,
bottom: this.option.gridY2 || 60
},
legend: {
show: this.vaildData(this.option.legend, !1),
orient: this.option.legendOrient || "horizontal",
top: 0,
x: this.option.legendPostion || "right",
right: this.x2,
textStyle: {fontSize: this.option.legendFontSize || 12},
data: e.map((function (t, e) {
return t.name
}))
},
series: function () {
t.option.barColor;
return [{
type: "funnel", animationDelay: function (t) {
return 200 * Math.random()
}, label: {show: t.vaildData(t.option.labelShow, !1), fontSize: t.fontSize}, data: function () {
var n = e;
return t.option.notCount && (n = n.filter((function (t) {
if (0 !== t.value && t.value) return !0
}))), t.option.sort && n.sort((function (t, e) {
return t.value - e.value
})), n
}(), itemStyle: t.ishasprop(!t.switchTheme, {
normal: {
color: function (e) {
return t.getColor(e.dataIndex)
}
}
}, {emphasis: {shadowBlur: 10, shadowOffsetX: 0, shadowColor: "rgba(0, 0, 0, 0.5)"}})
}]
}()
};
this.myChart.resize(), this.myChart.setOption(n, !0)
}
}
}), yi = Object(c.a)(vi, (function () {
var t = this.$createElement, e = this._self._c || t;
return e("div", {class: this.b(), style: this.styleSizeName}, [e("div", {
ref: this.id,
style: this.styleChartName
})])
}), [], !1, null, null, null).exports, gi = kn({
name: "scatter", computed: {
x2: function () {
return this.option.gridX2 || 20
}
}, methods: {
updateChart: function () {
var t = this, e = this.deepClone(this.dataChart), n = {
title: this.ishasprop(this.option.titleShow, {
text: this.option.title,
subtext: this.option.subtext || "",
textStyle: {color: this.option.titleColor || "#333", fontSize: this.option.titleFontSize || 16},
left: this.option.titlePostion || "auto",
subtextStyle: {color: this.option.subTitleColor || "#aaa", fontSize: this.option.subTitleFontSize || 14}
}, {}),
tooltip: {
formatter: this.option.formatter || "",
backgroundColor: this.option.tipBackgroundColor || "rgba(50,50,50,0.7)",
textStyle: {fontSize: this.option.tipFontSize, color: this.option.tipColor || "#fff"}
},
grid: {
left: this.option.gridX || 20,
top: this.option.gridY || 60,
right: this.x2,
bottom: this.option.gridY2 || 60
},
xAxis: {splitLine: {lineStyle: {type: "dashed"}}},
yAxis: {splitLine: {lineStyle: {type: "dashed"}}},
series: function () {
t.option.barColor;
return (e || []).map((function (e, n) {
return Object.assign(e, {
type: "scatter",
itemStyle: {color: t.getColor(n)},
label: {
show: t.vaildData(t.option.labelShow, !1),
position: "top",
textStyle: {
fontSize: t.option.fontSize || 14,
color: t.option.labelShowColor || "#333",
fontWeight: t.option.labelShowFontWeight || 500
}
}
})
}))
}()
};
this.myChart.resize(), this.myChart.setOption(n, !0)
}
}
}), _i = Object(c.a)(gi, (function () {
var t = this.$createElement, e = this._self._c || t;
return e("div", {class: this.b(), style: this.styleSizeName}, [e("div", {
ref: this.id,
style: this.styleChartName
})])
}), [], !1, null, null, null).exports, xi = kn({
name: "common", methods: {
updateChart: function () {
var t = this.deepClone(this.dataChart) || [], e = this.echartFormatter(t);
this.myChart.resize(), this.myChart.setOption(e, !0)
}
}
}), wi = Object(c.a)(xi, (function () {
var t = this.$createElement, e = this._self._c || t;
return e("div", {class: this.b(), style: this.styleSizeName}, [e("div", {
ref: this.id,
style: this.styleChartName
})])
}), [], !1, null, null, null).exports, Si = kn({
name: "datav", data: function () {
return {reload: !0, config: {}}
}, methods: {
updateChart: function () {
var t = this, e = this.deepClone(this.dataChart) || [];
this.config = this.echartFormatter(e), this.reload = !1, this.$nextTick((function () {
t.reload = !0
}))
}
}
}), Oi = {
EchartRadar: bi,
EchartScatter: _i,
EchartFunnel: yi,
EchartSlide: pi,
EchartTabs: ui,
EchartVideo: Gn,
EchartWordCloud: Qn,
EchartPictorialBar: fi,
EchartMaps: oi,
EchartImg: ri,
EchartImgBorder: li,
EchartBar: Dn,
EchartGauge: Zn,
EchartIframe: qn,
EchartSwiper: Vn,
EchartTable: $n,
EchartPie: Mn,
EchartText: Wn,
EchartLine: An,
EchartFlop: Nn,
EchartDatetime: Rn,
EchartProgress: ei,
EchartCommon: wi,
EchartDatav: Object(c.a)(Si, (function () {
var t = this, e = t.$createElement, n = t._self._c || e;
return n("div", {class: t.b(), style: t.styleSizeName}, [t.reload ? n(t.option.is, t._b({
ref: t.id,
tag: "component",
style: t.styleChartName
}, "component", t.config, !1)) : t._e()], 1)
}), [], !1, null, null, null).exports
};
window.Element || D.a.logs("element-ui");
var Ci = Object.assign(Sn, Oi, {
Arrays: Ye,
Affix: u,
Avatar: v,
Article: _,
Carousel: w,
Crud: O,
Code: M,
Card: j,
Chat: P,
Comment: N,
Form: B,
Checkbox: Y,
Date: Q,
CountUp: f,
Draggable: tt,
Empty: nt,
Flow: rt,
Notice: ct,
License: dt,
Progress: ht,
Time: mt,
Input: _t,
Radio: wt,
Select: Ct,
Cascader: Dt,
InputColor: Mt,
InputNumber: At,
InputTree: Pt,
InputIcon: zt,
InputMap: Lt,
InputTable: Ft,
Switchs: Ut,
Rate: Ht,
Upload: se,
Slider: de,
Keyboard: ge,
Tree: Oe,
Title: ke,
Search: Te,
Tabs: $e,
Queue: Be,
Dynamic: Ne,
Video: Ue,
Verifys: Kt,
textEllipsis: Xe,
Skeleton: Ie,
Sign: ce,
Login: He
}), ki = {is: "$isEle", name: "element-ui", type: "el"}, ji = {
bind: function (t, e, n, i) {
if (0 != e.value) {
var o = t.querySelector(".el-dialog__header"), a = t.querySelector(".el-dialog");
o.style.cursor = "move";
var r = a.currentStyle || window.getComputedStyle(a, null);
a.style.position = "absolute", a.style.top = "".concat(a.style.marginTop), a.style.marginTop = 0;
var s = a.style.width;
s = s.includes("%") ? +document.body.clientWidth * (+s.replace(/\%/g, "") / 100) : +s.replace(/\px/g, ""), a.style.left = "".concat((document.body.clientWidth - s) / 2, "px"), o.onmousedown = function (t) {
var e, n, i = t.clientX - o.offsetLeft, s = t.clientY - o.offsetTop;
r.left.includes("%") ? (e = +document.body.clientWidth * (+r.left.replace(/\%/g, "") / 100), n = +document.body.clientHeight * (+r.top.replace(/\%/g, "") / 100)) : (e = +r.left.replace(/\px/g, ""), n = +r.top.replace(/\px/g, "")), document.onmousemove = function (t) {
var o = t.clientX - i, r = t.clientY - s, l = o + e, c = r + n;
a.style.left = "".concat(l, "px"), a.style.top = "".concat(c, "px")
}, document.onmouseup = function (t) {
document.onmousemove = null, document.onmouseup = null
}
}
}
}
}, Di = (n(62), window.saveAs), Ei = window.XLSX;
function Mi(t, e) {
for (var n, i = {}, o = {
s: {c: 1e7, r: 1e7},
e: {c: 0, r: 0}
}, a = 0; a != t.length; ++a) for (var r = 0; r != t[a].length; ++r) {
o.s.r > a && (o.s.r = a), o.s.c > r && (o.s.c = r), o.e.r < a && (o.e.r = a), o.e.c < r && (o.e.c = r);
var s = {v: t[a][r]};
if (null != s.v) {
var l = Ei.utils.encode_cell({c: r, r: a});
"number" == typeof s.v ? s.t = "n" : "boolean" == typeof s.v ? s.t = "b" : s.v instanceof Date ? (s.t = "n", s.z = Ei.SSF._table[14], s.v = (n = s.v, void 0 && (n += 1462), (Date.parse(n) - new Date(Date.UTC(1899, 11, 30))) / 864e5)) : s.t = "s", i[l] = s
}
}
return o.s.c < 1e7 && (i["!ref"] = Ei.utils.encode_range(o)), i
}
function Ti() {
if (!(this instanceof Ti)) return new Ti;
this.SheetNames = [], this.Sheets = {}
}
function Ai(t) {
for (var e = new ArrayBuffer(t.length), n = new Uint8Array(e), i = 0; i != t.length; ++i) n[i] = 255 & t.charCodeAt(i);
return e
}
var Ii = {
install: function (t, e) {
t.prototype.$export = {
excel: function (t) {
return window.saveAs && window.XLSX ? new Promise((function (e, n) {
var i = Object.assign({}, {columns: [], data: [], title: "table", header: null, merges: []}, t);
!function (t, e, n) {
var i = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : {merges: [], header: null},
o = e;
o.unshift(t), i.header && o.unshift([i.header]);
var a = "SheetJS", r = new Ti, s = Mi(o), l = i.merges;
"string" == typeof l[0] && 2 == l.length && (l = [l]), l = l.map((function (t) {
return t instanceof Array ? {s: t[0], e: t[1]} : t
})), s["!merges"] = l, r.SheetNames.push(a), r.Sheets[a] = s;
var c = Ei.write(r, {bookType: "xlsx", bookSST: !1, type: "binary"}), u = n || "列表";
Di(new Blob([Ai(c)], {type: "application/octet-stream"}), u + ".xlsx")
}(i.columns.map((function (t) {
return t.label
})), i.data.map((function (t) {
return i.columns.map((function (e) {
var n = t[e.prop];
return Object(J.r)(n) && (n = JSON.stringify(n)), n
}))
})), i.title, {merges: i.merges, header: i.header}), e()
})) : (D.a.logs("file-saver"), void D.a.logs("xlsx"))
}, xlsx: function (t) {
if (!window.saveAs || !window.XLSX) return D.a.logs("file-saver"), void D.a.logs("xlsx");
var e = window.XLSX;
return new Promise((function (n, i) {
var o = new FileReader;
o.onload = function (t) {
var i = function (t) {
for (var e = "", n = 0, i = 10240; n < t.byteLength / i; ++n) e += String.fromCharCode.apply(null, new Uint8Array(t.slice(n * i, n * i + i)));
return e += String.fromCharCode.apply(null, new Uint8Array(t.slice(n * i)))
}(t.target.result), o = e.read(btoa(i), {type: "base64"}), a = o.SheetNames[0], r = o.Sheets[a],
s = function (t) {
var n, i = [], o = e.utils.decode_range(t["!ref"]), a = o.s.r;
for (n = o.s.c; n <= o.e.c; ++n) {
var r = t[e.utils.encode_cell({c: n, r: a})], s = "UNKNOWN " + n;
r && r.t && (s = e.utils.format_cell(r)), i.push(s)
}
return i
}(r), l = e.utils.sheet_to_json(r);
n({header: s, results: l})
}, o.readAsArrayBuffer(t)
}))
}
}
}
}, Pi = n(17), $i = n(13);
var Li, Ni = n(29), zi = n.n(Ni).a, Bi = Object(i.a)({
name: "image-preview", data: function () {
return {left: 0, top: 0, scale: 1, datas: [], rotate: 0, isShow: !1, index: 0, onClose: null}
}, computed: {
carouselName: function () {
return this.$isVan ? "".concat(this.$AVUE.ui.type, "Swipe") : "".concat(this.$AVUE.ui.type, "Carousel")
}, carouselItemName: function () {
return this.$isVan ? "".concat(this.$AVUE.ui.type, "SwipeItem") : "".concat(this.$AVUE.ui.type, "CarouselItem")
}, styleBoxName: function () {
return {marginLeft: this.setPx(this.left), marginTop: this.setPx(this.top)}
}, styleName: function () {
return {
transform: "scale(".concat(this.scale, ") rotate(").concat(this.rotate, "deg)"),
maxWidth: "100%",
maxHeight: "100%"
}
}, isRrrow: function () {
return 1 != this.imgLen
}, imgLen: function () {
return this.imgList.length
}, imgList: function () {
return this.datas.map((function (t) {
return t.url
}))
}
}, methods: {
getIsVideo: function (t) {
return this.$typeList.video.test(t.url) || "video" == t.type ? {is: "video"} : {}
}, subScale: function () {
.2 != this.scale && (this.scale = parseFloat((this.scale - .2).toFixed(2)))
}, addScale: function () {
this.scale = parseFloat((this.scale + .2).toFixed(2))
}, handleChange: function () {
this.scale = 1, this.rotate = 0
}, move: function (t) {
var e = this, n = t.clientX, i = t.clientY;
document.onmousemove = function (t) {
var o = t.clientX - n, a = t.clientY - i;
n = t.clientX, i = t.clientY, e.left = e.left + o, e.top = e.top + a
}, document.onmouseup = function (t) {
document.onmousemove = null, document.onmouseup = null
}
}, close: function () {
this.isShow = !1, "function" == typeof this.onClose && this.onClose(this)
}
}
}), Fi = Object(c.a)(Bi, (function () {
var t = this, e = t.$createElement, n = t._self._c || e;
return t.isShow ? n("div", {class: t.b()}, [n("div", {class: t.b("mask")}), t._v(" "), n("span", {
staticClass: "el-image-viewer__btn el-image-viewer__close",
on: {click: t.close}
}, [n("i", {staticClass: "el-icon-circle-close"})]), t._v(" "), t.isRrrow ? n("span", {
staticClass: "el-image-viewer__btn el-image-viewer__prev",
on: {
click: function (e) {
return t.$refs.carousel.prev()
}
}
}, [n("i", {staticClass: "el-icon-arrow-left"})]) : t._e(), t._v(" "), t.isRrrow ? n("span", {
staticClass: "el-image-viewer__btn el-image-viewer__next",
on: {
click: function (e) {
return t.$refs.carousel.next()
}
}
}, [n("i", {staticClass: "el-icon-arrow-right"})]) : t._e(), t._v(" "), n("div", {
ref: "box",
class: t.b("box"),
style: t.styleBoxName
}, [n(t.carouselName, {
ref: "carousel",
tag: "component",
attrs: {
"show-indicators": !1,
"initial-index": t.index,
"initial-swipe": t.index,
interval: 0,
arrow: "never",
"indicator-position": "none",
height: t.height
},
on: {change: t.handleChange}
}, t._l(t.datas, (function (e, i) {
return n(t.carouselItemName, {key: i, tag: "component"}, [n("img", t._b({
style: t.styleName,
attrs: {src: e.url, controls: "controls", ondragstart: "return false"},
on: {mousedown: t.move}
}, "img", t.getIsVideo(e), !1))])
})), 1)], 1), t._v(" "), n("div", {staticClass: "el-image-viewer__btn el-image-viewer__actions"}, [n("div", {staticClass: "el-image-viewer__actions__inner"}, [n("i", {
staticClass: "el-icon-zoom-out",
on: {click: t.subScale}
}), t._v(" "), n("i", {
staticClass: "el-icon-zoom-in",
on: {click: t.addScale}
}), t._v(" "), n("i", {
staticClass: "el-icon-refresh-left", on: {
click: function (e) {
t.rotate = t.rotate - 90
}
}
}), t._v(" "), n("i", {
staticClass: "el-icon-refresh-right", on: {
click: function (e) {
t.rotate = t.rotate + 90
}
}
})])])]) : t._e()
}), [], !1, null, null, null).exports, Ri = [], Ki = 1, Wi = function (t) {
var e = t.extend(Fi), n = function t() {
var n = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : [],
i = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 0, o = "imagePreview_" + Ki++,
a = {datas: n, index: i}, s = a.onClose;
return Li = new e({data: a}), a.onClose = function () {
t.close(o, s)
}, Li.id = o, r(Li.message) && (Li.$slots.default = [Li.message], Li.message = null), Li.vm = Li.$mount(), document.body.appendChild(Li.vm.$el), Li.vm.isShow = !0, Li.dom = Li.vm.$el, Ri.push(Li), Li.vm
};
return n.close = function (t, e) {
for (var n = 0, i = Ri.length; n < i; n++) if (t === Ri[n].id) {
"function" == typeof e && e(Ri[n]), Ri.splice(n, 1);
break
}
}, n
}, Ui = Object(i.a)({
name: "group",
data: function () {
return {activeName: ""}
},
props: {
arrow: {type: Boolean, default: !0},
collapse: {type: Boolean, default: !0},
header: {type: Boolean, default: !0},
icon: {type: String},
display: {type: Boolean, default: !0},
card: {type: Boolean, default: !1},
label: {type: String}
},
watch: {
text: function (t) {
this.activeName = [t]
}
},
computed: {
collapseName: function () {
return "".concat(this.$AVUE.ui.type, "Collapse")
}, collapseItemName: function () {
return "".concat(this.$AVUE.ui.type, "CollapseItem")
}, text: function () {
return this.collapse ? 1 : 0
}, isHeader: function () {
return this.$slots.header && this.header || (this.label || this.icon) && this.header
}
},
created: function () {
this.activeName = [this.text]
},
methods: {
handleChange: function (t) {
this.$emit("change", t)
}
}
}), Vi = Object(c.a)(Ui, (function () {
var t = this, e = t.$createElement, n = t._self._c || e;
return t.display ? n("div", {
class: [t.b({
header: !t.isHeader,
arrow: !t.arrow
})]
}, [t._t("tabs"), t._v(" "), n(t.collapseName, {
tag: "component",
attrs: {value: t.text},
on: {change: t.handleChange},
model: {
value: t.activeName, callback: function (e) {
t.activeName = e
}, expression: "activeName"
}
}, [n(t.collapseItemName, {
tag: "component",
attrs: {name: 1, disabled: !t.arrow}
}, [t.$slots.header && t.header ? n("div", {
class: [t.b("header"), t.b({none: t.$isVan})],
attrs: {slot: "title"},
slot: "title"
}, [t._t("header")], 2) : (t.label || t.icon) && t.header ? n("div", {
class: [t.b("header"), t.b({none: t.$isVan})],
attrs: {slot: "title"},
slot: "title"
}, [t.icon ? n("i", {class: [t.$isVan ? "van-icon" : "", t.icon, t.b("icon")]}) : t._e(), t._v(" "), t.label ? n("h1", {class: t.b("title")}, [t._v(t._s(t.label))]) : t._e()]) : t._e(), t._v(" "), t._t("default")], 2)], 1)], 2) : t._e()
}), [], !1, null, null, null).exports, Hi = {
$Print: function (t) {
var e = t.id, n = t.html, i = "", o = document.documentElement.innerHTML, a = o.substr(0, o.indexOf("\n \n ";
if (e) {
if (!document.getElementById(e)) return !1;
i = a + document.getElementById(e).innerHTML + ""
} else n && (i = a + n + "