Browse Source

是否执法人员

master
蟑螂恶霸 2 years ago
parent
commit
b03a2f7b24
  1. 6
      src/router/enforce.js
  2. 2
      src/views/enforce/sign.vue
  3. 29
      src/views/enforceHome.vue
  4. 2
      src/views/enterprise/registrationEdit.vue

6
src/router/enforce.js

@ -41,6 +41,12 @@ const routes = [
name: "pdfView",
component: () => import("@/views/common/pdfvVew.vue"),
},
// 无权限页
{
path: "/noAccess",
name: "noAccess",
component: () => import("@/views/noAccess.vue"),
},
];
export { routes };

2
src/views/enforce/sign.vue

@ -150,7 +150,7 @@
</div>
<Popup :visible="data.popupVisible" :content="data.popupContent" @close="closePopup" @reciveData="reciveData" />
<PopupA :visible="data.popupVisible2" :content="data.popupContent2" @close="closePopup" @reciveData="reciveData2" />
<Popup :visible="data.popupVisible2" :content="data.popupContent2" @close="closePopup" @reciveData="reciveData2" />
<van-popup v-model:show="data.showItem" position="bottom" :style="{ height: '30%' }">

29
src/views/enforceHome.vue

@ -58,6 +58,7 @@
import Vconsolefrom from 'vconsole';
import {getEnterpriseMerchantAuthorization, getSzyptLoginAuth} from '../api/Home';
import {queryEnforcementInspectionProgramListNoPermission} from "@/api/enforce";
const {useCommon} = $globalStore;
const router = useRouter();
const route = useRoute();
@ -157,6 +158,14 @@ onMounted(() => {
getSzyptLoginAuth(code, success => {
console.log(success.data)
useCommon.SET_USER_ID(success.data.userId);
// 如果不是执法用户 则跳转
if (!success.data.lawOfficer) {
router.push(
{
path: "/noAccess"
});
}
}, error => {
})
@ -183,6 +192,7 @@ onMounted(() => {
background: url("../assets/images/bg_el.jpg");
background-size: cover;
overflow-x: hidden;
.carousel_box {
height: 150px;
width: 100%;
@ -196,11 +206,14 @@ onMounted(() => {
position: absolute;
width: 100%;
bottom: 1%;
.boutique_body {
padding: 0px 0px 10px 0px;
display: flex;
justify-content: center;
};
}
;
.box-qr-code {
width: 90%;
text-align: right;
@ -209,12 +222,14 @@ onMounted(() => {
border-radius: 10px;
background: url("../assets/images/item_scan.png");
background-size: cover;
.box-qr-code-text {
margin: 0.35rem 0.5rem 0 0;
display: block;
font-size: 17px
}
}
.box-info {
width: 52%;
text-align: right;
@ -230,6 +245,7 @@ onMounted(() => {
font-size: 17px
}
}
.box-complaint {
width: 36%;
text-align: right;
@ -239,6 +255,7 @@ onMounted(() => {
margin-left: 2%;
background: url("../assets/images/item_count.png");
background-size: cover;
.box-complaint-text {
margin: 0.35rem 0.5rem 0 0;
display: block;
@ -318,8 +335,14 @@ onMounted(() => {
}
@keyframes marquee {
0% { transform: translateX(0); } /* 动画开始时 */
100% { transform: translateX(-100%); } /* 动画结束时,文字完全移动到左侧并重新开始 */
0% {
transform: translateX(0);
}
/* 动画开始时 */
100% {
transform: translateX(-100%);
}
/* 动画结束时,文字完全移动到左侧并重新开始 */
}
.noticbox span.new {

2
src/views/enterprise/registrationEdit.vue

@ -134,7 +134,7 @@
</div>
<Popup :visible="data.popupVisible" :content="data.popupContent" @close="closePopup" @reciveData="reciveData" />
<PopupA :visible="data.popupVisible2" :content="data.popupContent2" @close="closePopup" @reciveData="reciveData2" />
<Popup :visible="data.popupVisible2" :content="data.popupContent2" @close="closePopup" @reciveData="reciveData2" />
<van-popup v-model:show="data.showItem" position="bottom" :style="{ height: '30%' }">

Loading…
Cancel
Save