fix: 增加刷新按钮。
This commit is contained in:
80
src/components/refresh/refresh.vue
Normal file
80
src/components/refresh/refresh.vue
Normal file
@@ -0,0 +1,80 @@
|
|||||||
|
<template>
|
||||||
|
<view>
|
||||||
|
<movable-area class="movable-area">
|
||||||
|
<movable-view class="movable-view" :x="x" :y="y" direction="all">
|
||||||
|
<view class="refreshPages" @click="refreshPages">
|
||||||
|
<image src="../../static/images/tabbar/refresh.png"></image>
|
||||||
|
<!-- <text></text> -->
|
||||||
|
</view>
|
||||||
|
</movable-view>
|
||||||
|
</movable-area>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
x: 1000, // x大于默认的值就会在最右边
|
||||||
|
y: 1000
|
||||||
|
};
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
// 意见反馈
|
||||||
|
refreshPages() {
|
||||||
|
//#ifdef H5
|
||||||
|
window.location.reload();
|
||||||
|
//#endif
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="less">
|
||||||
|
.movable-area {
|
||||||
|
// 保持在右下角
|
||||||
|
margin-top: 135rpx;
|
||||||
|
margin-left: 100rpx;
|
||||||
|
height: calc(100vh - 300rpx);
|
||||||
|
width: calc(100vw - 150rpx);
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
|
position: fixed;
|
||||||
|
z-index: 99999999;
|
||||||
|
pointer-events: none; //此处要加,鼠标事件可以渗透
|
||||||
|
.movable-view {
|
||||||
|
width: 60rpx;
|
||||||
|
height: 60rpx;
|
||||||
|
pointer-events: auto; //恢复鼠标事件
|
||||||
|
.refreshPages {
|
||||||
|
width: 60rpx;
|
||||||
|
height: 60rpx;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
background: #ffffff;
|
||||||
|
border-radius: 50%;
|
||||||
|
border: 1px solid #a6a6a6;
|
||||||
|
image {
|
||||||
|
width: 30rpx;
|
||||||
|
height: 30rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
text {
|
||||||
|
margin-top: 10rpx;
|
||||||
|
font-size: 16rpx;
|
||||||
|
font-family: PingFangSC-Semibold, PingFang SC;
|
||||||
|
font-weight: 600;
|
||||||
|
color: #000000;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
@@ -11,6 +11,7 @@ import { useDict } from '@/utils/dict'
|
|||||||
import { parseTime, resetForm, addDateRange, handleTree, selectDictLabel, selectDictLabels } from '@/utils/ruoyi'
|
import { parseTime, resetForm, addDateRange, handleTree, selectDictLabel, selectDictLabels } from '@/utils/ruoyi'
|
||||||
import mySelectCheckbox from '@/components/my-selectCheckbox/my-selectCheckbox.vue';
|
import mySelectCheckbox from '@/components/my-selectCheckbox/my-selectCheckbox.vue';
|
||||||
import suspend from '@/components/suspend/suspend.vue';
|
import suspend from '@/components/suspend/suspend.vue';
|
||||||
|
import refresh from '@/components/refresh/refresh.vue';
|
||||||
|
|
||||||
export function createApp() {
|
export function createApp() {
|
||||||
const app = createSSRApp(App)
|
const app = createSSRApp(App)
|
||||||
@@ -20,6 +21,7 @@ export function createApp() {
|
|||||||
// 注册全局组件
|
// 注册全局组件
|
||||||
app.component('mySelectCheckbox', mySelectCheckbox);
|
app.component('mySelectCheckbox', mySelectCheckbox);
|
||||||
app.component('suspend', suspend);
|
app.component('suspend', suspend);
|
||||||
|
app.component('refresh', refresh);
|
||||||
directive(app)
|
directive(app)
|
||||||
|
|
||||||
// 全局方法挂载
|
// 全局方法挂载
|
||||||
|
|||||||
@@ -26,6 +26,8 @@
|
|||||||
</view>
|
</view>
|
||||||
</u-list>
|
</u-list>
|
||||||
</div>
|
</div>
|
||||||
|
<!-- 悬停按钮刷新-->
|
||||||
|
<refresh></refresh>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|||||||
@@ -82,6 +82,8 @@
|
|||||||
<u-picker itemHeight="88" :show="settingPickShow" :columns="settingColumns" keyName="settingName"
|
<u-picker itemHeight="88" :show="settingPickShow" :columns="settingColumns" keyName="settingName"
|
||||||
@confirm="settingConfirm" @cancel="settingCancel"></u-picker>
|
@confirm="settingConfirm" @cancel="settingCancel"></u-picker>
|
||||||
</view>
|
</view>
|
||||||
|
<!-- 悬停按钮返回工作台-->
|
||||||
|
<suspend></suspend>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
|
|||||||
@@ -754,6 +754,8 @@
|
|||||||
<div></div>
|
<div></div>
|
||||||
</div>
|
</div>
|
||||||
</view>
|
</view>
|
||||||
|
<!-- 悬停按钮刷新-->
|
||||||
|
<refresh></refresh>
|
||||||
</template>
|
</template>
|
||||||
<script setup>
|
<script setup>
|
||||||
import { ref, onMounted } from 'vue';
|
import { ref, onMounted } from 'vue';
|
||||||
|
|||||||
@@ -159,6 +159,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<!-- 悬停按钮返回工作台-->
|
<!-- 悬停按钮返回工作台-->
|
||||||
<suspend></suspend>
|
<suspend></suspend>
|
||||||
|
<refresh></refresh>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
|
|||||||
@@ -72,6 +72,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<!-- 悬停按钮返回工作台-->
|
<!-- 悬停按钮返回工作台-->
|
||||||
<suspend></suspend>
|
<suspend></suspend>
|
||||||
|
<refresh></refresh>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
|
|||||||
@@ -171,6 +171,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<!-- 悬停按钮返回工作台-->
|
<!-- 悬停按钮返回工作台-->
|
||||||
<suspend></suspend>
|
<suspend></suspend>
|
||||||
|
<refresh></refresh>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
|
|||||||
@@ -215,6 +215,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<!-- 悬停按钮返回工作台-->
|
<!-- 悬停按钮返回工作台-->
|
||||||
<suspend></suspend>
|
<suspend></suspend>
|
||||||
|
<refresh></refresh>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
|
|||||||
@@ -171,6 +171,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<!-- 悬停按钮返回工作台-->
|
<!-- 悬停按钮返回工作台-->
|
||||||
<suspend></suspend>
|
<suspend></suspend>
|
||||||
|
<refresh></refresh>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
|
|||||||
@@ -158,6 +158,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<!-- 悬停按钮返回工作台-->
|
<!-- 悬停按钮返回工作台-->
|
||||||
<suspend></suspend>
|
<suspend></suspend>
|
||||||
|
<refresh></refresh>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
|
|||||||
@@ -123,6 +123,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<!-- 悬停按钮返回工作台-->
|
<!-- 悬停按钮返回工作台-->
|
||||||
<suspend></suspend>
|
<suspend></suspend>
|
||||||
|
<refresh></refresh>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
|
|||||||
@@ -148,6 +148,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<!-- 悬停按钮返回工作台-->
|
<!-- 悬停按钮返回工作台-->
|
||||||
<suspend></suspend>
|
<suspend></suspend>
|
||||||
|
<refresh></refresh>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
|
|||||||
@@ -134,6 +134,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<!-- 悬停按钮返回工作台-->
|
<!-- 悬停按钮返回工作台-->
|
||||||
<suspend></suspend>
|
<suspend></suspend>
|
||||||
|
<refresh></refresh>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
|
|||||||
@@ -123,6 +123,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<!-- 悬停按钮返回工作台-->
|
<!-- 悬停按钮返回工作台-->
|
||||||
<suspend></suspend>
|
<suspend></suspend>
|
||||||
|
<refresh></refresh>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
|
|||||||
@@ -159,6 +159,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<!-- 悬停按钮返回工作台-->
|
<!-- 悬停按钮返回工作台-->
|
||||||
<suspend></suspend>
|
<suspend></suspend>
|
||||||
|
<refresh></refresh>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
|
|||||||
@@ -123,6 +123,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<!-- 悬停按钮返回工作台-->
|
<!-- 悬停按钮返回工作台-->
|
||||||
<suspend></suspend>
|
<suspend></suspend>
|
||||||
|
<refresh></refresh>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
|
|||||||
@@ -124,6 +124,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<!-- 悬停按钮返回工作台-->
|
<!-- 悬停按钮返回工作台-->
|
||||||
<suspend></suspend>
|
<suspend></suspend>
|
||||||
|
<refresh></refresh>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
|
|||||||
@@ -134,6 +134,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<!-- 悬停按钮返回工作台-->
|
<!-- 悬停按钮返回工作台-->
|
||||||
<suspend></suspend>
|
<suspend></suspend>
|
||||||
|
<refresh></refresh>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
|
|||||||
@@ -123,6 +123,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<!-- 悬停按钮返回工作台-->
|
<!-- 悬停按钮返回工作台-->
|
||||||
<suspend></suspend>
|
<suspend></suspend>
|
||||||
|
<refresh></refresh>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
|
|||||||
@@ -123,6 +123,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<!-- 悬停按钮返回工作台-->
|
<!-- 悬停按钮返回工作台-->
|
||||||
<suspend></suspend>
|
<suspend></suspend>
|
||||||
|
<refresh></refresh>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
|
|||||||
@@ -138,6 +138,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<!-- 悬停按钮返回工作台-->
|
<!-- 悬停按钮返回工作台-->
|
||||||
<suspend></suspend>
|
<suspend></suspend>
|
||||||
|
<refresh></refresh>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
|
|||||||
@@ -98,6 +98,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<!-- 悬停按钮返回工作台-->
|
<!-- 悬停按钮返回工作台-->
|
||||||
<suspend></suspend>
|
<suspend></suspend>
|
||||||
|
<refresh></refresh>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
|
|||||||
@@ -117,6 +117,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<!-- 悬停按钮返回工作台-->
|
<!-- 悬停按钮返回工作台-->
|
||||||
<suspend></suspend>
|
<suspend></suspend>
|
||||||
|
<refresh></refresh>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
|
|||||||
@@ -106,6 +106,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<!-- 悬停按钮返回工作台-->
|
<!-- 悬停按钮返回工作台-->
|
||||||
<suspend></suspend>
|
<suspend></suspend>
|
||||||
|
<refresh></refresh>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
|
|||||||
@@ -114,6 +114,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<!-- 悬停按钮返回工作台-->
|
<!-- 悬停按钮返回工作台-->
|
||||||
<suspend></suspend>
|
<suspend></suspend>
|
||||||
|
<refresh></refresh>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
|
|||||||
@@ -115,6 +115,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<!-- 悬停按钮返回工作台-->
|
<!-- 悬停按钮返回工作台-->
|
||||||
<suspend></suspend>
|
<suspend></suspend>
|
||||||
|
<refresh></refresh>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
|
|||||||
@@ -113,6 +113,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<!-- 悬停按钮返回工作台-->
|
<!-- 悬停按钮返回工作台-->
|
||||||
<suspend></suspend>
|
<suspend></suspend>
|
||||||
|
<refresh></refresh>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
|
|||||||
@@ -131,6 +131,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<!-- 悬停按钮返回工作台-->
|
<!-- 悬停按钮返回工作台-->
|
||||||
<suspend></suspend>
|
<suspend></suspend>
|
||||||
|
<refresh></refresh>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
|
|||||||
@@ -69,6 +69,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<!-- 悬停按钮返回工作台-->
|
<!-- 悬停按钮返回工作台-->
|
||||||
<suspend></suspend>
|
<suspend></suspend>
|
||||||
|
<refresh></refresh>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
|
|||||||
@@ -73,6 +73,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<!-- 悬停按钮返回工作台-->
|
<!-- 悬停按钮返回工作台-->
|
||||||
<suspend></suspend>
|
<suspend></suspend>
|
||||||
|
<refresh></refresh>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
|
|||||||
@@ -60,6 +60,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<!-- 悬停按钮返回工作台-->
|
<!-- 悬停按钮返回工作台-->
|
||||||
<suspend></suspend>
|
<suspend></suspend>
|
||||||
|
<refresh></refresh>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
|
|||||||
@@ -61,6 +61,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<!-- 悬停按钮返回工作台-->
|
<!-- 悬停按钮返回工作台-->
|
||||||
<suspend></suspend>
|
<suspend></suspend>
|
||||||
|
<refresh></refresh>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
|
|||||||
@@ -57,6 +57,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<!-- 悬停按钮返回工作台-->
|
<!-- 悬停按钮返回工作台-->
|
||||||
<suspend></suspend>
|
<suspend></suspend>
|
||||||
|
<refresh></refresh>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
|
|||||||
@@ -52,6 +52,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<!-- 悬停按钮返回工作台-->
|
<!-- 悬停按钮返回工作台-->
|
||||||
<suspend></suspend>
|
<suspend></suspend>
|
||||||
|
<refresh></refresh>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
|
|||||||
@@ -83,6 +83,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<!-- 悬停按钮返回工作台-->
|
<!-- 悬停按钮返回工作台-->
|
||||||
<suspend></suspend>
|
<suspend></suspend>
|
||||||
|
<refresh></refresh>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
|
|||||||
@@ -103,6 +103,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<!-- 悬停按钮返回工作台-->
|
<!-- 悬停按钮返回工作台-->
|
||||||
<suspend></suspend>
|
<suspend></suspend>
|
||||||
|
<refresh></refresh>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
|
|||||||
@@ -72,6 +72,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<!-- 悬停按钮返回工作台-->
|
<!-- 悬停按钮返回工作台-->
|
||||||
<suspend></suspend>
|
<suspend></suspend>
|
||||||
|
<refresh></refresh>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
|
|||||||
@@ -46,6 +46,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<!-- 悬停按钮返回工作台-->
|
<!-- 悬停按钮返回工作台-->
|
||||||
<suspend></suspend>
|
<suspend></suspend>
|
||||||
|
<refresh></refresh>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
|
|||||||
@@ -103,6 +103,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<!-- 悬停按钮返回工作台-->
|
<!-- 悬停按钮返回工作台-->
|
||||||
<suspend></suspend>
|
<suspend></suspend>
|
||||||
|
<refresh></refresh>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
|
|||||||
@@ -70,6 +70,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<!-- 悬停按钮返回工作台-->
|
<!-- 悬停按钮返回工作台-->
|
||||||
<suspend></suspend>
|
<suspend></suspend>
|
||||||
|
<refresh></refresh>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
|
|||||||
@@ -46,6 +46,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<!-- 悬停按钮返回工作台-->
|
<!-- 悬停按钮返回工作台-->
|
||||||
<suspend></suspend>
|
<suspend></suspend>
|
||||||
|
<refresh></refresh>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
|
|||||||
@@ -61,6 +61,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<!-- 悬停按钮返回工作台-->
|
<!-- 悬停按钮返回工作台-->
|
||||||
<suspend></suspend>
|
<suspend></suspend>
|
||||||
|
<refresh></refresh>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
|
|||||||
BIN
src/static/images/tabbar/refresh.png
Normal file
BIN
src/static/images/tabbar/refresh.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 86 KiB |
Reference in New Issue
Block a user