提交 2863a810 编写于 作者: chitanda's avatar chitanda

feat: 补充检察院插件一版本

上级 3d3e317b
{
"name": "@ibiz-template-plugin/jsjcy-kq-calendar",
"version": "0.0.1-beta.1",
"description": "ibiz full-dynamic-vue 模板项目扩展插件示例",
"author": "chitanda",
"license": "MIT",
"type": "module",
"main": "dist/ibiz-template-plugin.es.js",
"module": "dist/ibiz-template-plugin.es.js",
"types": "dist/types/index.d.ts",
"system": "dist/index.legacy.js",
"files": [
"dist",
"src",
"CHANGELOG.md",
"README.md"
],
"scripts": {
"dev": "vite build --watch",
"build": "vue-tsc --noEmit && vite build",
"preview": "vite preview",
"publish:next": "npm run build && npm publish --access public --tag next",
"publish:npm": "npm run build && npm publish --access public"
},
"dependencies": {
"@ibiz-template/command": "^0.0.1-beta.50",
"@ibiz-template/controller": "^0.0.1-beta.52",
"@ibiz-template/core": "^0.0.1-beta.51",
"@ibiz-template/model": "^0.0.1-beta.52",
"@ibiz-template/runtime": "^0.0.1-beta.52",
"@ibiz-template/service": "^0.0.1-beta.52",
"@ibiz-template/theme": "^0.0.1-beta.52",
"@ibiz-template/vue-util": "^0.0.1-beta.52",
"async-validator": "^4.2.5",
"axios": "^1.1.3",
"core-js": "3",
"dayjs": "^1.11.6",
"element-ui": "^2.15.13",
"lodash-es": "^4.17.21",
"pluralize": "^8.0.0",
"qs": "^6.11.0",
"qx-util": "^0.4.8",
"ramda": "^0.28.0",
"view-design": "^4.7.0",
"vite-plugin-style-import": "1.4.1",
"vue": "^2.7.13",
"vue-router": "^3.6.5"
},
"peerDependencies": {
"@ibiz-template/command": "^0.0.1-beta.50",
"@ibiz-template/controller": "^0.0.1-beta.51",
"@ibiz-template/core": "^0.0.1-beta.51",
"@ibiz-template/model": "^0.0.1-beta.50",
"@ibiz-template/runtime": "^0.0.1-beta.51",
"@ibiz-template/service": "^0.0.1-beta.51",
"@ibiz-template/theme": "^0.0.1-beta.50",
"@ibiz-template/vue-util": "^0.0.1-beta.51",
"async-validator": "^4.2.5",
"axios": "^1.1.3",
"core-js": "3",
"dayjs": "^1.11.6",
"lodash-es": "^4.17.21",
"pluralize": "^8.0.0",
"qs": "^6.11.0",
"qx-util": "^0.4.8",
"ramda": "^0.28.0",
"view-design": "^4.7.0",
"vue": "^2.7.13",
"vue-router": "^3.6.5"
},
"devDependencies": {
"@commitlint/cli": "^17.2.0",
"@commitlint/config-conventional": "^17.2.0",
"@qx-chitanda/vite-plugin-lib-legacy": "^0.0.4",
"@typescript-eslint/eslint-plugin": "^5.42.0",
"@typescript-eslint/parser": "^5.42.0",
"@vitejs/plugin-legacy": "^2.3.0",
"@vitejs/plugin-vue2": "^2.0.0",
"@vitejs/plugin-vue2-jsx": "^1.0.3",
"eslint": "^8.26.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-vue": "^9.7.0",
"husky": "^8.0.1",
"lint-staged": "^13.0.3",
"postcss": "^8.4.18",
"prettier": "^2.7.1",
"rollup-plugin-visualizer": "^5.8.3",
"sass": "^1.55.0",
"stylelint": "^14.14.0",
"stylelint-config-prettier": "^9.0.3",
"stylelint-config-recess-order": "^3.0.0",
"stylelint-config-standard": "^29.0.0",
"stylelint-config-standard-scss": "^6.0.0",
"stylelint-scss": "^4.3.0",
"terser": "^5.15.1",
"typescript": "^4.8.4",
"vite": "^3.2.2",
"vite-plugin-dts": "^1.6.6",
"vite-plugin-eslint": "^1.8.1",
"vue-eslint-parser": "^9.1.0",
"vue-tsc": "^1.0.9"
},
"lint-staged": {
"*.{ts,vue}": "eslint --fix",
"*.less": "stylelint --syntax=scss"
}
}
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>设置</title>
<g id="Symbols" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="表头" transform="translate(-1872.000000, -27.000000)" fill-rule="nonzero">
<g id="设置" transform="translate(1872.000000, 27.000000)">
<rect id="矩形" fill="#000000" opacity="0" x="0" y="0" width="24" height="24"></rect>
<path d="M21.675,14.6648437 L20.1398437,13.3523437 C20.2125,12.9070312 20.25,12.4523437 20.25,11.9976562 C20.25,11.5429687 20.2125,11.0882812 20.1398437,10.6429687 L21.675,9.33046875 C21.9117187,9.12890625 21.9984375,8.80078125 21.8929687,8.50546875 L21.871875,8.44453125 C21.4476562,7.2609375 20.8195312,6.1734375 20.0039062,5.2125 L19.9617187,5.16328125 C19.7601562,4.9265625 19.434375,4.8375 19.1390625,4.940625 L17.2335937,5.61796875 C16.5304687,5.04140625 15.7453125,4.58671875 14.896875,4.26796875 L14.5289062,2.27578125 C14.4726562,1.96875 14.23125,1.7296875 13.9242187,1.6734375 L13.8609375,1.66171875 C12.6398437,1.44140625 11.3554687,1.44140625 10.134375,1.66171875 L10.0710937,1.6734375 C9.7640625,1.7296875 9.52265625,1.96875 9.46640625,2.27578125 L9.09609375,4.27734375 C8.2546875,4.59609375 7.47421875,5.0484375 6.77578125,5.62265625 L4.85625,4.940625 C4.56328125,4.8375 4.23515625,4.92421875 4.03359375,5.16328125 L3.99140625,5.2125 C3.17578125,6.17578125 2.54765625,7.26328125 2.1234375,8.44453125 L2.10234375,8.50546875 C1.996875,8.7984375 2.08359375,9.1265625 2.3203125,9.33046875 L3.87421875,10.6570312 C3.8015625,11.0976562 3.76640625,11.5476562 3.76640625,11.9953125 C3.76640625,12.4453125 3.8015625,12.8953125 3.87421875,13.3335937 L2.3203125,14.6601562 C2.08359375,14.8617187 1.996875,15.1898437 2.10234375,15.4851562 L2.1234375,15.5460937 C2.54765625,16.7273437 3.17578125,17.8171875 3.99140625,18.778125 L4.03359375,18.8273437 C4.23515625,19.0640625 4.5609375,19.153125 4.85625,19.05 L6.77578125,18.3679687 C7.47421875,18.9421875 8.2546875,19.396875 9.09609375,19.7132812 L9.46640625,21.7148437 C9.52265625,22.021875 9.7640625,22.2609375 10.0710937,22.3171875 L10.134375,22.3289062 C10.7460937,22.4390625 11.371875,22.4953125 11.9976562,22.4953125 C12.6234375,22.4953125 13.2515625,22.4390625 13.8609375,22.3289062 L13.9242187,22.3171875 C14.23125,22.2609375 14.4726562,22.021875 14.5289062,21.7148437 L14.896875,19.7226562 C15.7453125,19.4039062 16.5304687,18.9515625 17.2335937,18.3726562 L19.1390625,19.05 C19.4320312,19.153125 19.7601562,19.0664062 19.9617187,18.8273437 L20.0039062,18.778125 C20.8195312,17.8148437 21.4476562,16.7273437 21.871875,15.5460937 L21.8929687,15.4851562 C21.9984375,15.196875 21.9117187,14.86875 21.675,14.6648437 L21.675,14.6648437 Z M18.4757812,10.9195312 C18.534375,11.2734375 18.5648437,11.6367187 18.5648437,12 C18.5648437,12.3632812 18.534375,12.7265625 18.4757812,13.0804687 L18.3210937,14.0203125 L20.071875,15.5179687 C19.8070313,16.1296875 19.471875,16.70625 19.0734375,17.2429687 L16.8984375,16.471875 L16.1625,17.0765625 C15.6023438,17.5359375 14.9789063,17.896875 14.3039063,18.15 L13.4109375,18.4851562 L12.9914063,20.7585937 C12.3328125,20.8335937 11.6601562,20.8335937 10.9992188,20.7585937 L10.5796875,18.4804687 L9.69375,18.140625 C9.02578125,17.8875 8.4046875,17.5265625 7.84921875,17.0695312 L7.11328125,16.4625 L4.92421875,17.240625 C4.52578125,16.7039062 4.19296875,16.125 3.92578125,15.515625 L5.6953125,14.0039062 L5.54296875,13.0664062 C5.48671875,12.7171875 5.45625,12.35625 5.45625,12 C5.45625,11.6414062 5.484375,11.2828125 5.54296875,10.9335937 L5.6953125,9.99609375 L3.92578125,8.484375 C4.190625,7.87265625 4.52578125,7.29609375 4.92421875,6.759375 L7.11328125,7.5375 L7.84921875,6.93046875 C8.4046875,6.4734375 9.02578125,6.1125 9.69375,5.859375 L10.5820312,5.52421875 L11.0015625,3.24609375 C11.6601562,3.17109375 12.3328125,3.17109375 12.99375,3.24609375 L13.4132813,5.51953125 L14.30625,5.8546875 C14.9789063,6.1078125 15.6046875,6.46875 16.1648438,6.928125 L16.9007813,7.5328125 L19.0757812,6.76171875 C19.4742187,7.2984375 19.8070313,7.87734375 20.0742188,8.48671875 L18.3234375,9.984375 L18.4757812,10.9195312 Z M12,7.640625 C9.721875,7.640625 7.875,9.4875 7.875,11.765625 C7.875,14.04375 9.721875,15.890625 12,15.890625 C14.278125,15.890625 16.125,14.04375 16.125,11.765625 C16.125,9.4875 14.278125,7.640625 12,7.640625 Z M13.85625,13.621875 C13.359375,14.1164063 12.7007813,14.390625 12,14.390625 C11.2992188,14.390625 10.640625,14.1164063 10.14375,13.621875 C9.64921875,13.125 9.375,12.4664063 9.375,11.765625 C9.375,11.0648438 9.64921875,10.40625 10.14375,9.909375 C10.640625,9.4125 11.2992188,9.140625 12,9.140625 C12.7007813,9.140625 13.359375,9.4125 13.85625,9.909375 C14.3507813,10.40625 14.625,11.0648438 14.625,11.765625 C14.625,12.4664063 14.3507813,13.125 13.85625,13.621875 Z" id="形状" fill="#FFFFFF"></path>
</g>
</g>
</g>
</svg>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>消息</title>
<g id="Symbols" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="表头" transform="translate(-1833.000000, -27.000000)" fill-rule="nonzero">
<g id="消息" transform="translate(1833.000000, 27.000000)">
<rect id="矩形" fill="#000000" opacity="0" x="0" y="0" width="24" height="24"></rect>
<path d="M19,18.3125 L18.4375,18.3125 L18.4375,10.34375 C18.4375,7.03671875 15.9929688,4.30390625 12.8125,3.84921875 L12.8125,2.9375 C12.8125,2.41953125 12.3929688,2 11.875,2 C11.3570312,2 10.9375,2.41953125 10.9375,2.9375 L10.9375,3.84921875 C7.75703125,4.30390625 5.3125,7.03671875 5.3125,10.34375 L5.3125,18.3125 L4.75,18.3125 C4.33515625,18.3125 4,18.6476563 4,19.0625 L4,19.8125 C4,19.915625 4.084375,20 4.1875,20 L9.25,20 C9.25,21.4484375 10.4265625,22.625 11.875,22.625 C13.3234375,22.625 14.5,21.4484375 14.5,20 L19.5625,20 C19.665625,20 19.75,19.915625 19.75,19.8125 L19.75,19.0625 C19.75,18.6476563 19.4148438,18.3125 19,18.3125 Z M11.875,21.125 C11.2539062,21.125 10.75,20.6210938 10.75,20 L13,20 C13,20.6210938 12.4960938,21.125 11.875,21.125 Z M7,18.3125 L7,10.34375 C7,9.040625 7.50625,7.8171875 8.42734375,6.89609375 C9.3484375,5.975 10.571875,5.46875 11.875,5.46875 C13.178125,5.46875 14.4015625,5.975 15.3226562,6.89609375 C16.24375,7.8171875 16.75,9.040625 16.75,10.34375 L16.75,18.3125 L7,18.3125 Z" id="形状" fill="#F9F9F9"></path>
</g>
</g>
</g>
</svg>
\ No newline at end of file
var M = Object.defineProperty;
var R = (e, n, o) => n in e ? M(e, n, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[n] = o;
var y = (e, n, o) => (R(e, typeof n != "symbol" ? n + "" : n, o), o);
import { PluginStaticResource as $ } from "@ibiz-template/runtime";
import { ref as g, watch as w, defineComponent as P, getCurrentInstance as I, onMounted as V, computed as x, h as c } from "vue";
import { useRouter as U, useIndexViewController as A, useNamespace as T } from "@ibiz-template/vue-util";
import { IndexViewModel as K } from "@ibiz-template/model";
const C = new $(import.meta.url);
class O {
constructor() {
y(this, "component", "UserIndexView");
}
}
const S = (e) => e.params.view2 ? (e.params.view2 ? `/${e.params.view2}` : "") + (e.params.params2 ? `/${e.params.params2}` : "") : "404", z = (e) => (e.params.view1 ? `/${e.params.view1}` : "") + (e.params.params1 ? `/${e.params.params1}` : "");
function F(e, n) {
const o = U(e), s = g(""), u = g(""), r = g([]), d = g([]);
w(
() => e.$route,
(l, i) => {
if (l !== i) {
s.value = S(l), u.value = z(l);
const t = d.value.find(
(m) => m.key === s.value
);
t ? t.fullPath = l.fullPath : d.value.push({
key: s.value,
fullPath: l.fullPath,
modelPath: "",
caption: ""
});
}
},
{ deep: !0, immediate: !0 }
), w(
s,
(l, i) => {
if (l !== i && l) {
const t = r.value.indexOf(l);
t === -1 || r.value.splice(t, 1), r.value.unshift(l);
}
},
{ immediate: !0 }
);
const f = (l, i) => {
const t = d.value.find((m) => m.key === s.value);
t && (i.caption && (t.caption = i.caption), i.modelPath && (t.modelPath = i.modelPath));
}, a = (l) => {
l.forEach((i) => {
const t = r.value.indexOf(i);
if (t !== -1) {
r.value.splice(t, 1);
const m = d.value.findIndex((v) => v.key === i);
d.value.splice(m, 1);
}
});
};
return {
currentKey: s,
keyHistory: r,
routeMsgs: d,
updateRouteMsg: f,
closeView: (l = s.value) => {
a([l]);
const i = r.value[0];
if (!i)
n.model.source.blankMode ? (window.callback && window.callback(), window.close()) : (s.value = "", o.push(u.value));
else {
const t = d.value.find((m) => m.key === i);
o.push(t.fullPath);
}
},
deleteRouteCache: a
};
}
const L = /* @__PURE__ */ P({
__name: "index-view",
props: {
context: null,
params: { default: () => ({}) },
modelPath: null
},
setup(e) {
const n = e, { proxy: o } = I(), s = A(o, n.modelPath), {
currentKey: u,
keyHistory: r,
routeMsgs: d,
updateRouteMsg: f,
closeView: a,
deleteRouteCache: p
} = F(o, s), l = (h) => {
const _ = u.value;
h.evt.on("closeView", () => {
a(_);
}), h.evt.on("setTitle", (b) => {
f(_, { caption: b });
});
};
V(() => {
setTimeout(() => {
const h = document.querySelector(".app-loading-x");
h && (h.style.display = "none");
}, 300);
});
const i = (h) => {
f(u.value, h);
}, t = (h) => {
s.collapseChange = h;
}, m = () => {
p(r.value.slice(1));
};
window.onpopstate = () => {
p([r.value[1]]);
};
const v = x(() => {
const h = d.value.find((_) => _.key === u.value);
return (h == null ? void 0 : h.modelPath) || "";
});
return { __sfc: !0, props: n, proxy: o, c: s, currentKey: u, keyHistory: r, routeMsgs: d, updateRouteMsg: f, closeView: a, deleteRouteCache: p, onCreated: l, onViewFound: i, collapseChange: t, onMenuRouteChange: m, currentPath: v };
}
});
function q(e, n, o, s, u, r, d, f) {
var a = typeof e == "function" ? e.options : e;
n && (a.render = n, a.staticRenderFns = o, a._compiled = !0), s && (a.functional = !0), r && (a._scopeId = "data-v-" + r);
var p;
if (d ? (p = function(t) {
t = t || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !t && typeof __VUE_SSR_CONTEXT__ < "u" && (t = __VUE_SSR_CONTEXT__), u && u.call(this, t), t && t._registeredComponents && t._registeredComponents.add(d);
}, a._ssrRegister = p) : u && (p = f ? function() {
u.call(
this,
(a.functional ? this.parent : this).$root.$options.shadowRoot
);
} : u), p)
if (a.functional) {
a._injectStyles = p;
var l = a.render;
a.render = function(m, v) {
return p.call(v), l(m, v);
};
} else {
var i = a.beforeCreate;
a.beforeCreate = i ? [].concat(i, p) : [p];
}
return {
exports: e,
options: a
};
}
var B = function() {
var n = this, o = n._self._c, s = n._self._setupProxy;
return o("UserAppLayout", { attrs: { "is-complete": s.c.complete, model: s.c.model }, on: { onCollapseChange: s.collapseChange } }, [s.c.complete ? [s.c.complete ? o("AppMenu", { attrs: { slot: "menu", "current-path": s.currentPath, "model-data": s.c.model.appMenu, context: s.c.context, "collapse-change": s.c.collapseChange }, on: { menuRouteChange: s.onMenuRouteChange }, slot: "menu" }) : n._e(), o("AppKeepAlive", { attrs: { "key-list": s.keyHistory } }, [o("router-view", { key: s.currentKey, on: { neuronInit: s.onCreated, viewFound: s.onViewFound } })], 1)] : n._e()], 2);
}, E = [], H = /* @__PURE__ */ q(
L,
B,
E,
!1,
null,
null,
null,
null
);
const N = H.exports;
function k(e, n) {
return c("div", {
class: e.e("logo")
}, [c("img", {
class: e.e("logo-img"),
attrs: {
src: C.dir("/assets/img/jh.png")
}
}), c("div", {
class: e.e("logo-caption")
}, [n.caption])]);
}
const W = P({
name: "UserAppLayout",
props: {
model: {
type: K,
required: !0
},
isComplete: {
type: Boolean,
default: !1
}
},
setup(e, {
emit: n
}) {
const o = T("layout"), s = g(!1), u = () => {
s.value = !s.value, n("onCollapseChange", s.value);
}, r = x(() => e.model.source.blankMode === !0);
return {
ns: o,
collapseChange: s,
isBlank: r,
collapseMenus: u
};
},
render() {
return this.isComplete ? c("i-layout", {
class: [this.ns.b(), this.isBlank ? this.ns.m("blank") : "", this.ns.is("collapse", this.collapseChange)]
}, [c("i-sider", {
attrs: {
"hide-trigger": !0,
value: this.collapseChange
},
class: [this.ns.b("nav"), this.ns.is("collapse", this.collapseChange)]
}, [k(this.ns, this.model), this.$slots.menu, c("div", {
class: this.ns.be("slider", "collapse-icon")
}, [this.collapseChange ? c("ion-icon", {
attrs: {
src: "./assets/img/menu-unfold.svg"
},
on: {
click: () => this.collapseMenus()
}
}) : c("ion-icon", {
attrs: {
src: "./assets/img/menu-fold.svg"
},
on: {
click: () => this.collapseMenus()
}
})])]), c("i-layout", {
class: [this.ns.b("content")]
}, [c("i-header", {
class: this.ns.b("header")
}, [c("div", {
class: this.ns.be("header", "left")
}, [k(this.ns, this.model), this.model.source.mainMenuAlign === "TOP" ? c("i-menu", {
class: this.ns.be("header", "menu"),
attrs: {
mode: "horizontal",
"active-name": "1"
}
}) : null]), c("div", {
class: this.ns.be("header", "right")
}, [c("app-user"), c("img", {
class: this.ns.e("xs"),
attrs: {
src: C.dir("/assets/img/xs.svg")
}
}), c("img", {
class: this.ns.e("sz"),
attrs: {
src: C.dir("/assets/img/sz.svg")
}
})])]), c("i-content", {
class: this.ns.be("content", "main")
}, [this.$slots.default])])]) : null;
}
}), Y = {
mateUrl: import.meta.url,
install(e) {
e.component("UserIndexView", N), e.component("UserAppLayout", W), ibiz.register.view.register(
"VIEW_CUSTOM_JskqIndexView",
new O()
), C.loadStyle(["/style.css"]);
}
};
export {
Y as default
};
!function(){function e(e,n){for(var t=0;t<n.length;t++){var a=n[t];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function n(n,t,a){return t&&e(n.prototype,t),a&&e(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n}System.register(["@ibiz-template/runtime","vue","@ibiz-template/vue-util","@ibiz-template/model"],(function(e,t){"use strict";var a,o,s,i,r,l,u,c,p,d,f,v;return{setters:[function(e){a=e.PluginStaticResource},function(e){o=e.ref,s=e.watch,i=e.defineComponent,r=e.getCurrentInstance,l=e.onMounted,u=e.computed,c=e.h},function(e){p=e.useRouter,d=e.useIndexViewController,f=e.useNamespace},function(e){v=e.IndexViewModel}],execute:function(){var h=new a(t.meta.url),m=n((function e(){var n,t,a;!function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e),a="UserIndexView",(t="component")in(n=this)?Object.defineProperty(n,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[t]=a}));var g=i({__name:"index-view",props:{context:null,params:{default:function(){return{}}},modelPath:null},setup:function(e){var n=e,t=r().proxy,a=d(t,n.modelPath),i=function(e,n){var t=p(e),a=o(""),i=o(""),r=o([]),l=o([]);s((function(){return e.$route}),(function(e,n){if(e!==n){a.value=(o=e).params.view2?(o.params.view2?"/".concat(o.params.view2):"")+(o.params.params2?"/".concat(o.params.params2):""):"404",i.value=function(e){return(e.params.view1?"/".concat(e.params.view1):"")+(e.params.params1?"/".concat(e.params.params1):"")}(e);var t=l.value.find((function(e){return e.key===a.value}));t?t.fullPath=e.fullPath:l.value.push({key:a.value,fullPath:e.fullPath,modelPath:"",caption:""})}var o}),{deep:!0,immediate:!0}),s(a,(function(e,n){if(e!==n&&e){var t=r.value.indexOf(e);-1===t||r.value.splice(t,1),r.value.unshift(e)}}),{immediate:!0});var u=function(e){e.forEach((function(e){var n=r.value.indexOf(e);if(-1!==n){r.value.splice(n,1);var t=l.value.findIndex((function(n){return n.key===e}));l.value.splice(t,1)}}))};return{currentKey:a,keyHistory:r,routeMsgs:l,updateRouteMsg:function(e,n){var t=l.value.find((function(e){return e.key===a.value}));t&&(n.caption&&(t.caption=n.caption),n.modelPath&&(t.modelPath=n.modelPath))},closeView:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.value;u([e]);var o=r.value[0];if(o){var s=l.value.find((function(e){return e.key===o}));t.push(s.fullPath)}else n.model.source.blankMode?(window.callback&&window.callback(),window.close()):(a.value="",t.push(i.value))},deleteRouteCache:u}}(t,a),c=i.currentKey,f=i.keyHistory,v=i.routeMsgs,h=i.updateRouteMsg,m=i.closeView,g=i.deleteRouteCache;l((function(){setTimeout((function(){var e=document.querySelector(".app-loading-x");e&&(e.style.display="none")}),300)}));window.onpopstate=function(){g([f.value[1]])};var y=u((function(){var e=v.value.find((function(e){return e.key===c.value}));return(null==e?void 0:e.modelPath)||""}));return{__sfc:!0,props:n,proxy:t,c:a,currentKey:c,keyHistory:f,routeMsgs:v,updateRouteMsg:h,closeView:m,deleteRouteCache:g,onCreated:function(e){var n=c.value;e.evt.on("closeView",(function(){m(n)})),e.evt.on("setTitle",(function(e){h(n,{caption:e})}))},onViewFound:function(e){h(c.value,e)},collapseChange:function(e){a.collapseChange=e},onMenuRouteChange:function(){g(f.value.slice(1))},currentPath:y}}});function y(e,n,t,a,o,s,i,r){var l,u="function"==typeof e?e.options:e;if(n&&(u.render=n,u.staticRenderFns=t,u._compiled=!0),a&&(u.functional=!0),s&&(u._scopeId="data-v-"+s),i?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(i)},u._ssrRegister=l):o&&(l=r?function(){o.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:o),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,n){return l.call(n),c(e,n)}}else{var p=u.beforeCreate;u.beforeCreate=p?[].concat(p,l):[l]}return{exports:e,options:u}}var w=y(g,(function(){var e=this,n=e._self._c,t=e._self._setupProxy;return n("UserAppLayout",{attrs:{"is-complete":t.c.complete,model:t.c.model},on:{onCollapseChange:t.collapseChange}},[t.c.complete?[t.c.complete?n("AppMenu",{attrs:{slot:"menu","current-path":t.currentPath,"model-data":t.c.model.appMenu,context:t.c.context,"collapse-change":t.c.collapseChange},on:{menuRouteChange:t.onMenuRouteChange},slot:"menu"}):e._e(),n("AppKeepAlive",{attrs:{"key-list":t.keyHistory}},[n("router-view",{key:t.currentKey,on:{neuronInit:t.onCreated,viewFound:t.onViewFound}})],1)]:e._e()],2)}),[],!1,null,null,null,null).exports;function C(e,n){return c("div",{class:e.e("logo")},[c("img",{class:e.e("logo-img"),attrs:{src:h.dir("/assets/img/jh.png")}}),c("div",{class:e.e("logo-caption")},[n.caption])])}var b=i({name:"UserAppLayout",props:{model:{type:v,required:!0},isComplete:{type:Boolean,default:!1}},setup:function(e,n){var t=n.emit,a=f("layout"),s=o(!1),i=u((function(){return!0===e.model.source.blankMode}));return{ns:a,collapseChange:s,isBlank:i,collapseMenus:function(){s.value=!s.value,t("onCollapseChange",s.value)}}},render:function(){var e=this;return this.isComplete?c("i-layout",{class:[this.ns.b(),this.isBlank?this.ns.m("blank"):"",this.ns.is("collapse",this.collapseChange)]},[c("i-sider",{attrs:{"hide-trigger":!0,value:this.collapseChange},class:[this.ns.b("nav"),this.ns.is("collapse",this.collapseChange)]},[C(this.ns,this.model),this.$slots.menu,c("div",{class:this.ns.be("slider","collapse-icon")},[this.collapseChange?c("ion-icon",{attrs:{src:"./assets/img/menu-unfold.svg"},on:{click:function(){return e.collapseMenus()}}}):c("ion-icon",{attrs:{src:"./assets/img/menu-fold.svg"},on:{click:function(){return e.collapseMenus()}}})])]),c("i-layout",{class:[this.ns.b("content")]},[c("i-header",{class:this.ns.b("header")},[c("div",{class:this.ns.be("header","left")},[C(this.ns,this.model),"TOP"===this.model.source.mainMenuAlign?c("i-menu",{class:this.ns.be("header","menu"),attrs:{mode:"horizontal","active-name":"1"}}):null]),c("div",{class:this.ns.be("header","right")},[c("app-user"),c("img",{class:this.ns.e("xs"),attrs:{src:h.dir("/assets/img/xs.svg")}}),c("img",{class:this.ns.e("sz"),attrs:{src:h.dir("/assets/img/sz.svg")}})])]),c("i-content",{class:this.ns.be("content","main")},[this.$slots.default])])]):null}});e("default",{mateUrl:t.meta.url,install:function(e){e.component("UserIndexView",w),e.component("UserAppLayout",b),ibiz.register.view.register("VIEW_CUSTOM_JskqIndexView",new m),h.loadStyle(["/style.css"])}})}}}))}();
@charset "UTF-8";body>.app{display:flex;justify-content:center}.ibiz-layout{--ibiz-layout-nav-width: 256px;--ibiz-layout-header-height: 80px;position:relative;width:1920px;max-width:1920px;overflow-x:auto}.ibiz-layout .ibiz-layout-content{padding-left:256px;width:1920px;flex-shrink:0;position:relative}.ibiz-layout .ibiz-layout-content .ibiz-layout-header{z-index:500;--ibiz-layout-header-bg-color: #002a5f}.ibiz-layout .ibiz-layout-content .ibiz-layout-header .ibiz-layout-header__left .ibiz-layout__logo{width:370px}.ibiz-layout .ibiz-layout-content .ibiz-layout-header .ibiz-layout-header__left .ibiz-layout__logo img{width:50px;height:50px}.ibiz-layout .ibiz-layout-content .ibiz-layout-header .ibiz-layout-header__left .ibiz-layout__logo .ibiz-layout__logo-caption{font-size:26px;font-family:SourceHanSansSC-Medium,SourceHanSansSC;font-weight:500;color:#fff;line-height:1;margin-left:11px}.ibiz-layout .ibiz-layout-content .ibiz-layout-header .ibiz-layout-header__right{display:flex;align-items:center;justify-content:space-between}.ibiz-layout .ibiz-layout-content .ibiz-layout-header .ibiz-layout-header__right .ibiz-app-user{margin-right:0}.ibiz-layout .ibiz-layout-content .ibiz-layout-header .ibiz-layout-header__right img{display:inline-block;height:20px;cursor:pointer}.ibiz-layout .ibiz-layout-content .ibiz-layout-header .ibiz-layout-header__right .ibiz-layout__xs{padding:0 18px}.ibiz-layout .ibiz-layout-content .ibiz-layout-header .ibiz-layout-header__right .ibiz-layout__sz{padding:0 26px 0 0}.ibiz-layout .ibiz-layout-nav{z-index:500}.ibiz-layout .ibiz-layout-nav .ivu-layout-sider-children{position:relative}.ibiz-layout .ibiz-layout-nav .ivu-layout-sider-children .ibiz-layout__logo img{width:50px;height:50px}.ibiz-layout .ibiz-layout-nav .ivu-layout-sider-children .ibiz-layout-slider__collapse-icon{cursor:pointer;position:absolute;right:12px;bottom:12px;color:#fff;transform:scale(1.2);z-index:500}.ibiz-app-menu{--ibiz-app-menu-item-selected-color: #ffffff;--ibiz-app-menu-item-selected-bg-color: #0e4791;--ibiz-app-menu-item-hover-color: #ffffff;--ibiz-app-menu-item-height: 48px;--ibiz-app-menu-item-color: #ffffff;--ibiz-app-menu-item-font-size: 18px;--ibiz-app-menu-collapse-item-hover-color: #0e4791;--ibiz-app-menu-icon-margin: 0 8px 0 0;background-color:#3769a9;padding-top:12px;position:relative;z-index:500;overflow:visible}.ibiz-app-menu .ibiz-app-menu__item{padding:12px 25px;font-family:MicrosoftYaHei;margin-bottom:12px}.ibiz-app-menu .ibiz-app-menu__item:hover{background-color:#0e4791}.ibiz-app-menu .ibiz-app-menu__item.ivu-menu-item-active{font-weight:700}.ibiz-app-menu .ibiz-app-menu__item.ivu-menu-item-active.ivu-menu-item-active:not(.ivu-menu-submenu):after{display:none}.ibiz-app-menu .ivu-menu-submenu{margin-bottom:12px}.ibiz-app-menu .ivu-menu-submenu .ivu-menu-submenu-title-icon{font-size:20px;opacity:.8}.ibiz-app-menu.is-collapse .ibiz-app-menu__item:hover{color:#fff}.ibiz-app-menu.is-collapse .ibiz-app-menu-tooltip,.ibiz-app-menu.is-collapse .ibiz-app-menu-submenu{position:relative}.ibiz-app-menu.is-collapse .ibiz-app-menu-submenu .ibiz-app-menu-submenu__title{font-size:18px;color:#fff}.ibiz-app-menu.is-collapse .ibiz-app-menu-submenu .ibiz-app-menu-submenu__title:hover{color:#fff}.ibiz-app-menu.is-collapse .ibiz-app-menu-submenu .ivu-select-dropdown .ibiz-app-menu-submenu__list{position:absolute}.ibiz-app-menu.is-collapse .ibiz-app-menu-submenu .ivu-select-dropdown .ibiz-app-menu-submenu__list .ibiz-app-menu-submenu__item{position:relative}.ibiz-app-menu.is-collapse .ibiz-app-menu-submenu .ivu-select-dropdown .ibiz-app-menu-submenu__list .ibiz-app-menu-submenu__item .ivu-menu-item{z-index:6666;background-color:#3769a9;color:#fff}.ibiz-app-menu.is-collapse .ibiz-app-menu-submenu .ivu-select-dropdown .ibiz-app-menu-submenu__list .ibiz-app-menu-submenu__item .ivu-menu-item:hover{background-color:#0e4791}.ibiz-app-menu.is-collapse .ibiz-app-menu-submenu .ivu-select-dropdown .ibiz-app-menu-submenu__list .ibiz-app-menu-submenu__item .ivu-menu-item.ivu-menu-item-active{background-color:#0e4791;font-weight:700}.ibiz-app-menu.is-collapse .ibiz-app-menu-submenu .ivu-select-dropdown .ibiz-app-menu-submenu__list .ibiz-app-menu-submenu__item .ivu-menu-item.ivu-menu-item-active:after{display:none}.ibiz-app-menu.is-collapse .ivu-tooltip-popper .ivu-tooltip-content .ivu-tooltip-inner{background-color:#3769a9;color:#fff}.jskq-web-portal>.ibiz-view-layout-content{background-color:transparent;padding:0}.jskq-web-portal .ibiz-dashboard__content{flex-direction:column}.jskq-web-portal .ibiz-view-portlet{background-color:#fff;--ibiz-portlet-layout-header-height: 64px;--ibiz-portlet-layout-caption-font-size: 18px;--ibiz-portlet-layout-caption-font-weight: bold;--ibiz-portlet-layout-caption-color: #333333}.jskq-web-portal .ibiz-view-portlet .ibiz-portlet-layout__caption:before{content:"";display:inline-block;width:4px;height:21px;background-color:#333;vertical-align:middle;margin-right:8px}.jskq-web-portal .ibiz-view-portlet .ibiz-portlet-layout-header{position:relative;border-width:0}.jskq-web-portal .ibiz-view-portlet .ibiz-portlet-layout-header:after{content:"";display:block;border-bottom:1px solid #D8D8D8;width:calc(100% - 32px);position:absolute;bottom:0px;left:16px;z-index:1}.jskq-web-portal .ibiz-portlet-col__rafx-chart-view-portlet{margin-top:20px}.jskq-web-portal .ibiz-portlet-col__db-appview-1{margin-left:20px}
{
"name": "@ibiz-template-plugin/jsjcy-kq-web",
"version": "0.0.1-beta.1",
"description": "ibiz full-dynamic-vue 模板项目扩展插件示例",
"author": "chitanda",
"license": "MIT",
"type": "module",
"main": "dist/ibiz-template-plugin.es.js",
"module": "dist/ibiz-template-plugin.es.js",
"types": "dist/types/index.d.ts",
"system": "dist/index.legacy.js",
"files": [
"dist",
"src",
"CHANGELOG.md",
"README.md"
],
"scripts": {
"dev": "vite build --watch",
"build": "vue-tsc --noEmit && vite build",
"preview": "vite preview",
"publish:next": "npm run build && npm publish --access public --tag next",
"publish:npm": "npm run build && npm publish --access public"
},
"dependencies": {
"@ibiz-template/command": "^0.0.1-beta.50",
"@ibiz-template/controller": "^0.0.1-beta.52",
"@ibiz-template/core": "^0.0.1-beta.51",
"@ibiz-template/model": "^0.0.1-beta.52",
"@ibiz-template/runtime": "^0.0.1-beta.52",
"@ibiz-template/service": "^0.0.1-beta.52",
"@ibiz-template/theme": "^0.0.1-beta.52",
"@ibiz-template/vue-util": "^0.0.1-beta.52",
"async-validator": "^4.2.5",
"axios": "^1.1.3",
"core-js": "3",
"dayjs": "^1.11.6",
"lodash-es": "^4.17.21",
"pluralize": "^8.0.0",
"qs": "^6.11.0",
"qx-util": "^0.4.8",
"ramda": "^0.28.0",
"view-design": "^4.7.0",
"vue": "^2.7.13",
"vue-router": "^3.6.5"
},
"peerDependencies": {
"@ibiz-template/command": "^0.0.1-beta.50",
"@ibiz-template/controller": "^0.0.1-beta.52",
"@ibiz-template/core": "^0.0.1-beta.51",
"@ibiz-template/model": "^0.0.1-beta.52",
"@ibiz-template/runtime": "^0.0.1-beta.52",
"@ibiz-template/service": "^0.0.1-beta.52",
"@ibiz-template/theme": "^0.0.1-beta.52",
"@ibiz-template/vue-util": "^0.0.1-beta.52",
"async-validator": "^4.2.5",
"axios": "^1.1.3",
"core-js": "3",
"dayjs": "^1.11.6",
"lodash-es": "^4.17.21",
"pluralize": "^8.0.0",
"qs": "^6.11.0",
"qx-util": "^0.4.8",
"ramda": "^0.28.0",
"view-design": "^4.7.0",
"vue": "^2.7.13",
"vue-router": "^3.6.5"
},
"devDependencies": {
"@commitlint/cli": "^17.2.0",
"@commitlint/config-conventional": "^17.2.0",
"@qx-chitanda/vite-plugin-lib-legacy": "^0.0.4",
"@typescript-eslint/eslint-plugin": "^5.42.0",
"@typescript-eslint/parser": "^5.42.0",
"@vitejs/plugin-legacy": "^2.3.0",
"@vitejs/plugin-vue2": "^2.0.0",
"@vitejs/plugin-vue2-jsx": "^1.0.3",
"eslint": "^8.26.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-vue": "^9.7.0",
"husky": "^8.0.1",
"lint-staged": "^13.0.3",
"postcss": "^8.4.18",
"prettier": "^2.7.1",
"rollup-plugin-visualizer": "^5.8.3",
"sass": "^1.55.0",
"stylelint": "^14.14.0",
"stylelint-config-prettier": "^9.0.3",
"stylelint-config-recess-order": "^3.0.0",
"stylelint-config-standard": "^29.0.0",
"stylelint-config-standard-scss": "^6.0.0",
"stylelint-scss": "^4.3.0",
"terser": "^5.15.1",
"typescript": "^4.8.4",
"vite": "^3.2.2",
"vite-plugin-dts": "^1.6.6",
"vite-plugin-eslint": "^1.8.1",
"vue-eslint-parser": "^9.1.0",
"vue-tsc": "^1.0.9"
},
"lint-staged": {
"*.{ts,vue}": "eslint --fix",
"*.less": "stylelint --syntax=scss"
}
}
\ No newline at end of file
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册