Commit 7966b880 authored by zuoliyuan's avatar zuoliyuan

跳转token失效

parent 3f1a8684
<template>
<view class="content">
<image class="logo" src="/static/logo.png"></image>
<view class="text-area">
<text class="title" style="font-size: 12px;padding: 100px;">{{title}}</text>
</view>
</view>
</template>
<script>
export default {
data() {
return {
title: this.$route.query.code
}
},
onLoad() {
debugger
if(!localStorage.getItem("hasLoginss")){
uni.redirectTo({
url: '/pages/login/index'
});
}
if(this.$route.query.code){
// 从静模授权进入首页
localStorage.setItem("auth_code",this.$route.query.code)
this.getuserinfo3rd()
}
},
methods: {
// 获取敏感信息
getuserinfo3rd:function(){
uni.request({
url: 'http://127.0.0.1:4523/m1/2230462-1135055-default/getData?code='+this.$route.query.code,
method:'get',
success: function (res) {
alert(res.data.hasChildren,this.$route.query.code)
console.log("res:"+res);
}
})
}
}
}
</script>
<style>
.content {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.logo {
height: 200rpx;
width: 200rpx;
margin-top: 200rpx;
margin-left: auto;
margin-right: auto;
margin-bottom: 50rpx;
}
.text-area {
display: flex;
justify-content: center;
}
.title {
font-size: 36rpx;
color: #8f8f94;
}
</style>
\ No newline at end of file
<template>
<view class="launch-v">
<!-- #ifdef APP-PLUS -->
<view class="launch-box">
<view class="title">全新模式 为你而来</view>
<view class="version">VERSION3.7</view>
<view class="launch-img">
<image :src="startup" mode="widthFix"></image>
</view>
<!-- <view class="copyright">Copyright © 2024 华中师范大学出品</view> -->
</view>
<!-- #endif -->
</view>
</template>
<script>
import resources from '@/libs/resources.js'
export default {
data() {
return {
startup: resources.startup.main
}
},
onLoad() {
if (uni.getStorageSync('isUpdate')) return
const launchFlag = uni.getStorageSync('launchFlag');
const token = uni.getStorageSync("token") || '';
if (launchFlag) {
if (token) {
uni.switchTab({
url: '/pages/index/index'
})
} else {
uni.redirectTo({
url: '/pages/login/index'
})
}
} else {
// #ifdef APP-PLUS
uni.redirectTo({
url: '/pages/launch/policy'
})
// #endif
// #ifndef APP-PLUS
if (token) {
uni.switchTab({
url: '/pages/index/index'
})
} else {
uni.redirectTo({
url: '/pages/login/index'
})
}
// #endif
}
},
}
</script>
<style lang="scss">
.launch-v {
.launch-box {
padding-top: 170rpx;
.title {
font-size: 50rpx;
line-height: 70rpx;
color: #5098FA;
text-align: center;
margin-bottom: 10rpx;
}
.version {
width: 250rpx;
margin: 0 auto;
text-align: center;
height: 50rpx;
border: 1px solid #5098FA;
border-radius: 25rpx;
line-height: 48rpx;
color: #5098FA;
letter-spacing: 2rpx;
}
.launch-img {
margin: 0 auto;
width: 680rpx;
image {
width: 100%;
}
}
.copyright {
position: fixed;
bottom: 120rpx;
right: 0;
left: 0;
text-align: center;
color: #999999;
font-size: 24rpx;
}
}
}
</style>
\ No newline at end of file
<template> <template>
<view class="content"> <view class="launch-v">
<image class="logo" src="/static/logo.png"></image> <!-- #ifdef APP-PLUS -->
<view class="text-area"> <view class="launch-box">
<text class="title" style="font-size: 12px;padding: 100px;">{{title}}</text> <view class="title">全新模式 为你而来</view>
<view class="version">VERSION3.7</view>
<view class="launch-img">
<image :src="startup" mode="widthFix"></image>
</view>
<!-- <view class="copyright">Copyright © 2024 华中师范大学出品</view> -->
</view> </view>
<!-- #endif -->
</view> </view>
</template> </template>
<script> <script>
import resources from '@/libs/resources.js'
export default { export default {
data() { data() {
return { return {
title: this.$route.query.code startup: resources.startup.main
} }
}, },
onLoad() { onLoad() {
debugger if (uni.getStorageSync('isUpdate')) return
if(!localStorage.getItem("hasLoginss")){ const launchFlag = uni.getStorageSync('launchFlag');
const token = uni.getStorageSync("token") || '';
if (launchFlag) {
if (token) {
uni.switchTab({
url: '/pages/index/index'
})
} else {
uni.redirectTo({
url: '/pages/login/index'
})
}
} else {
// #ifdef APP-PLUS
uni.redirectTo({ uni.redirectTo({
url: '/pages/login/index' url: '/pages/launch/policy'
});
}
if(this.$route.query.code){
// 从静模授权进入首页
localStorage.setItem("auth_code",this.$route.query.code)
this.getuserinfo3rd()
}
},
methods: {
// 获取敏感信息
getuserinfo3rd:function(){
uni.request({
url: 'http://127.0.0.1:4523/m1/2230462-1135055-default/getData?code='+this.$route.query.code,
method:'get',
success: function (res) {
alert(res.data.hasChildren,this.$route.query.code)
console.log("res:"+res);
}
}) })
// #endif
// #ifndef APP-PLUS
if (token) {
uni.switchTab({
url: '/pages/index/index'
})
} else {
uni.redirectTo({
url: '/pages/login/index'
})
}
// #endif
} }
} },
} }
</script> </script>
<style> <style lang="scss">
.content { .launch-v {
display: flex; .launch-box {
flex-direction: column; padding-top: 170rpx;
align-items: center;
justify-content: center;
}
.logo { .title {
height: 200rpx; font-size: 50rpx;
width: 200rpx; line-height: 70rpx;
margin-top: 200rpx; color: #5098FA;
margin-left: auto; text-align: center;
margin-right: auto; margin-bottom: 10rpx;
margin-bottom: 50rpx; }
}
.text-area { .version {
display: flex; width: 250rpx;
justify-content: center; margin: 0 auto;
} text-align: center;
height: 50rpx;
border: 1px solid #5098FA;
border-radius: 25rpx;
line-height: 48rpx;
color: #5098FA;
letter-spacing: 2rpx;
}
.title { .launch-img {
font-size: 36rpx; margin: 0 auto;
color: #8f8f94; width: 680rpx;
image {
width: 100%;
}
}
.copyright {
position: fixed;
bottom: 120rpx;
right: 0;
left: 0;
text-align: center;
color: #999999;
font-size: 24rpx;
}
}
} }
</style> </style>
\ No newline at end of file
<template>
<view style="width: 96%;margin: 0 auto;">
<view>
<form @submit="doLogin">
<!-- <button plain="true" class="loginBtn" lang="zh_CN" form-type="submit">登录</button> -->
</form>
</view>
</view>
</template>
<script>
export default {
data() {
return {
usercode: '',
password: '',
passwordHidden: true
}
},
onLoad: function() {
let _this = this
localStorage.setItem("hasLoginss", true)
// 这里放自己的域名
let redirect_uri = encodeURI("https://dj.ccnu.edu.cn/app")
let authorUrl = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx7219d601c7041b7a&redirect_uri=' + redirect_uri + '&response_type=code&scope=snsapi_base&state=STATE&agentid=1000396#wechat_redirect'
console.log(authorUrl, 898)
window.location.href = authorUrl
},
methods: {
doLogin() {
}
}
}
</script>
<style>
.loginBtn {
color: #337bd4 !important;
border: 1rpx solid #337bd4 !important;
font-size: 30rpx;
border-radius: 50rpx;
}
</style>
\ No newline at end of file
This diff is collapsed.
import{_ as e}from"./uni-icons.jjnOjDhO.js";import{k as r,o,c as t,w as s,a,l,F as i,G as u,H as m,i as n}from"./index-BCBx8hnA.js";import{r as p}from"./uni-app.es.B9JggBRO.js";import{_ as d}from"./index.CkSNY1fj.js";import{_ as c,a as f}from"./u-form.BC81dQGG.js";import{_ as h}from"./u-button.D3HIxWwn.js";import{_}from"./u-popup.C4IrtB3k.js";import{_ as b}from"./_plugin-vue_export-helper.BCo6x5W8.js";const F=b({props:{},data:()=>({errorDataForm:{errorRuleUserList:{}},list:[],show:!1,query:{}}),methods:{init(e,r,o){this.query=o,this.show=!0,this.list=e,this.eventType=r,this.list.map((e=>{this.$set(this.errorDataForm.errorRuleUserList,e.nodeId,[])}))},submit(){const e={...this.query,errorRuleUserList:this.errorDataForm.errorRuleUserList,eventType:this.eventType};for(let r in this.errorDataForm.errorRuleUserList)if(this.errorDataForm.errorRuleUserList[r].length<=0)return this.$u.toast("异常处理人员不能为空");this.$emit("submitErrorForm",e)},cancel(){this.close()},black(){this.close()},close(){this.show=!1}}},[["render",function(b,F,y,U,k,D){const j=p(r("uni-icons"),e),w=n,C=p(r("JnpfUserSelect"),d),L=p(r("u-form-item"),c),R=p(r("u-form"),f),V=p(r("u-button"),h),v=p(r("u-popup"),_);return o(),t(w,{class:"dataForm-v"},{default:s((()=>[a(v,{mode:"left",popup:!1,modelValue:k.show,"onUpdate:modelValue":F[0]||(F[0]=e=>k.show=e),length:"auto",onClose:D.close,width:"100%"},{default:s((()=>[a(w,{class:"diyTitle u-flex"},{default:s((()=>[a(j,{type:"back",size:"27",class:"uni-btn-icon",onClick:D.black},null,8,["onClick"]),a(w,{class:"txt"},{default:s((()=>[l("异常处理")])),_:1})])),_:1}),a(w,{class:"jnpf-wrap-form"},{default:s((()=>[a(R,{model:k.errorDataForm,ref:"errorDataForm",errorType:["toast"],"label-position":"left","label-width":"150","label-align":"left"},{default:s((()=>[(o(!0),i(m,null,u(k.list,((e,r)=>(o(),t(L,{prop:"errorDataForm",key:r,label:e.nodeName,required:""},{default:s((()=>[a(C,{modelValue:k.errorDataForm.errorRuleUserList[e.nodeId],"onUpdate:modelValue":r=>k.errorDataForm.errorRuleUserList[e.nodeId]=r,multiple:!0,placeholder:"异常处理人员不能为空"},null,8,["modelValue","onUpdate:modelValue"])])),_:2},1032,["label"])))),128))])),_:1},8,["model"]),a(w,{class:"buttom-actions"},{default:s((()=>[a(V,{class:"buttom-btn",onClick:D.cancel},{default:s((()=>[l("取消")])),_:1},8,["onClick"]),a(V,{class:"buttom-btn",type:"primary",onClick:D.submit},{default:s((()=>[l("确定")])),_:1},8,["onClick"])])),_:1})])),_:1})])),_:1},8,["modelValue","onClose"])])),_:1})}],["__scopeId","data-v-5196f04b"]]);export{F as E};
import{_ as e}from"./uni-icons.D0ehU5V1.js";import{p as r,o,c as t,w as s,b as a,d as l,H as i,I as u,J as m,i as n}from"./index-NHnW2VC9.js";import{r as p}from"./uni-app.es.BuWGDiAw.js";import{_ as d}from"./index.QBD8K0iz.js";import{_ as c,a as f}from"./u-form.CvP_uqgk.js";import{_ as h}from"./u-button.CUOd3Cwo.js";import{_ as b}from"./u-popup.DNXgogH5.js";import{_}from"./_plugin-vue_export-helper.BCo6x5W8.js";const y=_({props:{},data:()=>({errorDataForm:{errorRuleUserList:{}},list:[],show:!1,query:{}}),methods:{init(e,r,o){this.query=o,this.show=!0,this.list=e,this.eventType=r,this.list.map((e=>{this.$set(this.errorDataForm.errorRuleUserList,e.nodeId,[])}))},submit(){const e={...this.query,errorRuleUserList:this.errorDataForm.errorRuleUserList,eventType:this.eventType};for(let r in this.errorDataForm.errorRuleUserList)if(this.errorDataForm.errorRuleUserList[r].length<=0)return this.$u.toast("异常处理人员不能为空");this.$emit("submitErrorForm",e)},cancel(){this.close()},black(){this.close()},close(){this.show=!1}}},[["render",function(_,y,F,U,k,D){const j=p(r("uni-icons"),e),w=n,C=p(r("JnpfUserSelect"),d),L=p(r("u-form-item"),c),R=p(r("u-form"),f),V=p(r("u-button"),h),v=p(r("u-popup"),b);return o(),t(w,{class:"dataForm-v"},{default:s((()=>[a(v,{mode:"left",popup:!1,modelValue:k.show,"onUpdate:modelValue":y[0]||(y[0]=e=>k.show=e),length:"auto",onClose:D.close,width:"100%"},{default:s((()=>[a(w,{class:"diyTitle u-flex"},{default:s((()=>[a(j,{type:"back",size:"27",class:"uni-btn-icon",onClick:D.black},null,8,["onClick"]),a(w,{class:"txt"},{default:s((()=>[l("异常处理")])),_:1})])),_:1}),a(w,{class:"jnpf-wrap-form"},{default:s((()=>[a(R,{model:k.errorDataForm,ref:"errorDataForm",errorType:["toast"],"label-position":"left","label-width":"150","label-align":"left"},{default:s((()=>[(o(!0),i(m,null,u(k.list,((e,r)=>(o(),t(L,{prop:"errorDataForm",key:r,label:e.nodeName,required:""},{default:s((()=>[a(C,{modelValue:k.errorDataForm.errorRuleUserList[e.nodeId],"onUpdate:modelValue":r=>k.errorDataForm.errorRuleUserList[e.nodeId]=r,multiple:!0,placeholder:"异常处理人员不能为空"},null,8,["modelValue","onUpdate:modelValue"])])),_:2},1032,["label"])))),128))])),_:1},8,["model"]),a(w,{class:"buttom-actions"},{default:s((()=>[a(V,{class:"buttom-btn",onClick:D.cancel},{default:s((()=>[l("取消")])),_:1},8,["onClick"]),a(V,{class:"buttom-btn",type:"primary",onClick:D.submit},{default:s((()=>[l("确定")])),_:1},8,["onClick"])])),_:1})])),_:1})])),_:1},8,["modelValue","onClose"])])),_:1})}],["__scopeId","data-v-5196f04b"]]);export{y as E};
import{p as e,o as a,c as l,w as t,b as s,W as o,K as u,d as i,t as n,q as c,H as r,I as h,J as m,i as d,e as f,f as p,a1 as _}from"./index-NHnW2VC9.js";import{_ as V}from"./u-search.BmqHT3i4.js";import{r as y}from"./uni-app.es.BuWGDiAw.js";import{_ as b,a as k}from"./u-checkbox-group.DwNXSnAt.js";import{_ as g,a as C}from"./u-radio-group.CGC3n-Oo.js";import{_ as D}from"./u-popup.DNXgogH5.js";import{r as x}from"./resources.DipqUmnN.js";import{_ as v}from"./_plugin-vue_export-helper.BCo6x5W8.js";const w=v({name:"JnpfMultSelect",props:{list:{type:Array,default:()=>[]},multiple:{type:Boolean,default:!1},filterable:{type:Boolean,default:!1},show:{type:Boolean,default:!1},cancelColor:{type:String,default:"#606266"},confirmColor:{type:String,default:"#2979ff"},safeAreaInsetBottom:{type:Boolean,default:!1},maskCloseAble:{type:Boolean,default:!0},defaultValue:{type:Array,default:()=>[]},labelName:{type:String,default:"fullName"},valueName:{type:String,default:"id"},title:{type:String,default:""},cancelText:{type:String,default:"取消"},confirmText:{type:String,default:"确认"},isFlow:{type:Boolean,default:!1}},data:()=>({columnData:[],innerValue:[],lastSelectIndex:[],showPopup:!1,checkedValue:"",searchValue:"",columnData:[],icon:x.message.nodata}),watch:{show:{handler(e){this.showPopup=e,e&&setTimeout((()=>this.init()),10)},immediate:!0}},computed:{columnList(){return this.columnData.filter((e=>e[this.labelName]&&e[this.labelName].match(this.searchValue)))}},methods:{init(){this.setColumnData(),this.setDefault()},setColumnData(){this.columnData=this.list.map(((e,a)=>({...e,checked:!1})))},setDefault(){if(this.searchValue="",this.checkedValue="",this.multiple){this.innerValue=this.defaultValue;for(let e=0;e<this.innerValue.length;e++)e:for(let a=0;a<this.columnData.length;a++)if(this.innerValue[e]===this.columnData[a][this.valueName]){this.columnData[a].checked=!0;break e}}else for(let e=0;e<this.columnData.length;e++)this.defaultValue[0]===this.columnData[e][this.valueName]&&(this.checkedValue=this.columnData[e][this.valueName],this.innerValue=this.columnData[e])},radioGroupChange(e,a){this.innerValue=[{index:a,...e,checked:!0}]},handleConfirm(){if(this.multiple){let e={indexs:[],list:[],label:"",value:uni.$u.deepClone(this.innerValue)};if(!this.isFlow)for(let a=0;a<this.columnData.length;a++){const l=this.columnData[a];this.columnData[a].checked&&(e.list.push(uni.$u.deepClone(l)),e.indexs.push(a),e.label?e.label+=","+l[this.labelName]:e.label+=l[this.labelName])}this.$emit("confirm",e)}else{if(this.isFlow&&!this.innerValue.length)return this.$u.toast("请选择流程");this.$emit("confirm",this.innerValue)}this.close()},close(){this.$emit("close")}}},[["render",function(x,v,w,N,A,B){const S=d,j=y(e("u-search"),V),I=y(e("u-checkbox"),b),T=y(e("u-checkbox-group"),k),$=y(e("u-radio"),g),U=y(e("u-radio-group"),C),F=f,L=p,P=_,q=y(e("u-popup"),D);return a(),l(q,{maskCloseAble:w.maskCloseAble,mode:"bottom",modelValue:A.showPopup,"onUpdate:modelValue":v[7]||(v[7]=e=>A.showPopup=e),safeAreaInsetBottom:w.safeAreaInsetBottom,onClose:B.close,"mask-close-able":!1},{default:t((()=>[s(S,{class:"u-select"},{default:t((()=>[s(S,{class:"u-select__header",onTouchmove:v[3]||(v[3]=o((()=>{}),["stop","prevent"]))},{default:t((()=>[s(S,{class:"u-select__header__cancel u-select__header__btn",style:u({color:w.cancelColor}),"hover-class":"u-hover-class","hover-stay-time":150,onClick:v[0]||(v[0]=e=>B.close())},{default:t((()=>[i(n(w.cancelText),1)])),_:1},8,["style"]),s(S,{class:"u-select__header__title"},{default:t((()=>[i(n(w.title),1)])),_:1}),s(S,{class:"u-select__header__confirm u-select__header__btn",style:u({color:w.confirmColor}),"hover-class":"u-hover-class","hover-stay-time":150,onTouchmove:v[1]||(v[1]=o((()=>{}),["stop"])),onClick:v[2]||(v[2]=o((e=>B.handleConfirm()),["stop"]))},{default:t((()=>[i(n(w.confirmText),1)])),_:1},8,["style"])])),_:1}),w.isFlow||w.filterable?(a(),l(S,{key:0,class:"search-box_sticky"},{default:t((()=>[s(S,{class:"search-box"},{default:t((()=>[s(j,{placeholder:"请输入关键词搜索",height:"72","show-action":!1,"bg-color":"#f0f2f6",shape:"square",modelValue:A.searchValue,"onUpdate:modelValue":v[4]||(v[4]=e=>A.searchValue=e)},null,8,["modelValue"])])),_:1})])),_:1})):c("",!0),s(S,{class:"u-select__body u-select__body__multiple"},{default:t((()=>[s(P,{"scroll-y":!0,style:{height:"100%"}},{default:t((()=>[w.multiple?(a(),l(T,{key:0,modelValue:A.innerValue,"onUpdate:modelValue":v[5]||(v[5]=e=>A.innerValue=e)},{default:t((()=>[(a(!0),r(m,null,h(B.columnList,((e,s)=>(a(),l(I,{modelValue:e.checked,"onUpdate:modelValue":a=>e.checked=a,key:s,name:e[w.valueName]},{default:t((()=>[i(n(e[w.labelName]),1)])),_:2},1032,["modelValue","onUpdate:modelValue","name"])))),128))])),_:1},8,["modelValue"])):(a(),l(U,{key:1,wrap:"",modelValue:A.checkedValue,"onUpdate:modelValue":v[6]||(v[6]=e=>A.checkedValue=e)},{default:t((()=>[(a(!0),r(m,null,h(B.columnList,((e,s)=>(a(),l($,{onChange:a=>B.radioGroupChange(e,s),name:e[w.valueName],key:s},{default:t((()=>[i(n(e[w.labelName]),1)])),_:2},1032,["onChange","name"])))),128))])),_:1},8,["modelValue"])),B.columnList.length?c("",!0):(a(),l(S,{key:2,class:"notData-box u-flex-col"},{default:t((()=>[s(S,{class:"u-flex-col notData-inner"},{default:t((()=>[s(F,{src:A.icon,mode:"",class:"iconImg"},null,8,["src"])])),_:1}),s(L,{class:"notData-inner-text"},{default:t((()=>[i("暂无数据")])),_:1})])),_:1}))])),_:1})])),_:1})])),_:1})])),_:1},8,["maskCloseAble","modelValue","safeAreaInsetBottom","onClose"])}],["__scopeId","data-v-fd3af5ac"]]);export{w as M};
import{k as e,o as a,c as l,w as t,a as s,U as o,I as u,l as i,D as n,m as c,F as r,G as h,H as m,i as d,Y as f,p,a0 as _}from"./index-BCBx8hnA.js";import{_ as V}from"./u-search.BVcwUa2j.js";import{r as y}from"./uni-app.es.B9JggBRO.js";import{_ as b,a as k}from"./u-checkbox-group.CdyrT6Mi.js";import{_ as g,a as C}from"./u-radio-group.CHx7aP_n.js";import{_ as D}from"./u-popup.C4IrtB3k.js";import{r as x}from"./resources.DipqUmnN.js";import{_ as v}from"./_plugin-vue_export-helper.BCo6x5W8.js";const w=v({name:"JnpfMultSelect",props:{list:{type:Array,default:()=>[]},multiple:{type:Boolean,default:!1},filterable:{type:Boolean,default:!1},show:{type:Boolean,default:!1},cancelColor:{type:String,default:"#606266"},confirmColor:{type:String,default:"#2979ff"},safeAreaInsetBottom:{type:Boolean,default:!1},maskCloseAble:{type:Boolean,default:!0},defaultValue:{type:Array,default:()=>[]},labelName:{type:String,default:"fullName"},valueName:{type:String,default:"id"},title:{type:String,default:""},cancelText:{type:String,default:"取消"},confirmText:{type:String,default:"确认"},isFlow:{type:Boolean,default:!1}},data:()=>({columnData:[],innerValue:[],lastSelectIndex:[],showPopup:!1,checkedValue:"",searchValue:"",columnData:[],icon:x.message.nodata}),watch:{show:{handler(e){this.showPopup=e,e&&setTimeout((()=>this.init()),10)},immediate:!0}},computed:{columnList(){return this.columnData.filter((e=>e[this.labelName]&&e[this.labelName].match(this.searchValue)))}},methods:{init(){this.setColumnData(),this.setDefault()},setColumnData(){this.columnData=this.list.map(((e,a)=>({...e,checked:!1})))},setDefault(){if(this.searchValue="",this.checkedValue="",this.multiple){this.innerValue=this.defaultValue;for(let e=0;e<this.innerValue.length;e++)e:for(let a=0;a<this.columnData.length;a++)if(this.innerValue[e]===this.columnData[a][this.valueName]){this.columnData[a].checked=!0;break e}}else for(let e=0;e<this.columnData.length;e++)this.defaultValue[0]===this.columnData[e][this.valueName]&&(this.checkedValue=this.columnData[e][this.valueName],this.innerValue=this.columnData[e])},radioGroupChange(e,a){this.innerValue=[{index:a,...e,checked:!0}]},handleConfirm(){if(this.multiple){let e={indexs:[],list:[],label:"",value:uni.$u.deepClone(this.innerValue)};if(!this.isFlow)for(let a=0;a<this.columnData.length;a++){const l=this.columnData[a];this.columnData[a].checked&&(e.list.push(uni.$u.deepClone(l)),e.indexs.push(a),e.label?e.label+=","+l[this.labelName]:e.label+=l[this.labelName])}this.$emit("confirm",e)}else{if(this.isFlow&&!this.innerValue.length)return this.$u.toast("请选择流程");this.$emit("confirm",this.innerValue)}this.close()},close(){this.$emit("close")}}},[["render",function(x,v,w,N,A,B){const S=d,j=y(e("u-search"),V),I=y(e("u-checkbox"),b),T=y(e("u-checkbox-group"),k),U=y(e("u-radio"),g),$=y(e("u-radio-group"),C),F=f,L=p,P=_,G=y(e("u-popup"),D);return a(),l(G,{maskCloseAble:w.maskCloseAble,mode:"bottom",modelValue:A.showPopup,"onUpdate:modelValue":v[7]||(v[7]=e=>A.showPopup=e),safeAreaInsetBottom:w.safeAreaInsetBottom,onClose:B.close,"mask-close-able":!1},{default:t((()=>[s(S,{class:"u-select"},{default:t((()=>[s(S,{class:"u-select__header",onTouchmove:v[3]||(v[3]=o((()=>{}),["stop","prevent"]))},{default:t((()=>[s(S,{class:"u-select__header__cancel u-select__header__btn",style:u({color:w.cancelColor}),"hover-class":"u-hover-class","hover-stay-time":150,onClick:v[0]||(v[0]=e=>B.close())},{default:t((()=>[i(n(w.cancelText),1)])),_:1},8,["style"]),s(S,{class:"u-select__header__title"},{default:t((()=>[i(n(w.title),1)])),_:1}),s(S,{class:"u-select__header__confirm u-select__header__btn",style:u({color:w.confirmColor}),"hover-class":"u-hover-class","hover-stay-time":150,onTouchmove:v[1]||(v[1]=o((()=>{}),["stop"])),onClick:v[2]||(v[2]=o((e=>B.handleConfirm()),["stop"]))},{default:t((()=>[i(n(w.confirmText),1)])),_:1},8,["style"])])),_:1}),w.isFlow||w.filterable?(a(),l(S,{key:0,class:"search-box_sticky"},{default:t((()=>[s(S,{class:"search-box"},{default:t((()=>[s(j,{placeholder:"请输入关键词搜索",height:"72","show-action":!1,"bg-color":"#f0f2f6",shape:"square",modelValue:A.searchValue,"onUpdate:modelValue":v[4]||(v[4]=e=>A.searchValue=e)},null,8,["modelValue"])])),_:1})])),_:1})):c("",!0),s(S,{class:"u-select__body u-select__body__multiple"},{default:t((()=>[s(P,{"scroll-y":!0,style:{height:"100%"}},{default:t((()=>[w.multiple?(a(),l(T,{key:0,modelValue:A.innerValue,"onUpdate:modelValue":v[5]||(v[5]=e=>A.innerValue=e)},{default:t((()=>[(a(!0),r(m,null,h(B.columnList,((e,s)=>(a(),l(I,{modelValue:e.checked,"onUpdate:modelValue":a=>e.checked=a,key:s,name:e[w.valueName]},{default:t((()=>[i(n(e[w.labelName]),1)])),_:2},1032,["modelValue","onUpdate:modelValue","name"])))),128))])),_:1},8,["modelValue"])):(a(),l($,{key:1,wrap:"",modelValue:A.checkedValue,"onUpdate:modelValue":v[6]||(v[6]=e=>A.checkedValue=e)},{default:t((()=>[(a(!0),r(m,null,h(B.columnList,((e,s)=>(a(),l(U,{onChange:a=>B.radioGroupChange(e,s),name:e[w.valueName],key:s},{default:t((()=>[i(n(e[w.labelName]),1)])),_:2},1032,["onChange","name"])))),128))])),_:1},8,["modelValue"])),B.columnList.length?c("",!0):(a(),l(S,{key:2,class:"notData-box u-flex-col"},{default:t((()=>[s(S,{class:"u-flex-col notData-inner"},{default:t((()=>[s(F,{src:A.icon,mode:"",class:"iconImg"},null,8,["src"])])),_:1}),s(L,{class:"notData-inner-text"},{default:t((()=>[i("暂无数据")])),_:1})])),_:1}))])),_:1})])),_:1})])),_:1})])),_:1},8,["maskCloseAble","modelValue","safeAreaInsetBottom","onClose"])}],["__scopeId","data-v-fd3af5ac"]]);export{w as M};
import{a2 as a}from"./index-NHnW2VC9.js";function t(t){return a({url:"/api/app/Menu",method:"get",data:t,options:{load:!1}})}function p(t){return a({url:"/api/app/Data?type="+t,options:{load:!1}})}function n(t){return a({url:"/api/app/Data",method:"post",data:t})}function r(t){return a({url:"/api/app/Data/"+t,method:"delete"})}function e(t){return a({url:"/api/app/Data/getFlowList",data:t})}function o(){return a({url:"/api/app/Data/getDataList"})}export{t as a,e as b,n as c,r as d,o as e,p as g}; import{a1 as a}from"./index-BCBx8hnA.js";function t(t){return a({url:"/api/app/Menu",method:"get",data:t,options:{load:!1}})}function p(t){return a({url:"/api/app/Data?type="+t,options:{load:!1}})}function n(t){return a({url:"/api/app/Data",method:"post",data:t})}function r(t){return a({url:"/api/app/Data/"+t,method:"delete"})}function e(t){return a({url:"/api/app/Data/getFlowList",data:t})}function o(){return a({url:"/api/app/Data/getDataList"})}export{t as a,e as b,n as c,r as d,o as e,p as g};
import{b9 as t,ba as e,bb as i,bc as r,bd as s,be as a,bf as n,bg as o,bh as h}from"./index-NHnW2VC9.js";const l=t({id:" app-base",state:()=>({dictionaryList:[],organizeTree:[],departmentTree:[],positionTree:[],groupTree:[],roleTree:[],userTree:[],userList:[],relationData:{}}),getters:{getDictionaryList(){return this.dictionaryList},getRelationData(){return this.relationData}},actions:{setDictionaryList(t){this.dictionaryList=t||[]},setOrganizeTree(t){this.organizeTree=t},setDepartmentTree(t){this.departmentTree=t},setPositionTree(t){this.positionTree=t},setGroupTree(t){this.groupTree=t},setRoleTree(t){this.roleTree=t},setUserTree(t){this.userTree=t},setUserList(t){this.userList=t},updateRelationData(t){this.relationData=t},getDictionaryDataAll(){return new Promise(((t,i)=>{this.dictionaryList.length?t(this.dictionaryList):e().then((e=>{this.setDictionaryList(e.data.list),t(e.data.list)})).catch((t=>{i(t)}))}))},getDictionaryData(t){return new Promise((async e=>{let i=[],r=[],s=[];if(i=this.dictionaryList.length?this.dictionaryList:await this.getDictionaryDataAll(),t.sort)if(r=i.filter((e=>e.enCode===t.sort))[0],t.id){let e=[];if(r.isTree){const i=r=>{for(let s=0;s<r.length;s++){const a=r[s];if(a.id==t.id){e[0]=a;break}a.children&&a.children.length&&i(a.children)}};i(r.dictionaryList)}else e=r.dictionaryList.fliter((e=>e.id==t.id));s=e.length?e[0]:{id:"",fullName:""}}else s=(null==r?void 0:r.dictionaryList)||[];e(s)}))},getDicDataSelector(t,e="id"){return new Promise((async i=>{let r=[],s={},a=[];if(r=this.dictionaryList.length?this.dictionaryList:await this.getDictionaryDataAll(),!t)return i([]);let n=r.filter((i=>i[e]===t));if(!n.length)return i([]);s=n[0],a=s.dictionaryList,i(a)}))},getOrganizeTree(){return new Promise(((t,e)=>{this.organizeTree.length?t(this.organizeTree):i().then((e=>{this.setOrganizeTree(e.data.list),t(e.data.list)})).catch((t=>{e(t)}))}))},getDepartmentTree(){return new Promise(((t,e)=>{this.departmentTree.length?t(this.departmentTree):r().then((e=>{this.setDepartmentTree(e.data.list),t(e.data.list)})).catch((t=>{e(t)}))}))},getPositionTree(){return new Promise(((t,e)=>{this.positionTree.length?t(this.positionTree):s().then((e=>{this.setPositionTree(e.data.list),t(e.data.list)})).catch((t=>{e(t)}))}))},getGroupTree(){return new Promise(((t,e)=>{this.groupTree.length?t(this.groupTree):a().then((e=>{this.setGroupTree(e.data),t(e.data)})).catch((t=>{e(t)}))}))},getRoleTree(){return new Promise(((t,e)=>{this.roleTree.length?t(this.roleTree):n().then((e=>{this.setRoleTree(e.data.list),t(e.data.list)})).catch((t=>{e(t)}))}))},getUserTree(){return new Promise(((t,e)=>{this.userTree.length?t(this.userTree):o().then((e=>{this.setUserTree(e.data.list),t(e.data.list)})).catch((t=>{e(t)}))}))},getUserList(){return new Promise(((t,e)=>{this.userList.length?t(this.userList):h().then((e=>{this.setUserList(e.data.list),t(e.data.list)})).catch((t=>{e(t)}))}))},getUserInfo(t){return new Promise((async e=>{let i=[];i=this.userList.length?this.userList:await this.getUserList(),e(i.filter((e=>e.id===t))[0]||{})}))}}});export{l as u}; import{b9 as t,ba as e,bb as i,bc as r,bd as s,be as a,bf as n,bg as o,bh as h}from"./index-BCBx8hnA.js";const l=t({id:" app-base",state:()=>({dictionaryList:[],organizeTree:[],departmentTree:[],positionTree:[],groupTree:[],roleTree:[],userTree:[],userList:[],relationData:{}}),getters:{getDictionaryList(){return this.dictionaryList},getRelationData(){return this.relationData}},actions:{setDictionaryList(t){this.dictionaryList=t||[]},setOrganizeTree(t){this.organizeTree=t},setDepartmentTree(t){this.departmentTree=t},setPositionTree(t){this.positionTree=t},setGroupTree(t){this.groupTree=t},setRoleTree(t){this.roleTree=t},setUserTree(t){this.userTree=t},setUserList(t){this.userList=t},updateRelationData(t){this.relationData=t},getDictionaryDataAll(){return new Promise(((t,i)=>{this.dictionaryList.length?t(this.dictionaryList):e().then((e=>{this.setDictionaryList(e.data.list),t(e.data.list)})).catch((t=>{i(t)}))}))},getDictionaryData(t){return new Promise((async e=>{let i=[],r=[],s=[];if(i=this.dictionaryList.length?this.dictionaryList:await this.getDictionaryDataAll(),t.sort)if(r=i.filter((e=>e.enCode===t.sort))[0],t.id){let e=[];if(r.isTree){const i=r=>{for(let s=0;s<r.length;s++){const a=r[s];if(a.id==t.id){e[0]=a;break}a.children&&a.children.length&&i(a.children)}};i(r.dictionaryList)}else e=r.dictionaryList.fliter((e=>e.id==t.id));s=e.length?e[0]:{id:"",fullName:""}}else s=(null==r?void 0:r.dictionaryList)||[];e(s)}))},getDicDataSelector(t,e="id"){return new Promise((async i=>{let r=[],s={},a=[];if(r=this.dictionaryList.length?this.dictionaryList:await this.getDictionaryDataAll(),!t)return i([]);let n=r.filter((i=>i[e]===t));if(!n.length)return i([]);s=n[0],a=s.dictionaryList,i(a)}))},getOrganizeTree(){return new Promise(((t,e)=>{this.organizeTree.length?t(this.organizeTree):i().then((e=>{this.setOrganizeTree(e.data.list),t(e.data.list)})).catch((t=>{e(t)}))}))},getDepartmentTree(){return new Promise(((t,e)=>{this.departmentTree.length?t(this.departmentTree):r().then((e=>{this.setDepartmentTree(e.data.list),t(e.data.list)})).catch((t=>{e(t)}))}))},getPositionTree(){return new Promise(((t,e)=>{this.positionTree.length?t(this.positionTree):s().then((e=>{this.setPositionTree(e.data.list),t(e.data.list)})).catch((t=>{e(t)}))}))},getGroupTree(){return new Promise(((t,e)=>{this.groupTree.length?t(this.groupTree):a().then((e=>{this.setGroupTree(e.data),t(e.data)})).catch((t=>{e(t)}))}))},getRoleTree(){return new Promise(((t,e)=>{this.roleTree.length?t(this.roleTree):n().then((e=>{this.setRoleTree(e.data.list),t(e.data.list)})).catch((t=>{e(t)}))}))},getUserTree(){return new Promise(((t,e)=>{this.userTree.length?t(this.userTree):o().then((e=>{this.setUserTree(e.data.list),t(e.data.list)})).catch((t=>{e(t)}))}))},getUserList(){return new Promise(((t,e)=>{this.userList.length?t(this.userList):h().then((e=>{this.setUserList(e.data.list),t(e.data.list)})).catch((t=>{e(t)}))}))},getUserInfo(t){return new Promise((async e=>{let i=[];i=this.userList.length?this.userList:await this.getUserList(),e(i.filter((e=>e.id===t))[0]||{})}))}}});export{l as u};
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.
import{a2 as e}from"./index-NHnW2VC9.js";function t(t){return e({url:"/api/workflow/Engine/FlowDelegate",method:"get",data:t})}function o(t){return e({url:`/api/workflow/Engine/FlowDelegate/${t}`,method:"get"})}function n(t){return e({url:`/api/workflow/Engine/FlowDelegate/${t}`,method:"DELETE"})}function a(t){return e({url:"/api/workflow/Engine/FlowDelegate",method:"post",data:t})}function r(t){return e({url:`/api/workflow/Engine/FlowDelegate/${t.id}`,method:"PUT",data:t})}function l(t){return e({url:"/api/workflow/Engine/FlowDelegate/getflow",method:"get",data:t})}function i(t){return e({url:"/api/workflow/Engine/FlowDelegate/userList",method:"get",data:t})}function u(t){return e({url:`/api/workflow/Engine/FlowDelegate/Stop/${t}`,method:"put"})}export{a as C,n as D,t as F,r as U,o as a,l as d,u as e,i as g}; import{a1 as e}from"./index-BCBx8hnA.js";function t(t){return e({url:"/api/workflow/Engine/FlowDelegate",method:"get",data:t})}function o(t){return e({url:`/api/workflow/Engine/FlowDelegate/${t}`,method:"get"})}function n(t){return e({url:`/api/workflow/Engine/FlowDelegate/${t}`,method:"DELETE"})}function a(t){return e({url:"/api/workflow/Engine/FlowDelegate",method:"post",data:t})}function r(t){return e({url:`/api/workflow/Engine/FlowDelegate/${t.id}`,method:"PUT",data:t})}function l(t){return e({url:"/api/workflow/Engine/FlowDelegate/getflow",method:"get",data:t})}function i(t){return e({url:"/api/workflow/Engine/FlowDelegate/userList",method:"get",data:t})}function u(t){return e({url:`/api/workflow/Engine/FlowDelegate/Stop/${t}`,method:"put"})}export{a as C,n as D,t as F,r as U,o as a,l as d,u as e,i as g};
import{a2 as o}from"./index-NHnW2VC9.js";function e(e,r,t){return o({url:`/api/workflow/Engine/FlowBefore/List/${e}`,method:"get",data:r,options:{load:!1}})}function r(e,r){return o({url:`/api/workflow/Engine/FlowBefore/${e}`,method:"get",data:r})}function t(e,r){return o({url:`/api/workflow/Engine/FlowBefore/Audit/${e}`,method:"post",data:r})}function n(e,r){return o({url:`/api/workflow/Engine/FlowBefore/Reject/${e}`,method:"post",data:r})}function a(e,r){return o({url:`/api/workflow/Engine/FlowBefore/Recall/${e}`,method:"post",data:r})}function i(e,r){return o({url:`/api/workflow/Engine/FlowBefore/Cancel/${e}`,method:"post",data:r})}function f(e,r){return o({url:`/api/workflow/Engine/FlowBefore/Transfer/${e}`,method:"post",data:r})}function l(e,r){return o({url:`/api/workflow/Engine/FlowBefore/RecordList/${e}`,method:"get",data:r})}function u(e,r){return o({url:`/api/workflow/Engine/FlowBefore/SaveAudit/${e}`,method:"post",data:r})}function w(e,r){return o({url:`/api/workflow/Engine/FlowBefore/Candidates/${e}`,method:"post",data:r})}function d(e,r){return o({url:`/api/workflow/Engine/FlowBefore/CandidateUser/${e}`,method:"post",data:r})}function s(e){return o({url:`/api/workflow/Engine/FlowBefore/RejectList/${e}`,method:"get"})}function p(e,r){return o({url:`/api/workflow/Engine/FlowBefore/freeApprover/${e}`,method:"post",data:r})}function g(e){return o({url:`/api/workflow/Engine/FlowBefore/SubFlowInfo/${e}`,method:"get"})}function c(e,r){return o({url:`/api/workflow/Engine/FlowBefore/TaskUserList/${e}`,method:"get",data:r})}export{t as A,w as C,r as F,s as R,u as S,f as T,a,p as b,i as c,n as d,g as e,e as f,l as g,c as h,d as i}; import{a1 as o}from"./index-BCBx8hnA.js";function e(e,r,t){return o({url:`/api/workflow/Engine/FlowBefore/List/${e}`,method:"get",data:r,options:{load:!1}})}function r(e,r){return o({url:`/api/workflow/Engine/FlowBefore/${e}`,method:"get",data:r})}function t(e,r){return o({url:`/api/workflow/Engine/FlowBefore/Audit/${e}`,method:"post",data:r})}function n(e,r){return o({url:`/api/workflow/Engine/FlowBefore/Reject/${e}`,method:"post",data:r})}function a(e,r){return o({url:`/api/workflow/Engine/FlowBefore/Recall/${e}`,method:"post",data:r})}function i(e,r){return o({url:`/api/workflow/Engine/FlowBefore/Cancel/${e}`,method:"post",data:r})}function f(e,r){return o({url:`/api/workflow/Engine/FlowBefore/Transfer/${e}`,method:"post",data:r})}function l(e,r){return o({url:`/api/workflow/Engine/FlowBefore/RecordList/${e}`,method:"get",data:r})}function u(e,r){return o({url:`/api/workflow/Engine/FlowBefore/SaveAudit/${e}`,method:"post",data:r})}function w(e,r){return o({url:`/api/workflow/Engine/FlowBefore/Candidates/${e}`,method:"post",data:r})}function d(e,r){return o({url:`/api/workflow/Engine/FlowBefore/CandidateUser/${e}`,method:"post",data:r})}function s(e){return o({url:`/api/workflow/Engine/FlowBefore/RejectList/${e}`,method:"get"})}function p(e,r){return o({url:`/api/workflow/Engine/FlowBefore/freeApprover/${e}`,method:"post",data:r})}function g(e){return o({url:`/api/workflow/Engine/FlowBefore/SubFlowInfo/${e}`,method:"get"})}function c(e,r){return o({url:`/api/workflow/Engine/FlowBefore/TaskUserList/${e}`,method:"get",data:r})}export{t as A,w as C,r as F,s as R,u as S,f as T,a,p as b,i as c,n as d,g as e,e as f,l as g,c as h,d as i};
import{a2 as o}from"./index-NHnW2VC9.js";function t(t,e){return o({url:`/api/workflow/Engine/flowTemplate/FlowJsonList/${t}`,method:"get",data:{type:e}})}function e(t){return o({url:"/api/workflow/Engine/flowTemplate/PageListAll",method:"get",data:t,options:{load:!1}})}function n(t){return o({url:`/api/flowForm/Form/${t}`,method:"get"})}function a(){return o({url:"/api/workflow/Engine/flowTemplate/ListAll",method:"get",options:{load:!1}})}function l(t){return o({url:"/api/workflow/Engine/FlowComment",method:"get",data:t})}function r(t){return o({url:"/api/workflow/Engine/FlowComment",method:"post",data:t})}function i(t){return o({url:`/api/workflow/Engine/FlowComment/${t}`,method:"delete"})}function u(t){return o({url:"/api/workflow/Engine/flowTemplate/getflowAll",method:"get",data:t})}function w(t){return o({url:`/api/workflow/Engine/flowTemplate/getFlowIdByCode/${t}`,method:"get"})}function f(t){return o({url:"/api/visualdev/Dashboard/FlowTodoCount",method:"post",data:t})}function d(t){return o({url:"/api/workflow/Engine/flowTemplate/getflowList",method:"post",data:t})}export{e as F,t as a,l as b,r as c,i as d,u as e,d as f,f as g,a as h,n as i,w as j}; import{a1 as o}from"./index-BCBx8hnA.js";function t(t,e){return o({url:`/api/workflow/Engine/flowTemplate/FlowJsonList/${t}`,method:"get",data:{type:e}})}function e(t){return o({url:"/api/workflow/Engine/flowTemplate/PageListAll",method:"get",data:t,options:{load:!1}})}function n(t){return o({url:`/api/flowForm/Form/${t}`,method:"get"})}function a(){return o({url:"/api/workflow/Engine/flowTemplate/ListAll",method:"get",options:{load:!1}})}function l(t){return o({url:"/api/workflow/Engine/FlowComment",method:"get",data:t})}function r(t){return o({url:"/api/workflow/Engine/FlowComment",method:"post",data:t})}function i(t){return o({url:`/api/workflow/Engine/FlowComment/${t}`,method:"delete"})}function u(t){return o({url:"/api/workflow/Engine/flowTemplate/getflowAll",method:"get",data:t})}function w(t){return o({url:`/api/workflow/Engine/flowTemplate/getFlowIdByCode/${t}`,method:"get"})}function f(t){return o({url:"/api/visualdev/Dashboard/FlowTodoCount",method:"post",data:t})}function d(t){return o({url:"/api/workflow/Engine/flowTemplate/getflowList",method:"post",data:t})}export{e as F,t as a,l as b,r as c,i as d,u as e,d as f,f as g,a as h,n as i,w as j};
import{a2 as o}from"./index-NHnW2VC9.js";function n(n,r){return o({url:"/api/workflow/Engine/FlowLaunch",method:"get",data:n,options:{load:!1}})}function r(n){return o({url:`/api/workflow/Engine/FlowLaunch/${n}`,method:"DELETE"})}function t(n,r){return o({url:`/api/workflow/Engine/FlowLaunch/${n}/Actions/Withdraw`,method:"PUT",data:r})}function a(n){return o({url:`/api/workflow/Engine/FlowLaunch/Press/${n}`,method:"post"})}export{r as D,n as F,a as P,t as R}; import{a1 as o}from"./index-BCBx8hnA.js";function n(n,r){return o({url:"/api/workflow/Engine/FlowLaunch",method:"get",data:n,options:{load:!1}})}function r(n){return o({url:`/api/workflow/Engine/FlowLaunch/${n}`,method:"DELETE"})}function t(n,r){return o({url:`/api/workflow/Engine/FlowLaunch/${n}/Actions/Withdraw`,method:"PUT",data:r})}function a(n){return o({url:`/api/workflow/Engine/FlowLaunch/Press/${n}`,method:"post"})}export{r as D,n as F,a as P,t as R};
import{E as e,p as t,o as s,c as a,w as l,b as i,H as o,I as r,J as d,i as f,q as u,G as c,d as n,t as p,f as m,e as _}from"./index-NHnW2VC9.js";import{_ as h}from"./u-tag.DA0kOW-t.js";import{r as g}from"./uni-app.es.BuWGDiAw.js";import{_ as w}from"./_plugin-vue_export-helper.BCo6x5W8.js";const y=w({name:"FlowList",props:{list:{type:Array,default:()=>[]},opType:{type:Number,default:1}},data:()=>({title:""}),created(){this.title=1==this.opType?"接收时间":2==this.opType?"办理时间":"抄送时间"},methods:{handleClick(t){const s={id:t.processId,flowId:t.flowId,opType:this.opType,status:t.status,taskNodeId:t.thisStepId,taskId:t.id};e({url:"/pages/workFlow/flowBefore/index?config="+this.jnpf.base64.encode(JSON.stringify(s))})},getLableValue(e){var t="";switch(e){case 1:default:t="普通";break;case 2:t="重要";break;case 3:t="紧急"}return t}}},[["render",function(e,w,y,b,k,I){const x=g(t("u-tag"),h),T=f,j=m,S=_;return s(),a(T,{class:"flow-list flowBefore"},{default:l((()=>[i(T,{class:"flow-list-box"},{default:l((()=>[(s(!0),o(d,null,r(y.list,((t,o)=>(s(),a(T,{class:"item",key:t.id,onClick:e=>I.handleClick(t)},{default:l((()=>[i(T,{class:"item-left"},{default:l((()=>[i(T,{class:"item-left-top"},{default:l((()=>[t.delegateUser?(s(),a(T,{key:0,class:"u-m-r-8"},{default:l((()=>[i(x,{text:"委托",type:"success",size:"mini"})])),_:1})):u("",!0),i(T,{class:c(["common-lable",{"urgent-lable":2==t.flowUrgent,"important-lable":3==t.flowUrgent}])},{default:l((()=>[n(p(I.getLableValue(t.flowUrgent)),1)])),_:2},1032,["class"]),i(j,{class:"title u-font-28 u-line-1"},{default:l((()=>[n(p(t.fullName),1)])),_:2},1024)])),_:2},1024),i(j,{class:"title u-line-1 u-font-24"},{default:l((()=>[n("审批节点:"),i(j,{class:"titInner"},{default:l((()=>[n(p(t.thisStep?t.thisStep:"暂无"),1)])),_:2},1024)])),_:2},1024),i(j,{class:"time title u-font-24"},{default:l((()=>[n(p(k.title)+"",1),i(j,{class:"titInner"},{default:l((()=>[n(p(t.creatorTime?e.$u.timeFormat(t.creatorTime,"yyyy-mm-dd hh:MM:ss"):""),1)])),_:2},1024)])),_:2},1024)])),_:2},1024),i(T,{class:"item-right"},{default:l((()=>[i(S,{src:t.flowStatus,mode:"widthFix",class:"item-right-img"},null,8,["src"])])),_:2},1024)])),_:2},1032,["onClick"])))),128))])),_:1})])),_:1})}],["__scopeId","data-v-70d6b346"]]);export{y as f}; import{B as e,k as t,o as s,c as a,w as l,a as i,F as o,G as r,H as d,i as f,m as u,E as c,l as n,D as p,p as m,Y as _}from"./index-BCBx8hnA.js";import{_ as h}from"./u-tag.CyN7CfL2.js";import{r as g}from"./uni-app.es.B9JggBRO.js";import{_ as w}from"./_plugin-vue_export-helper.BCo6x5W8.js";const y=w({name:"FlowList",props:{list:{type:Array,default:()=>[]},opType:{type:Number,default:1}},data:()=>({title:""}),created(){this.title=1==this.opType?"接收时间":2==this.opType?"办理时间":"抄送时间"},methods:{handleClick(t){const s={id:t.processId,flowId:t.flowId,opType:this.opType,status:t.status,taskNodeId:t.thisStepId,taskId:t.id};e({url:"/pages/workFlow/flowBefore/index?config="+this.jnpf.base64.encode(JSON.stringify(s))})},getLableValue(e){var t="";switch(e){case 1:default:t="普通";break;case 2:t="重要";break;case 3:t="紧急"}return t}}},[["render",function(e,w,y,k,b,I){const x=g(t("u-tag"),h),T=f,j=m,F=_;return s(),a(T,{class:"flow-list flowBefore"},{default:l((()=>[i(T,{class:"flow-list-box"},{default:l((()=>[(s(!0),o(d,null,r(y.list,((t,o)=>(s(),a(T,{class:"item",key:t.id,onClick:e=>I.handleClick(t)},{default:l((()=>[i(T,{class:"item-left"},{default:l((()=>[i(T,{class:"item-left-top"},{default:l((()=>[t.delegateUser?(s(),a(T,{key:0,class:"u-m-r-8"},{default:l((()=>[i(x,{text:"委托",type:"success",size:"mini"})])),_:1})):u("",!0),i(T,{class:c(["common-lable",{"urgent-lable":2==t.flowUrgent,"important-lable":3==t.flowUrgent}])},{default:l((()=>[n(p(I.getLableValue(t.flowUrgent)),1)])),_:2},1032,["class"]),i(j,{class:"title u-font-28 u-line-1"},{default:l((()=>[n(p(t.fullName),1)])),_:2},1024)])),_:2},1024),i(j,{class:"title u-line-1 u-font-24"},{default:l((()=>[n("审批节点:"),i(j,{class:"titInner"},{default:l((()=>[n(p(t.thisStep?t.thisStep:"暂无"),1)])),_:2},1024)])),_:2},1024),i(j,{class:"time title u-font-24"},{default:l((()=>[n(p(b.title)+"",1),i(j,{class:"titInner"},{default:l((()=>[n(p(t.creatorTime?e.$u.timeFormat(t.creatorTime,"yyyy-mm-dd hh:MM:ss"):""),1)])),_:2},1024)])),_:2},1024)])),_:2},1024),i(T,{class:"item-right"},{default:l((()=>[i(F,{src:t.flowStatus,mode:"widthFix",class:"item-right-img"},null,8,["src"])])),_:2},1024)])),_:2},1032,["onClick"])))),128))])),_:1})])),_:1})}],["__scopeId","data-v-70d6b346"]]);export{y as f};
This diff is collapsed.
This diff is collapsed.
.launch-v .launch-box[data-v-2f3dcf67]{padding-top:5.3125rem}.launch-v .launch-box .title[data-v-2f3dcf67]{font-size:1.5625rem;line-height:2.1875rem;color:#5098fa;text-align:center;margin-bottom:.3125rem}.launch-v .launch-box .version[data-v-2f3dcf67]{width:7.8125rem;margin:0 auto;text-align:center;height:1.5625rem;border:1px solid #5098FA;border-radius:.78125rem;line-height:1.5rem;color:#5098fa;letter-spacing:.0625rem}.launch-v .launch-box .launch-img[data-v-2f3dcf67]{margin:0 auto;width:21.25rem}.launch-v .launch-box .launch-img uni-image[data-v-2f3dcf67]{width:100%}.launch-v .launch-box .copyright[data-v-2f3dcf67]{position:fixed;bottom:3.75rem;right:0;left:0;text-align:center;color:#999;font-size:.75rem}
.content[data-v-915f6f61]{display:flex;flex-direction:column;align-items:center;justify-content:center}.logo[data-v-915f6f61]{height:6.25rem;width:6.25rem;margin-top:6.25rem;margin-left:auto;margin-right:auto;margin-bottom:1.5625rem}.text-area[data-v-915f6f61]{display:flex;justify-content:center}.title[data-v-915f6f61]{font-size:1.125rem;color:#8f8f94}
import{am as t,al as e,o as i,c as s,w as n,N as a,a as l,F as r,H as o,G as h,l as d,D as u,E as c,O as g,m as p,p as m,i as f,ao as w,J as v,g as _,K as y,B as S,aP as b,j as C,k as x,C as k,U as V,W as T,Y as $}from"./index-BCBx8hnA.js";import{_ as j}from"./u-action-sheet.uI68zIpu.js";import{r as I}from"./uni-app.es.B9JggBRO.js";import{_ as D}from"./_plugin-vue_export-helper.BCo6x5W8.js";let B="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";let M=function(t){var e,i,s,n,a,l,r,o="",h=0;for(t=function(t){t=t.replace(/\r\n/g,"\n");for(var e="",i=0;i<t.length;i++){var s=t.charCodeAt(i);s<128?e+=String.fromCharCode(s):s>127&&s<2048?(e+=String.fromCharCode(s>>6|192),e+=String.fromCharCode(63&s|128)):(e+=String.fromCharCode(s>>12|224),e+=String.fromCharCode(s>>6&63|128),e+=String.fromCharCode(63&s|128))}return e}(t);h<t.length;)n=(e=t.charCodeAt(h++))>>2,a=(3&e)<<4|(i=t.charCodeAt(h++))>>4,l=(15&i)<<2|(s=t.charCodeAt(h++))>>6,r=63&s,isNaN(i)?l=r=64:isNaN(s)&&(r=64),o=o+B.charAt(n)+B.charAt(a)+B.charAt(l)+B.charAt(r);return o};const N=D({name:"jnpf-sign",components:{Sign:D({cxt:null,data(){return{VERSION:"1.0.0",cid:"cvs"+this.jnpf.idGenerator(),show:!1,ctrl:null,listeners:[],prevView:"",draws:[],lines:[],line:null,hasDrew:!1}},props:{value:{default:""},title:{type:String,default:"请签名"},disabled:{type:Boolean,default:!1},showBtn:{type:Boolean,default:!1}},watch:{value(){this.prevView=this.value},lines:{deep:!0,handler(t){this.hasDrew=!!t.length}}},computed:{titles(){return this.title.split("")},absPrevView(){return this.prevView}},mounted(){this.prevView=this.value},methods:{onOK(){let t=this.ctrl.getValue();this.$emit("input",t),this.prevView=t,this.hideSignature();let e=this.listeners.shift();e&&e(t)},touchSignature(){let t=this.prevView;t&&t.length||this.showSignature()},showSignature(){this.disabled||(this.ctrl?this.show||(this.clearSignature(),this.show=!0):this.initCtrl())},async getSyncSignature(){return this.showSignature(),await new Promise((async(t,e)=>{this.listeners.push((e=>{t(e)}))}))},cancelSignature(){this.listeners.map((t=>{t(null)})),this.hideSignature()},hideSignature(){this.ctrl&&this.ctrl.clear(),this.show=!1},clearSignature(){this.ctrl&&this.ctrl.clear()},async initCtrl(){this.show=!0;let i=t(this.cid,this);this.cxt=i,this.ctrl={width:0,height:0,clear:()=>{this.lines=[],e().in(this).select("."+this.cid).boundingClientRect((t=>{t&&(i.clearRect(0,0,t.width,t.height),t.width&&t.height&&(this.ctrl.width=t.width,this.ctrl.height=t.height))})).exec(),this.redraw()},getValue:()=>{if(!this.lines.length)return"";let t=this._get_svg();return"data:image/svg+xml;base64,"+M(t)}},this.$nextTick((function(){this.ctrl.clear()}))},_get_svg(){let t=[],e=this.ctrl.width,i=this.ctrl.height,s=90!=Math.abs(-90)?e:i,n=90==Math.abs(-90)?e:i,a=e/2,l=i/2,r=Math.PI,o=Math.cos(-90*r/180),h=Math.sin(-90*r/180),d=(s-e)/2,u=(n-i)/2,c=function(t){{let e=(t.x-a)*o-(t.y-l)*h+a,i=(t.x-a)*h+(t.y-l)*o+l;return{x:e+d,y:i+u}}};return this.lines.map((e=>{if(e.points.length<2)return;let i=c(e.start),s=[`M ${i.x} ${Number(i.y)}`];e.points.map((t=>{let e=c(t);s.push(`L ${e.x} ${Number(e.y)}`)})),t.push(`<path stroke-linejoin="round" stroke-linecap="round" stroke-width="3" stroke="rgb(0,0,0)" fill="none" d="${s.join(" ")}"/>`)})),`<?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="${s}" height="${n}">${t.join("\n")}</svg>`},_get_svg_raw(){let t=[];return this.lines.map((e=>{if(e.points.length<2)return;let i=[`M ${e.start.x} ${Number(e.start.y)}`];e.points.map((t=>{i.push(`L ${t.x} ${Number(t.y)}`)})),t.push(`<path stroke-linejoin="round" stroke-linecap="round" stroke-width="3" stroke="rgb(0,0,0)" fill="none" d="${i.join(" ")}"/>`)})),`<?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="${this.ctrl.width}" height="${this.ctrl.height}" transform="rotate(-90)">${t.join("\n")}</svg>`},_get_point:t=>({x:t.changedTouches[0].x.toFixed(1),y:t.changedTouches[0].y.toFixed(1)}),touchstart(t){let e=this._get_point(t);this.line={start:e,points:[e]},this.lines.push(this.line)},touchmove(t){let e=this._get_point(t);this.line.points.push(e),this.tm||(this.tm=setTimeout((()=>{this.redraw(),this.tm=0}),10))},touchend(t){let e=this._get_point(t);this.line.points.push(e),this.line.end=e,this.redraw()},redraw(){let t=this.cxt;t.setStrokeStyle("#000"),t.setLineWidth(3),this.lines.map((e=>{t.beginPath(),e.points.length<2||(t.moveTo(e.start.x,e.start.y),e.points.map((e=>{t.lineTo(e.x,e.y)})),t.stroke())})),t.draw()},canvasIdErrorCallback:function(t){}}},[["render",function(t,e,v,_,y,S){const b=m,C=f,x=w;return i(),s(C,{class:"signature-wrap"},{default:n((()=>[v.disabled?p("",!0):a((i(),s(C,{key:0,class:"signature-contain"},{default:n((()=>[l(C,{class:"signature-main",style:{"z-index":"3000"}},{default:n((()=>[l(C,null,{default:n((()=>[l(C,{class:"signature-title"},{default:n((()=>[(i(!0),r(o,null,h(S.titles,((t,e)=>(i(),s(b,{key:e},{default:n((()=>[d(u(t),1)])),_:2},1024)))),128))])),_:1})])),_:1}),l(x,{"disable-scroll":"true",class:c(["signature",y.cid]),"canvas-id":y.cid,onTouchstart:S.touchstart,onTouchmove:S.touchmove,onTouchend:S.touchend},{default:n((()=>[a(l(C,{class:"tip"},{default:n((()=>[d(" 请在此区域手写签名 ")])),_:1},512),[[g,!y.hasDrew]])])),_:1},8,["class","canvas-id","onTouchstart","onTouchmove","onTouchend"]),l(C,{class:"signature-btns"},{default:n((()=>[l(C,{class:"btn btn-cancel cu-btn bg-main margin-tb-sm text-white",onClick:e[0]||(e[0]=t=>S.cancelSignature())},{default:n((()=>[l(b,null,{default:n((()=>[d("")])),_:1}),l(b,null,{default:n((()=>[d("")])),_:1})])),_:1}),l(C,{class:"btn btn-clear cu-btn bg-main margin-tb-sm text-white",onClick:e[1]||(e[1]=t=>{S.clearSignature()})},{default:n((()=>[l(b,null,{default:n((()=>[d("")])),_:1}),l(b,null,{default:n((()=>[d("")])),_:1})])),_:1}),l(C,{class:"btn btn-ok cu-btn bg-main margin-tb-sm text-white",onClick:e[2]||(e[2]=t=>S.onOK())},{default:n((()=>[l(b,null,{default:n((()=>[d("")])),_:1}),l(b,null,{default:n((()=>[d("")])),_:1})])),_:1})])),_:1})])),_:1})])),_:1},512)),[[g,y.show]])])),_:1})}],["__scopeId","data-v-8ac597d1"]])},props:{modelValue:{type:[String,Number,Boolean]},fieldKey:{type:String,default:""},signTip:{type:String,default:"添加签名"},disabled:{type:Boolean,default:!1},detailed:{type:Boolean,default:!1},align:{type:String,default:"right"},showBtn:{type:Boolean,default:!0},defaultCurrent:{type:Boolean,default:!1},isInvoke:{type:Boolean,default:!1}},data:()=>({show:!1,innerValue:"",signMode:!1,signList:[],signOptions:[{value:"1",text:"手写签名"},{value:"2",text:"调用签名"}]}),created(){v("setSignValue",(t=>{let e=_("sign-fieldKey");this.fieldKey==e&&this.setValue(t)}))},onLoad(t){this.$nextTick((async()=>{await this.getSignData()}))},onUnload(){y("setSignValue")},watch:{modelValue:{handler(t){this.innerValue=t||""},deep:!0,immediate:!0}},methods:{showSignMode(){this.disabled||(this.signMode=!0)},handleCommand(t){1===t?S({url:"/pages/apply/interPage/signInvokeList?fieldKey="+this.fieldKey+"&signVal="+encodeURIComponent(this.modelValue)}):this.addSign()},addSign(){this.disabled||this.$nextTick((()=>{this.$refs.sign.showSignature()}))},setValue(t){t&&(this.innerValue=t,this.$emit("update:modelValue",t),this.$emit("change",t))},handlePreviewImage(t){b({urls:[t],current:t,success:()=>{},fail:()=>{C({title:"预览图片失败",icon:"none"})}})}}},[["render",function(t,e,h,m,w,v){const _=$,y=f,S=I(x("u-action-sheet"),j),b=k("Sign");return i(),s(y,{class:c(["jnpf-sign","right"==h.align?"flex-end":"flex-start"])},{default:n((()=>[l(y,{class:"jnpf-sign-box"},{default:n((()=>[h.showBtn?(i(),r(o,{key:0},[a(l(_,{class:"jnpf-sign-img",src:w.innerValue,mode:"scaleToFill",onClick:e[0]||(e[0]=V((t=>v.handlePreviewImage(w.innerValue)),["stop"]))},null,8,["src"]),[[g,w.innerValue]]),h.detailed||h.isInvoke?p("",!0):(i(),s(y,{key:0,class:"jnpf-sign-btn",onClick:e[1]||(e[1]=t=>v.addSign())},{default:n((()=>[T("i",{class:"icon-ym icon-ym-signature"}),w.innerValue?p("",!0):(i(),s(y,{key:0,class:"title"},{default:n((()=>[d(u(h.signTip),1)])),_:1}))])),_:1})),!h.detailed&&h.isInvoke?(i(),s(y,{key:1,class:"jnpf-sign-btn",onClick:e[2]||(e[2]=t=>v.showSignMode())},{default:n((()=>[T("i",{class:"icon-ym icon-ym-signature"}),w.innerValue?p("",!0):(i(),s(y,{key:0,class:"title"},{default:n((()=>[d(u(h.signTip),1)])),_:1}))])),_:1})):p("",!0)],64)):p("",!0),l(S,{list:w.signOptions,modelValue:w.signMode,"onUpdate:modelValue":e[3]||(e[3]=t=>w.signMode=t),onClick:v.handleCommand},null,8,["list","modelValue","onClick"]),l(b,{ref:"sign",onInput:v.setValue},null,8,["onInput"])])),_:1})])),_:1},8,["class"])}],["__scopeId","data-v-32082100"]]);export{N as _};
This source diff could not be displayed because it is too large. You can view the blob instead.
import{am as t,al as e,o as i,c as s,w as n,P as a,b as l,H as r,J as o,I as h,d,t as u,G as c,Q as g,q as p,f as m,i as f,ao as w,L as v,v as y,M as _,E as S,aP as b,m as C,p as x,F as V,W as k,Y as T,e as $}from"./index-NHnW2VC9.js";import{_ as j}from"./u-action-sheet.CrLrl0dK.js";import{r as I}from"./uni-app.es.BuWGDiAw.js";import{_ as D}from"./_plugin-vue_export-helper.BCo6x5W8.js";let M="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";let B=function(t){var e,i,s,n,a,l,r,o="",h=0;for(t=function(t){t=t.replace(/\r\n/g,"\n");for(var e="",i=0;i<t.length;i++){var s=t.charCodeAt(i);s<128?e+=String.fromCharCode(s):s>127&&s<2048?(e+=String.fromCharCode(s>>6|192),e+=String.fromCharCode(63&s|128)):(e+=String.fromCharCode(s>>12|224),e+=String.fromCharCode(s>>6&63|128),e+=String.fromCharCode(63&s|128))}return e}(t);h<t.length;)n=(e=t.charCodeAt(h++))>>2,a=(3&e)<<4|(i=t.charCodeAt(h++))>>4,l=(15&i)<<2|(s=t.charCodeAt(h++))>>6,r=63&s,isNaN(i)?l=r=64:isNaN(s)&&(r=64),o=o+M.charAt(n)+M.charAt(a)+M.charAt(l)+M.charAt(r);return o};const P=D({name:"jnpf-sign",components:{Sign:D({cxt:null,data(){return{VERSION:"1.0.0",cid:"cvs"+this.jnpf.idGenerator(),show:!1,ctrl:null,listeners:[],prevView:"",draws:[],lines:[],line:null,hasDrew:!1}},props:{value:{default:""},title:{type:String,default:"请签名"},disabled:{type:Boolean,default:!1},showBtn:{type:Boolean,default:!1}},watch:{value(){this.prevView=this.value},lines:{deep:!0,handler(t){this.hasDrew=!!t.length}}},computed:{titles(){return this.title.split("")},absPrevView(){return this.prevView}},mounted(){this.prevView=this.value},methods:{onOK(){let t=this.ctrl.getValue();this.$emit("input",t),this.prevView=t,this.hideSignature();let e=this.listeners.shift();e&&e(t)},touchSignature(){let t=this.prevView;t&&t.length||this.showSignature()},showSignature(){this.disabled||(this.ctrl?this.show||(this.clearSignature(),this.show=!0):this.initCtrl())},async getSyncSignature(){return this.showSignature(),await new Promise((async(t,e)=>{this.listeners.push((e=>{t(e)}))}))},cancelSignature(){this.listeners.map((t=>{t(null)})),this.hideSignature()},hideSignature(){this.ctrl&&this.ctrl.clear(),this.show=!1},clearSignature(){this.ctrl&&this.ctrl.clear()},async initCtrl(){this.show=!0;let i=t(this.cid,this);this.cxt=i,this.ctrl={width:0,height:0,clear:()=>{this.lines=[],e().in(this).select("."+this.cid).boundingClientRect((t=>{t&&(i.clearRect(0,0,t.width,t.height),t.width&&t.height&&(this.ctrl.width=t.width,this.ctrl.height=t.height))})).exec(),this.redraw()},getValue:()=>{if(!this.lines.length)return"";let t=this._get_svg();return"data:image/svg+xml;base64,"+B(t)}},this.$nextTick((function(){this.ctrl.clear()}))},_get_svg(){let t=[],e=this.ctrl.width,i=this.ctrl.height,s=90!=Math.abs(-90)?e:i,n=90==Math.abs(-90)?e:i,a=e/2,l=i/2,r=Math.PI,o=Math.cos(-90*r/180),h=Math.sin(-90*r/180),d=(s-e)/2,u=(n-i)/2,c=function(t){{let e=(t.x-a)*o-(t.y-l)*h+a,i=(t.x-a)*h+(t.y-l)*o+l;return{x:e+d,y:i+u}}};return this.lines.map((e=>{if(e.points.length<2)return;let i=c(e.start),s=[`M ${i.x} ${Number(i.y)}`];e.points.map((t=>{let e=c(t);s.push(`L ${e.x} ${Number(e.y)}`)})),t.push(`<path stroke-linejoin="round" stroke-linecap="round" stroke-width="3" stroke="rgb(0,0,0)" fill="none" d="${s.join(" ")}"/>`)})),`<?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="${s}" height="${n}">${t.join("\n")}</svg>`},_get_svg_raw(){let t=[];return this.lines.map((e=>{if(e.points.length<2)return;let i=[`M ${e.start.x} ${Number(e.start.y)}`];e.points.map((t=>{i.push(`L ${t.x} ${Number(t.y)}`)})),t.push(`<path stroke-linejoin="round" stroke-linecap="round" stroke-width="3" stroke="rgb(0,0,0)" fill="none" d="${i.join(" ")}"/>`)})),`<?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="${this.ctrl.width}" height="${this.ctrl.height}" transform="rotate(-90)">${t.join("\n")}</svg>`},_get_point:t=>({x:t.changedTouches[0].x.toFixed(1),y:t.changedTouches[0].y.toFixed(1)}),touchstart(t){let e=this._get_point(t);this.line={start:e,points:[e]},this.lines.push(this.line)},touchmove(t){let e=this._get_point(t);this.line.points.push(e),this.tm||(this.tm=setTimeout((()=>{this.redraw(),this.tm=0}),10))},touchend(t){let e=this._get_point(t);this.line.points.push(e),this.line.end=e,this.redraw()},redraw(){let t=this.cxt;t.setStrokeStyle("#000"),t.setLineWidth(3),this.lines.map((e=>{t.beginPath(),e.points.length<2||(t.moveTo(e.start.x,e.start.y),e.points.map((e=>{t.lineTo(e.x,e.y)})),t.stroke())})),t.draw()},canvasIdErrorCallback:function(t){}}},[["render",function(t,e,v,y,_,S){const b=m,C=f,x=w;return i(),s(C,{class:"signature-wrap"},{default:n((()=>[v.disabled?p("",!0):a((i(),s(C,{key:0,class:"signature-contain"},{default:n((()=>[l(C,{class:"signature-main",style:{"z-index":"3000"}},{default:n((()=>[l(C,null,{default:n((()=>[l(C,{class:"signature-title"},{default:n((()=>[(i(!0),r(o,null,h(S.titles,((t,e)=>(i(),s(b,{key:e},{default:n((()=>[d(u(t),1)])),_:2},1024)))),128))])),_:1})])),_:1}),l(x,{"disable-scroll":"true",class:c(["signature",_.cid]),"canvas-id":_.cid,onTouchstart:S.touchstart,onTouchmove:S.touchmove,onTouchend:S.touchend},{default:n((()=>[a(l(C,{class:"tip"},{default:n((()=>[d(" 请在此区域手写签名 ")])),_:1},512),[[g,!_.hasDrew]])])),_:1},8,["class","canvas-id","onTouchstart","onTouchmove","onTouchend"]),l(C,{class:"signature-btns"},{default:n((()=>[l(C,{class:"btn btn-cancel cu-btn bg-main margin-tb-sm text-white",onClick:e[0]||(e[0]=t=>S.cancelSignature())},{default:n((()=>[l(b,null,{default:n((()=>[d("")])),_:1}),l(b,null,{default:n((()=>[d("")])),_:1})])),_:1}),l(C,{class:"btn btn-clear cu-btn bg-main margin-tb-sm text-white",onClick:e[1]||(e[1]=t=>{S.clearSignature()})},{default:n((()=>[l(b,null,{default:n((()=>[d("")])),_:1}),l(b,null,{default:n((()=>[d("")])),_:1})])),_:1}),l(C,{class:"btn btn-ok cu-btn bg-main margin-tb-sm text-white",onClick:e[2]||(e[2]=t=>S.onOK())},{default:n((()=>[l(b,null,{default:n((()=>[d("")])),_:1}),l(b,null,{default:n((()=>[d("")])),_:1})])),_:1})])),_:1})])),_:1})])),_:1},512)),[[g,_.show]])])),_:1})}],["__scopeId","data-v-8ac597d1"]])},props:{modelValue:{type:[String,Number,Boolean]},fieldKey:{type:String,default:""},signTip:{type:String,default:"添加签名"},disabled:{type:Boolean,default:!1},detailed:{type:Boolean,default:!1},align:{type:String,default:"right"},showBtn:{type:Boolean,default:!0},defaultCurrent:{type:Boolean,default:!1},isInvoke:{type:Boolean,default:!1}},data:()=>({show:!1,innerValue:"",signMode:!1,signList:[],signOptions:[{value:"1",text:"手写签名"},{value:"2",text:"调用签名"}]}),created(){v("setSignValue",(t=>{let e=y("sign-fieldKey");this.fieldKey==e&&this.setValue(t)}))},onLoad(t){this.$nextTick((async()=>{await this.getSignData()}))},onUnload(){_("setSignValue")},watch:{modelValue:{handler(t){this.innerValue=t||""},deep:!0,immediate:!0}},methods:{showSignMode(){this.disabled||(this.signMode=!0)},handleCommand(t){1===t?S({url:"/pages/apply/interPage/signInvokeList?fieldKey="+this.fieldKey+"&signVal="+encodeURIComponent(this.modelValue)}):this.addSign()},addSign(){this.disabled||this.$nextTick((()=>{this.$refs.sign.showSignature()}))},setValue(t){t&&(this.innerValue=t,this.$emit("update:modelValue",t),this.$emit("change",t))},handlePreviewImage(t){b({urls:[t],current:t,success:()=>{},fail:()=>{C({title:"预览图片失败",icon:"none"})}})}}},[["render",function(t,e,h,m,w,v){const y=$,_=f,S=I(x("u-action-sheet"),j),b=V("Sign");return i(),s(_,{class:c(["jnpf-sign","right"==h.align?"flex-end":"flex-start"])},{default:n((()=>[l(_,{class:"jnpf-sign-box"},{default:n((()=>[h.showBtn?(i(),r(o,{key:0},[a(l(y,{class:"jnpf-sign-img",src:w.innerValue,mode:"scaleToFill",onClick:e[0]||(e[0]=k((t=>v.handlePreviewImage(w.innerValue)),["stop"]))},null,8,["src"]),[[g,w.innerValue]]),h.detailed||h.isInvoke?p("",!0):(i(),s(_,{key:0,class:"jnpf-sign-btn",onClick:e[1]||(e[1]=t=>v.addSign())},{default:n((()=>[T("i",{class:"icon-ym icon-ym-signature"}),w.innerValue?p("",!0):(i(),s(_,{key:0,class:"title"},{default:n((()=>[d(u(h.signTip),1)])),_:1}))])),_:1})),!h.detailed&&h.isInvoke?(i(),s(_,{key:1,class:"jnpf-sign-btn",onClick:e[2]||(e[2]=t=>v.showSignMode())},{default:n((()=>[T("i",{class:"icon-ym icon-ym-signature"}),w.innerValue?p("",!0):(i(),s(_,{key:0,class:"title"},{default:n((()=>[d(u(h.signTip),1)])),_:1}))])),_:1})):p("",!0)],64)):p("",!0),l(S,{list:w.signOptions,modelValue:w.signMode,"onUpdate:modelValue":e[3]||(e[3]=t=>w.signMode=t),onClick:v.handleCommand},null,8,["list","modelValue","onClick"]),l(b,{ref:"sign",onInput:v.setValue},null,8,["onInput"])])),_:1})])),_:1},8,["class"])}],["__scopeId","data-v-32082100"]]);export{P as _};
This diff is collapsed.
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
import{b2 as e,p as a,o as t,c as i,w as l,b as o,K as s,G as n,i as u}from"./index-NHnW2VC9.js";import{_ as d}from"./u-loading.D1e2uoAQ.js";import{r}from"./uni-app.es.BuWGDiAw.js";import{_ as c}from"./_plugin-vue_export-helper.BCo6x5W8.js";const h=c({name:"u-switch",emits:["update:modelValue","input","change"],props:{value:{type:[Number,String,Boolean],default:!1},modelValue:{type:[Number,String,Boolean],default:!1},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},size:{type:[Number,String],default:50},activeColor:{type:String,default:"#2979ff"},inactiveColor:{type:String,default:"#ffffff"},vibrateShort:{type:Boolean,default:!1},activeValue:{type:[Number,String,Boolean],default:!0},inactiveValue:{type:[Number,String,Boolean],default:!1}},data:()=>({}),computed:{valueCom(){return this.modelValue},switchStyle(){let e={};return e.fontSize=this.size+"rpx",e.backgroundColor=this.valueCom?this.activeColor:this.inactiveColor,e},loadingColor(){return this.valueCom?this.activeColor:null}},methods:{onClick(){this.disabled||this.loading||(this.vibrateShort&&e(),this.$emit("input",!this.valueCom),this.$emit("update:modelValue",!this.valueCom),this.$nextTick((()=>{this.$emit("change",this.valueCom?this.activeValue:this.inactiveValue)})))}}},[["render",function(e,c,h,m,p,f){const v=r(a("u-loading"),d),g=u;return t(),i(g,{class:n(["u-switch",[1==f.valueCom?"u-switch--on":"",h.disabled?"u-switch--disabled":""]]),onClick:f.onClick,style:s([f.switchStyle])},{default:l((()=>[o(g,{class:"u-switch__node node-class",style:s({width:e.$u.addUnit(h.size),height:e.$u.addUnit(h.size)})},{default:l((()=>[o(v,{show:h.loading,class:"u-switch__loading",size:.6*h.size,color:f.loadingColor},null,8,["show","size","color"])])),_:1},8,["style"])])),_:1},8,["class","onClick","style"])}],["__scopeId","data-v-87400e0f"]]);const m=c({name:"jnpf-switch",props:{modelValue:{type:[String,Number,Boolean]},activeValue:{type:[String,Number,Boolean],default:1},inactiveValue:{type:[String,Number,Boolean],default:0},size:{default:40},disabled:{type:Boolean,default:!1}},data:()=>({innerValue:""}),watch:{modelValue:{handler(e){this.innerValue=!!Number(e)},immediate:!0}},methods:{onChange(e){this.$emit("update:modelValue",e),this.$emit("change",e)}}},[["render",function(e,s,n,d,c,m){const p=r(a("u-switch"),h),f=u;return t(),i(f,{class:"jnpf-switch"},{default:l((()=>[o(p,{modelValue:c.innerValue,"onUpdate:modelValue":s[0]||(s[0]=e=>c.innerValue=e),"active-value":n.activeValue,"inactive-value":n.inactiveValue,disabled:n.disabled,onChange:m.onChange,size:n.size},null,8,["modelValue","active-value","inactive-value","disabled","onChange","size"])])),_:1})}],["__scopeId","data-v-a6c5e7af"]]);export{m as _}; import{b2 as e,k as a,o as t,c as i,w as l,a as o,I as s,E as n,i as u}from"./index-BCBx8hnA.js";import{_ as d}from"./u-loading.DwG35WRc.js";import{r}from"./uni-app.es.B9JggBRO.js";import{_ as c}from"./_plugin-vue_export-helper.BCo6x5W8.js";const h=c({name:"u-switch",emits:["update:modelValue","input","change"],props:{value:{type:[Number,String,Boolean],default:!1},modelValue:{type:[Number,String,Boolean],default:!1},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},size:{type:[Number,String],default:50},activeColor:{type:String,default:"#2979ff"},inactiveColor:{type:String,default:"#ffffff"},vibrateShort:{type:Boolean,default:!1},activeValue:{type:[Number,String,Boolean],default:!0},inactiveValue:{type:[Number,String,Boolean],default:!1}},data:()=>({}),computed:{valueCom(){return this.modelValue},switchStyle(){let e={};return e.fontSize=this.size+"rpx",e.backgroundColor=this.valueCom?this.activeColor:this.inactiveColor,e},loadingColor(){return this.valueCom?this.activeColor:null}},methods:{onClick(){this.disabled||this.loading||(this.vibrateShort&&e(),this.$emit("input",!this.valueCom),this.$emit("update:modelValue",!this.valueCom),this.$nextTick((()=>{this.$emit("change",this.valueCom?this.activeValue:this.inactiveValue)})))}}},[["render",function(e,c,h,m,p,f){const v=r(a("u-loading"),d),g=u;return t(),i(g,{class:n(["u-switch",[1==f.valueCom?"u-switch--on":"",h.disabled?"u-switch--disabled":""]]),onClick:f.onClick,style:s([f.switchStyle])},{default:l((()=>[o(g,{class:"u-switch__node node-class",style:s({width:e.$u.addUnit(h.size),height:e.$u.addUnit(h.size)})},{default:l((()=>[o(v,{show:h.loading,class:"u-switch__loading",size:.6*h.size,color:f.loadingColor},null,8,["show","size","color"])])),_:1},8,["style"])])),_:1},8,["class","onClick","style"])}],["__scopeId","data-v-87400e0f"]]);const m=c({name:"jnpf-switch",props:{modelValue:{type:[String,Number,Boolean]},activeValue:{type:[String,Number,Boolean],default:1},inactiveValue:{type:[String,Number,Boolean],default:0},size:{default:40},disabled:{type:Boolean,default:!1}},data:()=>({innerValue:""}),watch:{modelValue:{handler(e){this.innerValue=!!Number(e)},immediate:!0}},methods:{onChange(e){this.$emit("update:modelValue",e),this.$emit("change",e)}}},[["render",function(e,s,n,d,c,m){const p=r(a("u-switch"),h),f=u;return t(),i(f,{class:"jnpf-switch"},{default:l((()=>[o(p,{modelValue:c.innerValue,"onUpdate:modelValue":s[0]||(s[0]=e=>c.innerValue=e),"active-value":n.activeValue,"inactive-value":n.inactiveValue,disabled:n.disabled,onChange:m.onChange,size:n.size},null,8,["modelValue","active-value","inactive-value","disabled","onChange","size"])])),_:1})}],["__scopeId","data-v-a6c5e7af"]]);export{m as _};
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
import{_ as e}from"./u-input.B9TiTD94.js";import{p as l,F as t,o as a,c as s,w as i,q as o,b as u,i as n}from"./index-NHnW2VC9.js";import{r as p}from"./uni-app.es.BuWGDiAw.js";import{M as r}from"./MultSelect.DPrzL02h.js";import{_ as h}from"./_plugin-vue_export-helper.BCo6x5W8.js";const d=h({name:"jnpf-select",components:{MultSelect:r},props:{modelValue:{type:[String,Number,Array]},options:{type:Array,default:()=>[]},props:{type:Object,default:()=>({label:"fullName",value:"id"})},placeholder:{type:String,default:"请选择"},multiple:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},filterable:{type:Boolean,default:!1},isForm:{type:Boolean,default:!0}},data:()=>({innerValue:"",defaultValue:[],showSelectModal:!1}),watch:{modelValue:{immediate:!0,handler(e){this.setDefault()}},options:{immediate:!0,handler(e){this.setDefault()}}},computed:{list(){return this.options}},methods:{openSelect(){this.disabled||(this.showSelectModal=!0)},selectConfirm(e,l=""){if(this.multiple)this.innerValue=e.label,this.defaultValue=e.value,this.$emit("update:modelValue",e.value||[]),this.$emit("change",e.value||[],e.list||[]);else{if(!e.length)return;const l=this.options[e[0].index]||{};this.innerValue=l[this.props.label],this.defaultValue=[e[0][this.props.value]],this.$emit("update:modelValue",l[this.props.value]),this.$emit("change",l[this.props.value],l)}},setDefault(){if(!this.options.length)return this.innerValue="";if(this.multiple){if(this.innerValue="",this.defaultValue=[],!this.modelValue||!this.modelValue.length)return;this.defaultValue=this.modelValue;for(let e=0;e<this.options.length;e++){const l=this.options[e];for(let e=0;e<this.modelValue.length;e++){const t=this.modelValue[e];l[this.props.value]==t&&(this.innerValue?this.innerValue+=","+l[this.props.label]:this.innerValue+=l[this.props.label])}}}else{if(this.innerValue="",this.defaultValue=[],!this.modelValue&&0!==this.modelValue)return;for(let e=0;e<this.options.length;e++)if(this.options[e][this.props.value]===this.modelValue)return this.defaultValue=[this.modelValue],void(this.innerValue=this.options[e][this.props.label])}},close(){this.showSelectModal=!1}}},[["render",function(r,h,d,m,f,c){const V=p(l("u-input"),e),b=t("MultSelect"),v=n;return a(),s(v,{class:"jnpf-select"},{default:i((()=>[d.isForm?(a(),s(V,{key:0,"input-align":"right",type:"select","select-open":f.showSelectModal,modelValue:f.innerValue,"onUpdate:modelValue":h[0]||(h[0]=e=>f.innerValue=e),placeholder:d.placeholder,onClick:c.openSelect},null,8,["select-open","modelValue","placeholder","onClick"])):o("",!0),u(b,{list:c.list,show:f.showSelectModal,"value-name":d.props.value,"label-name":d.props.label,defaultValue:f.defaultValue,onConfirm:c.selectConfirm,onClose:c.close,filterable:d.filterable,multiple:d.multiple,labelName:d.props.label,valueName:d.props.value},null,8,["list","show","value-name","label-name","defaultValue","onConfirm","onClose","filterable","multiple","labelName","valueName"])])),_:1})}],["__scopeId","data-v-8a738214"]]);export{d as _}; import{_ as e}from"./u-input.B1qCGv3J.js";import{k as l,C as t,o as a,c as s,w as i,m as o,a as u,i as n}from"./index-BCBx8hnA.js";import{r as p}from"./uni-app.es.B9JggBRO.js";import{M as r}from"./MultSelect.eqakooia.js";import{_ as h}from"./_plugin-vue_export-helper.BCo6x5W8.js";const d=h({name:"jnpf-select",components:{MultSelect:r},props:{modelValue:{type:[String,Number,Array]},options:{type:Array,default:()=>[]},props:{type:Object,default:()=>({label:"fullName",value:"id"})},placeholder:{type:String,default:"请选择"},multiple:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},filterable:{type:Boolean,default:!1},isForm:{type:Boolean,default:!0}},data:()=>({innerValue:"",defaultValue:[],showSelectModal:!1}),watch:{modelValue:{immediate:!0,handler(e){this.setDefault()}},options:{immediate:!0,handler(e){this.setDefault()}}},computed:{list(){return this.options}},methods:{openSelect(){this.disabled||(this.showSelectModal=!0)},selectConfirm(e,l=""){if(this.multiple)this.innerValue=e.label,this.defaultValue=e.value,this.$emit("update:modelValue",e.value||[]),this.$emit("change",e.value||[],e.list||[]);else{if(!e.length)return;const l=this.options[e[0].index]||{};this.innerValue=l[this.props.label],this.defaultValue=[e[0][this.props.value]],this.$emit("update:modelValue",l[this.props.value]),this.$emit("change",l[this.props.value],l)}},setDefault(){if(!this.options.length)return this.innerValue="";if(this.multiple){if(this.innerValue="",this.defaultValue=[],!this.modelValue||!this.modelValue.length)return;this.defaultValue=this.modelValue;for(let e=0;e<this.options.length;e++){const l=this.options[e];for(let e=0;e<this.modelValue.length;e++){const t=this.modelValue[e];l[this.props.value]==t&&(this.innerValue?this.innerValue+=","+l[this.props.label]:this.innerValue+=l[this.props.label])}}}else{if(this.innerValue="",this.defaultValue=[],!this.modelValue&&0!==this.modelValue)return;for(let e=0;e<this.options.length;e++)if(this.options[e][this.props.value]===this.modelValue)return this.defaultValue=[this.modelValue],void(this.innerValue=this.options[e][this.props.label])}},close(){this.showSelectModal=!1}}},[["render",function(r,h,d,m,f,c){const V=p(l("u-input"),e),b=t("MultSelect"),v=n;return a(),s(v,{class:"jnpf-select"},{default:i((()=>[d.isForm?(a(),s(V,{key:0,"input-align":"right",type:"select","select-open":f.showSelectModal,modelValue:f.innerValue,"onUpdate:modelValue":h[0]||(h[0]=e=>f.innerValue=e),placeholder:d.placeholder,onClick:c.openSelect},null,8,["select-open","modelValue","placeholder","onClick"])):o("",!0),u(b,{list:c.list,show:f.showSelectModal,"value-name":d.props.value,"label-name":d.props.label,defaultValue:f.defaultValue,onConfirm:c.selectConfirm,onClose:c.close,filterable:d.filterable,multiple:d.multiple,labelName:d.props.label,valueName:d.props.value},null,8,["list","show","value-name","label-name","defaultValue","onConfirm","onClose","filterable","multiple","labelName","valueName"])])),_:1})}],["__scopeId","data-v-8a738214"]]);export{d as _};
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
import{C as a,aF as t,aG as e}from"./index-NHnW2VC9.js";const s={onShow(){this.setTabBarBadge()},methods:{setTabBarBadge(){const s=a().getBadgeNum||0;s?t({index:3,text:s>99?"99+":s.toString()}):e({index:3})}}};export{s as I}; import{z as a,aF as t,aG as e}from"./index-BCBx8hnA.js";const s={onShow(){this.setTabBarBadge()},methods:{setTabBarBadge(){const s=a().getBadgeNum||0;s?t({index:3,text:s>99?"99+":s.toString()}):e({index:3})}}};export{s as I};
import{o as a,c as s,w as e,b as o,d as t,e as n,f as r,i as c}from"./index-NHnW2VC9.js";import{r as l}from"./resources.DipqUmnN.js";import{_ as i}from"./_plugin-vue_export-helper.BCo6x5W8.js";const d=i({data:()=>({icon:l.message.nodata})},[["render",function(l,i,d,f,u,m){const p=n,_=r,x=c;return a(),s(x,{class:"notData-box u-flex-col"},{default:e((()=>[o(x,{class:"u-flex-col notData-inner"},{default:e((()=>[o(p,{src:u.icon,mode:"",class:"notData-inner-img"},null,8,["src"]),o(_,{class:"notData-inner-text"},{default:e((()=>[t("暂无数据")])),_:1})])),_:1})])),_:1})}],["__scopeId","data-v-31b109f7"]]);export{d as N};
import{o as a,c as s,w as o,a as t,l as e,Y as n,p as r,i as c}from"./index-BCBx8hnA.js";import{r as l}from"./resources.DipqUmnN.js";import{_ as i}from"./_plugin-vue_export-helper.BCo6x5W8.js";const u=i({data:()=>({icon:l.message.nodata})},[["render",function(l,i,u,d,f,m){const p=n,_=r,x=c;return a(),s(x,{class:"notData-box u-flex-col"},{default:o((()=>[t(x,{class:"u-flex-col notData-inner"},{default:o((()=>[t(p,{src:f.icon,mode:"",class:"notData-inner-img"},null,8,["src"]),t(_,{class:"notData-inner-text"},{default:o((()=>[e("暂无数据")])),_:1})])),_:1})])),_:1})}],["__scopeId","data-v-31b109f7"]]);export{u as N};
import{a2 as r}from"./index-NHnW2VC9.js";function t(t){return r({url:`/api/extend/CrmOrder/${t}`,method:"DELETE"})}function e(t,e){return r({url:"/api/extend/CrmOrder",method:"get",data:t,options:e})}function o(t){return r({url:"/api/extend/CrmOrder/Goods",method:"get",data:t,options:{load:!1}})}function d(t){return r({url:"/api/extend/CrmOrder/Customer",method:"get",data:{keyword:t||""},options:{load:!1}})}export{t as D,d as a,e as b,o as g}; import{a1 as r}from"./index-BCBx8hnA.js";function t(t){return r({url:`/api/extend/CrmOrder/${t}`,method:"DELETE"})}function e(t,e){return r({url:"/api/extend/CrmOrder",method:"get",data:t,options:e})}function o(t){return r({url:"/api/extend/CrmOrder/Goods",method:"get",data:t,options:{load:!1}})}function d(t){return r({url:"/api/extend/CrmOrder/Customer",method:"get",data:{keyword:t||""},options:{load:!1}})}export{t as D,d as a,e as b,o as g};
import{X as e,c as r,w as s,i as t,o,b as a,B as l}from"./index-NHnW2VC9.js";import{_ as n}from"./_plugin-vue_export-helper.BCo6x5W8.js";const u=n({data:()=>({url:""}),onLoad(r){this.url=decodeURIComponent(r.url);const s=r.fullName||"";5!=r.type&&s&&e({title:s})}},[["render",function(e,n,u,c,d,i){const p=l,f=t;return o(),r(f,null,{default:s((()=>[a(p,{src:d.url},null,8,["src"])])),_:1})}]]);export{u as default};
import{V as e,c as r,w as s,i as t,o as a,a as o,y as l}from"./index-BCBx8hnA.js";import{_ as n}from"./_plugin-vue_export-helper.BCo6x5W8.js";const u=n({data:()=>({url:""}),onLoad(r){this.url=decodeURIComponent(r.url);const s=r.fullName||"";5!=r.type&&s&&e({title:s})}},[["render",function(e,n,u,c,d,i){const p=l,f=t;return a(),r(f,null,{default:s((()=>[o(p,{src:d.url},null,8,["src"])])),_:1})}]]);export{u as default};
This diff is collapsed.
This diff is collapsed.
import{g as s,s as a,r,c as e,o as t,i as n}from"./index-BCBx8hnA.js";import{r as o}from"./resources.DipqUmnN.js";import{_ as i}from"./_plugin-vue_export-helper.BCo6x5W8.js";const p=i({data:()=>({startup:o.startup.main}),onLoad(){if(s("isUpdate"))return;s("launchFlag");const e=s("token")||"";e?a({url:"/pages/index/index"}):r({url:"/pages/login/index"})}},[["render",function(s,a,r,o,i,p){const u=n;return t(),e(u,{class:"launch-v"})}],["__scopeId","data-v-2f3dcf67"]]);export{p as default};
import{c as e,w as o,i as t,o as a,b as s,g as n}from"./index-NHnW2VC9.js";import{_ as d}from"./_plugin-vue_export-helper.BCo6x5W8.js";const i=d({data:()=>({usercode:"",password:"",passwordHidden:!0}),onLoad:function(){localStorage.setItem("hasLoginss",!0);let e="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx7219d601c7041b7a&redirect_uri="+encodeURI("https://dj.ccnu.edu.cn/app")+"&response_type=code&scope=snsapi_base&state=STATE&agentid=1000396#wechat_redirect";console.log(e,898),window.location.href=e},methods:{doLogin(){}}},[["render",function(d,i,r,c,p,u){const l=n,_=t;return a(),e(_,{style:{width:"96%",margin:"0 auto"}},{default:o((()=>[s(_,null,{default:o((()=>[s(l,{onSubmit:u.doLogin},null,8,["onSubmit"])])),_:1})])),_:1})}],["__scopeId","data-v-58a1269b"]]);export{i as default}; import{c as e,w as o,i as t,o as a,a as s,b as n}from"./index-BCBx8hnA.js";import{_ as d}from"./_plugin-vue_export-helper.BCo6x5W8.js";const i=d({data:()=>({usercode:"",password:"",passwordHidden:!0}),onLoad:function(){localStorage.setItem("hasLoginss",!0);let e="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx7219d601c7041b7a&redirect_uri="+encodeURI("https://dj.ccnu.edu.cn/app")+"&response_type=code&scope=snsapi_base&state=STATE&agentid=1000396#wechat_redirect";console.log(e,898),window.location.href=e},methods:{doLogin(){}}},[["render",function(d,i,r,c,p,u){const l=n,_=t;return a(),e(_,{style:{width:"96%",margin:"0 auto"}},{default:o((()=>[s(_,null,{default:o((()=>[s(l,{onSubmit:u.doLogin},null,8,["onSubmit"])])),_:1})])),_:1})}],["__scopeId","data-v-58a1269b"]]);export{i as default};
import{u as t,h as e,s,c as n,o,i}from"./index-NHnW2VC9.js";import{_ as a}from"./_plugin-vue_export-helper.BCo6x5W8.js";const r=a({data:()=>({token:""}),onLoad(t){this.token=t.token,this.init()},methods:{init(){const n=t();n.setToken(this.token),n.getCurrentUser().then((t=>{e(),s({url:"/pages/index/index"}),this.show=!1})).catch((()=>{e(),s({url:"/pages/login/index"})}))}}},[["render",function(t,e,s,a,r,h){const d=i;return o(),n(d,{class:""})}]]);export{r as default}; import{u as t,h as e,s,c as n,o,i}from"./index-BCBx8hnA.js";import{_ as a}from"./_plugin-vue_export-helper.BCo6x5W8.js";const r=a({data:()=>({token:""}),onLoad(t){this.token=t.token,this.init()},methods:{init(){const n=t();n.setToken(this.token),n.getCurrentUser().then((t=>{e(),s({url:"/pages/index/index"}),this.show=!1})).catch((()=>{e(),s({url:"/pages/login/index"})}))}}},[["render",function(t,e,s,a,r,h){const d=i;return o(),n(d,{class:""})}]]);export{r as default};
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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