basicinfo.vue 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <template>
  2. <div style="display:flex;padding-top: 20px;padding-left: 20px">
  3. <div>
  4. <el-descriptions :column="4">
  5. <el-descriptions-item :label="$t(`企业名称`)">{{enterprise.enterprisename?enterprise.enterprisename:'--'}}</el-descriptions-item>
  6. <el-descriptions-item :label="$t(`企业简称`)">{{enterprise.abbreviation}}</el-descriptions-item>
  7. <el-descriptions-item :label="$t(`法人`)">{{enterprise.contact}}</el-descriptions-item>
  8. <el-descriptions-item :label="$t(`电话`)">{{enterprise.phonenumber}}</el-descriptions-item>
  9. </el-descriptions>
  10. <div style="font-size: 14px">
  11. {{$t(`企业操作页LOGO:`)}}
  12. </div>
  13. <div class="image-panel" style="width: 100px;height: 100px">
  14. <img v-show="img.usetype === 'actionlogo'" v-for="img in siteinfo.attinfos" :key="img.index" style="width:100%" :src="img.url" alt="">
  15. </div>
  16. </div>
  17. </div>
  18. </template>
  19. <script>
  20. import {mapGetters} from 'vuex'
  21. import edit from './edit.vue'
  22. export default {
  23. data () {
  24. return {
  25. enterprise:{},
  26. drawer:false,
  27. sys_enterpriseid:''
  28. }
  29. },
  30. components:{edit},
  31. computed:{
  32. ...mapGetters({
  33. siteinfo:'siteinfo',
  34. closeDrawerTemp:'closeDrawerTemp',
  35. }),
  36. show () {
  37. console.log(this.siteinfo);
  38. if (this.siteinfo.attinfos.some(item=>item.usetype === 'actionlogo')) {
  39. return false
  40. } else {
  41. return true
  42. }
  43. }
  44. },
  45. methods:{
  46. onShowDtail () {
  47. this.$store.dispatch('changeDetailDrawer',true),this.$router.push({path:'/enterpriseDetail',query:{basicInfo:this.siteinfo,id:this.sys_enterpriseid}})
  48. },
  49. async enterpriseData(){
  50. const res = await this.$api.requested({
  51. "id": 20221022165203,
  52. "content": {
  53. }
  54. })
  55. console.log(res,"企业信息")
  56. this.enterprise = res.data
  57. this.sys_enterpriseid = res.data.sys_enterpriseid
  58. },
  59. siteInfos () {
  60. this.$store.dispatch('querySiteInfo',{
  61. "classname": "webmanage.site.site",
  62. "method": "querySite",
  63. "content": {}
  64. })
  65. },
  66. closeDrawer () {
  67. this.drawer = false
  68. },
  69. },
  70. mounted () {
  71. this.enterpriseData()
  72. },
  73. watch:{
  74. closeDrawerTemp (val) {
  75. /* !val?this.enterpriseData() this.queryImg():""*/
  76. if (!val){
  77. this.enterpriseData()
  78. /*this.queryImg()*/
  79. this.siteInfos()
  80. }
  81. }
  82. }
  83. }
  84. </script>
  85. <style scoped>
  86. /deep/.el-descriptions:last-child .el-descriptions-row {
  87. display: inline-block;
  88. }
  89. </style>