goweb-gin-demo/web/dist/assets/js/chunk-151d12ac.90267ae8.js

2 lines
6.9 KiB
JavaScript
Raw Normal View History

2021-11-17 17:15:24 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-151d12ac"],{"0b42":function(t,e,a){var s=a("e8b5"),n=a("68ee"),r=a("861d"),i=a("b622"),o=i("species");t.exports=function(t){var e;return s(t)&&(e=t.constructor,n(e)&&(e===Array||s(e.prototype))?e=void 0:r(e)&&(e=e[o],null===e&&(e=void 0))),void 0===e?Array:e}},"1dde":function(t,e,a){var s=a("d039"),n=a("b622"),r=a("2d00"),i=n("species");t.exports=function(t){return r>=51||!s((function(){var e=[],a=e.constructor={};return a[i]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},6144:function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"content_div"},[a("div",[a("span",{staticClass:"title_tem"},[t._v("模板标题")]),a("a-input",{staticClass:"modal_title",attrs:{placeholder:"请输入模板标题"},model:{value:t.data.header,callback:function(e){t.$set(t.data,"header",e)},expression:"data.header"}}),a("span",{staticClass:"create_people"},[t._v("创建人")]),t.isCreate?a("span",[t._v(t._s(t.userName))]):a("span",[t._v(t._s(t.data.userName))]),a("a-button",{staticStyle:{float:"right"},attrs:{type:"primary"},on:{click:t.saveData}},[a("a-icon",{attrs:{type:"save"}}),t._v(" 保存 ")],1)],1),a("div",[t.isCreate?a("div",t._l(t.addContents,(function(e,s){return a("div",{key:s},[a("div",{staticClass:"content1"},[a("div",{staticClass:"content2"},[a("a-input",{staticClass:"input_temp",attrs:{placeholder:"请输入字段标题"},model:{value:e.title,callback:function(a){t.$set(e,"title",a)},expression:"li.title"}}),a("a-icon",{staticStyle:{cursor:"pointer"},attrs:{type:"delete"},on:{click:function(e){return t.deleteContent(s)}}})],1),t._m(1,!0)])])})),0):a("div",t._l(t.data.contents,(function(e,s){return a("div",{key:s},[a("div",{staticClass:"content1"},[a("div",{staticClass:"content2"},[a("a-input",{staticClass:"input_temp",attrs:{placeholder:"请输入字段标题"},model:{value:e.title,callback:function(a){t.$set(e,"title",a)},expression:"li.title"}}),a("a-icon",{staticStyle:{cursor:"pointer"},attrs:{type:"delete"},on:{click:function(e){return t.deleteContent(s)}}})],1),t._m(0,!0)])])})),0),a("a-button",{staticClass:"add_button_tem",attrs:{type:"primary"},on:{click:t.addContent}},[a("a-icon",{attrs:{type:"plus"}})],1)],1)])},n=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"content_tem"},[a("span",[t._v(" 待填写者输入 ")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"content_tem"},[a("span",[t._v(" 待填写者输入 ")])])}],r=(a("a434"),a("7c15")),i={name:"TemplateEditing",created:function(){this.findData()},data:function(){return{data:{},isCreate:!0,userName:"",addContents:[]}},methods:{findData:function(){var t=this;this.$axios.get(r["a"].GET_TEMPLATE_LIST.url).then((function(e){0===e.data.code?e.data.data.total>0?(t.isCreate=!1,t.data=e.data.data.list[0]):(t.isCreate=!0,t.data.userName=sessionStorage.getItem("userName"),t.userName=sessionStorage.getItem("userName")):t.$message.error(e.data.msg)}))},addContent:function(){var t={title:"",content:""};if(this.data.contents)this.data.contents.push(t),this.addContents.push(t);else{var e=[];e.push(t),this.data.contents=e,this.addContents.push(t)}},deleteContent:function(t){this.data.contents.splice(t,1)},saveData:function(){var t=this;this.isCreate?this.$axios.post(r["a"].ADD_TEMPLATE.url,this.data).then((function(e){0===e.data.code?t.$message.success(e.data.msg):t.$message.error(e.data.msg)})):this.$axios.put(r["a"].EDIT_TEMPLATE.url,this.data).then((function(e){0===e.data.code?t.$message.success(e.data.msg):t.$message.error(e.data.msg)}))}}},o=i,c=(a("f5ad"),a("2877")),l=Object(c["a"])(o,s,n,!1,null,null,null);e["default"]=l.exports},"65f0":function(t,e,a){var s=a("0b42");t.exports=function(t,e){return new(s(t))(0===e?0:e)}},"7c15":function(t,e,a){"use strict";var s={url:"/base/captcha",deacriptions:"获取验证码"},n={url:"/base/login",deacriptions:"登录"},r={url:"/menu/getMenu",deacriptions:"获取动态路由"},i={url:"/user/changePassword",deac
//# sourceMappingURL=chunk-151d12ac.90267ae8.js.map