Files
cmanager/manage/js/views.2c473cce.js

8 lines
303 KiB
JavaScript
Raw Normal View History

2025-04-02 09:39:02 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["views","page"],{"02d7":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("basic-container",[n("jl-go-back"),n("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:t.formOption,rules:t.rules,"label-width":"100px"}},[n("el-form-item",{attrs:{label:"内容标题",prop:"title"}},[n("el-input",{model:{value:t.formOption.title,callback:function(e){t.$set(t.formOption,"title",e)},expression:"formOption.title"}})],1),n("el-form-item",{attrs:{label:"一级分类",prop:"firstId"}},[n("el-select",{attrs:{placeholder:"请选择一级分类"},on:{change:t.secondList},model:{value:t.formOption.firstId,callback:function(e){t.$set(t.formOption,"firstId",e)},expression:"formOption.firstId"}},t._l(t.first,(function(t,e){return n("el-option",{key:e,attrs:{label:t.name,value:t.id}})})),1)],1),n("el-form-item",{attrs:{label:"二级分类",prop:"secondId"}},[t.formOption.firstId?n("el-select",{attrs:{placeholder:"请选择二级分类"},model:{value:t.formOption.secondId,callback:function(e){t.$set(t.formOption,"secondId",e)},expression:"formOption.secondId"}},t._l(t.second,(function(t,e){return n("el-option",{key:e,attrs:{label:t.name,value:t.id}})})),1):n("el-select",{attrs:{disabled:"",placeholder:"请选择二级分类"},model:{value:t.formOption.secondId,callback:function(e){t.$set(t.formOption,"secondId",e)},expression:"formOption.secondId"}})],1),n("el-form-item",{attrs:{label:"编辑内容",prop:"content"}},[n("Tinymce",{ref:"tinymce",model:{value:t.formOption.content,callback:function(e){t.$set(t.formOption,"content",e)},expression:"formOption.content"}})],1),n("el-form-item",[n("el-button",{attrs:{type:"primary",loading:t.btnLoading},on:{click:function(e){return t.submitForm("ruleForm")}}},[t._v("保存")]),n("el-button",{on:{click:function(e){return t.resetForm("ruleForm")}}},[t._v("取消")])],1)],1)],1)},o=[],i=(n("c5f6"),n("8256")),a=n("040b"),l=n("d902"),s={name:"addContent",props:{id:Number,type:String},components:{Tinymce:i["default"]},data:function(){return{btnLoading:!1,formOption:{firstId:"",secondId:""},rules:{title:[{required:!0,message:"请输入内容标题",trigger:"blur"}],firstId:[{required:!0,message:"请选择一级分类",trigger:"blur"}],secondId:[{required:!0,message:"请选择二级分类",trigger:"blur"}],content:[{required:!0,message:"请输入内容",trigger:"blur"}]},first:[],second:[]}},mounted:function(){this.firstList()},methods:{firstList:function(){var t=this;this.id&&"edit"==this.type&&(this.formOption=JSON.parse(this.id),this.searchSecondList(this.formOption.firstId)),Object(a["b"])().then((function(e){t.first=e.data.data}))},secondList:function(t){var e=this;Object(a["c"])(t).then((function(t){e.formOption.secondId="",e.second=t.data.data}))},searchSecondList:function(t){var e=this;Object(a["c"])(t).then((function(t){e.second=t.data.data}))},submitForm:function(t){var e=this;this.$refs[t].validate((function(t){t&&(e.btnLoading=!0,"add"===e.type?Object(l["c"])(JSON.stringify(e.formOption)).then((function(t){e.$message.success("添加成功"),e.btnLoading=!1,e.$router.go(-1)})):"edit"===e.type&&Object(l["b"])(JSON.stringify(e.formOption)).then((function(t){e.$message.success("修改成功"),e.btnLoading=!1,e.$router.go(-1)})))}))},resetForm:function(t){this.viewDrawer=!1,this.$refs[t].resetFields()}}},u=s,c=(n("09fd"),n("2877")),f=Object(c["a"])(u,r,o,!1,null,"4af297f4",null);e["default"]=f.exports},"02e6":function(t,e,n){"use strict";var r=n("42c3"),o=n.n(r);o.a},"040b":function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a}));var r=n("b5c6"),o=function(){return"/api/jobslink-api/desk/contentCategoryFirst/getAllContentCategoryFirst"},i=function(){return Object(r["a"])({url:"/api/jobslink-api/desk/contentCategoryFirst/getAllContentCategoryFirst",method:"get"})},a=function(t){return Object(r["a"])({url:"/api/jobslink-api/desk/contentCategorySecond/getAllContentCategorySecond",method:"get",params:{fi
/*!
* Quill Editor v1.3.7
* https://quilljs.com/
* Copyright (c) 2014, Jason Chen
* Copyright (c) 2013, salesforce.com
*/
(function(e,n){t.exports=n()})("undefined"!==typeof self&&self,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=109)}([function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(17),o=n(18),i=n(19),a=n(45),l=n(46),s=n(47),u=n(48),c=n(49),f=n(12),d=n(32),p=n(33),h=n(31),y=n(1),b={Scope:y.Scope,create:y.create,find:y.find,query:y.query,register:y.register,Container:r.default,Format:o.default,Leaf:i.default,Embed:u.default,Scroll:a.default,Block:s.default,Inline:l.default,Text:c.default,Attributor:{Attribute:f.default,Class:d.default,Style:p.default,Store:h.default}};e.default=b},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(e){var n=this;return e="[Parchment] "+e,n=t.call(this,e)||this,n.message=e,n.name=n.constructor.name,n}return r(e,t),e}(Error);e.ParchmentError=o;var i,a={},l={},s={},u={};function c(t,e){var n=d(t);if(null==n)throw new o("Unable to create "+t+" blot");var r=n,i=t instanceof Node||t["nodeType"]===Node.TEXT_NODE?t:r.create(e);return new r(i,e)}function f(t,n){return void 0===n&&(n=!1),null==t?null:null!=t[e.DATA_KEY]?t[e.DATA_KEY].blot:n?f(t.parentNode,n):null}function d(t,e){var n;if(void 0===e&&(e=i.ANY),"string"===typeof t)n=u[t]||a[t];else if(t instanceof Text||t["nodeType"]===Node.TEXT_NODE)n=u["text"];else if("number"===typeof t)t&i.LEVEL&i.BLOCK?n=u["block"]:t&i.LEVEL&i.INLINE&&(n=u["inline"]);else if(t instanceof HTMLElement){var r=(t.getAttribute("class")||"").split(/\s+/);for(var o in r)if(n=l[r[o]],n)break;n=n||s[t.tagName]}return null==n?null:e&i.LEVEL&n.scope&&e&i.TYPE&n.scope?n:null}function p(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(t.length>1)return t.map((function(t){return p(t)}));var n=t[0];if("string"!==typeof n.blotName&&"string"!==typeof n.attrName)throw new o("Invalid definition");if("abstract"===n.blotName)throw new o("Cannot register abstract class");if(u[n.blotName||n.attrName]=n,"string"===typeof n.keyName)a[n.keyName]=n;else if(null!=n.className&&(l[n.className]=n),null!=n.tagName){Array.isArray(n.tagName)?n.tagName=n.tagName.map((function(t){return t.toUpperCase()})):n.tagName=n.tagName.toUpperCase();var r=Array.isArray(n.tagName)?n.tagName:[n.tagName];r.forEach((function(t){null!=s[t]&&null!=n.className||(s[t]=n)}))}return n}e.DATA_KEY="__blot",function(t){t[t["TYPE"]=3]="TYPE",t[t["LEVEL"]=12]="LEVEL",t[t["ATTRIBUTE"]=13]="ATTRIBUTE",t[t["BLOT"]=14]="BLOT",t[t["INLINE"]=7]="INLINE",t[t["BLOCK"]=11]="BLOCK",t[t["BLOCK_BLOT"]=10]="BLOCK_BLOT",t[t["INLINE_BLOT"]=6]="INLINE_BLOT",t[t["BLOCK_ATTRIBUTE"]=9]="BLOCK_ATTRIBUTE",t[t["INLINE_ATTRIBUTE"]=5]="INLINE_ATTRIBUTE",t[t["ANY"]=15]="ANY"}(i=e.Scope||(e.Scope={})),e.create=c,e.find=f,e.query=d,e.register=p},function(t,e,n){var r=n(51),o=n(11),i=n(3),a=n(20),l=String.fromCharCode(0),s=function(t){Array.isArray(t)?this.ops=t:null!=t&&Array.isArray(t.ops)?this.ops=t.ops:this.ops=[]};s.prototype.insert=function(t,e){var n={};return 0===t.length?this:(n.insert=t,null!=e&&"object"===typeof e&&Object.keys(e).length>0&&(n.attributes=e),this.push(n))},s.prototype["delete"]=function(t){return t<=0?this:this.push({delete:t})},s.prototype.retain=function(t,e){if(t<=0)return this;var n={retain:t};return null!=e&&"object"===typeof e&&Object.keys(e).length>0&&(n.attributes=e),this.push(