You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
21 KiB
1 lines
21 KiB
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-6cf90963"],{"03ecd":function(t,e,r){t.exports=r.p+"view_admin/img/mobilehead.1c931282.png"},"58b1":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAUAAAAAyCAIAAACib5WDAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyBpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYwIDYxLjEzNDc3NywgMjAxMC8wMi8xMi0xNzozMjowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNSBXaW5kb3dzIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjE1NEJCMUE0NzZGNDExRTVBOTBBQTZFOEFEMjc4NTkzIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjE1NEJCMUE1NzZGNDExRTVBOTBBQTZFOEFEMjc4NTkzIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MTU0QkIxQTI3NkY0MTFFNUE5MEFBNkU4QUQyNzg1OTMiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MTU0QkIxQTM3NkY0MTFFNUE5MEFBNkU4QUQyNzg1OTMiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz4yWLBJAAABuklEQVR42uzcu0ocURzA4XWxMIWiQhJwtVhxMW0wEkWj+AwWgm9gJfgggpVPoElEUwUCKRNFJaQWsygWXvAKXlBZGw8KIiIJmWFnGPg+pjiryMIffpxzRLemUqnkUlUul0ulUg74f3kjAAEDAgYEDAIGBAwIGBAwCBgQMCBgEHAMlZub8BglJK825s/vHxzOfl4Ii9GR4devXhooZGYHPjo+mfk0f3l5FZ6wCC8NFDKzA+fz+aHB/scvDRQyE3BzU2N4DBEyeYQGBAxU5wi9sbm1+ut3W2shznucnp296Sx1tBeNGxINeG39z+jIcPy3+Tj3RcCQ9BG6ob7+fjE5NR2eaOugtdBi1pD0Dvzg6vo68hpIOeAXdXWR10CV1Pz9c6F/LC4P9PfGf5ufSysf+nqe/ZbPhYZq3YGfiHD7BdI/Qrv9QuYDdvsFd2B3YEjjDgxk+Aidu/sd1T9vueEUPTE+ZrhgBwai7sA7u3tPvhJtaz0/vzBrSDrg7ndvv377/vAX0dFs7+y+7+4ya0g64I72ov8iAndgQMCAgEHAgIABAYOAAQEDAgYEDAIGBAwIGBAwCBhIy60AAwBiy5esmSYLKgAAAABJRU5ErkJggg=="},b206:function(t,e,r){"use strict";r("c4d8")},b562:function(t,e,r){"use strict";r.d(e,"l",(function(){return a})),r.d(e,"n",(function(){return i})),r.d(e,"D",(function(){return o})),r.d(e,"h",(function(){return u})),r.d(e,"j",(function(){return c})),r.d(e,"m",(function(){return s})),r.d(e,"y",(function(){return l})),r.d(e,"a",(function(){return d})),r.d(e,"x",(function(){return h})),r.d(e,"s",(function(){return p})),r.d(e,"t",(function(){return f})),r.d(e,"C",(function(){return m})),r.d(e,"g",(function(){return g})),r.d(e,"i",(function(){return v})),r.d(e,"k",(function(){return b})),r.d(e,"d",(function(){return y})),r.d(e,"e",(function(){return w})),r.d(e,"f",(function(){return k})),r.d(e,"z",(function(){return E})),r.d(e,"B",(function(){return I})),r.d(e,"A",(function(){return A})),r.d(e,"H",(function(){return j})),r.d(e,"o",(function(){return O})),r.d(e,"c",(function(){return x})),r.d(e,"G",(function(){return M})),r.d(e,"E",(function(){return V})),r.d(e,"F",(function(){return G})),r.d(e,"w",(function(){return C})),r.d(e,"u",(function(){return T})),r.d(e,"v",(function(){return B})),r.d(e,"p",(function(){return N})),r.d(e,"b",(function(){return _})),r.d(e,"r",(function(){return L})),r.d(e,"q",(function(){return z}));var n=r("b6bd");function a(t){return Object(n.a)({url:"app/routine",method:"get",params:t})}function i(){return Object(n.a)({url:"app/routine/syncSubscribe",method:"GET"})}function o(){return Object(n.a)({url:"app/wechat/syncSubscribe",method:"GET"})}function u(){return Object(n.a)({url:"app/routine/create",method:"get"})}function c(t){return Object(n.a)({url:"app/routine/".concat(t,"/edit"),method:"get"})}function s(t){return Object(n.a)({url:"app/routine/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function l(t){return Object(n.a)({url:"app/wechat/menu",method:"get"})}function d(t){return Object(n.a)({url:"app/wechat/menu",method:"post",data:t})}function h(t){return Object(n.a)({url:"app/wechat/template",method:"get",params:t})}function p(){return Object(n.a)({url:"app/wechat/template/create",method:"get"})}function f(t){return Object(n.a)({url:"app/wechat/template/".concat(t,"/edit"),method:"get"})}function m(t){return Object(n.a)({url:"app/wechat/template/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function g(t){return Object(n.a)({url:t.url,method:"post",data:t.key})}function v(t){return Object(n.a)({url:"app/routine/download",method:"post",data:t})}function b(){return Object(n.a)({url:"app/routine/info",method:"get"})}function y(t){return Object(n.a)({url:"app/wechat/keyword",method:"get",params:t})}function w(t){return Object(n.a)({url:"app/wechat/keyword/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function k(t,e){return Object(n.a)({url:t,method:"get",params:e.key})}function E(t){return Object(n.a)({url:"/app/wechat/news",method:"POST",data:t})}function I(t){return Object(n.a)({url:"app/wechat/news",method:"GET",params:t})}function A(t){return Object(n.a)({url:"app/wechat/news/".concat(t),method:"GET"})}function j(t){return Object(n.a)({url:"app/wechat/user",method:"GET",params:t})}function O(){return Object(n.a)({url:"app/wechat/user/tag_group",method:"GET"})}function x(t){return Object(n.a)({url:t,method:"GET"})}function M(){return Object(n.a)({url:"app/wechat/tag",method:"GET"})}function V(){return Object(n.a)({url:"app/wechat/tag/create",method:"GET"})}function G(t){return Object(n.a)({url:"app/wechat/tag/".concat(t,"/edit"),method:"GET"})}function C(){return Object(n.a)({url:"app/wechat/group",method:"GET"})}function T(){return Object(n.a)({url:"app/wechat/group/create",method:"GET"})}function B(t){return Object(n.a)({url:"app/wechat/group/".concat(t,"/edit"),method:"GET"})}function N(t){return Object(n.a)({url:"app/wechat/action",method:"GET",params:t})}function _(t){return Object(n.a)({url:"app/wechat/code_reply/".concat(t),method:"GET"})}function L(){return Object(n.a)({url:"/app/wechat/card",method:"GET"})}function z(t){return Object(n.a)({url:"/app/wechat/card",method:"post",data:t})}},c4d8:function(t,e,r){},c861:function(t,e,r){"use strict";r.r(e);var n=r("b562");function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},u="function"==typeof Symbol?Symbol:{},c=u.iterator||"@@iterator",s=u.asyncIterator||"@@asyncIterator",l=u.toStringTag||"@@toStringTag";function d(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{d({},"")}catch(t){d=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var a=e&&e.prototype instanceof y?e:y,i=Object.create(a.prototype),u=new T(n||[]);return o(i,"_invoke",{value:M(t,r,u)}),i}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var f="suspendedStart",m="suspendedYield",g="executing",v="completed",b={};function y(){}function w(){}function k(){}var E={};d(E,c,(function(){return this}));var I=Object.getPrototypeOf,A=I&&I(I(B([])));A&&A!==r&&n.call(A,c)&&(E=A);var j=k.prototype=y.prototype=Object.create(E);function O(t){["next","throw","return"].forEach((function(e){d(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function r(i,o,u,c){var s=p(t[i],t,o);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==a(d)&&n.call(d,"__await")?e.resolve(d.__await).then((function(t){r("next",t,u,c)}),(function(t){r("throw",t,u,c)})):e.resolve(d).then((function(t){l.value=t,u(l)}),(function(t){return r("throw",t,u,c)}))}c(s.arg)}var i;o(this,"_invoke",{value:function(t,n){function a(){return new e((function(e,a){r(t,n,e,a)}))}return i=i?i.then(a,a):a()}})}function M(e,r,n){var a=f;return function(i,o){if(a===g)throw Error("Generator is already running");if(a===v){if("throw"===i)throw o;return{value:t,done:!0}}for(n.method=i,n.arg=o;;){var u=n.delegate;if(u){var c=V(u,n);if(c){if(c===b)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===f)throw a=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=g;var s=p(e,r,n);if("normal"===s.type){if(a=n.done?v:m,s.arg===b)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(a=v,n.method="throw",n.arg=s.arg)}}}function V(e,r){var n=r.method,a=e.iterator[n];if(a===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,V(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var i=p(a,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,b;var o=i.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,b):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function G(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(G,this),this.reset(!0)}function B(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(a(e)+" is not iterable")}return w.prototype=k,o(j,"constructor",{value:k,configurable:!0}),o(k,"constructor",{value:w,configurable:!0}),w.displayName=d(k,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,k):(t.__proto__=k,d(t,l,"GeneratorFunction")),t.prototype=Object.create(j),t},e.awrap=function(t){return{__await:t}},O(x.prototype),d(x.prototype,s,(function(){return this})),e.AsyncIterator=x,e.async=function(t,r,n,a,i){void 0===i&&(i=Promise);var o=new x(h(t,r,n,a),i);return e.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},O(j),d(j,l,"Generator"),d(j,c,(function(){return this})),d(j,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=B,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(C),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function a(n,a){return u.type="throw",u.arg=e,r.next=n,a&&(r.method="next",r.arg=t),!!a}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],u=o.completion;if("root"===o.tryLoc)return a("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),s=n.call(o,"finallyLoc");if(c&&s){if(this.prev<o.catchLoc)return a(o.catchLoc,!0);if(this.prev<o.finallyLoc)return a(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return a(o.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return a(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var i=a;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i.finallyLoc,b):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),b},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),C(r),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var a=n.arg;C(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:B(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),b}},e}function o(t,e,r,n,a,i,o){try{var u=t[i](o),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,a)}function u(t){return function(){var e=this,r=arguments;return new Promise((function(n,a){var i=t.apply(e,r);function u(t){o(i,n,a,u,c,"next",t)}function c(t){o(i,n,a,u,c,"throw",t)}u(void 0)}))}}var c={name:"wechatMenus",data:function(){return{modal2:!1,formValidate:{name:"",type:"click",appid:"",url:"",key:"",pagepath:"",id:0},ruleValidate:{name:[{required:!0,message:"请填写菜单名称",trigger:"blur"},{min:1,max:8,message:"长度在 1 到 8 个字符",trigger:"blur"}],key:[{required:!0,message:"请填写关键字",trigger:"blur"}],appid:[{required:!0,message:"请填写appid",trigger:"blur"}],pagepath:[{required:!0,message:"请填写小程序跳转路径",trigger:"blur"}],url:[{required:!0,message:"请填写跳转地址",trigger:"blur"}],type:[{required:!0,message:"请选择规则状态",trigger:"change"}]},parentMenuId:null,list:[],checkedMenuId:null,isTrue:!1}},mounted:function(){if(this.getMenus(),!this.list.length)return this.formValidate;this.formValidate=this.list[this.activeClass]},methods:{defaultMenusData:function(){return{type:"click",name:"",sub_button:[]}},defaultChildData:function(){return{type:"click",name:""}},getMenus:function(){var t=this;Object(n.y)().then(function(){var e=u(i().mark((function e(r){var n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=r.data,t.list=n.menus;case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$Message.error(e.msg)}))},submenus:function(t){var e=this;this.isTrue&&!this.checkedMenuId&&0!==this.checkedMenuId?this.putData():this.$refs[t].validate((function(t){if(t)e.putData();else if(!e.check())return!1}))},putData:function(){var t=this,e={button:this.list};Object(n.a)(e).then(function(){var e=u(i().mark((function e(r){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.$Message.success(r.msg),t.checkedMenuId=null,t.formValidate={},t.isTrue=!1;case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$Message.error(e.msg)}))},gettem:function(t,e,r){this.checkedMenuId=e,this.formValidate=t,this.parentMenuId=r,this.isTrue=!0},add:function(t,e){if(!this.check())return!1;if(t.sub_button.length<5){var r=this.defaultChildData(),n=t.sub_button.length;t.sub_button.push(r),this.formValidate=r,this.checkedMenuId=n,this.parentMenuId=e,this.isTrue=!0}},addtext:function(){if(!this.check())return!1;var t=this.defaultMenusData(),e=this.list.length;this.list.push(t),this.formValidate=t,this.checkedMenuId=e,this.parentMenuId=null,this.isTrue=!0},check:function(){return null===this.checkedMenuId||!this.isTrue||(this.formValidate.name?"click"!==this.formValidate.type||this.formValidate.key?"view"!==this.formValidate.type||/[a-zA-Z0-9][-a-zA-Z0-9]{0,62}(\.[a-zA-Z0-9][-a-zA-Z0-9]{0,62})+\.?/.test(this.formValidate.url)?!!("miniprogram"!==this.formValidate.type||this.formValidate.appid&&this.formValidate.pagepath&&this.formValidate.url)||(this.$Message.warning("请填写完整小程序配置!"),!1):(this.$Message.warning("请输入正确的跳转地址!"),!1):(this.$Message.warning("请输入关键字!"),!1):(this.$Message.warning("请输入按钮名称!"),!1))},deltMenus:function(){this.isTrue?this.modal2=!0:this.$Message.warning("请选择菜单!")},del:function(){null===this.parentMenuId?this.list.splice(this.checkedMenuId,1):this.list[this.parentMenuId].sub_button.splice(this.checkedMenuId,1),this.parentMenuId=null,this.formValidate={name:"",type:"click",appid:"",url:"",key:"",pagepath:"",id:0},this.isTrue=!0,this.modal2=!1,this.checkedMenuId=null,this.$refs.formValidate.resetFields()}}},s=(r("b206"),r("2877")),l=Object(s.a)(c,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"article-manager"},[e("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[e("Row",{attrs:{gutter:24,type:"flex"}},[e("Col",{staticClass:"ml40",attrs:{span:"24"}},[e("Row",[e("Col",{attrs:{span:24}},[e("Row",[e("Col",{staticClass:"left mb15",attrs:{xl:7,lg:7,md:22,sm:22,xs:22}},[e("img",{staticClass:"top",attrs:{src:r("03ecd")}}),e("img",{staticClass:"bottom",attrs:{src:r("58b1")}}),e("div",{staticClass:"style-add"}),e("div",{staticClass:"textbot"},[t._l(t.list,(function(r,n){return e("div",{key:n,staticClass:"li",class:{active:r===t.formValidate}},[e("div",[e("div",{staticClass:"add",on:{click:function(e){return t.add(r,n)}}},[e("Icon",{attrs:{type:"ios-add"}}),e("div",{staticClass:"arrow"})],1),e("div",{staticClass:"tianjia"},t._l(r.sub_button,(function(r,a){return e("div",{key:a,staticClass:"addadd",class:{active:r===t.formValidate},on:{click:function(e){return t.gettem(r,a,n)}}},[t._v("\n\t\t\t\t\t\t\t\t\t\t\t"+t._s(r.name||"二级菜单")+"\n\t\t\t\t\t\t\t\t\t\t")])})),0)]),e("div",{staticClass:"text",on:{click:function(e){return t.gettem(r,n,null)}}},[t._v(t._s(r.name||"一级菜单"))])])})),e("div",{directives:[{name:"show",rawName:"v-show",value:t.list.length<3,expression:"list.length < 3"}],staticClass:"li"},[e("div",{staticClass:"text",on:{click:t.addtext}},[e("Icon",{attrs:{type:"ios-add"}})],1)])],2)]),e("Col",{attrs:{xl:11,lg:12,md:22,sm:22,xs:22}},[null!==t.checkedMenuId?e("Tabs",{attrs:{value:"name1"}},[e("TabPane",{attrs:{label:"菜单信息",name:"name1"}},[e("Row",[e("Col",{staticClass:"userAlert",attrs:{span:"24"}},[e("div",{staticClass:"box-card right"},[e("Alert",{staticClass:"spwidth",attrs:{"show-icon":"",closable:""}},[t._v(" 已添加子菜单,仅可设置菜单名称")]),e("Form",{ref:"formValidate",staticClass:"mt20",attrs:{model:t.formValidate,rules:t.ruleValidate,"label-width":100}},[e("FormItem",{attrs:{label:"菜单名称",prop:"name"}},[e("Input",{staticClass:"spwidth",attrs:{placeholder:"请填写菜单名称"},model:{value:t.formValidate.name,callback:function(e){t.$set(t.formValidate,"name",e)},expression:"formValidate.name"}})],1),e("FormItem",{attrs:{label:"规则状态",prop:"type"}},[e("Select",{staticClass:"spwidth",attrs:{placeholder:"请选择规则状态"},model:{value:t.formValidate.type,callback:function(e){t.$set(t.formValidate,"type",e)},expression:"formValidate.type"}},[e("Option",{attrs:{value:"click"}},[t._v("关键字")]),e("Option",{attrs:{value:"view"}},[t._v("跳转网页")]),e("Option",{attrs:{value:"miniprogram"}},[t._v("小程序")])],1)],1),"click"===t.formValidate.type?e("div",[e("FormItem",{attrs:{label:"关键字",prop:"key"}},[e("Input",{staticClass:"spwidth",attrs:{placeholder:"请填写关键字"},model:{value:t.formValidate.key,callback:function(e){t.$set(t.formValidate,"key",e)},expression:"formValidate.key"}})],1)],1):t._e(),"miniprogram"===t.formValidate.type?e("div",[e("FormItem",{attrs:{label:"appid",prop:"appid"}},[e("Input",{staticClass:"spwidth",attrs:{placeholder:"请填写appid"},model:{value:t.formValidate.appid,callback:function(e){t.$set(t.formValidate,"appid",e)},expression:"formValidate.appid"}})],1),e("FormItem",{attrs:{label:"小程序路径",prop:"pagepath"}},[e("Input",{staticClass:"spwidth",attrs:{placeholder:"请填写小程序路径"},model:{value:t.formValidate.pagepath,callback:function(e){t.$set(t.formValidate,"pagepath",e)},expression:"formValidate.pagepath"}})],1),e("FormItem",{attrs:{label:"备用网页",prop:"url"}},[e("Input",{staticClass:"spwidth",attrs:{placeholder:"请填写备用网页"},model:{value:t.formValidate.url,callback:function(e){t.$set(t.formValidate,"url",e)},expression:"formValidate.url"}})],1)],1):t._e(),"view"===t.formValidate.type?e("div",[e("FormItem",{attrs:{label:"跳转地址",prop:"url"}},[e("Input",{staticClass:"spwidth",attrs:{placeholder:"请填写跳转地址"},model:{value:t.formValidate.url,callback:function(e){t.$set(t.formValidate,"url",e)},expression:"formValidate.url"}})],1)],1):t._e()],1)],1)])],1)],1),e("Button",{attrs:{slot:"extra",size:"small",type:"error"},on:{click:t.deltMenus},slot:"extra"},[t._v("删除")])],1):t._e(),t.isTrue?e("Col",{attrs:{span:24}},[e("Button",{staticClass:"btn-add",attrs:{type:"primary"},on:{click:function(e){return t.submenus("formValidate")}}},[t._v("保存并发布")])],1):t._e()],1)],1)],1)],1)],1)],1)],1),e("Modal",{attrs:{width:"360"},model:{value:t.modal2,callback:function(e){t.modal2=e},expression:"modal2"}},[e("p",{staticClass:"color-add",attrs:{slot:"header"},slot:"header"},[e("Icon",{attrs:{type:"ios-information-circle"}}),e("span",[t._v("删除")])],1),e("div",{staticStyle:{"text-align":"center"}},[e("p",[t._v("确定删除吗?")])]),e("div",{attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"error",size:"large",long:""},on:{click:t.del}},[t._v("确定")])],1)])],1)}),[],!1,null,"d8edfc72",null);e.default=l.exports}}]); |