| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114 |
- <template>
- <div class="border-box-style box-content-style" :style="borderBox">
- <div class="justify-style">
- <div class="justify-style-left">
- <div class="icon"></div>
- <div class="title inline-left">{{$t(title)}}</div>
- <slot name="operation"></slot>
- </div>
- <div class="justify-style-right">
- <el-button type="text" class="detail-title" @click="detailClick">{{$t(detailTitle)}}
- <i class="el-icon-arrow-right el-icon--right"></i>
- </el-button>
- </div>
- <!-- <div style="margin-left: 0.260vw"> > </div>-->
- </div>
- <slot name="content"></slot>
- </div>
- </template>
- <script>
- import {Message} from "element-ui";
- export default {
- name: "borderTemplate",
- props:["borderBox","title","detailTitle","systemappid","push_path"],
- data(){
- return {
- /*是否拥有跳转权限*/
- param:{
- "id": 20241029155004,
- "content": {
- "systemappid":"",
- "userid":JSON.parse(sessionStorage.getItem('active_account')).userid
- }
- },
- dialogVisible:false
- }
- },
- methods:{
- async detailClick(){
- this.param.content.systemappid = this.systemappid
- const res = await this.$api.requested(this.param)
- console.log(res.data,'权限结果')
- if (res.data){
- this.$router.push(this.push_path)
- }else {
- this.$emit('dialog')
- }
- }
- },
- mounted() {
- }
- }
- </script>
- <style scoped>
- .border-box-style{
- background: linear-gradient( 180deg, #00244D 0%, #001E41 100%);
- box-shadow: 0.000vw 0.104vw 0.208vw 0.052vw rgba(0,0,0,0.15);
- border-radius: 0.208vw 0.208vw 0.208vw 0.208vw;
- border: 0.104vw solid #3D73BA;
- opacity: 0.8;
- box-sizing: border-box;
- }
- .justify-style-left{
- display: flex;
- justify-content: left;
- }
- .justify-style-right{
- display: flex;
- justify-content: right;
- margin-top: -0.421vw;
- }
- .justify-style{
- display: flex;
- justify-content: space-between;
- }
- .inline-left{
- margin-left: 1.042vw;
- }
- .box-content-style{
- padding: 1.042vw;
- }
- .box-content-style .icon {
- width: 0.313vw;
- height: 0.938vw;
- background: #E6F4FF;
- border-radius: 0.104vw 0.104vw 0.104vw 0.104vw;
- }
- .box-content-style .title{
- /*width: 7.350vw;*/
- height: 1.615vw;
- font-family: Microsoft YaHei, Microsoft YaHei;
- font-weight: bold;
- font-size: 1.250vw;
- color: #E6F4FF;
- text-align: left;
- line-height: 0.9vw;
- vertical-align: middle;
- }
- .box-content-style .detail-title{
- /*width: 8.333vw;*/
- height: 1.094vw;
- font-family: Microsoft YaHei, Microsoft YaHei;
- font-weight: 400;
- font-size: 0.833vw;
- color: #CFDCE5;
- line-height: 0.9vw;
- text-align: left;
- font-style: normal;
- text-transform: none;
- }
- </style>
|