Commit 0038b041 by xiaohai

build for test

parents f3cfca73 64fa47c7
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>好办管理平台</title><link href=./static/css/app.fe6a98c72223d5961bc29eacca549705.css rel=stylesheet></head><body style="background-color: #f0f2f5;min-width: 1400px;"><div id=app></div><script type=text/javascript src=./static/js/manifest.44a55f0cf4bd6451987f.js></script><script type=text/javascript src=./static/js/vendor.d1e0974b27a1f19c21fc.js></script><script type=text/javascript src=./static/js/app.bd814d8773d1eb5e3785.js></script></body></html> <!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>好办管理平台</title><link href=./static/css/app.ac99d930179b43e88d3d8370997efc82.css rel=stylesheet></head><body style="background-color: #f0f2f5;min-width: 1400px;"><div id=app></div><script type=text/javascript src=./static/js/manifest.6939fcbd5aa1ec1d0c0f.js></script><script type=text/javascript src=./static/js/vendor.d1e0974b27a1f19c21fc.js></script><script type=text/javascript src=./static/js/app.4fd6ab4ba69b63cd2864.js></script></body></html>
\ No newline at end of file \ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
webpackJsonp([22],{CbCS:function(e,t){},Hkzj:function(e,t){},fZsz:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r("mvHQ"),a=r.n(i),n=r("3Xzz"),o=r("l46T"),u=r("Mk6G"),l={name:"limittextarea",props:{inputValue:{type:String,default:""},maxLength:{type:Number,default:10},inputWidth:{type:Number,default:500},getByType:{type:String,default:"word"},holder:{type:String,default:"请输入"}},data:function(){return{inputNum:0,limitLength:10,itemValue:""}},methods:{inputFocus:function(e){console.log(e)},toInput:function(e){console.log(e);var t="";"word"==this.getByType?(t=u.a.getByteVal(e.target.value,this.limitLength),this.itemValue=t.trim(),this.inputNum=u.a.getZhLen(this.itemValue)):(t=u.a.getCharVal(e.target.value,this.limitLength),this.itemValue=t.trim(),this.inputNum=u.a.getByteLen(this.itemValue)),this.$emit("update:inputValue",this.itemValue)}},watch:{maxLength:function(e,t){this.limitLength=e},inputValue:function(e,t){this.itemValue=e,this.inputNum=u.a.getZhLen(this.itemValue)}},mounted:function(){this.limitLength=this.maxLength,this.itemValue=this.inputValue||"",this.inputNum=u.a.getZhLen(this.inputValue)}},s={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"input-line-cell",style:{width:e.inputWidth+"px"}},[r("el-input",{style:{width:e.inputWidth+"px"},attrs:{placeholder:e.holder,type:"textarea",rows:3},on:{focus:function(t){e.inputFocus()}},nativeOn:{keyup:function(t){return r=t,e.toInput(r);var r}},model:{value:e.itemValue,callback:function(t){e.itemValue=t},expression:"itemValue"}}),e._v(" "),r("span",{staticClass:"tip"},[r("span",{staticClass:"len_span"},[e._v(e._s(e.inputNum))]),e._v("/"+e._s(e.limitLength))])],1)},staticRenderFns:[]};var h=r("VU/8")(l,s,!1,function(e){r("CbCS")},"data-v-61f16316",null).exports,m=r("3E4D"),c=r("Ch4/"),d=r("PI0u"),g=r("P9l9"),p={name:"addAdminRole",data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"设置",path:"/companyAddress"},{name:"设置子管理员",path:"/setChildAdmin"},{name:"新增管理员角色",path:""}],showFlag:!1,ruleForm:{roleId:"",roleName:"",remark:"角色说明",leftChecked:[],menuTree:[],left:[],rightChecked:[],right:[],leftCheckedApp:[],leftApp:[],rightCheckedApp:[],rightApp:[]},rules:{roleName:[{required:!0,message:"请填写角色名称",trigger:"change"}],remark:[{required:!0,message:"请填写角色说明",trigger:"change"}]},defaultProps:{children:"children",label:"rightName"}}},computed:{},methods:{submitForm:Object(d.a)(function(e){var t=this,r=this;r.$refs[e].validate(function(e){if(!e)return!1;console.log(t.$refs.tree.getCheckedNodes()),console.log(t.$refs.tree.getCheckedKeys()),console.log(t.$refs.tree.getHalfCheckedKeys());var i=[];t.$refs.tree.getCheckedKeys().concat(t.$refs.tree.getHalfCheckedKeys()).forEach(function(e,t){i.push({rightId:e})}),r.postSave(i)})},500),postSave:function(e){var t=this,r={data:a()(e),roleId:t.ruleForm.roleId,roleName:t.ruleForm.roleName,remark:t.ruleForm.remark,brandId:t.ruleForm.brandId};Object(g.c)("/haoban-manage-web/save-role",r).then(function(e){var r=e.data;if(1==r.errorCode)return m.a.showmsg("操作成功","success"),void t.$router.push("/setChildAdmin");c.a.errorMsg(r)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getMenuList:function(){var e=this;Object(g.c)("/haoban-manage-web/menu-list",{}).then(function(t){var r=t.data;if(1==r.errorCode)return r.result?(e.ruleForm.menuTree=e.treeData(r.result),void(e.ruleForm.roleId&&e.getRoleDetail(e.ruleForm.roleId))):void e.$message.error({message:"菜单列表为空"});c.a.errorMsg(r)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},treeData:function(e){return e.filter(function(t){var r=e.filter(function(e){return t.haobanMenuRightId==e.parentRightId});return r.length>0&&(t.children=r),-1==t.parentRightId})},getRoleDetail:function(e){var t=this,r={roleId:e};Object(g.c)("/haoban-manage-web/role-detail",r).then(function(e){var r=e.data;if(1==r.errorCode){if(t.ruleForm.roleId=r.result.role.roleId,t.ruleForm.roleName=r.result.role.roleName,t.ruleForm.roleCode=r.result.role.roleCode,t.ruleForm.remark=r.result.role.remark,t.ruleForm.right.length){var i=t.ruleForm.right.map(function(e){return e.rightId}),a=[];r.result.menuRightList.forEach(function(e,t){i.includes(e.rightId)&&a.push(e.rightId)}),t.ruleForm.rightChecked=a}var n=[];return r.result.menuRightList.forEach(function(e,r){t.$refs.tree.getNode(e.rightId).isLeaf&&n.push(e.rightId)}),void t.$refs.tree.setCheckedKeys(n)}c.a.errorMsg(r)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},leftChange:function(e,t){var r=this;r.ruleForm.leftChecked=e;var i=e.includes(t[0]);function a(){r.ruleForm.right=[],r.ruleForm.left.forEach(function(e,a){e.rightId.includes(t[0])&&(e.check=!!i,e.children&&e.children.length&&e.children.forEach(function(e,t){r.ruleForm.right.push(e)}))})}e.includes(t[0]),a(),r.ruleForm.rightChecked=r.ruleForm.right.map(function(e){if(!0===e.check)return e.rightId})},rightChange:function(e,t){var r=e.includes(t[0]);this.ruleForm.rightChecked=e,this.ruleForm.left.forEach(function(e,i){e.children&&e.children.length&&e.children.forEach(function(e,i){e.rightId.includes(t[0])&&(e.check=!!r)})})},leftChangeApp:function(e,t){},rightChangeApp:function(e,t){}},mounted:function(){this.getMenuList(),this.$route.query.hasOwnProperty("roleId")&&(this.ruleForm.roleId=this.$route.query.roleId,this.navpath[3].name="管理员角色","show"===this.$route.query.type&&(this.showFlag=!0)),this.$route.query.hasOwnProperty("brandId")&&(this.ruleForm.brandId=this.$route.query.brandId)},components:{navCrumb:n.a,limitInput:o.a,limitTextarea:h}},f={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"companyAddress-wrap common-set-wrap"},[r("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),r("div",{staticClass:"right-content"},[r("div",{staticClass:"right-box"},[r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"角色名称",prop:"roleName"}},[r("limitInput",{attrs:{inputWidth:500,inputValue:e.ruleForm.roleName,holder:"请输入角色名称",maxLength:20},on:{"update:inputValue":function(t){e.$set(e.ruleForm,"roleName",t)}}})],1),e._v(" "),r("el-form-item",{attrs:{label:"角色说明",prop:"remark"}},[r("limitTextarea",{attrs:{inputWidth:500,inputValue:e.ruleForm.remark,holder:"请输入角色说明",maxLength:50},on:{"update:inputValue":function(t){e.$set(e.ruleForm,"remark",t)}}})],1),e._v(" "),r("el-form-item",{attrs:{label:"菜单权限",prop:"leftChecked"}},[r("div",{staticClass:"w-500 border-1 p-10 border-box el-form-item_menu"},[r("el-tree",{ref:"tree",attrs:{data:e.ruleForm.menuTree,"show-checkbox":"","default-expand-all":"","node-key":"rightId","highlight-current":"",props:e.defaultProps}})],1)]),e._v(" "),r("el-form-item",[r("el-button",{attrs:{disabled:!!e.showFlag,type:"primary"},on:{click:function(t){e.submitForm("ruleForm")}}},[e._v("保存")])],1)],1)],1)]),e._v(" "),r("vue-gic-footer")],1)},staticRenderFns:[]};var v=r("VU/8")(p,f,!1,function(e){r("Hkzj")},"data-v-42109cea",null);t.default=v.exports}});
//# sourceMappingURL=22.5b0dae7cd94938cd8f18.js.map
\ No newline at end of file
webpackJsonp([22],{Hkzj:function(e,t){},WcUP:function(e,t){},fZsz:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r("mvHQ"),i=r.n(a),n=r("3Xzz"),u=r("l46T"),o=r("Mk6G"),l={name:"limittextarea",props:{inputValue:{type:String,default:""},maxLength:{type:Number,default:10},inputWidth:{type:Number,default:500},getByType:{type:String,default:"word"},holder:{type:String,default:"请输入"}},data:function(){return{inputNum:0,limitLength:10,itemValue:""}},methods:{inputFocus:function(e){},toInput:function(e){var t="";"word"==this.getByType?(t=o.a.getByteVal(e.target.value,this.limitLength),this.itemValue=t.trim(),this.inputNum=o.a.getZhLen(this.itemValue)):(t=o.a.getCharVal(e.target.value,this.limitLength),this.itemValue=t.trim(),this.inputNum=o.a.getByteLen(this.itemValue)),this.$emit("update:inputValue",this.itemValue)}},watch:{maxLength:function(e,t){this.limitLength=e},inputValue:function(e,t){this.itemValue=e,this.inputNum=o.a.getZhLen(this.itemValue)}},mounted:function(){this.limitLength=this.maxLength,this.itemValue=this.inputValue||"",this.inputNum=o.a.getZhLen(this.inputValue)}},s={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"input-line-cell",style:{width:e.inputWidth+"px"}},[r("el-input",{style:{width:e.inputWidth+"px"},attrs:{placeholder:e.holder,type:"textarea",rows:3},on:{focus:function(t){e.inputFocus()}},nativeOn:{keyup:function(t){return r=t,e.toInput(r);var r}},model:{value:e.itemValue,callback:function(t){e.itemValue=t},expression:"itemValue"}}),e._v(" "),r("span",{staticClass:"tip"},[r("span",{staticClass:"len_span"},[e._v(e._s(e.inputNum))]),e._v("/"+e._s(e.limitLength))])],1)},staticRenderFns:[]};var h=r("VU/8")(l,s,!1,function(e){r("WcUP")},"data-v-b43a1af2",null).exports,m=r("3E4D"),c=r("Ch4/"),d=r("PI0u"),p=r("P9l9"),f={name:"addAdminRole",data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"设置",path:"/companyAddress"},{name:"设置子管理员",path:"/setChildAdmin"},{name:"新增管理员角色",path:""}],showFlag:!1,ruleForm:{roleId:"",roleName:"",remark:"角色说明",leftChecked:[],menuTree:[],left:[],rightChecked:[],right:[],leftCheckedApp:[],leftApp:[],rightCheckedApp:[],rightApp:[]},rules:{roleName:[{required:!0,message:"请填写角色名称",trigger:"change"}],remark:[{required:!0,message:"请填写角色说明",trigger:"change"}]},defaultProps:{children:"children",label:"rightName"}}},computed:{},methods:{submitForm:Object(d.a)(function(e){var t=this,r=this;r.$refs[e].validate(function(e){if(!e)return!1;console.log(t.$refs.tree.getCheckedNodes()),console.log(t.$refs.tree.getCheckedKeys()),console.log(t.$refs.tree.getHalfCheckedKeys());var a=[];t.$refs.tree.getCheckedKeys().concat(t.$refs.tree.getHalfCheckedKeys()).forEach(function(e,t){a.push({rightId:e})}),r.postSave(a)})},500),postSave:function(e){var t=this,r={data:i()(e),roleId:t.ruleForm.roleId,roleName:t.ruleForm.roleName,remark:t.ruleForm.remark,brandId:t.ruleForm.brandId};Object(p.c)("/haoban-manage-web/save-role",r).then(function(e){var r=e.data;if(1==r.errorCode)return m.a.showmsg("操作成功","success"),void t.$router.push("/setChildAdmin");c.a.errorMsg(r)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getMenuList:function(){var e=this;Object(p.c)("/haoban-manage-web/menu-list",{}).then(function(t){var r=t.data;if(1==r.errorCode)return r.result?(e.ruleForm.menuTree=e.treeData(r.result),void(e.ruleForm.roleId&&e.getRoleDetail(e.ruleForm.roleId))):void e.$message.error({message:"菜单列表为空"});c.a.errorMsg(r)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},treeData:function(e){return e.filter(function(t){var r=e.filter(function(e){return t.haobanMenuRightId==e.parentRightId});return r.length>0&&(t.children=r),-1==t.parentRightId})},getRoleDetail:function(e){var t=this,r={roleId:e};Object(p.c)("/haoban-manage-web/role-detail",r).then(function(e){var r=e.data;if(1==r.errorCode){if(t.ruleForm.roleId=r.result.role.roleId,t.ruleForm.roleName=r.result.role.roleName,t.ruleForm.roleCode=r.result.role.roleCode,t.ruleForm.remark=r.result.role.remark,t.ruleForm.right.length){var a=t.ruleForm.right.map(function(e){return e.rightId}),i=[];r.result.menuRightList.forEach(function(e,t){a.includes(e.rightId)&&i.push(e.rightId)}),t.ruleForm.rightChecked=i}var n=[];return r.result.menuRightList.forEach(function(e,r){t.$refs.tree.getNode(e.rightId).isLeaf&&n.push(e.rightId)}),void t.$refs.tree.setCheckedKeys(n)}c.a.errorMsg(r)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},leftChange:function(e,t){var r=this;r.ruleForm.leftChecked=e;var a=e.includes(t[0]);function i(){r.ruleForm.right=[],r.ruleForm.left.forEach(function(e,i){e.rightId.includes(t[0])&&(e.check=!!a,e.children&&e.children.length&&e.children.forEach(function(e,t){r.ruleForm.right.push(e)}))})}e.includes(t[0]),i(),r.ruleForm.rightChecked=r.ruleForm.right.map(function(e){if(!0===e.check)return e.rightId})},rightChange:function(e,t){var r=e.includes(t[0]);this.ruleForm.rightChecked=e,this.ruleForm.left.forEach(function(e,a){e.children&&e.children.length&&e.children.forEach(function(e,a){e.rightId.includes(t[0])&&(e.check=!!r)})})},leftChangeApp:function(e,t){},rightChangeApp:function(e,t){}},mounted:function(){this.getMenuList(),this.$route.query.hasOwnProperty("roleId")&&(this.ruleForm.roleId=this.$route.query.roleId,this.navpath[3].name="管理员角色","show"===this.$route.query.type&&(this.showFlag=!0)),this.$route.query.hasOwnProperty("brandId")&&(this.ruleForm.brandId=this.$route.query.brandId)},components:{navCrumb:n.a,limitInput:u.a,limitTextarea:h}},g={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"companyAddress-wrap common-set-wrap"},[r("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),r("div",{staticClass:"right-content"},[r("div",{staticClass:"right-box"},[r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"角色名称",prop:"roleName"}},[r("limitInput",{attrs:{inputWidth:500,inputValue:e.ruleForm.roleName,holder:"请输入角色名称",maxLength:20},on:{"update:inputValue":function(t){e.$set(e.ruleForm,"roleName",t)}}})],1),e._v(" "),r("el-form-item",{attrs:{label:"角色说明",prop:"remark"}},[r("limitTextarea",{attrs:{inputWidth:500,inputValue:e.ruleForm.remark,holder:"请输入角色说明",maxLength:50},on:{"update:inputValue":function(t){e.$set(e.ruleForm,"remark",t)}}})],1),e._v(" "),r("el-form-item",{attrs:{label:"菜单权限",prop:"leftChecked"}},[r("div",{staticClass:"w-500 border-1 p-10 border-box el-form-item_menu"},[r("el-tree",{ref:"tree",attrs:{data:e.ruleForm.menuTree,"show-checkbox":"","default-expand-all":"","node-key":"rightId","highlight-current":"",props:e.defaultProps}})],1)]),e._v(" "),r("el-form-item",[r("el-button",{attrs:{disabled:!!e.showFlag,type:"primary"},on:{click:function(t){e.submitForm("ruleForm")}}},[e._v("保存")])],1)],1)],1)]),e._v(" "),r("vue-gic-footer")],1)},staticRenderFns:[]};var v=r("VU/8")(f,g,!1,function(e){r("Hkzj")},"data-v-42109cea",null);t.default=v.exports}});
//# sourceMappingURL=22.9f2f4a34a254791bf2b9.js.map
\ No newline at end of file
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(a,d,n){for(var r,t,o,i=0,u=[];i<a.length;i++)t=a[i],f[t]&&u.push(f[t][0]),f[t]=0;for(r in d)Object.prototype.hasOwnProperty.call(d,r)&&(e[r]=d[r]);for(c&&c(a,d,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=b(b.s=n[i]);return o};var a={},f={44:0};function b(c){if(a[c])return a[c].exports;var f=a[c]={i:c,l:!1,exports:{}};return e[c].call(f.exports,f,f.exports,b),f.l=!0,f.exports}b.e=function(e){var c=f[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var a=new Promise(function(a,b){c=f[e]=[a,b]});c[2]=a;var d=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.async=!0,n.timeout=12e4,b.nc&&n.setAttribute("nonce",b.nc),n.src=b.p+"static/js/"+e+"."+{0:"c322a8d7a6aee3caf574",1:"26fc7c6e9b4ccca95f46",2:"c921b784cd9866fc2119",3:"9675edf3a07aab339cae",4:"9e34466fef2ef248ca0c",5:"99de65a5299386a5dbde",6:"1cfc190be082172b30c3",7:"7dd5cec14beeeab787bf",8:"bd1db87f0f7dbf7f63f1",9:"6e5bc5c28642010e5bcb",10:"0d259e3bdad25b2030ef",11:"53b51edcd2946b6cd57b",12:"08b3df5c992e0c2bc3f4",13:"99554cee676335f897f4",14:"f9ca5521ae28f1a6133c",15:"f1c170ecb1ba3d64a91a",16:"72aa19fc4caf7e652558",17:"5f9f480435b384f2d24d",18:"a4bd9646fc679c9774bc",19:"39879d07beb4c6b71c52",20:"48c7dac836dc8f07b246",21:"02ca463f69f7571bd2ec",22:"5b0dae7cd94938cd8f18",23:"8bdcbf73d437071cd6c1",24:"6223040cddeb2d2bac5e",25:"a9a2240b48812f3d720b",26:"41fc6720150265026ad6",27:"58e40a781767d6df006a",28:"2e050c085cfe8a68b811",29:"7abdbe57ceb52bef3632",30:"669692b008e2361e5702",31:"a19283647feeec3a235c",32:"c9c3a557a4afeb126745",33:"ae0cbb4cbd476024d398",34:"19de8bb2d781fcc4b458",35:"0772d7db75c657bea215",36:"a5361d59041e1fe85343",37:"bf8d8c8ccb36bc065e78",38:"af05b5b6cc28a922ade4",39:"cadd1af4e87c221a02bf",40:"ccdfb0e6a79e7b30e4e4",43:"ebcd3aad25b0a21bd550"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var c=f[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),f[e]=void 0)}return n.onerror=n.onload=t,d.appendChild(n),a},b.m=e,b.c=a,b.d=function(e,c,a){b.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:a})},b.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return b.d(c,"a",c),c},b.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},b.p="./",b.oe=function(e){throw console.error(e),e}}([]);
//# sourceMappingURL=manifest.44a55f0cf4bd6451987f.js.map
\ No newline at end of file
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(a,n,r){for(var t,d,o,i=0,u=[];i<a.length;i++)d=a[i],b[d]&&u.push(b[d][0]),b[d]=0;for(t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t]);for(c&&c(a,n,r);u.length;)u.shift()();if(r)for(i=0;i<r.length;i++)o=f(f.s=r[i]);return o};var a={},b={44:0};function f(c){if(a[c])return a[c].exports;var b=a[c]={i:c,l:!1,exports:{}};return e[c].call(b.exports,b,b.exports,f),b.l=!0,b.exports}f.e=function(e){var c=b[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var a=new Promise(function(a,f){c=b[e]=[a,f]});c[2]=a;var n=document.getElementsByTagName("head")[0],r=document.createElement("script");r.type="text/javascript",r.charset="utf-8",r.async=!0,r.timeout=12e4,f.nc&&r.setAttribute("nonce",f.nc),r.src=f.p+"static/js/"+e+"."+{0:"c322a8d7a6aee3caf574",1:"26fc7c6e9b4ccca95f46",2:"c921b784cd9866fc2119",3:"9675edf3a07aab339cae",4:"9e34466fef2ef248ca0c",5:"99de65a5299386a5dbde",6:"1cfc190be082172b30c3",7:"7dd5cec14beeeab787bf",8:"3f40d95f89b6a2161e86",9:"6e5bc5c28642010e5bcb",10:"0d259e3bdad25b2030ef",11:"53b51edcd2946b6cd57b",12:"08b3df5c992e0c2bc3f4",13:"99554cee676335f897f4",14:"f9ca5521ae28f1a6133c",15:"f1c170ecb1ba3d64a91a",16:"7523f32e3573b4abfe8e",17:"dc7a17a5d3035d7983b3",18:"a4bd9646fc679c9774bc",19:"39879d07beb4c6b71c52",20:"48c7dac836dc8f07b246",21:"02ca463f69f7571bd2ec",22:"9f2f4a34a254791bf2b9",23:"8bdcbf73d437071cd6c1",24:"6223040cddeb2d2bac5e",25:"a9a2240b48812f3d720b",26:"41fc6720150265026ad6",27:"58e40a781767d6df006a",28:"2e050c085cfe8a68b811",29:"7abdbe57ceb52bef3632",30:"669692b008e2361e5702",31:"a19283647feeec3a235c",32:"c9c3a557a4afeb126745",33:"ae0cbb4cbd476024d398",34:"19de8bb2d781fcc4b458",35:"0772d7db75c657bea215",36:"a5361d59041e1fe85343",37:"bf8d8c8ccb36bc065e78",38:"af05b5b6cc28a922ade4",39:"cadd1af4e87c221a02bf",40:"ccdfb0e6a79e7b30e4e4",43:"ebcd3aad25b0a21bd550"}[e]+".js";var t=setTimeout(d,12e4);function d(){r.onerror=r.onload=null,clearTimeout(t);var c=b[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),b[e]=void 0)}return r.onerror=r.onload=d,n.appendChild(r),a},f.m=e,f.c=a,f.d=function(e,c,a){f.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:a})},f.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return f.d(c,"a",c),c},f.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},f.p="./",f.oe=function(e){throw console.error(e),e}}([]);
//# sourceMappingURL=manifest.6939fcbd5aa1ec1d0c0f.js.map
\ No newline at end of file
...@@ -63,14 +63,11 @@ ...@@ -63,14 +63,11 @@
}, },
methods: { methods: {
inputFocus(num) { inputFocus(num) {
const that = this const that = this;
console.log(num)
}, },
// 输入 // 输入
toInput: function(value) { toInput: function(value) {
const that = this; const that = this;
console.log(value)
let temp = ''; let temp = '';
if (that.getByType == 'word') { if (that.getByType == 'word') {
temp = strLength.getByteVal(value.target.value,that.limitLength) temp = strLength.getByteVal(value.target.value,that.limitLength)
...@@ -81,23 +78,19 @@ ...@@ -81,23 +78,19 @@
that.itemValue= temp.trim() that.itemValue= temp.trim()
that.inputNum = strLength.getByteLen(that.itemValue); that.inputNum = strLength.getByteLen(that.itemValue);
} }
that.$emit('update:inputValue',that.itemValue);
that.$emit('update:inputValue',that.itemValue)
}, },
}, },
watch: { watch: {
maxLength: function(newData,oldData){ maxLength: function(newData,oldData){
const that = this; const that = this;
that.limitLength = newData that.limitLength = newData;
}, },
inputValue: function(newData,oldData){ inputValue: function(newData,oldData){
const that = this; const that = this;
that.itemValue = newData that.itemValue = newData;
that.inputNum = strLength.getZhLen(that.itemValue) that.inputNum = strLength.getZhLen(that.itemValue);
}, },
}, },
/* 接收数据 */ /* 接收数据 */
mounted(){ mounted(){
......
...@@ -55,9 +55,8 @@ export default { ...@@ -55,9 +55,8 @@ export default {
} }
}, },
beforeMount() { beforeMount() {
var that = this const that = this
var host = window.location.origin; let host = window.location.origin;
console.log("当前host:",host)
if (host.indexOf('localhost') != '-1') { if (host.indexOf('localhost') != '-1') {
that.baseUrl = 'http://www.gicdev.com'; that.baseUrl = 'http://www.gicdev.com';
}else { }else {
...@@ -74,37 +73,31 @@ export default { ...@@ -74,37 +73,31 @@ export default {
const that = this const that = this
let host = window.location.origin; let host = window.location.origin;
let baseUrl; let baseUrl;
console.log("当前host:",host)
if (host.indexOf('localhost') != '-1') { if (host.indexOf('localhost') != '-1') {
baseUrl = 'http://www.gicdev.com'; baseUrl = 'http://www.gicdev.com';
}else { }else {
baseUrl = host baseUrl = host;
} }
that.upUrl = baseUrl + '/haoban-manage-web/upload-img' that.upUrl = baseUrl + '/haoban-manage-web/upload-img';
console.log(that.upUrl) return that.upUrl;
return that.upUrl
}, },
/** /**
* 上传图片 * 上传图片
*/ */
handleAvatarSuccess(res, file,type) { handleAvatarSuccess(res, file,type) {
var that = this const that = this;
console.log("上传成功回调:",res,type)
if (res.errorCode == 1) { if (res.errorCode == 1) {
that.$emit('update:imgSrc',res.result[0].qcloudImageUrl) that.$emit('update:imgSrc',res.result[0].qcloudImageUrl);
}else { }else {
errMsg.errorMsg(res) errMsg.errorMsg(res);
} }
}, },
beforeAvatarUpload(file) { beforeAvatarUpload(file) {
var that = this const that = this;
const isJPG = file.type === 'image/jpeg' || file.type === 'image/jpg'|| file.type === 'image/png' || file.type === 'image/gif' || file.type === 'image/bmg'; const isJPG = file.type === 'image/jpeg' || file.type === 'image/jpg'|| file.type === 'image/png' || file.type === 'image/gif' || file.type === 'image/bmg';
const isLt2M = file.size / 1024 / 1024 < that.uploadLimit; const isLt2M = file.size / 1024 / 1024 < that.uploadLimit;
// if (!isJPG) { // if (!isJPG) {
// that.$message.error('上传头像图片只能是 JPG 格式!'); // that.$message.error('上传头像图片只能是 JPG 格式!');
// } // }
...@@ -127,7 +120,6 @@ export default { ...@@ -127,7 +120,6 @@ export default {
}; };
image.src = event.target.result; image.src = event.target.result;
// that.$emit('update:imgSrc',event.target.result) // that.$emit('update:imgSrc',event.target.result)
console.log("上传成功:",event.target.result)
}; };
reader.readAsDataURL(file); reader.readAsDataURL(file);
}) })
...@@ -137,7 +129,7 @@ export default { ...@@ -137,7 +129,7 @@ export default {
* 上传图片预览 * 上传图片预览
*/ */
showImage(src) { showImage(src) {
const that = this const that = this;
if(!src || src == ''){ if(!src || src == ''){
return false; return false;
} }
...@@ -145,10 +137,9 @@ export default { ...@@ -145,10 +137,9 @@ export default {
that.imgUrl = src; that.imgUrl = src;
}, },
hideImage(val) { hideImage(val) {
const that = this const that = this;
that.imgShowFlag = val that.imgShowFlag = val;
} }
}, },
mounted() { mounted() {
......
...@@ -1208,7 +1208,7 @@ export default { ...@@ -1208,7 +1208,7 @@ export default {
let resData = res.data; let resData = res.data;
if (resData.errorCode == 1) { if (resData.errorCode == 1) {
showMsg.showmsg('保存成功','success'); showMsg.showmsg('保存成功','success');
that.changeRoute('/memberCardSet'); that.changeRoute('/fileSet');
return; return;
} }
errMsg.errorMsg(resData); errMsg.errorMsg(resData);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment