UI更新,自动登录

This commit is contained in:
abu 2024-05-09 13:15:23 +08:00
parent 389f27d378
commit 1cc8bfdfcd
42 changed files with 49 additions and 9865 deletions

View File

@ -86,6 +86,7 @@ mywx:
appid: wx2b5899dac09216d4
# h5回调url
h5url: http://wx-api-101281-5-1320792097.sh.run.tcloudbase.com
# h5url: http://154.8.196.128:9999
# h5url: http://154.8.196.128
#exel:

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
#app{font-family:Avenir,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-align:center;color:#2c3e50}nav{padding:30px}nav a{font-weight:700;color:#2c3e50}nav a.router-link-exact-active{color:#42b983}.main-page[data-v-7ade1cb4]{height:100vh;width:100vw}.main-page .head[data-v-7ade1cb4]{margin-top:3rem;width:90%}.main-page .sfm[data-v-7ade1cb4]{margin-top:2rem;width:70%}.main-page .input-code[data-v-7ade1cb4]{text-align:center;font-size:35px;height:3.5rem;width:80%;opacity:1;border-radius:132px;background:#fff,#fff;border:4px solid rgba(141,35,40,.6);box-shadow:0 0 0 rgba(0,0,0,.1),0 3px 7px rgba(0,0,0,.1),0 12px 12px rgba(0,0,0,.09),0 27px 16px rgba(0,0,0,.05),0 47px 19px rgba(0,0,0,.01),0 74px 21px transparent}.main-page .loginbut[data-v-7ade1cb4]{width:60%;margin-top:10%}.tishi[data-v-7ade1cb4]{margin:5px 15px;text-align:left}.tishi span[data-v-7ade1cb4]{text-align:left}.tishi p[data-v-7ade1cb4]{text-align:left;text-indent:20px;padding:0;margin:0}.tishi p em[data-v-7ade1cb4]{font-style:normal;text-align:center;font-weight:700}.loading[data-v-7ade1cb4]{position:absolute;left:50%;transform:translateX(-50%);top:60%;width:80px}

View File

@ -1 +0,0 @@
#app{font-family:Avenir,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-align:center;color:#2c3e50}nav{padding:30px}nav a{font-weight:700;color:#2c3e50}nav a.router-link-exact-active{color:#42b983}.img-first1[data-v-023d993d]{width:80%;margin-top:10px}.input-code[data-v-023d993d]{margin-top:20px}.input-code input[data-v-023d993d]{width:70%;height:60px;margin:0 auto;border-radius:15px;background-color:#f6f6f6;box-shadow:0 5px 10px rgba(0,0,0,.5);border:none;font-size:1.5rem;font-weight:60;text-align:center}.login-but[data-v-023d993d]{position:relative;width:50%;margin:10px auto;height:4rem}.login-but img[data-v-023d993d]{height:4rem;width:100%}.login-but span[data-v-023d993d]{position:absolute;left:50%;transform:translateX(-50%) translateY(-50%);top:50%}.loading[data-v-023d993d]{position:absolute;left:50%;transform:translateX(-50%);top:60%;width:80px}

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

View File

@ -1,17 +0,0 @@
<svg width="217" height="62" viewBox="0 0 217 62" fill="none" xmlns="http://www.w3.org/2000/svg">
<g filter="url(#filter0_d_12_221)">
<rect x="4" width="209" height="54" rx="27" fill="#95BCD9"/>
</g>
<defs>
<filter id="filter0_d_12_221" x="0" y="0" width="217" height="62" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
<feOffset dy="4"/>
<feGaussianBlur stdDeviation="2"/>
<feComposite in2="hardAlpha" operator="out"/>
<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"/>
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_12_221"/>
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_12_221" result="shape"/>
</filter>
</defs>
</svg>

Before

Width:  |  Height:  |  Size: 897 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

File diff suppressed because it is too large Load Diff

Before

Width:  |  Height:  |  Size: 356 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

File diff suppressed because it is too large Load Diff

Before

Width:  |  Height:  |  Size: 382 KiB

View File

@ -1 +1 @@
<!doctype html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="/favicon.ico"><title>vant-vue3</title><script defer="defer" src="/js/chunk-vendors.353465c3.js"></script><script defer="defer" src="/js/app.10494061.js"></script><link href="/css/chunk-vendors.67a2fae0.css" rel="stylesheet"><link href="/css/app.970a9628.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but vant-vue3 doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html>
<!doctype html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="/favicon.ico"><title>vant-vue3</title><script defer="defer" src="/js/chunk-vendors.16b03157.js"></script><script defer="defer" src="/js/app.45184631.js"></script><link href="/css/chunk-vendors.67a2fae0.css" rel="stylesheet"><link href="/css/app.29ed9b24.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but vant-vue3 doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="referrer" content="never"><meta name="viewport" content="width=device-width,initial-scale=1"><title>微信后台管理系统</title><script src="https://cdn.bootcdn.net/ajax/libs/tinymce/5.10.4/tinymce.min.js"></script><script defer="defer" type="module" src="js/chunk-vendors.93d8c73b.js"></script><script defer="defer" type="module" src="js/app.bf521b80.js"></script><link href="css/chunk-vendors.c90a9993.css" rel="stylesheet"><link href="css/app.e4089920.css" rel="stylesheet"><script defer="defer" src="js/chunk-vendors-legacy.331472cb.js" nomodule></script><script defer="defer" src="js/app-legacy.e51d7e60.js" nomodule></script></head><body><noscript><strong>We're sorry but weixin-manage doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html>
<!doctype html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="referrer" content="never"><meta name="viewport" content="width=device-width,initial-scale=1"><title>微信后台管理系统</title><script src="https://cdn.bootcdn.net/ajax/libs/tinymce/5.10.4/tinymce.min.js"></script><script defer="defer" type="module" src="js/chunk-vendors.93d8c73b.js"></script><script defer="defer" type="module" src="js/app.38f2bf26.js"></script><link href="css/chunk-vendors.c90a9993.css" rel="stylesheet"><link href="css/app.e4089920.css" rel="stylesheet"><script defer="defer" src="js/chunk-vendors-legacy.331472cb.js" nomodule></script><script defer="defer" src="js/app-legacy.2fd3550c.js" nomodule></script></head><body><noscript><strong>We're sorry but weixin-manage doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html>

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
"use strict";(self["webpackChunkwx_manage"]=self["webpackChunkwx_manage"]||[]).push([[4348],{24348:function(t,e,a){a.r(e),a.d(e,{default:function(){return m}});var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{title:t.dataForm.id?"修改":"新增","close-on-click-modal":!1,visible:t.visible},on:{"update:visible":function(e){t.visible=e}}},[a("el-form",{ref:"dataForm",attrs:{model:t.dataForm,rules:t.dataRule,"label-width":"80px"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.dataFormSubmit()}}},[t.dataForm.id?t._e():a("el-form-item",{attrs:{label:"身份码",prop:"userId"}},[a("el-input",{attrs:{placeholder:"登录帐号"},model:{value:t.dataForm.userId,callback:function(e){t.$set(t.dataForm,"userId",e)},expression:"dataForm.userId"}})],1),a("el-form-item",{attrs:{label:"用户名"}},[a("el-input",{attrs:{placeholder:"用户名"},model:{value:t.dataForm.userName,callback:function(e){t.$set(t.dataForm,"userName",e)},expression:"dataForm.userName"}})],1),t.dataForm.id?t._e():a("el-form-item",{attrs:{label:"身份"}},[a("el-select",{attrs:{placeholder:"身份"},model:{value:t.dataForm.identity,callback:function(e){t.$set(t.dataForm,"identity",e)},expression:"dataForm.identity"}},t._l(t.identityes,(function(t){return a("el-option",{key:t.id,attrs:{value:t.value,label:t.name}})})),1)],1),a("el-form-item",{attrs:{label:"所属组"}},[a("el-select",{attrs:{placeholder:"所属组"},model:{value:t.dataForm.groupId,callback:function(e){t.$set(t.dataForm,"groupId",e)},expression:"dataForm.groupId"}},t._l(t.groupIdes,(function(e){return a("el-option",{key:e.id,attrs:{value:e.id,label:e.name}},[t._v(t._s(e.name))])})),1)],1),a("el-form-item",{attrs:{label:"状态",size:"mini",prop:"status"}},[a("el-radio-group",{model:{value:t.dataForm.status,callback:function(e){t.$set(t.dataForm,"status",e)},expression:"dataForm.status"}},[a("el-radio",{attrs:{label:0}},[t._v("禁用")]),a("el-radio",{attrs:{label:1}},[t._v("正常")])],1)],1)],1),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.visible=!1}}},[t._v("取消")]),a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.dataFormSubmit()}}},[t._v("确定")])],1)],1)},s=[],i=a(89176),o=a(62015),d={data(){var t=(t,e,a)=>{(0,i._7)(e)?a():a(new Error("请输入8位身份码(数字)"))},e=(t,e,a)=>{this.dataForm.id||/\S/.test(e)?a():a(new Error("密码不能为空"))};return{visible:!1,roleList:[],dataForm:{id:0,userName:"",groupId:"",identity:"",userId:"",status:0},identityes:[{id:1,name:"管理员",value:2},{id:2,name:"研究生",value:3},{id:3,name:"本校老师",value:6},{id:4,name:"外校老师",value:9}],groupIdes:[],dataRule:{userName:[{required:!0,message:"用户名不能为空",trigger:"blur"}],password:[{validator:e,trigger:"blur"}],userId:[{required:!0,message:"身份码不能为空",trigger:"blur"},{validator:t,trigger:"blur"}]}}},methods:{init(t){o.Z.getGroupList2(this).then((t=>{this.groupIdes=t.data.list})),void 0==t&&(this.dataForm.userId="",this.dataForm.userName="",this.dataForm.groupId="",this.dataForm.identity="",this.dataForm.status=0),this.dataForm.id=t||0,this.$http({url:this.$http.adornUrl("/sys/role/select"),method:"get",params:this.$http.adornParams()}).then((({data:t})=>{this.roleList=t&&200===t.code?t.list:[]})).then((()=>{this.visible=!0,this.$nextTick((()=>{this.$refs["dataForm"].resetFields()}))})).then((()=>{this.dataForm.id&&(console.log("this.dataForm.id",this.dataForm.id),this.$http({url:this.$http.adornUrl(`/h5/user/info/${this.dataForm.id}`),method:"get",params:this.$http.adornParams()}).then((({data:t})=>{console.log(t),t&&200===t.code&&(this.dataForm.userName=t.user.userName,this.dataForm.groupId=t.user.groupId,this.dataForm.identity=t.user.identity,this.dataForm.userId=t.user.userId,this.dataForm.status=t.user.status)})))}))},dataFormSubmit(){this.$refs["dataForm"].validate((t=>{t&&this.$http({url:this.$http.adornUrl("/h5/user/"+(this.dataForm.id?"update":"save")),method:"post",data:this.$http.adornData({id:this.dataForm.id,userName:this.dataForm.userName,groupId:this.dataForm.groupId,identity:this.dataForm.identity,userId:this.dataForm.userId,status:this.dataForm.status})}).then((({data:t})=>{console.log(t),t&&200===t.code?this.$message({message:"操作成功",type:"success",duration:1500,onClose:()=>{this.visible=!1,this.$emit("refreshDataList")}}):this.$message.error(t.msg)}))}))}}},l=d,u=a(1001),n=(0,u.Z)(l,r,s,!1,null,null,null),m=n.exports},62015:function(t,e,a){a(57658);e["Z"]={getGroupList(t){t.$http({url:t.$http.adornUrl("/group/list"),method:"get",params:t.$http.adornParams()}).then((e=>{e.data.list.forEach((e=>{t.groupIdes.push({text:e.name,id:e.id,value:e.id})}))}))},getGroupList2(t){return t.$http({url:t.$http.adornUrl("/group/list"),method:"get",params:t.$http.adornParams()})}}}}]);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
"use strict";(self["webpackChunkwx_manage"]=self["webpackChunkwx_manage"]||[]).push([[5329],{75329:function(t,a,e){e.r(a),e.d(a,{default:function(){return m}});var r=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("el-dialog",{attrs:{title:t.dataForm.id?"修改":"新增","close-on-click-modal":!1,visible:t.visible},on:{"update:visible":function(a){t.visible=a}}},[e("el-form",{ref:"dataForm",attrs:{model:t.dataForm,rules:t.dataRule,"label-width":"80px"},nativeOn:{keyup:function(a){return!a.type.indexOf("key")&&t._k(a.keyCode,"enter",13,a.key,"Enter")?null:t.dataFormSubmit()}}},[t.dataForm.id?t._e():e("el-form-item",{attrs:{label:"身份码",prop:"userId"}},[e("el-input",{attrs:{placeholder:"登录帐号"},model:{value:t.dataForm.userId,callback:function(a){t.$set(t.dataForm,"userId",a)},expression:"dataForm.userId"}})],1),e("el-form-item",{attrs:{label:"用户名"}},[e("el-input",{attrs:{placeholder:"用户名"},model:{value:t.dataForm.userName,callback:function(a){t.$set(t.dataForm,"userName",a)},expression:"dataForm.userName"}})],1),t.dataForm.id?t._e():e("el-form-item",{attrs:{label:"身份"}},[e("el-select",{attrs:{placeholder:"身份"},model:{value:t.dataForm.identity,callback:function(a){t.$set(t.dataForm,"identity",a)},expression:"dataForm.identity"}},t._l(t.identityes,(function(t,a){return e("el-option",{key:a+1,attrs:{value:a+1,label:t}})})),1)],1),e("el-form-item",{attrs:{label:"所属组"}},[e("el-select",{attrs:{placeholder:"所属组"},model:{value:t.dataForm.groupId,callback:function(a){t.$set(t.dataForm,"groupId",a)},expression:"dataForm.groupId"}},t._l(t.groupIdes,(function(a){return e("el-option",{key:a.id,attrs:{value:a.id,label:a.name}},[t._v(t._s(a.name))])})),1)],1),e("el-form-item",{attrs:{label:"状态",size:"mini",prop:"status"}},[e("el-radio-group",{model:{value:t.dataForm.status,callback:function(a){t.$set(t.dataForm,"status",a)},expression:"dataForm.status"}},[e("el-radio",{attrs:{label:0}},[t._v("禁用")]),e("el-radio",{attrs:{label:1}},[t._v("正常")])],1)],1)],1),e("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{on:{click:function(a){t.visible=!1}}},[t._v("取消")]),e("el-button",{attrs:{type:"primary"},on:{click:function(a){return t.dataFormSubmit()}}},[t._v("确定")])],1)],1)},o=[],s=(e(21703),e(74916),e(77601),e(89176)),i=e(62015),d={data:function(){var t=this,a=function(t,a,e){(0,s._7)(a)?e():e(new Error("请输入8位身份码(数字)"))},e=function(a,e,r){t.dataForm.id||/\S/.test(e)?r():r(new Error("密码不能为空"))};return{visible:!1,roleList:[],dataForm:{id:0,userName:"",groupId:"",identity:"",userId:"",status:0},identityes:["管理员","研究生","本校老师","外校老师"],groupIdes:[],dataRule:{userName:[{required:!0,message:"用户名不能为空",trigger:"blur"}],password:[{validator:e,trigger:"blur"}],userId:[{required:!0,message:"身份码不能为空",trigger:"blur"},{validator:a,trigger:"blur"}]}}},methods:{init:function(t){var a=this;i.Z.getGroupList2(this).then((function(t){a.groupIdes=t.data.list})),void 0==t&&(this.dataForm.userId="",this.dataForm.userName="",this.dataForm.groupId="",this.dataForm.identity="",this.dataForm.status=0),this.dataForm.id=t||0,this.$http({url:this.$http.adornUrl("/sys/role/select"),method:"get",params:this.$http.adornParams()}).then((function(t){var e=t.data;a.roleList=e&&200===e.code?e.list:[]})).then((function(){a.visible=!0,a.$nextTick((function(){a.$refs["dataForm"].resetFields()}))})).then((function(){a.dataForm.id&&(console.log("this.dataForm.id",a.dataForm.id),a.$http({url:a.$http.adornUrl("/h5/user/info/".concat(a.dataForm.id)),method:"get",params:a.$http.adornParams()}).then((function(t){var e=t.data;console.log(e),e&&200===e.code&&(a.dataForm.userName=e.user.userName,a.dataForm.groupId=e.user.groupId,a.dataForm.identity=e.user.identity,a.dataForm.userId=e.user.userId,a.dataForm.status=e.user.status)})))}))},dataFormSubmit:function(){var t=this;this.$refs["dataForm"].validate((function(a){a&&t.$http({url:t.$http.adornUrl("/h5/user/".concat(t.dataForm.id?"update":"save")),method:"post",data:t.$http.adornData({id:t.dataForm.id,userName:t.dataForm.userName,groupId:t.dataForm.groupId,identity:t.dataForm.identity,userId:t.dataForm.userId,status:t.dataForm.status})}).then((function(a){var e=a.data;console.log(e),e&&200===e.code?t.$message({message:"操作成功",type:"success",duration:1500,onClose:function(){t.visible=!1,t.$emit("refreshDataList")}}):t.$message.error(e.msg)}))}))}}},n=d,l=e(1001),u=(0,l.Z)(n,r,o,!1,null,null,null),m=u.exports},62015:function(t,a,e){e(41539),e(54747),e(57658),e(68309);a["Z"]={getGroupList:function(t){t.$http({url:t.$http.adornUrl("/group/list"),method:"get",params:t.$http.adornParams()}).then((function(a){a.data.list.forEach((function(a){t.groupIdes.push({text:a.name,id:a.id,value:a.id})}))}))},getGroupList2:function(t){return t.$http({url:t.$http.adornUrl("/group/list"),method:"get",params:t.$http.adornParams()})}}}}]);

View File

@ -1 +0,0 @@
"use strict";(self["webpackChunkwx_manage"]=self["webpackChunkwx_manage"]||[]).push([[5329],{75329:function(t,e,a){a.r(e),a.d(e,{default:function(){return m}});var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{title:t.dataForm.id?"修改":"新增","close-on-click-modal":!1,visible:t.visible},on:{"update:visible":function(e){t.visible=e}}},[a("el-form",{ref:"dataForm",attrs:{model:t.dataForm,rules:t.dataRule,"label-width":"80px"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.dataFormSubmit()}}},[t.dataForm.id?t._e():a("el-form-item",{attrs:{label:"身份码",prop:"userId"}},[a("el-input",{attrs:{placeholder:"登录帐号"},model:{value:t.dataForm.userId,callback:function(e){t.$set(t.dataForm,"userId",e)},expression:"dataForm.userId"}})],1),a("el-form-item",{attrs:{label:"用户名"}},[a("el-input",{attrs:{placeholder:"用户名"},model:{value:t.dataForm.userName,callback:function(e){t.$set(t.dataForm,"userName",e)},expression:"dataForm.userName"}})],1),t.dataForm.id?t._e():a("el-form-item",{attrs:{label:"身份"}},[a("el-select",{attrs:{placeholder:"身份"},model:{value:t.dataForm.identity,callback:function(e){t.$set(t.dataForm,"identity",e)},expression:"dataForm.identity"}},t._l(t.identityes,(function(t,e){return a("el-option",{key:e+1,attrs:{value:e+1,label:t}})})),1)],1),a("el-form-item",{attrs:{label:"所属组"}},[a("el-select",{attrs:{placeholder:"所属组"},model:{value:t.dataForm.groupId,callback:function(e){t.$set(t.dataForm,"groupId",e)},expression:"dataForm.groupId"}},t._l(t.groupIdes,(function(e){return a("el-option",{key:e.id,attrs:{value:e.id,label:e.name}},[t._v(t._s(e.name))])})),1)],1),a("el-form-item",{attrs:{label:"状态",size:"mini",prop:"status"}},[a("el-radio-group",{model:{value:t.dataForm.status,callback:function(e){t.$set(t.dataForm,"status",e)},expression:"dataForm.status"}},[a("el-radio",{attrs:{label:0}},[t._v("禁用")]),a("el-radio",{attrs:{label:1}},[t._v("正常")])],1)],1)],1),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.visible=!1}}},[t._v("取消")]),a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.dataFormSubmit()}}},[t._v("确定")])],1)],1)},s=[],i=a(89176),o=a(62015),d={data(){var t=(t,e,a)=>{(0,i._7)(e)?a():a(new Error("请输入8位身份码(数字)"))},e=(t,e,a)=>{this.dataForm.id||/\S/.test(e)?a():a(new Error("密码不能为空"))};return{visible:!1,roleList:[],dataForm:{id:0,userName:"",groupId:"",identity:"",userId:"",status:0},identityes:["管理员","研究生","本校老师","外校老师"],groupIdes:[],dataRule:{userName:[{required:!0,message:"用户名不能为空",trigger:"blur"}],password:[{validator:e,trigger:"blur"}],userId:[{required:!0,message:"身份码不能为空",trigger:"blur"},{validator:t,trigger:"blur"}]}}},methods:{init(t){o.Z.getGroupList2(this).then((t=>{this.groupIdes=t.data.list})),void 0==t&&(this.dataForm.userId="",this.dataForm.userName="",this.dataForm.groupId="",this.dataForm.identity="",this.dataForm.status=0),this.dataForm.id=t||0,this.$http({url:this.$http.adornUrl("/sys/role/select"),method:"get",params:this.$http.adornParams()}).then((({data:t})=>{this.roleList=t&&200===t.code?t.list:[]})).then((()=>{this.visible=!0,this.$nextTick((()=>{this.$refs["dataForm"].resetFields()}))})).then((()=>{this.dataForm.id&&(console.log("this.dataForm.id",this.dataForm.id),this.$http({url:this.$http.adornUrl(`/h5/user/info/${this.dataForm.id}`),method:"get",params:this.$http.adornParams()}).then((({data:t})=>{console.log(t),t&&200===t.code&&(this.dataForm.userName=t.user.userName,this.dataForm.groupId=t.user.groupId,this.dataForm.identity=t.user.identity,this.dataForm.userId=t.user.userId,this.dataForm.status=t.user.status)})))}))},dataFormSubmit(){this.$refs["dataForm"].validate((t=>{t&&this.$http({url:this.$http.adornUrl("/h5/user/"+(this.dataForm.id?"update":"save")),method:"post",data:this.$http.adornData({id:this.dataForm.id,userName:this.dataForm.userName,groupId:this.dataForm.groupId,identity:this.dataForm.identity,userId:this.dataForm.userId,status:this.dataForm.status})}).then((({data:t})=>{console.log(t),t&&200===t.code?this.$message({message:"操作成功",type:"success",duration:1500,onClose:()=>{this.visible=!1,this.$emit("refreshDataList")}}):this.$message.error(t.msg)}))}))}}},l=d,u=a(1001),n=(0,u.Z)(l,r,s,!1,null,null,null),m=n.exports},62015:function(t,e,a){a(57658);e["Z"]={getGroupList(t){t.$http({url:t.$http.adornUrl("/group/list"),method:"get",params:t.$http.adornParams()}).then((e=>{e.data.list.forEach((e=>{t.groupIdes.push({text:e.name,id:e.id,value:e.id})}))}))},getGroupList2(t){return t.$http({url:t.$http.adornUrl("/group/list"),method:"get",params:t.$http.adornParams()})}}}}]);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -18,3 +18,5 @@ abdusamatABZ123456
授权回调页面域名地址
wx-api-101281-5-1320792097.sh.run.tcloudbase.com
2024-05-07 改动