|
@@ -2,7 +2,8 @@
|
|
|
<div class="table_total">
|
|
|
<div class="table_header">
|
|
|
<!-- <p>单表</p>
|
|
|
- <el-divider></el-divider> -->
|
|
|
+ <el-divider></el-divider> -->
|
|
|
+ <div class="imge_tab"><img src="../../../assets/images/pic_sy_ytj.png" alt="" v-if="imgShoew" ></div>
|
|
|
<div class="table_headerBtun" v-if="queryData.buttonList">
|
|
|
<el-button type="primary" size="mini" plain v-for="(item,index) in jeigneutwo" :key="index" @click="handleQuery(item)">{{item}}</el-button>
|
|
|
</div>
|
|
@@ -81,7 +82,8 @@
|
|
|
jeigneu:[],
|
|
|
jeigneutwo:[],
|
|
|
xidugje:0,
|
|
|
- tijeq:0
|
|
|
+ tijeq:0,
|
|
|
+ imgShoew:true
|
|
|
};
|
|
|
},
|
|
|
// filters:{
|
|
@@ -215,6 +217,7 @@
|
|
|
console.log(res.data)
|
|
|
this.queryData = {}
|
|
|
this.queryData = data
|
|
|
+ // imgShoew
|
|
|
this.jeigneutwo = []
|
|
|
this.jeigneu = []
|
|
|
this.jeigneu = data.buttonList.split('')
|
|
@@ -262,13 +265,26 @@
|
|
|
})
|
|
|
this.jeigneutwo.push('刷新')
|
|
|
this.jeigneutwo.push('返回')
|
|
|
- console.log(this.jeigneutwo,567)
|
|
|
- console.log(this.xidugje)
|
|
|
+ // console.log(this.jeigneutwo,567)
|
|
|
+ // console.log(this.xidugje)
|
|
|
if(this.xidugje == '刷新'){
|
|
|
if(res.code == 200){
|
|
|
this.msgSuccess("操作成功");
|
|
|
}
|
|
|
}
|
|
|
+ // 图片的显示隐藏
|
|
|
+ if(this.queryData.showData.length !==0){
|
|
|
+ this.queryData.showData.filter(route => {
|
|
|
+ if(route.hrChildren.length !== 0){
|
|
|
+ if(route.hrChildren[1].readonly == true){
|
|
|
+ this.imgShoew = true
|
|
|
+ }else{
|
|
|
+ this.imgShoew = false
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
})
|
|
|
},
|
|
@@ -350,6 +366,7 @@
|
|
|
|
|
|
<style lang="scss">
|
|
|
.table_header{
|
|
|
+ position: relative;
|
|
|
.el-divider--horizontal{
|
|
|
margin-top: 16px;
|
|
|
}
|
|
@@ -419,4 +436,9 @@
|
|
|
margin: 0;
|
|
|
|
|
|
}
|
|
|
+ .imge_tab{
|
|
|
+ position: absolute;
|
|
|
+ right: 0;
|
|
|
+ top: 5px;
|
|
|
+ }
|
|
|
</style>
|