From 1f6c005d4446b0bdf40d1680c385e43bd53d963d Mon Sep 17 00:00:00 2001 From: 田源 <lastanimals@163.com> Date: 星期五, 25 八月 2023 11:04:28 +0800 Subject: [PATCH] 主数据 码段展示(层级码段) --- Source/UBCS-WEB/public/cdn/xlsx/FileSaver.min.js | 111 +++++++++++++++++++++++++++++++++++-- Source/UBCS-WEB/src/views/code/code.vue | 4 Source/UBCS-WEB/src/components/FormTemplate/index.vue | 14 +++- 3 files changed, 118 insertions(+), 11 deletions(-) diff --git a/Source/UBCS-WEB/public/cdn/xlsx/FileSaver.min.js b/Source/UBCS-WEB/public/cdn/xlsx/FileSaver.min.js index 2f145a1..0e585e2 100644 --- a/Source/UBCS-WEB/public/cdn/xlsx/FileSaver.min.js +++ b/Source/UBCS-WEB/public/cdn/xlsx/FileSaver.min.js @@ -1,7 +1,106 @@ /*! @source http://purl.eligrey.com/github/FileSaver.js/blob/master/FileSaver.js */ -var saveAs=saveAs||"undefined"!==typeof navigator&&navigator.msSaveOrOpenBlob&&navigator.msSaveOrOpenBlob.bind(navigator)||function(a){"use strict";if("undefined"===typeof navigator||!/MSIE [1-9]\./.test(navigator.userAgent)){var k=a.document,n=k.createElementNS("http://www.w3.org/1999/xhtml","a"),w="download"in n,x=function(c){var e=k.createEvent("MouseEvents");e.initMouseEvent("click",!0,!1,a,0,0,0,0,0,!1,!1,!1,!1,0,null);c.dispatchEvent(e)},q=a.webkitRequestFileSystem,u=a.requestFileSystem||q||a.mozRequestFileSystem, - y=function(c){(a.setImmediate||a.setTimeout)(function(){throw c;},0)},r=0,s=function(c){var e=function(){"string"===typeof c?(a.URL||a.webkitURL||a).revokeObjectURL(c):c.remove()};a.chrome?e():setTimeout(e,500)},t=function(c,a,d){a=[].concat(a);for(var b=a.length;b--;){var l=c["on"+a[b]];if("function"===typeof l)try{l.call(c,d||c)}catch(f){y(f)}}},m=function(c,e){var d=this,b=c.type,l=!1,f,p,k=function(){t(d,["writestart","progress","write","writeend"])},g=function(){if(l||!f)f=(a.URL||a.webkitURL|| - a).createObjectURL(c);p?p.location.href=f:void 0==a.open(f,"_blank")&&"undefined"!==typeof safari&&(a.location.href=f);d.readyState=d.DONE;k();s(f)},h=function(a){return function(){if(d.readyState!==d.DONE)return a.apply(this,arguments)}},m={create:!0,exclusive:!1},v;d.readyState=d.INIT;e||(e="download");if(w)f=(a.URL||a.webkitURL||a).createObjectURL(c),n.href=f,n.download=e,x(n),d.readyState=d.DONE,k(),s(f);else{a.chrome&&b&&"application/octet-stream"!==b&&(v=c.slice||c.webkitSlice,c=v.call(c,0, - c.size,"application/octet-stream"),l=!0);q&&"download"!==e&&(e+=".download");if("application/octet-stream"===b||q)p=a;u?(r+=c.size,u(a.TEMPORARY,r,h(function(a){a.root.getDirectory("saved",m,h(function(a){var b=function(){a.getFile(e,m,h(function(a){a.createWriter(h(function(b){b.onwriteend=function(b){p.location.href=a.toURL();d.readyState=d.DONE;t(d,"writeend",b);s(a)};b.onerror=function(){var a=b.error;a.code!==a.ABORT_ERR&&g()};["writestart","progress","write","abort"].forEach(function(a){b["on"+ - a]=d["on"+a]});b.write(c);d.abort=function(){b.abort();d.readyState=d.DONE};d.readyState=d.WRITING}),g)}),g)};a.getFile(e,{create:!1},h(function(a){a.remove();b()}),h(function(a){a.code===a.NOT_FOUND_ERR?b():g()}))}),g)}),g)):g()}},b=m.prototype;b.abort=function(){this.readyState=this.DONE;t(this,"abort")};b.readyState=b.INIT=0;b.WRITING=1;b.DONE=2;b.error=b.onwritestart=b.onprogress=b.onwrite=b.onabort=b.onerror=b.onwriteend=null;return function(a,b){return new m(a,b)}}}("undefined"!==typeof self&& - self||"undefined"!==typeof window&&window||this.content);"undefined"!==typeof module&&null!==module?module.exports=saveAs:"undefined"!==typeof define&&null!==define&&null!=define.amd&&define([],function(){return saveAs}); +var saveAs = saveAs || "undefined" !== typeof navigator && navigator.msSaveOrOpenBlob && navigator.msSaveOrOpenBlob.bind(navigator) || function (a) { + "use strict"; + if ("undefined" === typeof navigator || !/MSIE [1-9]\./.test(navigator.userAgent)) { + var k = a.document, n = k.createElementNS("http://www.w3.org/1999/xhtml", "a"), w = "download" in n, + x = function (c) { + var e = k.createEvent("MouseEvents"); + e.initMouseEvent("click", !0, !1, a, 0, 0, 0, 0, 0, !1, !1, !1, !1, 0, null); + c.dispatchEvent(e) + }, q = a.webkitRequestFileSystem, u = a.requestFileSystem || q || a.mozRequestFileSystem, + y = function (c) { + (a.setImmediate || a.setTimeout)(function () { + throw c; + }, 0) + }, r = 0, s = function (c) { + var e = function () { + "string" === typeof c ? (a.URL || a.webkitURL || a).revokeObjectURL(c) : c.remove() + }; + a.chrome ? e() : setTimeout(e, 500) + }, t = function (c, a, d) { + a = [].concat(a); + for (var b = a.length; b--;) { + var l = c["on" + a[b]]; + if ("function" === typeof l) try { + l.call(c, d || c) + } catch (f) { + y(f) + } + } + }, m = function (c, e) { + var d = this, b = c.type, l = !1, f, p, k = function () { + t(d, ["writestart", "progress", "write", "writeend"]) + }, g = function () { + if (l || !f) f = (a.URL || a.webkitURL || + a).createObjectURL(c); + p ? p.location.href = f : void 0 == a.open(f, "_blank") && "undefined" !== typeof safari && (a.location.href = f); + d.readyState = d.DONE; + k(); + s(f) + }, h = function (a) { + return function () { + if (d.readyState !== d.DONE) return a.apply(this, arguments) + } + }, m = {create: !0, exclusive: !1}, v; + d.readyState = d.INIT; + e || (e = "download"); + if (w) f = (a.URL || a.webkitURL || a).createObjectURL(c), n.href = f, n.download = e, x(n), d.readyState = d.DONE, k(), s(f); else { + a.chrome && b && "application/octet-stream" !== b && (v = c.slice || c.webkitSlice, c = v.call(c, 0, + c.size, "application/octet-stream"), l = !0); + q && "download" !== e && (e += ".download"); + if ("application/octet-stream" === b || q) p = a; + u ? (r += c.size, u(a.TEMPORARY, r, h(function (a) { + a.root.getDirectory("saved", m, h(function (a) { + var b = function () { + a.getFile(e, m, h(function (a) { + a.createWriter(h(function (b) { + b.onwriteend = function (b) { + p.location.href = a.toURL(); + d.readyState = d.DONE; + t(d, "writeend", b); + s(a) + }; + b.onerror = function () { + var a = b.error; + a.code !== a.ABORT_ERR && g() + }; + ["writestart", "progress", "write", "abort"].forEach(function (a) { + b["on" + + a] = d["on" + a] + }); + b.write(c); + d.abort = function () { + b.abort(); + d.readyState = d.DONE + }; + d.readyState = d.WRITING + }), g) + }), g) + }; + a.getFile(e, {create: !1}, h(function (a) { + a.remove(); + b() + }), h(function (a) { + a.code === a.NOT_FOUND_ERR ? b() : g() + })) + }), g) + }), g)) : g() + } + }, b = m.prototype; + b.abort = function () { + this.readyState = this.DONE; + t(this, "abort") + }; + b.readyState = b.INIT = 0; + b.WRITING = 1; + b.DONE = 2; + b.error = b.onwritestart = b.onprogress = b.onwrite = b.onabort = b.onerror = b.onwriteend = null; + return function (a, b) { + return new m(a, b) + } + } +}("undefined" !== typeof self && + self || "undefined" !== typeof window && window || this.content); +"undefined" !== typeof module && null !== module ? module.exports = saveAs : "undefined" !== typeof define && null !== define && null != define.amd && define([], function () { + return saveAs +}); diff --git a/Source/UBCS-WEB/src/components/FormTemplate/index.vue b/Source/UBCS-WEB/src/components/FormTemplate/index.vue index 8bcb7ef..69e0bc2 100644 --- a/Source/UBCS-WEB/src/components/FormTemplate/index.vue +++ b/Source/UBCS-WEB/src/components/FormTemplate/index.vue @@ -84,7 +84,7 @@ import FormTemplate from "./FormTemplate"; import ResembleQuery from "./ResembleQuery"; export default { - name: "FormTemplateDialog", + name: "FormTemplateDialog", components: { ResembleQuery, FormTemplate }, props: { visible: { @@ -265,13 +265,19 @@ if (res.data && res.data.code === 200) { this.codeRuleOid = res.data.data.oid; const typeList = [ + //鍥哄畾鐮佹 "codefixedsec", + //鍒嗙被鐮佹 "codeclassifysec", + //鍙彉鐮佹 "codevariablesec", + //寮曠敤鐮佹 "coderefersec", + //灞炴�х爜娈� "codeattrsec", - "codelevelsec", - "codedatesec" + // "codelevelsec", + //鏃ユ湡鐮佹 + "codedatesec", ]; this.secVOList = (res.data.data.secVOList || []).filter((item) => typeList.includes(item.secType) @@ -286,6 +292,8 @@ this.showCodeApply = false; } } + console.log(' this.secVOList',this.secVOList) + console.log(' res.data.data.secVOList',res.data.data.secVOList) }); }, getFormData(form) { diff --git a/Source/UBCS-WEB/src/views/code/code.vue b/Source/UBCS-WEB/src/views/code/code.vue index 48459e6..7f576e2 100644 --- a/Source/UBCS-WEB/src/views/code/code.vue +++ b/Source/UBCS-WEB/src/views/code/code.vue @@ -845,7 +845,7 @@ import fixedValueOption from "@/const/code/fixedValueMgrDialog"; import {mapGetters} from "vuex"; import {getByRoleUserList} from "@/api/system/user"; - import func from "@/util/func"; + import func from "@/util/func"; export default { data() { @@ -890,7 +890,7 @@ visible:false, }, - + /*浣跨敤鑼冨洿瀵硅瘽妗嗘樉绀烘帶鍒�*/ codeRangeSettingBox: false, useRangeData: [], -- Gitblit v1.9.3