Files
Obosky_Ronghua/serve/tf/static/js/chunk-98971e2c.256bbe91.js
2023-10-17 09:15:30 +08:00

1 line
16 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-98971e2c"],{"04d1":function(t,e,n){var a=n("342f"),r=a.match(/firefox\/(\d+)/i);t.exports=!!r&&+r[1]},"0c1a":function(t,e,n){"use strict";var a=function(){var t=this,e=t._self._c;return e("div",[e("a-input-search",{staticStyle:{width:"300px"},attrs:{placeholder:t.placeholder},on:{change:function(e){t.$emit("input",e.target.value)},search:function(e){return t.$emit("search")}},model:{value:t.searchText,callback:function(e){t.searchText=e},expression:"searchText"}},[e("a-button",{attrs:{slot:"enterButton"},on:{click:function(e){return t.$emit("search",t.searchText)}},slot:"enterButton"},[e("span",{staticClass:"little-line"},[t._v("查询")])])],1)],1)},r=[],i={props:{placeholder:{type:String,default:"请输入搜索内容!"},value:String},data:function(){return{searchText:""}},computed:{currentValue:{get:function(){return this.value},set:function(t){this.$emit("input",t)}}},watch:{value:function(t){this.$emit("input",t)}}},c=i,s=(n("a554"),n("2877")),u=Object(s["a"])(c,a,r,!1,null,"f55c103a",null);e["a"]=u.exports},"1db2":function(t,e,n){"use strict";n("b0c0");var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"table-chunk-view"},[e("div",{staticClass:"chunk-header"},[e("div",{staticClass:"chunk-header-left"},[e("SearchInputVue",{staticStyle:{width:"300px"},attrs:{placeholder:"请输入需要搜索的手册名称","enter-button":""},on:{search:t.searchTable,input:t.searchChange},model:{value:t.searchText,callback:function(e){t.searchText=e},expression:"searchText"}}),t._t("header-condition")],2),e("div",{staticClass:"chunk-header-right"},[t.showEditorButton?e("a-button",{attrs:{shape:"round",type:"primary"},on:{click:function(e){return t.emitMethods("addTableLine",null)}}},[t._v(" 新增手册 ")]):t._e()],1)]),e("div",{staticClass:"chunk-body"},t._l(t.list,(function(n){return e("div",{key:n.id,staticClass:"chunk-item"},[e("div",{staticClass:"chunk-item-cover"},[n.cover?e("img",{attrs:{src:t.$fileLinkTransfer(n.cover),alt:""}}):e("span",[t._v("暂无封面")])]),e("div",{staticClass:"chunk-item-main"},[e("div",{staticClass:"chunk-item-header"},[e("h2",{staticClass:"item-title"},[t._v(t._s(n.name))]),e("div",{staticClass:"item-toolbar"},[t._t("line-button",null,{user:n})],2)]),e("div",{staticClass:"chunk-item-info"},[e("div",{staticClass:"compile"},[t._m(0,!0),e("span",[t._v(t._s(n.compile))])]),e("div",{staticClass:"publish"},[t._m(1,!0),e("span",[t._v(t._s(n.publish))])])]),e("div",{staticClass:"chunk-item-explain"},[t._v("简介:"+t._s(n.explain))])])])})),0)])},r=[function(){var t=this,e=t._self._c;return e("span",[e("i",{staticClass:"iconfont i-zaixianjiaoxue"}),t._v(" 编著:")])},function(){var t=this,e=t._self._c;return e("span",[e("i",{staticClass:"iconfont i-x-wdkk-kaishixuexi"}),t._v("出版社:")])}],i=(n("4de4"),n("d3b7"),n("0c1a")),c={props:{tableData:{type:Array,default:function(){return[]}},showEditorButton:{type:Boolean,default:!0}},data:function(){return{searchText:"",isSearch:!1,searchTableData:[]}},components:{SearchInputVue:i["a"]},computed:{list:function(){return this.isSearch?this.searchTableData:this.tableData}},methods:{searchTable:function(){var t=this;this.searchLoading=!0,this.isSearch=!0,this.searchTableData=this.tableData.filter((function(e){if(-1!==e.name.indexOf(t.searchText))return!0})),this.searchLoading=!1},searchChange:function(t){(!t||t.length<=0)&&(this.isSearch=!1)}}},s=c,u=(n("514e"),n("2877")),o=Object(u["a"])(s,a,r,!1,null,"e8a19d4c",null);e["a"]=o.exports},4153:function(t,e,n){},"498a":function(t,e,n){"use strict";var a=n("23e7"),r=n("58a8").trim,i=n("c8d2");a({target:"String",proto:!0,forced:i("trim")},{trim:function(){return r(this)}})},"4e82":function(t,e,n){"use strict";var a=n("23e7"),r=n("e330"),i=n("59ed"),c=n("7b0b"),s=n("07fa"),u=n("083a"),o=n("577e"),l=n("d039"),d=n("addb"),h=n("a640"),f=n("04d1"),p=n("d998"),b=n("2d00"),m=n("512ce"),y=[],v=r(y.sort),O=r(y.push),w=l((function(){y.sort(void 0)})),x=l((function(){y.sort(null)})),g=h("sort"),j=!l((function(){if(b)return b<70;if(!(f&&f>3)){if(p)return!0;if(m)return m<603;var t,e,n,a,r="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(a=0;a<47;a++)y.push({k:e+a,v:n})}for(y.sort((function(t,e){return e.v-t.v})),a=0;a<y.length;a++)e=y[a].k.charAt(0),r.charAt(r.length-1)!==e&&(r+=e);return"DGBEFHACIJK"!==r}})),k=w||!x||!g||!j,C=function(t){return function(e,n){return void 0===n?-1:void 0===e?1:void 0!==t?+t(e,n)||0:o(e)>o(n)?1:-1}};a({target:"Array",proto:!0,forced:k},{sort:function(t){void 0!==t&&i(t);var e=c(this);if(j)return void 0===t?v(e):v(e,t);var n,a,r=[],o=s(e);for(a=0;a<o;a++)a in e&&O(r,e[a]);d(r,C(t)),n=s(r),a=0;while(a<n)e[a]=r[a++];while(a<o)u(e,a++);return e}})},"512ce":function(t,e,n){var a=n("342f"),r=a.match(/AppleWebKit\/(\d+)\./);t.exports=!!r&&+r[1]},"514e":function(t,e,n){"use strict";n("d9bd")},7424:function(t,e,n){var a="/api",r="";t.exports={LOGIN:"".concat(r,"/auth/login"),ROUTES:"".concat(r,"/routes"),GOODS:"".concat(r,"/goods"),GOODS_COLUMNS:"".concat(r,"/columns"),API_PROXY_PREFIX:a}},"7e5c":function(t,e,n){"use strict";n("4153")},a554:function(t,e,n){"use strict";n("c211")},c1fa:function(t,e,n){"use strict";n.d(e,"i",(function(){return u})),n.d(e,"b",(function(){return l})),n.d(e,"m",(function(){return h})),n.d(e,"l",(function(){return p})),n.d(e,"g",(function(){return m})),n.d(e,"j",(function(){return v})),n.d(e,"d",(function(){return w})),n.d(e,"c",(function(){return g})),n.d(e,"n",(function(){return k})),n.d(e,"a",(function(){return S})),n.d(e,"k",(function(){return _})),n.d(e,"e",(function(){return L})),n.d(e,"h",(function(){return K})),n.d(e,"f",(function(){return $}));var a=n("c7eb"),r=n("1da1"),i=n("b775"),c=(n("7424"),""),s={getAll:c+"/manuals-manage",getAllClassify:c+"/manuals-manage/bycla",portion:c+"/manuals-manage/portion",manualsArticle:c+"/article-manage/manuals",sortArticle:c+"/article-manage/sort",articlePortion:c+"/article-manage/portion",article:c+"/article-manage",classify:c+"/manuals-manage/classify",classifyEditor:c+"/manuals-manage/classify/editor"};function u(t){return o.apply(this,arguments)}function o(){return o=Object(r["a"])(Object(a["a"])().mark((function t(e){return Object(a["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(i["d"])(e?s.getAllClassify+"/".concat(e):s.getAll,i["a"].GET);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)}))),o.apply(this,arguments)}function l(t){return d.apply(this,arguments)}function d(){return d=Object(r["a"])(Object(a["a"])().mark((function t(e){return Object(a["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(i["d"])(s.getAll,i["a"].POST,e);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)}))),d.apply(this,arguments)}function h(t){return f.apply(this,arguments)}function f(){return f=Object(r["a"])(Object(a["a"])().mark((function t(e){return Object(a["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(i["d"])(s.portion,i["a"].POST,e);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)}))),f.apply(this,arguments)}function p(t){return b.apply(this,arguments)}function b(){return b=Object(r["a"])(Object(a["a"])().mark((function t(e){return Object(a["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(i["d"])(s.getAll+"/".concat(e),i["a"].GET);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)}))),b.apply(this,arguments)}function m(t,e){return y.apply(this,arguments)}function y(){return y=Object(r["a"])(Object(a["a"])().mark((function t(e,n){return Object(a["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(i["d"])(s.getAll+"/".concat(e),i["a"].PACTH,n);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)}))),y.apply(this,arguments)}function v(t){return O.apply(this,arguments)}function O(){return O=Object(r["a"])(Object(a["a"])().mark((function t(e){return Object(a["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(i["d"])(s.manualsArticle+"/".concat(e),i["a"].GET);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)}))),O.apply(this,arguments)}function w(t){return x.apply(this,arguments)}function x(){return x=Object(r["a"])(Object(a["a"])().mark((function t(e){return Object(a["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(i["d"])(s.sortArticle,i["a"].POST,e);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)}))),x.apply(this,arguments)}function g(t){return j.apply(this,arguments)}function j(){return j=Object(r["a"])(Object(a["a"])().mark((function t(e){return Object(a["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(i["d"])(s.article,i["a"].PACTH,e.data);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)}))),j.apply(this,arguments)}function k(t){return C.apply(this,arguments)}function C(){return C=Object(r["a"])(Object(a["a"])().mark((function t(e){return Object(a["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(i["d"])(s.articlePortion,i["a"].POST,e);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)}))),C.apply(this,arguments)}function S(t){return T.apply(this,arguments)}function T(){return T=Object(r["a"])(Object(a["a"])().mark((function t(e){return Object(a["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(i["d"])(s.article,i["a"].POST,e);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)}))),T.apply(this,arguments)}function _(){return A.apply(this,arguments)}function A(){return A=Object(r["a"])(Object(a["a"])().mark((function t(){return Object(a["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(i["d"])(s.classify,i["a"].GET);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)}))),A.apply(this,arguments)}function L(t){return E.apply(this,arguments)}function E(){return E=Object(r["a"])(Object(a["a"])().mark((function t(e){return Object(a["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(i["d"])(s.classify,i["a"].POST,e);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)}))),E.apply(this,arguments)}function K(t){return P.apply(this,arguments)}function P(){return P=Object(r["a"])(Object(a["a"])().mark((function t(e){return Object(a["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(i["d"])(s.classifyEditor,i["a"].POST,e);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)}))),P.apply(this,arguments)}function $(t){return D.apply(this,arguments)}function D(){return D=Object(r["a"])(Object(a["a"])().mark((function t(e){return Object(a["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(i["d"])(s.classify+"/".concat(e),i["a"].DELETE);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)}))),D.apply(this,arguments)}},c211:function(t,e,n){},c8d2:function(t,e,n){var a=n("5e77").PROPER,r=n("d039"),i=n("5899"),c="…";t.exports=function(t){return r((function(){return!!i[t]()||c[t]()!==c||a&&i[t].name!==t}))}},d998:function(t,e,n){var a=n("342f");t.exports=/MSIE|Trident/.test(a)},d9bd:function(t,e,n){},ead3:function(t,e,n){"use strict";var a=function(){var t,e,n=this,a=n._self._c;return a("div",{staticClass:"classify-box"},[a("h2",[n._v("手册分类")]),a("a-input-search",{attrs:{placeholder:"请输入搜索内容","enter-button":""},on:{search:n.onSearch,change:n.searchChange}}),"editor"==n.patterm?a("div",{staticClass:"classify-toolbar"},[a("a-button",{staticClass:"add",staticStyle:{color:"#34cb80","border-color":"#a1eac5"},attrs:{type:"primary",ghost:"",shape:"circle"},on:{click:n.addClassify}},[a("a-icon",{attrs:{type:"plus"}})],1),(null===(t=n.nowSelectKey)||void 0===t?void 0:t.length)>0?a("a-button",{staticClass:"edit",staticStyle:{color:"#71acba","border-color":"#a6dee3"},attrs:{shape:"circle",ghost:""},on:{click:n.editorClassify}},[a("a-icon",{attrs:{type:"edit"}})],1):n._e(),(null===(e=n.nowSelectKey)||void 0===e?void 0:e.length)>0?a("a-button",{staticClass:"delete",staticStyle:{color:"#f05b59","border-color":"#f9b9b9"},attrs:{ghost:"",type:"danger",shape:"circle",disabled:!n.nowSelectKey.length},on:{click:n.deleteClassify}},[a("a-icon",{attrs:{type:"delete"}})],1):n._e()],1):n._e(),a("div",{staticClass:"classify-tree"},[a("a-directory-tree",{attrs:{"tree-data":n.isSearch?n.searchList:n.treeList,multiple:!1,expandAction:!1,defaultExpandParent:!0,"default-expand-all":"",expandedKeys:n.expandedTreeKeys,selectedKeys:n.nowSelectKey,replaceFields:{title:"name",key:"id"}},on:{expand:n.expandTreeNode,select:n.selectClassify}})],1),a("a-modal",{attrs:{destroyOnClose:!0,visible:n.isEditor||n.isAdd,title:n.getTile(n.isAdd),"on-ok":"handleOk"}},[a("template",{slot:"footer"},[a("a-button",{key:"back",attrs:{shape:"round"},on:{click:n.cancelModal}},[n._v(" 取消 ")]),a("a-button",{key:"submit",attrs:{shape:"round",s:"",type:"primary",loading:n.saveLoading},on:{click:n.saveInfo}},[n._v(" 确定 ")])],1),n._l(n.isAdd?n.addFrom:n.editorFrom,(function(t){return a("div",{key:t.key,staticClass:"item-input-box"},[a("a-input",{attrs:{placeholder:"请输入".concat(t.label)},on:{change:function(e){return n.inputChange(e,t.key)}}})],1)}))],2)],1)},r=[],i=n("5530"),c=n("ade3"),s=(n("4de4"),n("d3b7"),n("caad"),n("2532"),n("b0c0"),n("d81d"),n("159b"),n("498a"),n("07ac"),{props:{classifyData:{type:Array,default:function(){return[]}},addFrom:{type:Array,default:function(){return[{key:"name",require:!0,label:"分类名称"}]}},editorFrom:{type:Array,default:function(){return[{key:"name",require:!0,label:"分类名称"}]}},patterm:{type:String,default:"editor"}},data:function(){return Object(c["a"])({nowSelectKey:[],expandedTreeKeys:[],searchText:"",searchList:[],treeList:[],formatList:[],mapList:{},isEditor:!1,isAdd:!1,saveLoading:!1,form:{},formRule:{},isSearch:!1},"searchList",[])},methods:{expandTreeNode:function(t,e){this.expandedTreeKeys=t},selectClassify:function(t,e){this.nowSelectKey[0]===t[0]?this.nowSelectKey=[]:this.nowSelectKey=t,this.$emit("selectClassify",this.nowSelectKey)},onSearchSelect:function(t,e,n){this.nowSelectKey=[t],this.expandedTreeKeys=[this.mapList[t].pid]},onSearch:function(t){this.isSearch=!0,this.searchList=this.$myClone(this.formatList.filter((function(e){if(e.name.includes(t))return!0}))),this.searchList=this.searchList.map((function(t){return Object(i["a"])(Object(i["a"])({},t),{},{children:[]})}))},searchChange:function(t){t.target.value.length<=0&&(this.isSearch=!1)},addClassify:function(){var t=this;this.form.pid=this.nowSelectKey[0]||0,this.addFrom.forEach((function(e){t.form[e.key]=""})),this.isAdd=!0},editorClassify:function(){var t=this;this.editorFrom.forEach((function(e){t.form[e.key]=""})),this.form.id=this.nowSelectKey[0],this.isEditor=!0},cancelModal:function(){this.isEditor=!1,this.isAdd=!1},inputChange:function(t,e){this.form[e]=t.target.value},saveInfo:function(){var t=this,e=this.isAdd?this.addFrom:this.editorFrom;e.forEach((function(e){if(e.require&&!t.form[e.key].trim())throw t.$message.error("".concat(e.label,"为必填项")),"".concat(e.label,"为必填项")})),this.saveLoading=!0,this.$emit(this.isAdd?"createManualsClassify":"editorManualsClassify",{data:this.form,susscesCallBack:function(){t.form={},t.isAdd=!1,t.isEditor=!1,t.saveLoading=!1},errorCallBack:function(){t.saveLoading=!1,t.$message.error("数据保存失败")}})},getTile:function(t){return t?"新增分类":this.isEditor?"编辑分类":""},deleteClassify:function(){var t=this,e=function e(n){var a=n.data;if(window.removeEventListener("message",e),a.status&&(t.$emit("deleteClassify",t.nowSelectKey[0]),t.nowSelectKey=[]),a.id===a.id)return a.status},n=(new Date).getTime();this.$selfConfirm({title:"确认后将删除该分类及其所有子分类!确认删除吗?",id:n},e)}},watch:{classifyData:function(t,e){var n=this.$toTree({},t);this.treeList=n.tree,this.mapList=n.map,this.formatList=Object.values(n.map)}}}),u=s,o=(n("7e5c"),n("2877")),l=Object(o["a"])(u,a,r,!1,null,"7d6eecf8",null);e["a"]=l.exports}}]);