提交小程序
This commit is contained in:
parent
ffc752b032
commit
c724a0fe3c
|
@ -1,3 +1,7 @@
|
||||||
# 配置文档参考 https://taro-docs.jd.com/docs/next/env-mode-config
|
# 配置文档参考 https://taro-docs.jd.com/docs/next/env-mode-config
|
||||||
TARO_APP_ID="wx0acd1c4fcf94bdd3"
|
TARO_APP_ID="wx0acd1c4fcf94bdd3"
|
||||||
TARO_APP_BASE_API="http://172.10.10.93:8765"
|
TARO_APP_BASE_API="http://172.10.10.93:8765"
|
||||||
|
|
||||||
|
# minio
|
||||||
|
TARO_APP_MINIO_URL=http://118.253.177.137:9000
|
||||||
|
TARO_APP_MINIO_BUCKET=police-security-dev
|
||||||
|
|
|
@ -1,2 +1,6 @@
|
||||||
# TARO_APP_ID="wx0acd1c4fcf94bdd3"
|
# TARO_APP_ID="wx0acd1c4fcf94bdd3"
|
||||||
TARO_APP_BASE_API="https://www.hnjinglian.cn:5678"
|
TARO_APP_BASE_API="https://www.hnjinglian.cn:5678"
|
||||||
|
|
||||||
|
# minio
|
||||||
|
TARO_APP_MINIO_URL=https://www.hnjinglian.cn:9002
|
||||||
|
TARO_APP_MINIO_BUCKET=police-security
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
# TARO_APP_ID="测试环境下的小程序appid"
|
|
Binary file not shown.
Before Width: | Height: | Size: 266 KiB |
Binary file not shown.
Before Width: | Height: | Size: 285 KiB |
|
@ -29,10 +29,7 @@ import {ref} from 'vue'
|
||||||
import Taro from "@tarojs/taro";
|
import Taro from "@tarojs/taro";
|
||||||
import icon from '@/assets/images/project.png'
|
import icon from '@/assets/images/project.png'
|
||||||
import './index.scss'
|
import './index.scss'
|
||||||
import item02 from '@/assets/index.png'
|
const list = ref([process.env.TARO_APP_MINIO_URL + '/police-security/2024/11/5/dunpai.jpg',process.env.TARO_APP_MINIO_URL + '/police-security/2024/11/5/xingqiu.jpg'])
|
||||||
import item03 from '@/assets/index2.png'
|
|
||||||
|
|
||||||
const list = ref([{url:item02},{url:item03}])
|
|
||||||
const swiperRef = ref() //轮播图
|
const swiperRef = ref() //轮播图
|
||||||
const subModuleList = ref([
|
const subModuleList = ref([
|
||||||
{
|
{
|
||||||
|
|
|
@ -3,7 +3,8 @@
|
||||||
<view class="swiperDemo">
|
<view class="swiperDemo">
|
||||||
<nut-swiper ref="swiperRef" pagination-visible pagination-color="#e53e31" :auto-play="3000" :init-page="0">
|
<nut-swiper ref="swiperRef" pagination-visible pagination-color="#e53e31" :auto-play="3000" :init-page="0">
|
||||||
<nut-swiper-item v-for="(item, index) in list" :key="index" style="height: 200px">
|
<nut-swiper-item v-for="(item, index) in list" :key="index" style="height: 200px">
|
||||||
<image :src="item.url" alt="" style="height: 100%; width: 100%" draggable="false"/>
|
<image :src="item" alt="" style="height: 100%; width: 100%" draggable="false"/>
|
||||||
|
<view>1123</view>
|
||||||
</nut-swiper-item>
|
</nut-swiper-item>
|
||||||
</nut-swiper>
|
</nut-swiper>
|
||||||
</view>
|
</view>
|
||||||
|
@ -29,10 +30,7 @@ import {ref} from 'vue'
|
||||||
import Taro from "@tarojs/taro";
|
import Taro from "@tarojs/taro";
|
||||||
import icon from '@/assets/images/project.png'
|
import icon from '@/assets/images/project.png'
|
||||||
import './index.scss'
|
import './index.scss'
|
||||||
import item02 from '@/assets/index.png'
|
const list = ref([process.env.TARO_APP_MINIO_URL + '/police-security/2024/11/5/dunpai.jpg',process.env.TARO_APP_MINIO_URL + '/police-security/2024/11/5/xingqiu.jpg'])
|
||||||
import item03 from '@/assets/index2.png'
|
|
||||||
|
|
||||||
const list = ref([{url:item02},{url:item03}])
|
|
||||||
const swiperRef = ref() //轮播图
|
const swiperRef = ref() //轮播图
|
||||||
const subModuleList = ref([
|
const subModuleList = ref([
|
||||||
{
|
{
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
.card[data-v-e12d9561]{box-sizing:border-box;background-color:#fff;border:1px solid #e4e7ed;border-radius:6px;box-shadow:0 0 12px #0000000d}
|
|
Binary file not shown.
Before Width: | Height: | Size: 551 KiB |
|
@ -1 +0,0 @@
|
||||||
.simpleUploadDiv[data-v-4848da83]{width:var(--60e14950);height:var(--bd0e3246);display:flex;flex-direction:column}
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1 +0,0 @@
|
||||||
.trigger[data-v-bbea4d80]{font-size:18px;line-height:64px;padding:0 24px;cursor:pointer;transition:color .3s}.trigger[data-v-bbea4d80]:hover{color:#1890ff}.system-menus[data-v-8d4789b2]{height:calc(100% - 100px);overflow-y:auto}.main-content[data-v-5385a8ef]{width:100vw;height:100vh}.main-content .layout-header[data-v-5385a8ef]{background:#fff;padding:0}.main-content .layout-content[data-v-5385a8ef]{margin:10px;padding:4px;background:#f5f7fd;min-height:280px;border-radius:5px;overflow:auto}.title[data-v-5385a8ef]{height:32px;width:168px;transition:width 2ms linear 2ms;margin:16px;color:#000;font-weight:700;font-size:20px}.logo[data-v-5385a8ef]{margin:16px}.logo img[data-v-5385a8ef]{width:50px;height:50px}.site-layout .site-layout-background[data-v-5385a8ef]{background:#fff}
|
|
|
@ -1 +0,0 @@
|
||||||
.login-form[data-v-7a695eba]{box-sizing:border-box;padding:0 5px;margin-top:16px}.login-form[data-v-7a695eba] .ant-input-group-addon{padding:0;overflow:hidden}.login-form .ant-form-item[data-v-7a695eba]{margin-bottom:20px}.login-form .remember-me[data-v-7a695eba]{display:flex;justify-content:space-between}.login-form .btn[data-v-7a695eba]{border-radius:4px;box-shadow:0 0 0 1px #05f,0 2px 1px #00000026;font-size:14px;font-weight:500;height:40px;line-height:22px;margin:20px 0 12px;width:100%}.root[data-v-40ec73f3]{background-image:url(/securityManagement/assets/bg-CoGF0Uh9.jpg);background-repeat:no-repeat;background-size:cover;min-height:100vh}.root a[data-v-40ec73f3]{color:#3370ff;cursor:pointer!important;text-decoration:none}.root a[data-v-40ec73f3]:hover{color:#6694ff}.root .header[data-v-40ec73f3]{padding:32px 40px 10px}.root .header img[data-v-40ec73f3]{vertical-align:middle}.root .header .logo-text[data-v-40ec73f3]{display:inline-block;margin-right:4px;margin-left:4px;color:#1d2129;font-size:24px;vertical-align:middle}.root .container[data-v-40ec73f3]{align-items:center;box-sizing:border-box;display:flex;height:calc(100vh - 100px);justify-content:center;margin:0 auto;max-width:1200px;min-height:650px}.root .container .left-banner[data-v-40ec73f3]{flex:1 1;height:100%;max-height:700px;position:relative}.root .container .left-banner img[data-v-40ec73f3]{height:100%;left:0;max-height:350px;max-width:500px;-o-object-fit:contain;object-fit:contain;position:absolute;top:4.5%;width:100%}.root .container .login-card[data-v-40ec73f3]{display:flex;background:#fff;border-radius:20px;box-shadow:0 5px 15px #0000000d;box-sizing:border-box;min-height:500px;position:relative;width:450px;min-width:434px;flex-direction:column;margin-bottom:53px;padding:48px 43px 32px}.root .container .login-card .title[data-v-40ec73f3]{color:#020814;font-size:24px;font-weight:500;letter-spacing:.003em;line-height:32px;padding:0 5px}.root .container .login-card .account-tab[data-v-40ec73f3]{margin-top:36px}.root .container .login-card .account-tab[data-v-40ec73f3] .ant-tabs-nav{margin-bottom:0}.root .container .login-card .account-tab[data-v-40ec73f3] .ant-tabs-content{padding-top:16px}.root .container .login-card .account-tab[data-v-40ec73f3] .ant-tabs-nav:before{display:none}.root .container .login-card .account-tab[data-v-40ec73f3] .ant-tabs-tab-btn{font-size:16px;font-weight:500;line-height:22px;display:inline-block;padding:1px 0;position:relative}.root .container .login-card .account-tab[data-v-40ec73f3] .ant-tabs-tab-btn:before{display:none}.root .container .login-card .account-tab[data-v-40ec73f3] .ant-tabs-tab{margin:0 30px 0 6px}.root .container .login-card .oauth[data-v-40ec73f3]{margin-top:20px;padding:0 5px}.root .container .login-card .oauth[data-v-40ec73f3] .ant-divider-inner-text{color:#80838a;font-size:12px;font-weight:400;line-height:20px}.root .container .login-card .oauth[data-v-40ec73f3] .ant-divider{margin-bottom:25px}.root .container .login-card .oauth .idps[data-v-40ec73f3]{align-items:center;display:flex;justify-content:center;width:100%}.root .container .login-card .oauth .idps .app[data-v-40ec73f3]{margin-right:12px;align-items:center;border:1px solid #eaedf1;border-radius:32px;box-sizing:border-box;display:flex;height:32px;justify-content:center;width:32px}.root .container .login-card .oauth .idps .app .icon[data-v-40ec73f3]{width:21px;height:20px}.root .container .login-card .oauth .idps .app[data-v-40ec73f3]:hover{background:#f3f7ff;border:1px solid #97bcff}.root .footer[data-v-40ec73f3]{align-items:center;box-sizing:border-box;display:flex;justify-content:center}.root .footer .beian .text[data-v-40ec73f3]{color:#41464f;font-size:12px;font-weight:400;letter-spacing:.2px;line-height:20px;text-align:center}.root .footer .beian .below[data-v-40ec73f3]{align-items:center;display:flex}
|
|
|
@ -1,35 +0,0 @@
|
||||||
<!doctype html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="UTF-8"/>
|
|
||||||
<link rel="icon" type="image/svg+xml" href="/securityManagement/vite.svg"/>
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
|
||||||
|
|
||||||
<title>Vite + Vue + TS</title>
|
|
||||||
<script type="module" crossorigin src="/securityManagement/assets/index-DHDuxNml.js"></script>
|
|
||||||
<link rel="modulepreload" crossorigin href="/securityManagement/js/@vue/@vue.CJIZsLsR.js">
|
|
||||||
<link rel="modulepreload" crossorigin href="/securityManagement/js/@babel/@babel.1FNH1IQo.js">
|
|
||||||
<link rel="modulepreload" crossorigin href="/securityManagement/js/@ctrl/@ctrl.B2IeE8ye.js">
|
|
||||||
<link rel="modulepreload" crossorigin href="/securityManagement/js/@ant-design/@ant-design.p8gD75gF.js">
|
|
||||||
<link rel="modulepreload" crossorigin href="/securityManagement/js/lodash-es/lodash-es.xwmpKtYY.js">
|
|
||||||
<link rel="modulepreload" crossorigin href="/securityManagement/js/resize-observer-polyfill/resize-observer-polyfill.CzGuHLZU.js">
|
|
||||||
<link rel="modulepreload" crossorigin href="/securityManagement/js/async-validator/async-validator.Cuo4gI4y.js">
|
|
||||||
<link rel="modulepreload" crossorigin href="/securityManagement/js/compute-scroll-into-view/compute-scroll-into-view.DCNUDwgY.js">
|
|
||||||
<link rel="modulepreload" crossorigin href="/securityManagement/js/scroll-into-view-if-needed/scroll-into-view-if-needed.CC-zn_OY.js">
|
|
||||||
<link rel="modulepreload" crossorigin href="/securityManagement/js/throttle-debounce/throttle-debounce.w9OM8Bxz.js">
|
|
||||||
<link rel="modulepreload" crossorigin href="/securityManagement/js/dom-align/dom-align.CwhutA7q.js">
|
|
||||||
<link rel="modulepreload" crossorigin href="/securityManagement/js/dayjs/dayjs.BYs295sK.js">
|
|
||||||
<link rel="modulepreload" crossorigin href="/securityManagement/js/@emotion/@emotion.BqFXxR3o.js">
|
|
||||||
<link rel="modulepreload" crossorigin href="/securityManagement/js/stylis/stylis.IVPcsLSI.js">
|
|
||||||
<link rel="modulepreload" crossorigin href="/securityManagement/js/vue-types/vue-types.BB_Jk3wA.js">
|
|
||||||
<link rel="modulepreload" crossorigin href="/securityManagement/js/ant-design-vue/ant-design-vue.Dh0eC-8y.js">
|
|
||||||
<link rel="modulepreload" crossorigin href="/securityManagement/js/vue-router/vue-router.B92OrnBw.js">
|
|
||||||
<link rel="modulepreload" crossorigin href="/securityManagement/js/pinia/pinia.1NTCjJvz.js">
|
|
||||||
<link rel="modulepreload" crossorigin href="/securityManagement/js/pinia-plugin-persistedstate/pinia-plugin-persistedstate.Cs-f0Iqr.js">
|
|
||||||
<link rel="modulepreload" crossorigin href="/securityManagement/js/axios/axios.BYXpELat.js">
|
|
||||||
<link rel="stylesheet" crossorigin href="/securityManagement/assets/index-9qT9Fhxv.css">
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<div id="app"></div>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
File diff suppressed because one or more lines are too long
|
@ -1 +0,0 @@
|
||||||
function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(r){return typeof r}:function(r){return r&&"function"==typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r})(t)}function t(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==r(e)?e:e+""}function e(r,e,n){return(e=t(e))in r?Object.defineProperty(r,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):r[e]=n,r}function n(r,t){var e=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),e.push.apply(e,n)}return e}function o(r){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?n(Object(o),!0).forEach((function(t){e(r,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):n(Object(o)).forEach((function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(o,t))}))}return r}function i(){return i=Object.assign?Object.assign.bind():function(r){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var n in e)({}).hasOwnProperty.call(e,n)&&(r[n]=e[n])}return r},i.apply(null,arguments)}export{i as _,o as a};
|
|
File diff suppressed because one or more lines are too long
|
@ -1 +0,0 @@
|
||||||
function o(o){for(var r,e=0,t=0,i=o.length;i>=4;++t,i-=4)r=1540483477*(65535&(r=255&o.charCodeAt(t)|(255&o.charCodeAt(++t))<<8|(255&o.charCodeAt(++t))<<16|(255&o.charCodeAt(++t))<<24))+(59797*(r>>>16)<<16),e=1540483477*(65535&(r^=r>>>24))+(59797*(r>>>16)<<16)^1540483477*(65535&e)+(59797*(e>>>16)<<16);switch(i){case 3:e^=(255&o.charCodeAt(t+2))<<16;case 2:e^=(255&o.charCodeAt(t+1))<<8;case 1:e=1540483477*(65535&(e^=255&o.charCodeAt(t)))+(59797*(e>>>16)<<16)}return(((e=1540483477*(65535&(e^=e>>>13))+(59797*(e>>>16)<<16))^e>>>15)>>>0).toString(36)}var r={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};export{o as m,r as u};
|
|
File diff suppressed because one or more lines are too long
|
@ -1 +0,0 @@
|
||||||
import{a}from"../../assets/index-DHDuxNml.js";import{d as e,ab as t,a3 as n,r as i,w as s,o as l,W as o,X as d}from"../@vue/@vue.CJIZsLsR.js";import{q as r}from"../ant-design-vue/ant-design-vue.Dh0eC-8y.js";const v=e({__name:"AdministrativeDivisionsTree",props:t({changeOnSelect:{type:Boolean,default:!1}},{value:{default:[]},valueModifiers:{}}),emits:["update:value"],setup(e){const t=n(e,"value"),v=i([]),u=async e=>{const t=e[e.length-1];t.loading=!0;const n=await a.get("/common/administrativeDivisionByParentCode",{parentCode:t.value});t.loading=!1,t.children=[v.value,...n.data]},c=(e,t)=>{for(let n=0;n<e.length-1;n++)t.forEach((async t=>{if(t.value===e[n]){t.children=[];let i=await a.get("/common/administrativeDivisionByParentCode",{parentCode:e[n]});t.children=i.data.map((a=>({label:a.label,value:a.value,isLeaf:a.isLeaf}))),c(e,t.children)}}))};return s(t,(async()=>await c(t.value,v.value))),l((async()=>{await(async()=>{const e=await a.get("/common/administrativeDivisionByParentCode",{parentCode:"0"});v.value=e.data})(),await c(t.value,v.value)})),(a,e)=>{const n=r;return o(),d(n,{style:{width:"500px"},value:t.value,"onUpdate:value":e[0]||(e[0]=a=>t.value=a),options:v.value,"load-data":u,placeholder:"请选择行政区划","change-on-select":a.changeOnSelect},null,8,["value","options","change-on-select"])}}});export{v as _};
|
|
File diff suppressed because one or more lines are too long
|
@ -1 +0,0 @@
|
||||||
const o=(o,t)=>{const c=o.__vccOpts||o;for(const[s,n]of t)c[s]=n;return c};export{o as _};
|
|
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
|
@ -1 +0,0 @@
|
||||||
import{T as e,_ as a}from"../TableProMax/TableProMax.CdWlYNTP.js";import{d as t,a as l}from"../../assets/index-DHDuxNml.js";import{r as s,s as i,a as n,B as r,t as o,M as u}from"../ant-design-vue/ant-design-vue.Dh0eC-8y.js";import{d as p,r as d,W as m,a0 as v,c,Z as b,G as y,u as x}from"../@vue/@vue.CJIZsLsR.js";import"../AdministrativeDivisionsTree.vue_vue_type_script_setup_true_lang/AdministrativeDivisionsTree.vue_vue_type_script_setup_true_lang.BVXh-c7P.js";import"../@ant-design/@ant-design.p8gD75gF.js";import"../@ctrl/@ctrl.B2IeE8ye.js";import"../lodash-es/lodash-es.xwmpKtYY.js";import"../_plugin-vue_export-helper/_plugin-vue_export-helper.BCo6x5W8.js";import"../dayjs/dayjs.BYs295sK.js";import"../vue-router/vue-router.B92OrnBw.js";import"../pinia/pinia.1NTCjJvz.js";import"../pinia-plugin-persistedstate/pinia-plugin-persistedstate.Cs-f0Iqr.js";import"../axios/axios.BYXpELat.js";import"../@babel/@babel.1FNH1IQo.js";import"../resize-observer-polyfill/resize-observer-polyfill.CzGuHLZU.js";import"../async-validator/async-validator.Cuo4gI4y.js";import"../scroll-into-view-if-needed/scroll-into-view-if-needed.CC-zn_OY.js";import"../compute-scroll-into-view/compute-scroll-into-view.DCNUDwgY.js";import"../throttle-debounce/throttle-debounce.w9OM8Bxz.js";import"../dom-align/dom-align.CwhutA7q.js";import"../@emotion/@emotion.BqFXxR3o.js";import"../stylis/stylis.IVPcsLSI.js";import"../vue-types/vue-types.BB_Jk3wA.js";const f=p({__name:"index",setup(p){const f=d(null),h=e=>l.post("/management/security/user/pager",e),j=[{dataIndex:"account",title:"账号",width:100,ellipsis:!0},{dataIndex:"name",title:"名称",width:200,ellipsis:!0},{dataIndex:"sex",title:"性别",customRender:({text:e})=>c(s,null,{default:()=>[null==e?void 0:e.label]}),width:150},{dataIndex:"telephone",title:"手机号码",width:150,ellipsis:!0},{dataIndex:"createTime",title:"创建时间",width:200,ellipsis:!0},{dataIndex:"remark",title:"备注",width:200,ellipsis:!0},{dataIndex:"isEnable",title:"是否启用",customRender:({text:e})=>{var a;return c(s,{color:null==(a=null==e?void 0:e.extData)?void 0:a.color},{default:()=>[null==e?void 0:e.label]})},width:150},{dataIndex:"opt",title:"操作",fixed:"right",customRender:({record:e})=>1===e.isAdmin.value?c(o,null,{default:()=>[c(i,{style:"width:100%",title:"确认删除账号吗?",onConfirm:async()=>{var a;const t=await l.delete("/management/security/user/deleteById",{managementSecurityUnitUserId:e.snowFlakeId});n.success(t.message),await(null==(a=f.value)?void 0:a.requestGetTableData())}},{default:()=>[c(r,{type:"primary",danger:!0},{default:()=>[y("删除")]})]}),c(r,{type:"primary",onClick:async()=>{var a;w.value=!0,k.value="编辑用户",E.value.snowFlakeId=e.snowFlakeId,E.value.name=e.name,E.value.sex=e.sex.value,E.value.telephone=e.telephone,E.value.isEnable=null==(a=e.isEnable)?void 0:a.value,E.value.remark=e.remark}},{default:()=>[y("编辑")]})]}):c("div",null,[y("超级管理员不能编辑")])}],_=j.reduce(((e,a)=>e+a.width),0),g={name:{type:"input",label:"名称"},sex:{type:"select",label:"性别",options:[{value:null,label:"全部"},...t("Sex")]},telephone:{type:"input",label:"手机号"},isEnable:{type:"select",label:"是否启用",options:[{value:null,label:"全部"},...t("IsEnable")]}},w=d(!1),k=d("新增用户"),I=d(null),E=d({name:"",sex:0,telephone:"",isEnable:0}),T=d({name:{type:"input",label:"姓名",required:!0},sex:{type:"radioGroup",label:"性别",options:t("Sex"),required:!0},telephone:{type:"input",label:"手机号",required:!0},isEnable:{type:"radioGroup",label:"启用状态",options:t("IsEnable"),required:!0},remark:{type:"inputTextArea",label:"备注"}}),q=async()=>{var e;await I.value.validate();const a=d("");"新增用户"===k.value?a.value="":a.value=E.value.snowFlakeId;const t={snowFlakeId:a.value,name:E.value.name,sex:E.value.sex,telephone:E.value.telephone,isEnable:E.value.isEnable,remark:E.value.remark},s=await l.post("/management/security/user/saveOrUpdate",t);n.success(s.message),null==(e=f.value)||e.requestGetTableData(),F()},F=()=>{E.value={name:"",sex:0,telephone:"",isEnable:0,remark:""},w.value=!1,k.value="新增用户"},A=()=>{w.value=!0};return(t,l)=>{const s=r,i=o,n=u;return m(),v("div",null,[c(e,{ref_key:"tableRef",ref:f,"request-api":h,columns:j,searchFormOptions:g,scroll:{x:x(_)}},{tableHeader:b((()=>[c(i,null,{default:b((()=>[c(s,{type:"primary",onClick:A},{default:b((()=>[y("新增用户")])),_:1})])),_:1})])),_:1},8,["scroll"]),c(n,{open:w.value,"onUpdate:open":l[1]||(l[1]=e=>w.value=e),title:k.value,onOk:q,onCancel:F},{default:b((()=>[c(a,{ref_key:"formRef",ref:I,value:E.value,"onUpdate:value":l[0]||(l[0]=e=>E.value=e),"form-item-options":T.value},null,8,["value","form-item-options"])])),_:1},8,["open","title"])])}}});export{f as default};
|
|
|
@ -1 +0,0 @@
|
||||||
function t(t){return"object"==typeof t&&null!=t&&1===t.nodeType}function e(t,e){return(!e||"hidden"!==t)&&"visible"!==t&&"clip"!==t}function n(t,n){if(t.clientHeight<t.scrollHeight||t.clientWidth<t.scrollWidth){var i=getComputedStyle(t,null);return e(i.overflowY,n)||e(i.overflowX,n)||!!(o=function(t){if(!t.ownerDocument||!t.ownerDocument.defaultView)return null;try{return t.ownerDocument.defaultView.frameElement}catch(e){return null}}(r=t))&&(o.clientHeight<r.scrollHeight||o.clientWidth<r.scrollWidth)}var r,o;return!1}function i(t,e,n,i,r,o,l,d){return o<t&&l>e||o>t&&l<e?0:o<=t&&d<=n||l>=e&&d>=n?o-t-i:l>e&&d<n||o<t&&d>n?l-e+r:0}var r=function(e,r){var o=window,l=r.scrollMode,d=r.block,f=r.inline,h=r.boundary,u=r.skipOverflowHiddenElements,s="function"==typeof h?h:function(t){return t!==h};if(!t(e))throw new TypeError("Invalid target");for(var a,c,g=document.scrollingElement||document.documentElement,p=[],m=e;t(m)&&s(m);){if((m=null==(c=(a=m).parentElement)?a.getRootNode().host||null:c)===g){p.push(m);break}null!=m&&m===document.body&&n(m)&&!n(document.documentElement)||null!=m&&n(m,u)&&p.push(m)}for(var w=o.visualViewport?o.visualViewport.width:innerWidth,v=o.visualViewport?o.visualViewport.height:innerHeight,W=window.scrollX||pageXOffset,H=window.scrollY||pageYOffset,b=e.getBoundingClientRect(),y=b.height,E=b.width,M=b.top,V=b.right,x=b.bottom,I=b.left,C="start"===d||"nearest"===d?M:"end"===d?x:M+y/2,R="center"===f?I+E/2:"end"===f?V:I,T=[],k=0;k<p.length;k++){var B=p[k],D=B.getBoundingClientRect(),O=D.height,X=D.width,Y=D.top,L=D.right,S=D.bottom,j=D.left;if("if-needed"===l&&M>=0&&I>=0&&x<=v&&V<=w&&M>=Y&&x<=S&&I>=j&&V<=L)return T;var N=getComputedStyle(B),q=parseInt(N.borderLeftWidth,10),z=parseInt(N.borderTopWidth,10),A=parseInt(N.borderRightWidth,10),F=parseInt(N.borderBottomWidth,10),G=0,J=0,K="offsetWidth"in B?B.offsetWidth-B.clientWidth-q-A:0,P="offsetHeight"in B?B.offsetHeight-B.clientHeight-z-F:0,Q="offsetWidth"in B?0===B.offsetWidth?0:X/B.offsetWidth:0,U="offsetHeight"in B?0===B.offsetHeight?0:O/B.offsetHeight:0;if(g===B)G="start"===d?C:"end"===d?C-v:"nearest"===d?i(H,H+v,v,z,F,H+C,H+C+y,y):C-v/2,J="start"===f?R:"center"===f?R-w/2:"end"===f?R-w:i(W,W+w,w,q,A,W+R,W+R+E,E),G=Math.max(0,G+H),J=Math.max(0,J+W);else{G="start"===d?C-Y-z:"end"===d?C-S+F+P:"nearest"===d?i(Y,S,O,z,F+P,C,C+y,y):C-(Y+O/2)+P/2,J="start"===f?R-j-q:"center"===f?R-(j+X/2)+K/2:"end"===f?R-L+A+K:i(j,L,X,q,A+K,R,R+E,E);var Z=B.scrollLeft,$=B.scrollTop;C+=$-(G=Math.max(0,Math.min($+G/U,B.scrollHeight-O/U+P))),R+=Z-(J=Math.max(0,Math.min(Z+J/Q,B.scrollWidth-X/Q+K)))}T.push({el:B,top:G,left:J})}return T};export{r as i};
|
|
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
|
@ -1 +0,0 @@
|
||||||
import{d as e,a3 as s,W as a,a0 as t,$ as l,X as o,u as i,c as n,a4 as r,a5 as u,a6 as p,Y as c,a7 as d,F as m,Z as f,a8 as v,j as y,r as _,v as g,a9 as j,aa as h,a1 as x,a2 as b}from"../@vue/@vue.CJIZsLsR.js";import{_ as k}from"../vue/vue.DpJWj6Ky.js";import{K as z,N as C}from"../@ant-design/@ant-design.p8gD75gF.js";import{g as w,h as $,i as I,j as L,k as K,L as M,m as S,n as F}from"../ant-design-vue/ant-design-vue.Dh0eC-8y.js";import{_ as B}from"../_plugin-vue_export-helper/_plugin-vue_export-helper.BCo6x5W8.js";import{b as H,u as N}from"../vue-router/vue-router.B92OrnBw.js";import{S as P}from"../../assets/index-DHDuxNml.js";import"../@ctrl/@ctrl.B2IeE8ye.js";import"../@babel/@babel.1FNH1IQo.js";import"../lodash-es/lodash-es.xwmpKtYY.js";import"../resize-observer-polyfill/resize-observer-polyfill.CzGuHLZU.js";import"../async-validator/async-validator.Cuo4gI4y.js";import"../scroll-into-view-if-needed/scroll-into-view-if-needed.CC-zn_OY.js";import"../compute-scroll-into-view/compute-scroll-into-view.DCNUDwgY.js";import"../throttle-debounce/throttle-debounce.w9OM8Bxz.js";import"../dom-align/dom-align.CwhutA7q.js";import"../dayjs/dayjs.BYs295sK.js";import"../@emotion/@emotion.BqFXxR3o.js";import"../stylis/stylis.IVPcsLSI.js";import"../vue-types/vue-types.BB_Jk3wA.js";import"../pinia/pinia.1NTCjJvz.js";import"../pinia-plugin-persistedstate/pinia-plugin-persistedstate.Cs-f0Iqr.js";import"../axios/axios.BYXpELat.js";const U={class:"flex-justify-between h-f"},W={class:"flex-center"},X={class:"margin-right flex-center"},Y=B(e({__name:"LayoutHeader",props:{collapsed:{type:Boolean},collapsedModifiers:{}},emits:["update:collapsed"],setup(e){const r=s(e,"collapsed");return(e,s)=>{const u=w;return a(),t("div",U,[l("div",W,[r.value?(a(),o(i(z),{key:0,class:"trigger",onClick:s[0]||(s[0]=()=>r.value=!r.value)})):(a(),o(i(C),{key:1,class:"trigger",onClick:s[1]||(s[1]=()=>r.value=!r.value)}))]),l("div",X,[n(u)])])}}}),[["__scopeId","data-v-bbea4d80"]]),Z=["href"],q=e({__name:"IconFont",props:{fontClass:{},size:{default:20},type:{default:"svg"}},setup:e=>(e,s)=>"class"===e.type?(a(),t("i",{key:0,class:r([`iconfont ${e.fontClass}`]),style:u({fontSize:`${e.size}px`})},null,6)):"svg"===e.type?(a(),t("svg",{key:1,style:u({width:`${e.size}px`,height:`${e.size}px`})},[l("use",{href:`#${e.fontClass}`},null,8,Z)],4)):p("",!0)}),A={class:"margin-left-xs"},D={class:"margin-left-xs"},E=e({__name:"MenuItem",props:{menuList:{default:()=>[]}},setup(e){const s=H();return(e,r)=>{const u=c("menu-item",!0),p=$,y=I;return a(!0),t(m,null,d(e.menuList,(e=>(a(),t(m,null,["dir"===e.type?(a(),o(p,{key:e.path},{icon:f((()=>[n(q,{"font-class":e.icon},null,8,["font-class"])])),title:f((()=>[l("span",A,v(e.title),1)])),default:f((()=>[n(u,{"menu-list":e.children},null,8,["menu-list"])])),_:2},1024)):(a(),o(y,{key:e.path,onClick:()=>i(s).push(e.path)},{icon:f((()=>[n(q,{"font-class":e.icon},null,8,["font-class"])])),default:f((()=>[l("span",D,v(e.title),1)])),_:2},1032,["onClick"]))],64)))),256)}}}),G=B(e({__name:"SystemMenus",setup(e){const s=N(),t=y((()=>[s.path]));return(e,s)=>{const l=L;return a(),o(l,{selectedKeys:t.value,mode:"inline","inline-collapsed":!1,class:"system-menus"},{default:f((()=>[n(E,{"menu-list":i(P)},null,8,["menu-list"])])),_:1},8,["selectedKeys"])}}}),[["__scopeId","data-v-8d4789b2"]]),J=e=>(x("data-v-5385a8ef"),e=e(),b(),e),O={key:0,class:"title flex-center"},Q=[J((()=>l("div",null,"保安后台",-1)))],R={key:1,class:"logo flex-center"},T=[J((()=>l("img",{src:k,title:"保安后台",alt:"xx"},null,-1)))],V=B(e({__name:"layout",setup(e){const s=_(!1),l=_([]);return(e,i)=>{const r=M,u=S,p=c("router-view"),d=F,m=K;return a(),o(m,{class:"main-content"},{default:f((()=>[n(r,{collapsed:s.value,theme:"light",trigger:null,collapsible:""},{default:f((()=>[s.value?(a(),t("div",R,T)):(a(),t("div",O,Q)),n(G)])),_:1},8,["collapsed"]),n(m,null,{default:f((()=>[n(u,{class:"layout-header"},{default:f((()=>[n(Y,{collapsed:s.value,"onUpdate:collapsed":i[0]||(i[0]=e=>s.value=e)},null,8,["collapsed"])])),_:1}),n(d,{class:"layout-content"},{default:f((()=>[n(p,null,{default:f((({Component:e,route:s})=>[n(g,{appear:"",name:"fade-transform",mode:"out-in"},{default:f((()=>[(a(),o(j,{include:l.value},[(a(),o(h(e),{key:s.fullPath}))],1032,["include"]))])),_:2},1024)])),_:1})])),_:1})])),_:1})])),_:1})}}}),[["__scopeId","data-v-5385a8ef"]]);export{V as default};
|
|
File diff suppressed because one or more lines are too long
|
@ -1 +0,0 @@
|
||||||
function e(e,t){var r;return e="object"==typeof(r=e)&&null!==r?e:Object.create(null),new Proxy(e,{get:(e,r,o)=>"key"===r?Reflect.get(e,r,o):Reflect.get(e,r,o)||Reflect.get(t,r,o)})}function t(e,{storage:t,serializer:r,key:o,debug:s}){try{const s=null==t?void 0:t.getItem(o);s&&e.$patch(null==r?void 0:r.deserialize(s))}catch(n){}}function r(e,{storage:t,serializer:r,key:o,paths:s,debug:n}){try{const n=Array.isArray(s)?function(e,t){return t.reduce(((t,r)=>{const o=r.split(".");return function(e,t,r){return t.slice(0,-1).reduce(((e,t)=>/^(__proto__)$/.test(t)?{}:e[t]=e[t]||{}),e)[t[t.length-1]]=r,e}(t,o,function(e,t){return t.reduce(((e,t)=>null==e?void 0:e[t]),e)}(e,o))}),{})}(e,s):e;t.setItem(o,r.serialize(n))}catch(i){}}var o=function(o={}){return s=>{const{auto:n=!1}=o,{options:{persist:i=n},store:a,pinia:l}=s;if(!i)return;if(!(a.$id in l.state.value)){const e=l._s.get(a.$id.replace("__hot:",""));return void(e&&Promise.resolve().then((()=>e.$persist())))}const u=(Array.isArray(i)?i.map((t=>e(t,o))):[e(i,o)]).map(function(e,t){return r=>{var o;try{const{storage:s=localStorage,beforeRestore:n,afterRestore:i,serializer:a={serialize:JSON.stringify,deserialize:JSON.parse},key:l=t.$id,paths:u=null,debug:c=!1}=r;return{storage:s,beforeRestore:n,afterRestore:i,serializer:a,key:(null!=(o=e.key)?o:e=>e)("string"==typeof l?l:l(t.$id)),paths:u,debug:c}}catch(s){return r.debug,null}}}(o,a)).filter(Boolean);a.$persist=()=>{u.forEach((e=>{r(a.$state,e)}))},a.$hydrate=({runHooks:e=!0}={})=>{u.forEach((r=>{const{beforeRestore:o,afterRestore:n}=r;e&&(null==o||o(s)),t(a,r),e&&(null==n||n(s))}))},u.forEach((e=>{const{beforeRestore:o,afterRestore:n}=e;null==o||o(s),t(a,e),null==n||n(s),a.$subscribe(((t,o)=>{r(o,e)}),{detached:!0})}))}}();export{o as s};
|
|
|
@ -1 +0,0 @@
|
||||||
import{Q as t,r as e,R as n,S as s,i as o,w as c,a,H as r,U as i,J as u,M as f,N as p,n as l,I as h,j as d}from"../@vue/@vue.CJIZsLsR.js";let y;const b=t=>y=t,_=Symbol();function v(t){return t&&"object"==typeof t&&"[object Object]"===Object.prototype.toString.call(t)&&"function"!=typeof t.toJSON}var j,$;function O(){const s=t(!0),o=s.run((()=>e({})));let c=[],a=[];const r=n({install(t){b(r),r._a=t,t.provide(_,r),t.config.globalProperties.$pinia=r,a.forEach((t=>c.push(t))),a=[]},use(t){return this._a?c.push(t):a.push(t),this},_p:c,_a:null,_e:s,_s:new Map,state:o});return r}($=j||(j={})).direct="direct",$.patchObject="patch object",$.patchFunction="patch function";const g=()=>{};function m(t,e,n,s=g){t.push(e);const o=()=>{const n=t.indexOf(e);n>-1&&(t.splice(n,1),s())};return!n&&f()&&p(o),o}function S(t,...e){t.slice().forEach((t=>{t(...e)}))}const E=t=>t(),P=Symbol(),w=Symbol();function I(t,e){t instanceof Map&&e instanceof Map?e.forEach(((e,n)=>t.set(n,e))):t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const n in e){if(!e.hasOwnProperty(n))continue;const s=e[n],o=t[n];v(o)&&v(s)&&t.hasOwnProperty(n)&&!r(s)&&!i(s)?t[n]=I(o,s):t[n]=s}return t}const{assign:M}=Object;function x(t){return!(!r(t)||!t.effect)}function A(s,o,f,p){const{state:y,actions:_,getters:v}=o,$=f.state.value[s];let O;return O=function(n,s,o={},f,p,h){let d;const y=M({actions:{}},o),_={deep:!0};let v,$,O,g=[],A=[];const F=f.state.value[n];let J;function N(t){let e;v=$=!1,"function"==typeof t?(t(f.state.value[n]),e={type:j.patchFunction,storeId:n,events:O}):(I(f.state.value[n],t),e={type:j.patchObject,payload:t,storeId:n,events:O});const s=J=Symbol();l().then((()=>{J===s&&(v=!0)})),$=!0,S(g,e,f.state.value[n])}e({});const k=function(){const{state:t}=o,e=t?t():{};this.$patch((t=>{M(t,e)}))};function C(){d.stop(),g=[],A=[],f._s.delete(n)}const H=(t,e="")=>{if(P in t)return t[w]=e,t;const s=function(){b(f);const e=Array.from(arguments),o=[],c=[];function a(t){o.push(t)}function r(t){c.push(t)}let i;S(A,{args:e,name:s[w],store:R,after:a,onError:r});try{i=t.apply(this&&this.$id===n?this:R,e)}catch(u){throw S(c,u),u}return i instanceof Promise?i.then((t=>(S(o,t),t))).catch((t=>(S(c,t),Promise.reject(t)))):(S(o,i),i)};return s[P]=!0,s[w]=e,s},Q={_p:f,$id:n,$onAction:m.bind(null,A),$patch:N,$reset:k,$subscribe(t,e={}){const s=m(g,t,e.detached,(()=>o())),o=d.run((()=>c((()=>f.state.value[n]),(s=>{("sync"===e.flush?$:v)&&t({storeId:n,type:j.direct,events:O},s)}),M({},_,e))));return s},$dispose:C},R=a(Q);f._s.set(n,R);const U=f._a&&f._a.runWithContext||E,W=U((()=>f._e.run((()=>(d=t()).run((()=>s({action:H})))))));for(const t in W){const e=W[t];if(r(e)&&!x(e)||i(e));else if("function"==typeof e){const n=H(e,t);W[t]=n,y.actions[t]=e}}M(R,W),M(u(R),W),Object.defineProperty(R,"$state",{get:()=>f.state.value[n],set:t=>{N((e=>{M(e,t)}))}}),f._p.forEach((t=>{M(R,d.run((()=>t({store:R,app:f._a,pinia:f,options:y}))))})),F&&h&&o.hydrate&&o.hydrate(R.$state,F);return v=!0,$=!0,R}(s,(function(){$||(f.state.value[s]=y?y():{});const t=h(f.state.value[s]);return M(t,_,Object.keys(v||{}).reduce(((t,e)=>(t[e]=n(d((()=>{b(f);const t=f._s.get(s);return v[e].call(t,t)}))),t)),{}))}),o,f,0,!0),O}function F(t,e,n){let c,a;function r(t,e){const n=s();(t=t||(n?o(_,null):null))&&b(t),(t=y)._s.has(c)||A(c,a,t);return t._s.get(c)}return"string"==typeof t?(c=t,a=e):(a=t,c=t.id),r.$id=c,r}export{O as c,F as d};
|
|
File diff suppressed because one or more lines are too long
|
@ -1 +0,0 @@
|
||||||
import{i as o}from"../compute-scroll-into-view/compute-scroll-into-view.DCNUDwgY.js";function e(o){return o===Object(o)&&0!==Object.keys(o).length}function t(t,n){var r=t.isConnected||t.ownerDocument.documentElement.contains(t);if(e(n)&&"function"==typeof n.behavior)return n.behavior(r?o(t,n):[]);if(r){var i=function(o){return!1===o?{block:"end",inline:"nearest"}:e(o)?o:{block:"start",inline:"nearest"}}(n);return function(o,e){void 0===e&&(e="auto");var t="scrollBehavior"in document.body.style;o.forEach((function(o){var n=o.el,r=o.top,i=o.left;n.scroll&&t?n.scroll({top:r,left:i,behavior:e}):(n.scrollTop=r,n.scrollLeft=i)}))}(o(t,i),i.behavior)}}export{t as s};
|
|
File diff suppressed because one or more lines are too long
|
@ -1 +0,0 @@
|
||||||
var e="comm",r="rule",n="decl",c=Math.abs,a=String.fromCharCode;function t(e){return e.trim()}function u(e,r,n){return e.replace(r,n)}function s(e,r,n){return e.indexOf(r,n)}function i(e,r){return 0|e.charCodeAt(r)}function f(e,r,n){return e.slice(r,n)}function o(e){return e.length}function l(e,r){return r.push(e),e}var h=1,b=1,k=0,d=0,v=0,p="";function g(e,r,n,c,a,t,u,s){return{value:e,root:r,parent:n,type:c,props:a,children:t,line:h,column:b,length:u,return:"",siblings:s}}function w(){return v=d<k?i(p,d++):0,b++,10===v&&(b=1,h++),v}function m(){return i(p,d)}function y(){return d}function C(e,r){return f(p,e,r)}function x(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function j(e){return t(C(d-1,O(91===e?e+2:40===e?e+1:e)))}function A(e){for(;(v=m())&&v<33;)w();return x(e)>2||x(v)>3?"":" "}function M(e,r){for(;--r&&w()&&!(v<48||v>102||v>57&&v<65||v>70&&v<97););return C(e,y()+(r<6&&32==m()&&32==w()))}function O(e){for(;w();)switch(v){case e:return d;case 34:case 39:34!==e&&39!==e&&O(v);break;case 40:41===e&&O(e);break;case 92:w()}return d}function S(e,r){for(;w()&&e+v!==57&&(e+v!==84||47!==m()););return"/*"+C(r,d-1)+"*"+a(47===e?e:w())}function q(e){for(;!x(m());)w();return C(e,d)}function z(e){return function(e){return p="",e}(B("",null,null,null,[""],e=function(e){return h=b=1,k=o(p=e),d=0,[]}(e),0,[0],e))}function B(e,r,n,t,k,g,C,O,z){for(var G=0,H=0,I=C,J=0,K=0,L=0,N=1,P=1,Q=1,R=0,T="",U=k,V=g,W=t,X=T;P;)switch(L=R,R=w()){case 40:if(108!=L&&58==i(X,I-1)){-1!=s(X+=u(j(R),"&","&\f"),"&\f",c(G?O[G-1]:0))&&(Q=-1);break}case 34:case 39:case 91:X+=j(R);break;case 9:case 10:case 13:case 32:X+=A(L);break;case 92:X+=M(y()-1,7);continue;case 47:switch(m()){case 42:case 47:l(E(S(w(),y()),r,n,z),z),5!=x(L||1)&&5!=x(m()||1)||!o(X)||" "===f(X,-1,void 0)||(X+=" ");break;default:X+="/"}break;case 123*N:O[G++]=o(X)*Q;case 125*N:case 59:case 0:switch(R){case 0:case 125:P=0;case 59+H:-1==Q&&(X=u(X,/\f/g,"")),K>0&&(o(X)-I||0===N&&47===L)&&l(K>32?F(X+";",t,n,I-1,z):F(u(X," ","")+";",t,n,I-2,z),z);break;case 59:X+=";";default:if(l(W=D(X,r,n,G,H,k,O,T,U=[],V=[],I,g),g),123===R)if(0===H)B(X,r,W,W,U,g,I,O,V);else switch(99===J&&110===i(X,3)?100:J){case 100:case 108:case 109:case 115:B(e,W,W,t&&l(D(e,W,W,0,0,k,O,T,k,U=[],I,V),V),k,V,I,O,t?U:V);break;default:B(X,W,W,W,[""],V,0,O,V)}}G=H=K=0,N=Q=1,T=X="",I=C;break;case 58:I=1+o(X),K=L;default:if(N<1)if(123==R)--N;else if(125==R&&0==N++&&125==(v=d>0?i(p,--d):0,b--,10===v&&(b=1,h--),v))continue;switch(X+=a(R),R*N){case 38:Q=H>0?1:(X+="\f",-1);break;case 44:O[G++]=(o(X)-1)*Q,Q=1;break;case 64:45===m()&&(X+=j(w())),J=m(),H=I=o(T=X+=q(y())),R++;break;case 45:45===L&&2==o(X)&&(N=0)}}return g}function D(e,n,a,s,i,o,l,h,b,k,d,v){for(var p=i-1,w=0===i?o:[""],m=function(e){return e.length}(w),y=0,C=0,x=0;y<s;++y)for(var j=0,A=f(e,p+1,p=c(C=l[y])),M=e;j<m;++j)(M=t(C>0?w[j]+" "+A:u(A,/&\f/g,w[j])))&&(b[x++]=M);return g(e,n,a,0===i?r:h,b,k,d,v)}function E(r,n,c,t){return g(r,n,c,e,a(v),f(r,2,-2),0,t)}function F(e,r,c,a,t){return g(e,r,c,n,f(e,0,a),f(e,a+1,-1),a,t)}function G(e,r){for(var n="",c=0;c<e.length;c++)n+=r(e[c],c,e,r)||"";return n}function H(c,a,t,u){switch(c.type){case"@layer":if(c.children.length)break;case"@import":case n:return c.return=c.return||c.value;case e:return"";case"@keyframes":return c.return=c.value+"{"+G(c.children,u)+"}";case r:if(!o(c.value=c.props.join(",")))return""}return o(t=G(c.children,u))?c.return=c.value+"{"+t+"}":""}export{H as a,z as c,G as s};
|
|
|
@ -1 +0,0 @@
|
||||||
function n(n,o,i){var e={}.atBegin;return function(n,o,i){var e,t=i||{},a=t.noTrailing,d=void 0!==a&&a,r=t.noLeading,u=void 0!==r&&r,v=t.debounceMode,c=void 0===v?void 0:v,f=!1,l=0;function g(){e&&clearTimeout(e)}function m(){for(var i=arguments.length,t=new Array(i),a=0;a<i;a++)t[a]=arguments[a];var r=this,v=Date.now()-l;function m(){l=Date.now(),o.apply(r,t)}function p(){e=void 0}f||(u||!c||e||m(),g(),void 0===c&&v>n?u?(l=Date.now(),d||(e=setTimeout(c?p:m,n))):m():!0!==d&&(e=setTimeout(c?p:m,void 0===c?n-v:n)))}return m.cancel=function(n){var o=(n||{}).upcomingOnly,i=void 0!==o&&o;g(),f=!i},m}(n,o,{debounceMode:!1!==(void 0!==e&&e)})}export{n as d};
|
|
|
@ -1 +0,0 @@
|
||||||
import{T as e,_ as a}from"../TableProMax/TableProMax.CdWlYNTP.js";import{d as t,a as l,U as s}from"../../assets/index-DHDuxNml.js";import{r as i,s as n,a as r,B as o,t as u,M as p}from"../ant-design-vue/ant-design-vue.Dh0eC-8y.js";import{d,r as m,W as v,a0 as c,c as b,u as y,Z as x,G as f}from"../@vue/@vue.CJIZsLsR.js";import"../AdministrativeDivisionsTree.vue_vue_type_script_setup_true_lang/AdministrativeDivisionsTree.vue_vue_type_script_setup_true_lang.BVXh-c7P.js";import"../@ant-design/@ant-design.p8gD75gF.js";import"../@ctrl/@ctrl.B2IeE8ye.js";import"../lodash-es/lodash-es.xwmpKtYY.js";import"../_plugin-vue_export-helper/_plugin-vue_export-helper.BCo6x5W8.js";import"../dayjs/dayjs.BYs295sK.js";import"../vue-router/vue-router.B92OrnBw.js";import"../pinia/pinia.1NTCjJvz.js";import"../pinia-plugin-persistedstate/pinia-plugin-persistedstate.Cs-f0Iqr.js";import"../axios/axios.BYXpELat.js";import"../@babel/@babel.1FNH1IQo.js";import"../resize-observer-polyfill/resize-observer-polyfill.CzGuHLZU.js";import"../async-validator/async-validator.Cuo4gI4y.js";import"../scroll-into-view-if-needed/scroll-into-view-if-needed.CC-zn_OY.js";import"../compute-scroll-into-view/compute-scroll-into-view.DCNUDwgY.js";import"../throttle-debounce/throttle-debounce.w9OM8Bxz.js";import"../dom-align/dom-align.CwhutA7q.js";import"../@emotion/@emotion.BqFXxR3o.js";import"../stylis/stylis.IVPcsLSI.js";import"../vue-types/vue-types.BB_Jk3wA.js";const g=d({__name:"index",setup(d){const g=m(null),j=e=>l.post("/management/miniProgramUserPager",e),h=[{dataIndex:"name",title:"名称",width:150,ellipsis:!0},{dataIndex:"identity",title:"身份类型",width:150,customRender:({text:e})=>b("div",null,[null==e?void 0:e.label])},{dataIndex:"sex",title:"性别",customRender:({text:e})=>b(i,null,{default:()=>[null==e?void 0:e.label]}),width:100},{dataIndex:"telephone",title:"手机号码",width:150,ellipsis:!0},{dataIndex:"createTime",title:"创建时间",width:200,ellipsis:!0},{dataIndex:"isEnable",title:"是否启用",customRender:({text:e})=>{var a;return b(i,{color:null==(a=null==e?void 0:e.extData)?void 0:a.color},{default:()=>[null==e?void 0:e.label]})},width:150},{dataIndex:"opt",title:"操作",fixed:"right",customRender:({record:e})=>1===e.checkStatus.value?b(u,null,{default:()=>[b(n,{title:"确认审核通过嘛?",onConfirm:async()=>{var a;const t=await l.post("/management/passMiniProgramUser",{dataId:e.snowFlakeId,unitOptType:s.security});r.success(t.message),await(null==(a=g.value)?void 0:a.requestGetTableData())}},{default:()=>[b(o,{type:"primary"},{default:()=>[f("审核通过")]})]})]}):0===e.isEnable.value?b(o,{danger:!0,onClick:async()=>{var a;const t=await l.post("/management/disableOrEnableMiniProgramUser",{dataId:e.snowFlakeId,unitOptType:s.security});r.success(t.message),await(null==(a=g.value)?void 0:a.requestGetTableData())}},{default:()=>[0===e.isEnable.value?"禁用":"启用"]}):b(o,{type:"primary",onClick:async()=>{var a;const t=await l.post("/management/disableOrEnableMiniProgramUser",{dataId:e.snowFlakeId,unitOptType:s.security});r.success(t.message),await(null==(a=g.value)?void 0:a.requestGetTableData())}},{default:()=>[0===e.isEnable.value?"禁用":"启用"]})}],w=h.reduce(((e,a)=>e+a.width),0),_={name:{type:"input",label:"名称"},sex:{type:"select",label:"性别",options:[{value:null,label:"全部"},...t("Sex")]},telephone:{type:"input",label:"手机号"},isEnable:{type:"select",label:"是否启用",options:[{value:null,label:"全部"},...t("IsEnable")]}},I=m(!1),k=m("新增用户"),E=m(null),T=m({name:"",sex:0,telephone:"",isEnable:0}),U=m({name:{type:"input",label:"姓名",required:!0},sex:{type:"radioGroup",label:"性别",options:t("Sex"),required:!0},telephone:{type:"input",label:"手机号",required:!0},isEnable:{type:"radioGroup",label:"启用状态",options:t("IsEnable"),required:!0},remark:{type:"inputTextArea",label:"备注"}}),q=async()=>{var e;await E.value.validate();const a=m("");"新增用户"===k.value?a.value="":a.value=T.value.snowFlakeId;const t={snowFlakeId:a.value,name:T.value.name,sex:T.value.sex,telephone:T.value.telephone,isEnable:T.value.isEnable,remark:T.value.remark},s=await l.post("/managementSecurityUnitUser/saveOrUpdate",t);r.success(s.message),null==(e=g.value)||e.requestGetTableData(),O()},O=()=>{T.value={name:"",sex:0,telephone:"",isEnable:0,remark:""},I.value=!1,k.value="新增用户"};return(t,l)=>{const s=p;return v(),c("div",null,[b(e,{ref_key:"tableRef",ref:g,"request-api":j,columns:h,searchFormOptions:_,scroll:{x:y(w)}},null,8,["scroll"]),b(s,{open:I.value,"onUpdate:open":l[1]||(l[1]=e=>I.value=e),title:k.value,onOk:q,onCancel:O},{default:x((()=>[b(a,{ref_key:"formRef",ref:E,value:T.value,"onUpdate:value":l[0]||(l[0]=e=>T.value=e),"form-item-options":U.value},null,8,["value","form-item-options"])])),_:1},8,["open","title"])])}}});export{g as default};
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1 +0,0 @@
|
||||||
import{_ as e}from"../_plugin-vue_export-helper/_plugin-vue_export-helper.BCo6x5W8.js";import{W as r,a0 as u}from"../@vue/@vue.CJIZsLsR.js";const n=e({},[["render",function(e,n){return r(),u("div",null," index页面")}]]);export{n as default};
|
|
|
@ -1 +0,0 @@
|
||||||
import{_ as e}from"../vue/vue.DpJWj6Ky.js";import{u as s,a,C as t}from"../../assets/index-DHDuxNml.js";import{u as o,b as l}from"../vue-router/vue-router.B92OrnBw.js";import{J as i}from"../jsencrypt/jsencrypt.CNUtvsdM.js";import{b as r,I as n,_ as p,c as d,d as c,B as u,F as m,T as v,e as g,f}from"../ant-design-vue/ant-design-vue.Dh0eC-8y.js";import{d as h,o as y,r as b,W as j,X as _,Z as w,c as x,$ as A,G as k,a0 as z,u as B,a1 as I,a2 as C}from"../@vue/@vue.CJIZsLsR.js";import{_ as T}from"../_plugin-vue_export-helper/_plugin-vue_export-helper.BCo6x5W8.js";import{J as K,W as L}from"../@ant-design/@ant-design.p8gD75gF.js";import"../dayjs/dayjs.BYs295sK.js";import"../pinia/pinia.1NTCjJvz.js";import"../pinia-plugin-persistedstate/pinia-plugin-persistedstate.Cs-f0Iqr.js";import"../axios/axios.BYXpELat.js";import"../@babel/@babel.1FNH1IQo.js";import"../@ctrl/@ctrl.B2IeE8ye.js";import"../lodash-es/lodash-es.xwmpKtYY.js";import"../resize-observer-polyfill/resize-observer-polyfill.CzGuHLZU.js";import"../async-validator/async-validator.Cuo4gI4y.js";import"../scroll-into-view-if-needed/scroll-into-view-if-needed.CC-zn_OY.js";import"../compute-scroll-into-view/compute-scroll-into-view.DCNUDwgY.js";import"../throttle-debounce/throttle-debounce.w9OM8Bxz.js";import"../dom-align/dom-align.CwhutA7q.js";import"../@emotion/@emotion.BqFXxR3o.js";import"../stylis/stylis.IVPcsLSI.js";import"../vue-types/vue-types.BB_Jk3wA.js";const R=new i;R.setPublicKey("MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCpu1C3JHZ+Ng/eVVCZtwKsOZv9RktpAL13pKy4FoRHyNv2t8TPV2AMzLzfEzlWx001nBxyVxEMR2N9jAcqFLHv7r16ciOzbtzB9dky2G+bc9jIs4/EdVK5bAZcPRh5Jrb78sC9PHyR4AeceDyCIKHLUbWBJB4NTZE0s1Wh5kMynQIDAQAB");const q=e=>{const s=R.encrypt(e);if(!s)throw"加密失败";return s},G={class:"remember-me"},H=T(h({__name:"TelephoneLogin",setup(e){y((()=>{const e=o();h.value.telephone=e.query.account,h.value.password=e.query.password}));const i=s(),v=l(),g=b(null),f={telephone:[{required:!0,message:"请输入手机号",trigger:"change"}],password:[{required:!0,message:"请输入密码",trigger:"change"},{min:6,max:20,message:"密码长度最小为6最长为20",trigger:"blur"}]},h=b({telephone:"",password:""}),z=async()=>{await g.value.validate();const e=await a.post("/login",{clientType:t,loginParams:{accountOrTelephone:h.value.telephone,password:q(h.value.password)}});i.saveTokenInfo(e.data),v.push("/index").then((()=>{r.success({message:"登录成功",duration:2,description:"欢迎来到本系统!",placement:"topRight"})}))};return(e,s)=>{const a=n,t=p,o=d,l=c,i=u,r=m;return j(),_(r,{ref_key:"formRef",ref:g,model:h.value,rules:f,onFinish:z,layout:"vertical",size:"large",class:"login-form"},{default:w((()=>[x(t,{name:"telephone"},{default:w((()=>[x(a,{value:h.value.telephone,"onUpdate:value":s[0]||(s[0]=e=>h.value.telephone=e),placeholder:"请输入账号/手机号","max-length":64,"allow-clear":""},null,8,["value"])])),_:1}),x(t,{name:"password"},{default:w((()=>[x(o,{value:h.value.password,"onUpdate:value":s[1]||(s[1]=e=>h.value.password=e),placeholder:"请输入密码","max-length":32},null,8,["value"])])),_:1}),A("div",G,[x(l,{disabled:""},{default:w((()=>[k(" 记住我 ")])),_:1})]),x(i,{class:"btn",type:"primary","html-type":"submit"},{default:w((()=>[k("立即登录 ")])),_:1})])),_:1},8,["model"])}}}),[["__scopeId","data-v-7a695eba"]]),M=e=>(I("data-v-40ec73f3"),e=e(),C(),e),Q={class:"root"},Z=M((()=>A("div",{class:"header"},[A("img",{src:e,alt:"Logo",height:"33",width:"33"}),A("div",{class:"logo-text"},"超级后台")],-1))),E={class:"container"},J=M((()=>A("div",{class:"left-banner"},null,-1))),N={class:"login-card"},P=M((()=>A("div",{class:"title"}," 欢迎来到超级后台 ",-1))),U={class:"oauth"},V={class:"idps"},W=M((()=>A("div",{class:"footer"},[A("div",{class:"beian"},[A("div",{class:"below text",innerHTML:"..."})])],-1))),D=T(h({__name:"login",setup(e){const s=b(0);return(e,a)=>{const t=f,o=v,l=g,i=u;return j(),z("div",Q,[Z,A("div",E,[J,A("div",N,[P,x(o,{class:"account-tab","active-key":s.value,"onUpdate:activeKey":a[0]||(a[0]=e=>s.value=e)},{default:w((()=>[(j(),_(t,{key:0,tab:"账号登录"},{default:w((()=>[x(H)])),_:1}))])),_:1},8,["active-key"]),A("div",U,[x(l,{class:"text",orientation:"center"},{default:w((()=>[k("其他登录方式")])),_:1}),A("div",V,[x(i,{class:"app",type:"link",shape:"circle",disabled:""},{default:w((()=>[x(B(K))])),_:1}),x(i,{class:"app",type:"link",shape:"circle",disabled:""},{default:w((()=>[x(B(L))])),_:1})])])])]),W])}}}),[["__scopeId","data-v-40ec73f3"]]);export{D as default};
|
|
|
@ -1 +0,0 @@
|
||||||
import{_ as e}from"../AdministrativeDivisionsTree.vue_vue_type_script_setup_true_lang/AdministrativeDivisionsTree.vue_vue_type_script_setup_true_lang.BVXh-c7P.js";import{d as i,r as s,W as t,a0 as o,c as r}from"../@vue/@vue.CJIZsLsR.js";import"../../assets/index-DHDuxNml.js";import"../ant-design-vue/ant-design-vue.Dh0eC-8y.js";import"../@babel/@babel.1FNH1IQo.js";import"../@ant-design/@ant-design.p8gD75gF.js";import"../@ctrl/@ctrl.B2IeE8ye.js";import"../lodash-es/lodash-es.xwmpKtYY.js";import"../resize-observer-polyfill/resize-observer-polyfill.CzGuHLZU.js";import"../async-validator/async-validator.Cuo4gI4y.js";import"../scroll-into-view-if-needed/scroll-into-view-if-needed.CC-zn_OY.js";import"../compute-scroll-into-view/compute-scroll-into-view.DCNUDwgY.js";import"../throttle-debounce/throttle-debounce.w9OM8Bxz.js";import"../dom-align/dom-align.CwhutA7q.js";import"../dayjs/dayjs.BYs295sK.js";import"../@emotion/@emotion.BqFXxR3o.js";import"../stylis/stylis.IVPcsLSI.js";import"../vue-types/vue-types.BB_Jk3wA.js";import"../vue-router/vue-router.B92OrnBw.js";import"../pinia/pinia.1NTCjJvz.js";import"../pinia-plugin-persistedstate/pinia-plugin-persistedstate.Cs-f0Iqr.js";import"../axios/axios.BYXpELat.js";const a={style:{margin:"100px auto",width:"500px"}},p=i({__name:"test",setup(i){const p=s();return(i,s)=>(t(),o("div",a,[r(e,{value:p.value,"onUpdate:value":s[0]||(s[0]=e=>p.value=e)},null,8,["value"])]))}});export{p as default};
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1 +0,0 @@
|
||||||
import{v as a,a as s,b as v,c as u}from"../uuid/uuid.CH_RTOvB.js";var r={v1:a,v3:s,v4:v,v5:u};export{r as u};
|
|
|
@ -1 +0,0 @@
|
||||||
const e="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20aria-hidden='true'%20role='img'%20class='iconify%20iconify--logos'%20width='37.07'%20height='36'%20preserveAspectRatio='xMidYMid%20meet'%20viewBox='0%200%20256%20198'%3e%3cpath%20fill='%2341B883'%20d='M204.8%200H256L128%20220.8L0%200h97.92L128%2051.2L157.44%200h47.36Z'%3e%3c/path%3e%3cpath%20fill='%2341B883'%20d='m0%200l128%20220.8L256%200h-51.2L128%20132.48L50.56%200H0Z'%3e%3c/path%3e%3cpath%20fill='%2335495E'%20d='M50.56%200L128%20133.12L204.8%200h-47.36L128%2051.2L97.92%200H50.56Z'%3e%3c/path%3e%3c/svg%3e";export{e as _};
|
|
|
@ -1 +0,0 @@
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
|
|
Before Width: | Height: | Size: 1.5 KiB |
|
@ -6,6 +6,7 @@
|
||||||
v-else
|
v-else
|
||||||
:src="minioBaseUrl+modelValue"
|
:src="minioBaseUrl+modelValue"
|
||||||
alt="avatar"/>
|
alt="avatar"/>
|
||||||
|
|
||||||
<a-button class="btn-success" @click="selectFile">{{ btnLabel }}</a-button>
|
<a-button class="btn-success" @click="selectFile">{{ btnLabel }}</a-button>
|
||||||
<input id="myFileInput" type="file" style="display: none" ref="fileInput" />
|
<input id="myFileInput" type="file" style="display: none" ref="fileInput" />
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue