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", name: "pdfView",
component: () => import("@/views/common/pdfvVew.vue"), component: () => import("@/views/common/pdfvVew.vue"),
}, },
// 无权限页
{
path: "/noAccess",
name: "noAccess",
component: () => import("@/views/noAccess.vue"),
},
]; ];
export { routes }; export { routes };

2
src/views/enforce/sign.vue

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

2
src/views/enterprise/registrationEdit.vue

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

Loading…
Cancel
Save