给顶部加上退出按钮以及跳转回职站页面

20240205
e 3 years ago
parent f722de0de9
commit e765c2a6ba
  1. 4
      src/api/api.js
  2. 13
      src/layouts/header/index.vue
  3. 68
      src/pages/counter/list/index.vue
  4. 2
      src/pages/manage/list/personal/currentAccount/openAccount.vue

@ -2,10 +2,10 @@ import axios from 'axios';
import router from '../router'; import router from '../router';
// 创建axios实例 // 创建axios实例
const service = axios.create({ const service = axios.create({
// baseURL: "http://39.108.250.202:9000/", // 中台测试服 baseURL: "http://39.108.250.202:9000/", // 中台测试服
// baseURL: "http://192.168.31.137:9000/", // 赓 // baseURL: "http://192.168.31.137:9000/", // 赓
// baseURL: "http://192.168.31.151:9000/", // 榕 // baseURL: "http://192.168.31.151:9000/", // 榕
baseURL: "http://192.168.31.125:9000/", // 坤 // baseURL: "http://192.168.31.125:9000/", // 坤
// baseURL: 'http://39.108.250.202:9000', // baseURL: 'http://39.108.250.202:9000',
timeout: 30000 // 请求超时时间 timeout: 30000 // 请求超时时间
}) })

@ -1,9 +1,14 @@
<template> <template>
<div class="header"> <div class="header">
<div class="inner"> <div class="inner" style="width: 100%">
<div class="logo" @click="toIndex"> <div class="logo" @click="toIndex" style="float: left">
<img src="../../assets/img/logo.png" alt=""> <img src="../../assets/img/logo.png" alt="">
</div> </div>
<div style="float: right;margin:0 60px;font-size: 18px">
<span style="cursor:pointer" @click="exit">
退出<i class="icon el-icon-s-unfold"></i>
</span>
</div>
</div> </div>
</div> </div>
</template> </template>
@ -27,11 +32,15 @@ export default {
title: '首页' title: '首页'
}) })
}, },
exit(){
window.location = 'http://39.108.250.202/student/#/station/preview?courseId=6&curriculumName=%E9%93%B6%E8%A1%8C%E7%BB%BC%E5%90%88'
},
}, },
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.header{ .header{
width:100%;
z-index: 1; z-index: 1;
display: flex; display: flex;
align-items: center; align-items: center;

@ -95,7 +95,7 @@
<!-- 物品栏 --> <!-- 物品栏 -->
<div ref="goods" class="goods-dia" :class="{ active: showGoods }"> <div ref="goods" class="goods-dia" :class="{ active: showGoods }">
<div :id="item.name" v-for="(item, index) in goods" :key="index" class=" justify-center" :class="{ checked: checkList.includes(item.id),file:true }" @click="dblClickFn(item,'goods')"> <div :id="item.name" v-for="(item, index) in goodsShelfTotalData" :key="index" class=" justify-center" :class="{ checked: checkList.includes(item.id),file:true }" @click="dblClickFn(item,'goods')">
<img :style="item.name==='开户申请书'?'margin-top:10px;':''" :src="item.src" alt="" /> <img :style="item.name==='开户申请书'?'margin-top:10px;':''" :src="item.src" alt="" />
<p>{{item.name}}</p> <p>{{item.name}}</p>
</div> </div>
@ -225,38 +225,32 @@ export default {
manageVisible: false, // manageVisible: false, //
checkList: [],// checkList: [],//
elseBoxCheck:[],/* 所有其他可从物品栏拖拽物品进入的弹框 */ elseBoxCheck:[],/* 所有其他可从物品栏拖拽物品进入的弹框 */
goodsShelf:[ //////
{ auditGoodsShelf:[
name:'身份证', {name:'身份证', src:require('@/assets/img/goods/idcard.png'), id:13},
src:require('@/assets/img/goods/idcard.png'), {name:'身份证复印件', src:require('@/assets/img/idCard-copy-sm.png'), id:23},
id:13 {name:'开户申请书', src:require('@/assets/img/goods/khsqs.png'), id:14},
}, {name:'现金', src:require('@/assets/img/goods/cash-sm.png'), id:15},
{ ],
name:'身份证复印件', ////
src:require('@/assets/img/idCard-copy-sm.png'), systemInputGoodsShelf:[
id:23 {name:'身份证', src:require('@/assets/img/goods/idcard.png'), id:13},
}, {name:'身份证复印件', src:require('@/assets/img/idCard-copy-sm.png'), id:23},
{ {name:'开户申请书', src:require('@/assets/img/goods/khsqs.png'), id:14},
name:'开户申请书', {name:'现金', src:require('@/assets/img/goods/cash-sm.png'), id:15},
src:require('@/assets/img/goods/khsqs.png'), {name:'银行卡', src:require('@/assets/img/goods/ckpt.png'), id:16},
id:14 ],
}, // // //
{ printoutGoodsShelf:[
name:'现金', {name:'身份证', src:require('@/assets/img/goods/idcard.png'), id:13},
src:require('@/assets/img/goods/cash-sm.png'), {name:'身份证复印件', src:require('@/assets/img/idCard-copy-sm.png'), id:23},
id:15 {name:'开户申请书', src:require('@/assets/img/goods/khsqs.png'), id:14},
}, {name:'现金', src:require('@/assets/img/goods/cash-sm.png'), id:15},
{ {name:'银行卡', src:require('@/assets/img/goods/ckpt.png'), id:16},
name:'存款凭条', {name:'存款凭条', src:require('@/assets/img/goods/ckpt.png'), id:17},
src:require('@/assets/img/goods/ckpt.png'),
id:17
},
{
name:'银行卡',
src:require('@/assets/img/goods/ckpt.png'),
id:16
},
], ],
// 西
goodsShelfTotalData:[],
// goods:[/* */ // goods:[/* */
// ], // ],
popArr:[/* 弹窗展示的物品 */ popArr:[/* 弹窗展示的物品 */
@ -472,6 +466,16 @@ export default {
this.showGoods = !this.showGoods; this.showGoods = !this.showGoods;
}, },
showData(type) {/* 展示弹窗-type为弹窗标题文字 */ showData(type) {/* 展示弹窗-type为弹窗标题文字 */
if(type == '重要空白凭证箱'){
this.goodsShelfTotalData = this.systemInputGoodsShelf
}else if(type == '身份证扫描仪' || type == '验钞机' || type == '资料'){
this.goodsShelfTotalData = this.auditGoodsShelf
}else if(type == '普通凭证箱' || type == '打印机'){
this.goodsShelfTotalData = this.printoutGoodsShelf
}else if(type == '普通凭证箱'){
this.goodsShelfTotalData = this.printoutGoodsShelf
}
this.$store.commit('system/changePop',{show:true,text:type}) this.$store.commit('system/changePop',{show:true,text:type})
}, },
checkData(item) {/* 选中物品 */ checkData(item) {/* 选中物品 */

@ -292,7 +292,7 @@ export default {
formList.push({"emptyOne": "", "emptyTwo": "", "operationIds": "0,5,26,57,62,75,"+voucherNumber[i].id,"type": ""}) formList.push({"emptyOne": "", "emptyTwo": "", "operationIds": "0,5,26,57,62,75,"+voucherNumber[i].id,"type": ""})
} }
formList.push( formList.push(
{"emptyOne": "", "emptyTwo": paymentCode, "operationIds": "0,5,26,57,62,77", "type": ""},// {"emptyOne": "17", "emptyTwo": paymentCode, "operationIds": "0,5,26,57,62,77", "type": "3"},//
) )
if (this.form.userNumber){formList.push({"emptyOne": "6", "emptyTwo": this.form.userNumber, "operationIds": "0,5,26,57,62,68","type": "3"})}// if (this.form.userNumber){formList.push({"emptyOne": "6", "emptyTwo": this.form.userNumber, "operationIds": "0,5,26,57,62,68","type": "3"})}//
if (this.form.accountQuality){formList.push({"emptyOne": "10", "emptyTwo": this.form.accountQuality, "operationIds": "0,5,26,57,62,72", "type": "1"})}//1 if (this.form.accountQuality){formList.push({"emptyOne": "10", "emptyTwo": this.form.accountQuality, "operationIds": "0,5,26,57,62,72", "type": "1"})}//1

Loading…
Cancel
Save