564-legacy.a26170f5.js 9.5 KB

1
  1. "use strict";(self["webpackChunkyos_manage"]=self["webpackChunkyos_manage"]||[]).push([[564],{8564:function(e,t,a){a.r(t),a.d(t,{default:function(){return L}});var o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"container"},[a("add",{on:{onSuccess:e.onSuccess}}),a("list",{ref:"list",scopedSlots:e._u([{key:"edit",fn:function(t){return[a("edit",{attrs:{data:t.data},on:{onSuccess:e.onSuccess}})]}},{key:"del",fn:function(t){return[a("on-del",{attrs:{data:t.data},on:{onSuccess:e.onSuccess}})]}}])})],1)},l=[],n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.list,size:"small","highlight-current-row":"",border:"",stripe:"","header-cell-style":{background:"#f1f2f3",color:"#333"}}},[a("el-table-column",{attrs:{prop:"rowindex",label:"行",width:"50",align:"center"}}),a("el-table-column",{attrs:{label:"操作",width:"60",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._t("edit",null,{data:t.row})]}}],null,!0)}),a("el-table-column",{attrs:{prop:"systemclient",label:"操作端",width:"120"}}),a("el-table-column",{attrs:{prop:"remarks",label:"描述"}}),a("el-table-column",{attrs:{prop:"appid",label:"appid"}}),a("el-table-column",{attrs:{prop:"secret",label:"secret"}}),a("el-table-column",{attrs:{prop:"mch_id",label:"mch_id"}}),a("el-table-column",{attrs:{prop:"mch_key",label:"mch_key"}}),a("el-table-column",{attrs:{label:"操作",width:"60",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._t("del",null,{data:t.row})]}}],null,!0)})],1)],1)},r=[],s={data:function(){return{param:{classname:"sysmanage.develop.wechatapp.wechatapp",method:"query_wechatappList",content:{}},list:[],total:0,currentPage:0}},methods:{listData:function(){var e=this;this.$api.requested(this.param).then((function(t){e.list=t.data}))}},mounted:function(){this.listData()}},i=s,c=a(1001),m=(0,c.Z)(i,n,r,!1,null,null,null),p=m.exports,u=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{"margin-bottom":"10px"}},[a("el-button",{attrs:{size:"mini",type:"primary",icon:"el-icon-plus"},on:{click:function(t){e.dialogFormVisible=!0}}},[e._v("新 增")]),a("el-dialog",{attrs:{title:"新增",visible:e.dialogFormVisible,width:"500px"},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("el-form",{attrs:{model:e.form,"label-position":"left","label-width":"80px",size:"mini"}},[a("el-form-item",{attrs:{label:"操作端"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择操作端"},model:{value:e.form.systemclient,callback:function(t){e.$set(e.form,"systemclient",t)},expression:"form.systemclient"}},e._l(e.options,(function(e){return a("el-option",{key:e.index,attrs:{label:e.systemclientname,value:e.systemclient}})})),1)],1),a("el-form-item",{attrs:{label:"描述"}},[a("el-input",{attrs:{autocomplete:"off",placeholder:"输入描述"},model:{value:e.form.remarks,callback:function(t){e.$set(e.form,"remarks",t)},expression:"form.remarks"}})],1),a("el-form-item",{attrs:{label:"appid"}},[a("el-input",{attrs:{autocomplete:"off",placeholder:"输入appid"},model:{value:e.form.appid,callback:function(t){e.$set(e.form,"appid",t)},expression:"form.appid"}})],1),a("el-form-item",{attrs:{label:"secret"}},[a("el-input",{attrs:{autocomplete:"off",placeholder:"输入secret"},model:{value:e.form.secret,callback:function(t){e.$set(e.form,"secret",t)},expression:"form.secret"}})],1),a("el-form-item",{attrs:{label:"mch_id"}},[a("el-input",{attrs:{autocomplete:"off",placeholder:"输入mch_id"},model:{value:e.form.mch_id,callback:function(t){e.$set(e.form,"mch_id",t)},expression:"form.mch_id"}})],1),a("el-form-item",{attrs:{label:"mch_key"}},[a("el-input",{attrs:{autocomplete:"off",placeholder:"输入mch_key"},model:{value:e.form.mch_key,callback:function(t){e.$set(e.form,"mch_key",t)},expression:"form.mch_key"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{size:"small"},on:{click:function(t){e.dialogFormVisible=!1}}},[e._v("取 消")]),a("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.submit}},[e._v("确 定")])],1)],1)],1)},d=[],f=a(6198),h=(a(5666),{data:function(){return{dialogFormVisible:!1,options:[],form:{wechatappid:0}}},methods:{optionList:function(){var e=this;return(0,f.Z)(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$api.requested({classname:"sysmanage.develop.optiontype.optiontype",method:"optiontypeselect",content:{pageNumber:1,pageSize:20,typename:"systemclient",parameter:{}}});case 2:a=t.sent,e.options=a.data;case 4:case"end":return t.stop()}}),t)})))()},submit:function(){var e=this;return(0,f.Z)(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$api.requested({classname:"sysmanage.develop.wechatapp.wechatapp",method:"insertormodify_wechatapp",content:e.form});case 2:a=t.sent,1===a.code?(e.$notify({title:"成功",message:"添加成功",type:"success"}),e.dialogFormVisible=!1,e.$emit("onSuccess")):e.$notify({title:"失败",message:a.data,type:"error"});case 4:case"end":return t.stop()}}),t)})))()}},mounted:function(){this.optionList()}}),b=h,y=(0,c.Z)(b,u,d,!1,null,null,null),v=y.exports,_=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{"margin-bottom":"10px",display:"inline"}},[a("el-button",{attrs:{size:"mini",type:"text"},on:{click:e.onShow}},[e._v("编 辑")]),a("el-dialog",{attrs:{title:"新增",visible:e.dialogFormVisible,width:"500px"},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("el-form",{attrs:{model:e.form,"label-position":"left","label-width":"80px",size:"mini"}},[a("el-form-item",{attrs:{label:"操作端"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择操作端"},model:{value:e.form.systemclient,callback:function(t){e.$set(e.form,"systemclient",t)},expression:"form.systemclient"}},e._l(e.options,(function(e){return a("el-option",{key:e.index,attrs:{label:e.systemclientname,value:e.systemclient}})})),1)],1),a("el-form-item",{attrs:{label:"描述"}},[a("el-input",{attrs:{autocomplete:"off",placeholder:"输入描述"},model:{value:e.form.remarks,callback:function(t){e.$set(e.form,"remarks",t)},expression:"form.remarks"}})],1),a("el-form-item",{attrs:{label:"appid"}},[a("el-input",{attrs:{autocomplete:"off",placeholder:"输入appid"},model:{value:e.form.appid,callback:function(t){e.$set(e.form,"appid",t)},expression:"form.appid"}})],1),a("el-form-item",{attrs:{label:"secret"}},[a("el-input",{attrs:{autocomplete:"off",placeholder:"输入secret"},model:{value:e.form.secret,callback:function(t){e.$set(e.form,"secret",t)},expression:"form.secret"}})],1),a("el-form-item",{attrs:{label:"mch_id"}},[a("el-input",{attrs:{autocomplete:"off",placeholder:"输入mch_id"},model:{value:e.form.mch_id,callback:function(t){e.$set(e.form,"mch_id",t)},expression:"form.mch_id"}})],1),a("el-form-item",{attrs:{label:"mch_key"}},[a("el-input",{attrs:{autocomplete:"off",placeholder:"输入mch_key"},model:{value:e.form.mch_key,callback:function(t){e.$set(e.form,"mch_key",t)},expression:"form.mch_key"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{size:"small"},on:{click:function(t){e.dialogFormVisible=!1}}},[e._v("取 消")]),a("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.submit}},[e._v("确 定")])],1)],1)],1)},k=[],g={props:["data"],data:function(){return{dialogFormVisible:!1,options:[],form:{wechatappid:0}}},methods:{onShow:function(){this.dialogFormVisible=!0,this.form=Object.assign({},this.form,this.data)},optionList:function(){var e=this;return(0,f.Z)(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$api.requested({classname:"sysmanage.develop.optiontype.optiontype",method:"optiontypeselect",content:{pageNumber:1,pageSize:20,typename:"systemclient",parameter:{}}});case 2:a=t.sent,e.options=a.data;case 4:case"end":return t.stop()}}),t)})))()},submit:function(){var e=this;return(0,f.Z)(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$api.requested({classname:"sysmanage.develop.wechatapp.wechatapp",method:"insertormodify_wechatapp",content:e.form});case 2:a=t.sent,1===a.code?(e.$notify({title:"成功",message:"添加成功",type:"success"}),e.dialogFormVisible=!1,e.$emit("onSuccess")):e.$notify({title:"失败",message:a.data,type:"error"});case 4:case"end":return t.stop()}}),t)})))()}},mounted:function(){this.optionList()}},w=g,x=(0,c.Z)(w,_,k,!1,null,null,null),$=x.exports,S=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{display:"inline"}},[a("el-popconfirm",{attrs:{title:"确定删除吗?"},on:{confirm:function(t){return e.deleteRow()}}},[a("el-button",{attrs:{slot:"reference",type:"text",size:"small"},slot:"reference"},[e._v("删 除")])],1)],1)},z=[],F={props:["data"],methods:{deleteRow:function(){var e=this;this.$api.requested({classname:"sysmanage.develop.wechatapp.wechatapp",method:"delete_wechatapp",content:{wechatappid:this.data.wechatappid}}).then((function(t){e.$emit("onSuccess")}))}}},V=F,R=(0,c.Z)(V,S,z,!1,null,null,null),Z=R.exports,q={components:{list:p,add:v,edit:$,onDel:Z},methods:{onSuccess:function(){this.$refs.list.listData()}}},C=q,E=(0,c.Z)(C,o,l,!1,null,null,null),L=E.exports}}]);