王总上门按摩后台代码
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 line
7.4 KiB

5 months ago
webpackJsonp([49],{"49/z":function(t,e){},OrNc:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("mvHQ"),i=a.n(n),r=a("Xxa5"),s=a.n(r),o=a("exGp"),c=a.n(o),l=a("PJh5"),u=a.n(l),m={data:function(){return{bind_technician_img:"https://lbqnyv2.migugu.com/bianzu18.png",subForm:{bind_technician_img:[],agent_article_id:"",agent_article_title:""},subFormRules:{bind_technician_img:{required:!0,type:"array",message:"请选择绑定"+this.$t("action.attendantName")+"背景图",trigger:"blur"}},showDialog:!1,loading:!1,searchForm:{page:1,limit:10,title:"",status:1},tableData:[],total:0}},created:function(){this.getFormInfo()},methods:{getFormInfo:function(){var t=this;return c()(s.a.mark(function e(){var a,n,i,r;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.$api.system.configInfo();case 2:if(a=e.sent,n=a.code,i=a.data,200===n){e.next=7;break}return e.abrupt("return");case 7:for(r in i.bind_technician_img=i.bind_technician_img&&i.bind_technician_img.length>0?[{url:i.bind_technician_img}]:[],t.subForm)t.subForm[r]=i[r];case 9:case"end":return e.stop()}},e,t)}))()},getCover:function(t,e){this.subForm[e]=t},toReset:function(t){this.subForm[t]=[{url:this[t]}],this.submitForm()},resetForm:function(t){this.$refs[t].resetFields(),this.getTableDataList(1)},handleSizeChange:function(t){this.searchForm.limit=t,this.handleCurrentChange(1)},handleCurrentChange:function(t){this.searchForm.page=t,this.getTableDataList()},getTableDataList:function(t){var e=this;return c()(s.a.mark(function a(){var n,r,o,c;return s.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return t&&(e.searchForm.page=1),e.tableData=[],e.loading=!0,n=JSON.parse(i()(e.searchForm)),a.next=6,e.$api.market.articleList(n);case 6:if(r=a.sent,o=r.code,c=r.data,e.loading=!1,200===o){a.next=12;break}return a.abrupt("return");case 12:e.tableData=c.data,e.total=c.total;case 14:case"end":return a.stop()}},a,e)}))()},toShowDialog:function(){var t=this;return c()(s.a.mark(function e(){return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t.searchForm.title="",e.next=3,t.getTableDataList(1);case 3:t.showDialog=!t.showDialog;case 4:case"end":return e.stop()}},e,t)}))()},toClose:function(){this.subForm.agent_article_id="",this.subForm.agent_article_title=""},handleSelectionChange:function(t){t=JSON.parse(i()(t)),this.currentRow=t},handleDialogConfirm:function(){if(null!==this.currentRow&&this.currentRow.id){var t=this.currentRow,e=t.id,a=void 0===e?0:e,n=t.title,i=void 0===n?"":n;this.subForm.agent_article_id=a,this.subForm.agent_article_title=i,this.showDialog=!1}else this.$message.error("请选择文章")},submitForm:function(){var t=this;return c()(s.a.mark(function e(){var a,n;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(a=!1,t.$refs.subForm.validate(function(t){t&&(a=!0)}),(n=JSON.parse(i()(t.subForm))).bind_technician_img=n.bind_technician_img[0].url,delete n.agent_article_title,!a){e.next=9;break}return e.next=8,t.$api.system.configUpdate(n);case 8:t.$message.success(t.$t("tips.successSub"));case 9:case"end":return e.stop()}},e,t)}))()}},filters:{handleTime:function(t,e){return 1===e?u()(1e3*t).format("YYYY-MM-DD"):2===e?u()(1e3*t).format("HH:mm:ss"):u()(1e3*t).format("YYYY-MM-DD HH:mm:ss")}}},h={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"lb-system-wechat"},[a("top-nav"),t._v(" "),a("div",{staticClass:"page-main"},[a("el-form",{ref:"subForm",staticClass:"config-form",attrs:{model:t.subForm,rules:t.subFormRules,"label-width":"180px"},nativeOn:{submit:function(t){t.preventDefault()}}},[a("el-form-item",{attrs:{label:"绑定"+t.$t("action.attendantName")+"背景图",prop:"bind_technician_img"}},[a("lb-cover",{attrs:{fileList:t.subForm.bind_technician_img},on:{selectedFiles:function(e){return t.getCover(e,"bind_technician_img")}}}),t._v(" "),a("lb-tool-tips",[t._v("邀请"+t._s(t.$t("action.attendantName"))+"推广图,图片建议尺寸:710 *\n 1138\n "),a("div",{staticClass:"mt-sm"},[t._v("\n