Commit 64fa47c7 by 无尘

fix: 修改路由

parent 9a8fb2ba
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>好办管理平台</title><link href=./static/css/app.ed47fe5b3733f564c7c712db1a449036.css rel=stylesheet></head><body style="background-color: #f0f2f5;min-width: 1400px;"><div id=app></div><script type=text/javascript src=./static/js/manifest.1fd21937b32cc1c4ab19.js></script><script type=text/javascript src=./static/js/vendor.21e5bf5f947fe70cf378.js></script><script type=text/javascript src=./static/js/app.c630518614409a680450.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.b4c040922a77f0e70e6ec4f33db418a1.css rel=stylesheet></head><body style="background-color: #f0f2f5;min-width: 1400px;"><div id=app></div><script type=text/javascript src=./static/js/manifest.6c9422471ad08413e288.js></script><script type=text/javascript src=./static/js/vendor.21e5bf5f947fe70cf378.js></script><script type=text/javascript src=./static/js/app.c630518614409a680450.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],{"7ACH":function(e,t){},TtHo: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){},toInput:function(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("7ACH")},"data-v-7034121b",null).exports,m=r("3E4D"),d=r("Ch4/"),c=r("PI0u"),p=r("P9l9"),g={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(c.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(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");d.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:"菜单列表为空"});d.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 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)}d.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")(g,f,!1,function(e){r("TtHo")},"data-v-3cbba47e",null);t.default=v.exports}});
//# sourceMappingURL=22.5d01f0e644934ebf7143.js.map
\ No newline at end of file
webpackJsonp([22],{CbCS:function(e,t){},TtHo: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("TtHo")},"data-v-3cbba47e",null);t.default=v.exports}});
//# sourceMappingURL=22.e9f283fb70f609999dae.js.map
\ No newline at end of file
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(a,r,t){for(var d,b,o,i=0,u=[];i<a.length;i++)b=a[i],f[b]&&u.push(f[b][0]),f[b]=0;for(d in r)Object.prototype.hasOwnProperty.call(r,d)&&(e[d]=r[d]);for(c&&c(a,r,t);u.length;)u.shift()();if(t)for(i=0;i<t.length;i++)o=n(n.s=t[i]);return o};var a={},f={44:0};function n(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,n),f.l=!0,f.exports}n.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,n){c=f[e]=[a,n]});c[2]=a;var r=document.getElementsByTagName("head")[0],t=document.createElement("script");t.type="text/javascript",t.charset="utf-8",t.async=!0,t.timeout=12e4,n.nc&&t.setAttribute("nonce",n.nc),t.src=n.p+"static/js/"+e+"."+{0:"74b4a74971375317ac21",1:"26fc7c6e9b4ccca95f46",2:"c921b784cd9866fc2119",3:"9675edf3a07aab339cae",4:"9e34466fef2ef248ca0c",5:"99de65a5299386a5dbde",6:"2a30db3008d356a25668",7:"605434407b819cb4eee7",8:"bd1db87f0f7dbf7f63f1",9:"9ea1a6cc13ca1eaffde0",10:"3c04a0b76ee3c073a467",11:"145699dbfd30358854dc",12:"79da425f48d203477382",13:"c34acd28eca3f5688cba",14:"f9ca5521ae28f1a6133c",15:"f1c170ecb1ba3d64a91a",16:"1dfd39be99146e0ffb30",17:"b02da0a0ea84450f769e",18:"a4bd9646fc679c9774bc",19:"39879d07beb4c6b71c52",20:"48c7dac836dc8f07b246",21:"02ca463f69f7571bd2ec",22:"e9f283fb70f609999dae",23:"8bdcbf73d437071cd6c1",24:"6223040cddeb2d2bac5e",25:"a9a2240b48812f3d720b",26:"41fc6720150265026ad6",27:"5fedb7ca55c6e210ba23",28:"237809603e9db67ad49c",29:"d4d40136731c7f1f3b42",30:"c358e58f5de46b2c7244",31:"288a8c4c19cf954efe75",32:"0490b91ee26e2bd51244",33:"f446d2ce1a2283417fc5",34:"08693f218e8ea1a3155a",35:"098ff323198bd22ac07c",36:"8d6567118bffbb71b995",37:"977e084e8593bc3d0701",38:"75cc2777cc6907b6dbc2",39:"a7707fb27996325fd455",40:"8b30395e010f2bebad13",43:"13848f214bb993c20004"}[e]+".js";var d=setTimeout(b,12e4);function b(){t.onerror=t.onload=null,clearTimeout(d);var c=f[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),f[e]=void 0)}return t.onerror=t.onload=b,r.appendChild(t),a},n.m=e,n.c=a,n.d=function(e,c,a){n.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:a})},n.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(c,"a",c),c},n.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},n.p="./",n.oe=function(e){throw console.error(e),e}}([]); !function(e){var c=window.webpackJsonp;window.webpackJsonp=function(a,r,t){for(var d,o,b,i=0,u=[];i<a.length;i++)o=a[i],f[o]&&u.push(f[o][0]),f[o]=0;for(d in r)Object.prototype.hasOwnProperty.call(r,d)&&(e[d]=r[d]);for(c&&c(a,r,t);u.length;)u.shift()();if(t)for(i=0;i<t.length;i++)b=n(n.s=t[i]);return b};var a={},f={44:0};function n(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,n),f.l=!0,f.exports}n.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,n){c=f[e]=[a,n]});c[2]=a;var r=document.getElementsByTagName("head")[0],t=document.createElement("script");t.type="text/javascript",t.charset="utf-8",t.async=!0,t.timeout=12e4,n.nc&&t.setAttribute("nonce",n.nc),t.src=n.p+"static/js/"+e+"."+{0:"74b4a74971375317ac21",1:"26fc7c6e9b4ccca95f46",2:"c921b784cd9866fc2119",3:"9675edf3a07aab339cae",4:"9e34466fef2ef248ca0c",5:"99de65a5299386a5dbde",6:"2a30db3008d356a25668",7:"605434407b819cb4eee7",8:"5916799f79a22b3cfd66",9:"9ea1a6cc13ca1eaffde0",10:"3c04a0b76ee3c073a467",11:"145699dbfd30358854dc",12:"79da425f48d203477382",13:"c34acd28eca3f5688cba",14:"f9ca5521ae28f1a6133c",15:"f1c170ecb1ba3d64a91a",16:"49275f92ba015cb7343e",17:"b02da0a0ea84450f769e",18:"a4bd9646fc679c9774bc",19:"39879d07beb4c6b71c52",20:"48c7dac836dc8f07b246",21:"02ca463f69f7571bd2ec",22:"5d01f0e644934ebf7143",23:"8bdcbf73d437071cd6c1",24:"6223040cddeb2d2bac5e",25:"a9a2240b48812f3d720b",26:"41fc6720150265026ad6",27:"5fedb7ca55c6e210ba23",28:"237809603e9db67ad49c",29:"d4d40136731c7f1f3b42",30:"c358e58f5de46b2c7244",31:"288a8c4c19cf954efe75",32:"0490b91ee26e2bd51244",33:"f446d2ce1a2283417fc5",34:"08693f218e8ea1a3155a",35:"098ff323198bd22ac07c",36:"8d6567118bffbb71b995",37:"977e084e8593bc3d0701",38:"75cc2777cc6907b6dbc2",39:"a7707fb27996325fd455",40:"8b30395e010f2bebad13",43:"13848f214bb993c20004"}[e]+".js";var d=setTimeout(o,12e4);function o(){t.onerror=t.onload=null,clearTimeout(d);var c=f[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),f[e]=void 0)}return t.onerror=t.onload=o,r.appendChild(t),a},n.m=e,n.c=a,n.d=function(e,c,a){n.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:a})},n.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(c,"a",c),c},n.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},n.p="./",n.oe=function(e){throw console.error(e),e}}([]);
//# sourceMappingURL=manifest.1fd21937b32cc1c4ab19.js.map //# sourceMappingURL=manifest.6c9422471ad08413e288.js.map
\ No newline at end of file \ 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