Merge remote-tracking branch 'remotes/origin/master' into minJeecg
# Conflicts: # src/pages/login/login.vue
This commit is contained in:
commit
0b0836a91b
@ -1,7 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<view :class="['pageLayout', { 'gray': appStore.isGray == 1 }]">
|
<view :class="['pageLayout', { 'gray': appStore.isGray == 1 }]">
|
||||||
<wd-watermark :content="userStore.userInfo.realname + ' '+ userStore.userInfo.username"
|
<wd-watermark :content="content1" :width="200" :height="200" :opacity="0.3" :size="16" ></wd-watermark>
|
||||||
:width="200" :height="200" :opacity="0.2"></wd-watermark>
|
|
||||||
<view v-if="navbarShow" :class="{ pageNav: true, transparent: navBgTransparent, fixed: navFixed }"
|
<view v-if="navbarShow" :class="{ pageNav: true, transparent: navBgTransparent, fixed: navFixed }"
|
||||||
:style="{ height: `${statusBarHeight + navHeight}px` }">
|
:style="{ height: `${statusBarHeight + navHeight}px` }">
|
||||||
<view class="statusBar" :style="{ height: `${statusBarHeight}px` }"></view>
|
<view class="statusBar" :style="{ height: `${statusBarHeight}px` }"></view>
|
||||||
@ -29,6 +28,7 @@
|
|||||||
import { useParamsStore } from '@/store/page-params'
|
import { useParamsStore } from '@/store/page-params'
|
||||||
import { useAppStore } from '@/store'
|
import { useAppStore } from '@/store'
|
||||||
import { useUserStore } from '@/store/user'
|
import { useUserStore } from '@/store/user'
|
||||||
|
import dayjs from 'dayjs';
|
||||||
defineOptions({
|
defineOptions({
|
||||||
name: 'pageLayout',
|
name: 'pageLayout',
|
||||||
options: {
|
options: {
|
||||||
@ -41,6 +41,7 @@
|
|||||||
const userStore = useUserStore()
|
const userStore = useUserStore()
|
||||||
const paramsStore = useParamsStore()
|
const paramsStore = useParamsStore()
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
|
const content1 = userStore.userInfo.realname + ' ' + userStore.userInfo.workNo + ' ' + dayjs().format('YYYY-MM-DD')
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
backRouteName: {
|
backRouteName: {
|
||||||
type: String,
|
type: String,
|
||||||
|
@ -56,10 +56,6 @@
|
|||||||
const type = ref('') //绑定查询文件种类
|
const type = ref('') //绑定查询文件种类
|
||||||
var ifH5 = false;
|
var ifH5 = false;
|
||||||
|
|
||||||
const handleClickLeft = () => {
|
|
||||||
uni.navigateBack()
|
|
||||||
}
|
|
||||||
|
|
||||||
const getList = (e) => {
|
const getList = (e) => {
|
||||||
loading = true;
|
loading = true;
|
||||||
const handlers = {
|
const handlers = {
|
||||||
@ -69,7 +65,6 @@
|
|||||||
'厂级制度': getFactorySystemList,
|
'厂级制度': getFactorySystemList,
|
||||||
'法律法规': getRegulationsList
|
'法律法规': getRegulationsList
|
||||||
};
|
};
|
||||||
|
|
||||||
if (e === 1) {
|
if (e === 1) {
|
||||||
handlers[type.value]?.();
|
handlers[type.value]?.();
|
||||||
} else if (type.value == '厂级制度') {
|
} else if (type.value == '厂级制度') {
|
||||||
@ -183,7 +178,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
const onlinePreView = (e) => {
|
const onlinePreView = (e) => {
|
||||||
console.log(e)
|
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: `/pages/onlinePreview/detail?data=${e}`
|
url: `/pages/onlinePreview/detail?data=${e}`
|
||||||
});
|
});
|
||||||
|
@ -12,33 +12,33 @@
|
|||||||
<wd-col-picker label="选择目录" v-model="selectedValue" :columns="dataSource" :column-change="columnChange"
|
<wd-col-picker label="选择目录" v-model="selectedValue" :columns="dataSource" :column-change="columnChange"
|
||||||
@confirm="handleConfirm" :display-format="displayFormat"></wd-col-picker>
|
@confirm="handleConfirm" :display-format="displayFormat"></wd-col-picker>
|
||||||
<iframe id="bdIframe" :src="fileUrl" ref="bdIframe" style="border: none;" class="iframe" v-if="fileUrl" />
|
<iframe id="bdIframe" :src="fileUrl" ref="bdIframe" style="border: none;" class="iframe" v-if="fileUrl" />
|
||||||
<view v-else @click="onlinePreview(item.path)" v-for="(item, i) in fileUrl2" style="padding: 15px 0 0 0">
|
<view v-if="fileUrl2" class="bdIframe" @click="onlinePreview(item.path)" v-for="(item, i) in fileUrl2" style="padding: 15px 0 0 0">
|
||||||
<wd-card :title="item.name"></wd-card>
|
<wd-card :title="item.name"></wd-card>
|
||||||
</view>
|
</view>
|
||||||
|
<view v-else style="padding: 20px;">
|
||||||
|
未获取到文件信息,请选择其他目录!
|
||||||
|
</view>
|
||||||
</PageLayout>
|
</PageLayout>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import {
|
|
||||||
ref,
|
|
||||||
} from 'vue';
|
|
||||||
import {
|
|
||||||
onLoad
|
|
||||||
} from '@dcloudio/uni-app'
|
|
||||||
import {
|
import {
|
||||||
useUserStore
|
useUserStore
|
||||||
} from '@/store/user';
|
} from '@/store/user'
|
||||||
import {
|
import {
|
||||||
getListApi,
|
getListApi,
|
||||||
getJobDesIdByDepAndName,
|
getJobDesIdByDepAndName,
|
||||||
getPathByInsflagQuote,
|
getPathByInsflagQuote,
|
||||||
queryByIdApi
|
queryByIdApi
|
||||||
} from '@/api/pages/sc';
|
} from '@/api/pages/sc'
|
||||||
import Base64 from '@/utils/code';
|
import {
|
||||||
|
Base64
|
||||||
|
} from 'js-base64'
|
||||||
|
import base64 from '@/utils/code';
|
||||||
import {
|
import {
|
||||||
getEnvBaseUrl
|
getEnvBaseUrl
|
||||||
} from '@/utils/index'
|
} from '@/utils/index'
|
||||||
|
const baseUrl = 'https://10.75.166.6/jeecg-boot/sys/common/static/';
|
||||||
const data = ref([])
|
const data = ref([])
|
||||||
const dataSource = ref([])
|
const dataSource = ref([])
|
||||||
const selectedValue = ref([]);
|
const selectedValue = ref([]);
|
||||||
@ -70,14 +70,18 @@
|
|||||||
const handleConfirm = ({
|
const handleConfirm = ({
|
||||||
value
|
value
|
||||||
}) => {
|
}) => {
|
||||||
let base64 = new Base64();
|
|
||||||
queryByIdApi(value[value.length - 1]).then(res => {
|
queryByIdApi(value[value.length - 1]).then(res => {
|
||||||
let url = res.result.path
|
let url = res.result.path
|
||||||
let quote = res.result.quote
|
let quote = res.result.quote
|
||||||
let insFlag = res.result.insFlag
|
let insFlag = res.result.insFlag
|
||||||
if (url) {
|
if (url) {
|
||||||
fileUrl.value = 'https://36.112.48.190/preview/onlinePreview?url=' + encodeURIComponent(base64
|
if (isH5()) {
|
||||||
.encode(getEnvBaseUrl() + '/sys/common/static/' + url))
|
fileUrl.value = 'https://36.112.48.190/preview/onlinePreview?url=' + encodeURIComponent(
|
||||||
|
Base64.encode(baseUrl + url))
|
||||||
|
} else {
|
||||||
|
fileUrl.value = 'https://36.112.48.190/preview/onlinePreview?url=' + encodeURIComponent(
|
||||||
|
new base64().encode(baseUrl + url))
|
||||||
|
}
|
||||||
} else if (/^-?\d+$/.test(quote) && !insFlag) {
|
} else if (/^-?\d+$/.test(quote) && !insFlag) {
|
||||||
getJobDesIdByDepAndName({
|
getJobDesIdByDepAndName({
|
||||||
jobname: quote,
|
jobname: quote,
|
||||||
@ -122,7 +126,7 @@
|
|||||||
|
|
||||||
const onlinePreview = (e) => {
|
const onlinePreview = (e) => {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: `/pages/onlinePreview/${path}?data=${e}`
|
url: `/pages/onlinePreview/detail?data=${e}`
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -160,10 +164,11 @@
|
|||||||
</script>
|
</script>
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
#bdIframe {
|
#bdIframe {
|
||||||
position: absolute;
|
height: calc(100vh - 230rpx);
|
||||||
top: 10;
|
/* 使用视口高度减去顶部固定高度 */
|
||||||
left: 0;
|
border: none;
|
||||||
width: 100%;
|
/* 移除absolute定位,改用普通文档流 */
|
||||||
height: 100%;
|
position: relative;
|
||||||
|
top: 0;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
@ -20,13 +20,15 @@
|
|||||||
<view class="container">
|
<view class="container">
|
||||||
<view
|
<view
|
||||||
style="margin-bottom: 20px;height: 400px;overflow: hidden;overflow-y: auto;overflow-x: auto;background-color: #fff;">
|
style="margin-bottom: 20px;height: 400px;overflow: hidden;overflow-y: auto;overflow-x: auto;background-color: #fff;">
|
||||||
<img :src="imgPath" style="border:2px;cursor:hand;" alt="流程图" usemap="#planetmap">
|
<img :src="imgPath" style="border:2px;cursor:hand;" alt="流程图" usemap="#planetmap"
|
||||||
<!-- <map name="planetmap">
|
@click="showFullScreen">
|
||||||
<template v-for="(item, key, index) in nodePositionInfo.positionList">
|
|
||||||
<area shape="rect" :coords="item.coords" title="Venus" @touchstart="showNodeInfo(nodePositionInfo.hisTasks,item.id)">
|
|
||||||
</template>
|
|
||||||
</map> -->
|
|
||||||
</view>
|
</view>
|
||||||
|
<!-- Full screen preview -->
|
||||||
|
<wd-popup v-model="popup" type="center" background-color="#fff">
|
||||||
|
<view class="fullscreen-preview">
|
||||||
|
<image :src="imgPath" mode="widthFix" style="width:100%;" @click="hideFullScreen" />
|
||||||
|
</view>
|
||||||
|
</wd-popup>
|
||||||
<wd-card title="流程历史追踪" type="rectangle">
|
<wd-card title="流程历史追踪" type="rectangle">
|
||||||
<wd-steps :active="completedNum" vertical>
|
<wd-steps :active="completedNum" vertical>
|
||||||
<wd-step v-for="item in dataSource">
|
<wd-step v-for="item in dataSource">
|
||||||
@ -90,16 +92,13 @@
|
|||||||
const appStore = useAppStore();
|
const appStore = useAppStore();
|
||||||
const tab = ref(0)
|
const tab = ref(0)
|
||||||
const completedNum = ref(0);
|
const completedNum = ref(0);
|
||||||
|
const popup = ref(false)
|
||||||
|
const showFullScreen = () => {
|
||||||
const handleClickLeft = () => {
|
popup.value = true
|
||||||
uni.navigateBack()
|
};
|
||||||
}
|
const hideFullScreen = () => {
|
||||||
|
popup.value = false
|
||||||
const showNodeInfo = (data, taskId) => {
|
};
|
||||||
// this.$refs.nodeInfoModel.close();
|
|
||||||
// this.$refs.nodeInfoModel.showInfo(data,taskId);
|
|
||||||
}
|
|
||||||
|
|
||||||
onLoad((options) => {
|
onLoad((options) => {
|
||||||
type.value = '';
|
type.value = '';
|
||||||
@ -163,7 +162,6 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
const imgPath = computed(() => {
|
const imgPath = computed(() => {
|
||||||
@ -176,23 +174,16 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
::v-deep .wd-tabs__line {
|
.fullscreen-preview {
|
||||||
background: #39b54a;
|
width: 100vw;
|
||||||
|
height: 100vh;
|
||||||
|
background-color: #fff; /* 白色背景 */
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
::v-deep .wd-step.is-finished .wd-step__icon-outer {
|
|
||||||
border-color: #39b54a;
|
|
||||||
color: #fff;
|
|
||||||
background-color: #39b54a;
|
|
||||||
}
|
|
||||||
|
|
||||||
::v-deep .wd-step.is-process .wd-step__icon-outer {
|
|
||||||
border-color: #f0f0f0;
|
|
||||||
color: #fff;
|
|
||||||
background-color: #f0f0f0;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
.container {
|
.container {
|
||||||
padding: 5px 0 5px;
|
padding: 5px 0 5px;
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
|
@ -45,6 +45,8 @@
|
|||||||
<text style="display: block;">Copyright (c) 2024 天然气产销厂</text>
|
<text style="display: block;">Copyright (c) 2024 天然气产销厂</text>
|
||||||
<text>版本号:{{version}}</text>
|
<text>版本号:{{version}}</text>
|
||||||
</view>
|
</view>
|
||||||
|
<wd-notice-bar type="danger" text="本平台为非涉密平台,严禁处理、传输国家秘密和企业核心商密等涉密敏感事项" wrapable :scrollable="false"
|
||||||
|
prefix="warn-bold" style="text-align: left;display: flex;align-items: flex-start;" />
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</PageLayout>
|
</PageLayout>
|
||||||
@ -103,9 +105,9 @@
|
|||||||
let pw = Base64.encode(encodeURIComponent(password.value))
|
let pw = Base64.encode(encodeURIComponent(password.value))
|
||||||
loading.value = true
|
loading.value = true
|
||||||
/*生产环境 begin */
|
/*生产环境 begin */
|
||||||
// loginApi({ username: un, password: pw })
|
loginApi({ username: un, password: pw })
|
||||||
/*开发环境 begin */
|
/*开发环境 begin */
|
||||||
loginApi({ username: userName.value, password: password.value, captcha: 'app' })
|
// loginApi({ username: userName.value, password: password.value, captcha: 'app' })
|
||||||
.then((res : any) => {
|
.then((res : any) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
const { result } = res
|
const { result } = res
|
||||||
@ -232,6 +234,7 @@
|
|||||||
.version {
|
.version {
|
||||||
margin-top: 63rpx;
|
margin-top: 63rpx;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
|
margin-bottom: 60rpx;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
@ -53,7 +53,6 @@
|
|||||||
|
|
||||||
const captureText = (text) => { //截取字符串显示
|
const captureText = (text) => { //截取字符串显示
|
||||||
const match = text.match(/\/([^_]+)(?=_)/);
|
const match = text.match(/\/([^_]+)(?=_)/);
|
||||||
console.log(match)
|
|
||||||
return match ? match[1] : '';
|
return match ? match[1] : '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
import {
|
import {
|
||||||
onLoad
|
onLoad
|
||||||
} from '@dcloudio/uni-app';
|
} from '@dcloudio/uni-app';
|
||||||
import Base64 from '@/utils/code';
|
import base64 from '@/utils/code';
|
||||||
import {
|
import {
|
||||||
getEnvBaseUrl
|
getEnvBaseUrl
|
||||||
} from '@/utils/index'
|
} from '@/utils/index'
|
||||||
@ -25,9 +25,9 @@
|
|||||||
var fileUrl = "";
|
var fileUrl = "";
|
||||||
|
|
||||||
onLoad((options) => {
|
onLoad((options) => {
|
||||||
let base64 = new Base64();
|
let Base64 = new base64();
|
||||||
var url = baseUrl + JSON.parse(options.data);
|
var url = baseUrl + JSON.parse(options.data);
|
||||||
fileUrl = 'https://36.112.48.190/preview/onlinePreview?url=' + encodeURIComponent(base64.encode(url))
|
fileUrl = 'https://36.112.48.190/preview/onlinePreview?url=' + encodeURIComponent(Base64.encode(url))
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
@ -27,7 +27,6 @@
|
|||||||
const baseUrl = 'https://10.75.166.6/jeecg-boot/sys/common/static/';
|
const baseUrl = 'https://10.75.166.6/jeecg-boot/sys/common/static/';
|
||||||
|
|
||||||
onLoad((options) => {
|
onLoad((options) => {
|
||||||
console.log(options)
|
|
||||||
let url = JSON.parse(options.data)
|
let url = JSON.parse(options.data)
|
||||||
url = baseUrl + url;
|
url = baseUrl + url;
|
||||||
fileUrl = 'https://36.112.48.190/preview/onlinePreview?url=' + encodeURIComponent(Base64.encode(url))
|
fileUrl = 'https://36.112.48.190/preview/onlinePreview?url=' + encodeURIComponent(Base64.encode(url))
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
export default class Base64 {
|
export default class base64 {
|
||||||
// 私钥
|
// 私钥
|
||||||
private readonly _keyStr: string = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
|
private readonly _keyStr: string = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
|
||||||
|
|
||||||
|
@ -216,7 +216,10 @@ export function formatDate(value, fmt) {
|
|||||||
export const hasNewVersion = (version, isWgt = false) => {
|
export const hasNewVersion = (version, isWgt = false) => {
|
||||||
// #ifdef APP_PLUS
|
// #ifdef APP_PLUS
|
||||||
return new Promise((resolve) => {
|
return new Promise((resolve) => {
|
||||||
const transfer = (str) => str.replace(/\./g, '')
|
const transfer = (str) => {
|
||||||
|
const parts = str.split('.').map(part => part.padStart(4, '0'))
|
||||||
|
return parts.join('')
|
||||||
|
}
|
||||||
if (isWgt) {
|
if (isWgt) {
|
||||||
plus.runtime.getProperty(plus.runtime.appid, (widgetInfo) => {
|
plus.runtime.getProperty(plus.runtime.appid, (widgetInfo) => {
|
||||||
const currentVersion = widgetInfo.version
|
const currentVersion = widgetInfo.version
|
||||||
@ -433,13 +436,13 @@ export const imgUrl = (url : string) => {
|
|||||||
* @param subStr
|
* @param subStr
|
||||||
* @returns {*}
|
* @returns {*}
|
||||||
*/
|
*/
|
||||||
export function getFileAccessHttpUrl(avatar,subStr) {
|
export function getFileAccessHttpUrl(avatar, subStr) {
|
||||||
if(!subStr) subStr = 'http'
|
if (!subStr) subStr = 'http'
|
||||||
if(avatar && avatar.startsWith(subStr)){
|
if (avatar && avatar.startsWith(subStr)) {
|
||||||
return avatar;
|
return avatar;
|
||||||
}else{
|
} else {
|
||||||
if(avatar && avatar.length>0 && avatar.indexOf('[')==-1){
|
if (avatar && avatar.length > 0 && avatar.indexOf('[') == -1) {
|
||||||
return getEnvBaseUrl()+ "/sys/common/static/" + avatar;
|
return getEnvBaseUrl() + "/sys/common/static/" + avatar;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user