liweikun 1 year ago
parent
commit
91b6baeb64
  1. 2
      jwtech-admin-page/vue.config.js
  2. 20
      jwtech-pc-page/src/views/enterpriseInformation/components/proAchievementTable.vue
  3. 30
      jwtech-pc-page/src/views/enterpriseInformation/components/projectAwardTable.vue

2
jwtech-admin-page/vue.config.js

@ -39,7 +39,7 @@ module.exports = {
// detail: https://cli.vuejs.org/config/#devserver-proxy
[process.env.VUE_APP_BASE_API]: {
// target: "http://127.0.0.1:18082",
target: "http://192.168.2.111:18080",
target: "http://192.168.2.108:18080",
// target: "http://192.168.1.20:8084",
changeOrigin: true,
pathRewrite: {

20
jwtech-pc-page/src/views/enterpriseInformation/components/proAchievementTable.vue

@ -18,28 +18,33 @@
@pagination="getResult" />
</div>
</template>
<script>
import { performanceRecord } from "@/api/enterpriseInformation"
export default {
data() {
return {
enterpriseId: "",
dataApi: {
data: {
enterpriseId: ""
}
},
tableData: [],
apidata:{
pageNum:1,
pageSize:10,
apidata: {
pageNum: 1,
pageSize: 10,
},
pageSizes: [10, 20, 30, 50],
total:0
total: 0
}
},
mounted() {
this.enterpriseId = this.$route.query.enterpriseId
this.dataApi.data.enterpriseId = this.$route.query.enterpriseId
this.getResult()
},
methods: {
getResult() {
performanceRecord({ enterpriseId: this.enterpriseId }).then(res => {
performanceRecord(this.dataApi).then(res => {
this.tableData = res.data.records
this.total = res.data.total
})
@ -47,6 +52,7 @@ export default {
}
}
</script>
<style lang="less" scoped>
.descriptions-table {
min-height: 500px;

30
jwtech-pc-page/src/views/enterpriseInformation/components/projectAwardTable.vue

@ -1,7 +1,7 @@
<template>
<div class="descriptions-table">
<el-table :data="tableData" style="width: 100%">
<el-table-column prop="awardsName" label="奖项名称" align="center">
<el-table :data="tableData" style="width: 100%">
<el-table-column prop="awardsName" label="奖项名称" align="center">
</el-table-column>
<el-table-column prop="awardsLetter" label="荣誉文书编号" width="250" align="center">
</el-table-column>
@ -20,28 +20,34 @@
@pagination="getResult" />
</div>
</template>
<script>
import { behaviorList } from "@/api/enterpriseInformation"
export default {
data() {
return {
enterpriseId: "",
dataApi: {
data: {
enterpriseId: "",
type: "1"
}
},
tableData: [],
apidata:{
pageNum:1,
pageSize:10,
apidata: {
pageNum: 1,
pageSize: 10,
},
pageSizes: [10, 20, 30, 50],
total:0
total: 0
}
},
mounted(){
this.enterpriseId = this.$route.query.enterpriseId
mounted() {
this.dataApi.data.enterpriseId = this.$route.query.enterpriseId
this.getResult()
},
methods:{
methods: {
getResult() {
behaviorList({enterpriseId:this.enterpriseId,type:"1"}).then(res => {
behaviorList(this.dataApi).then(res => {
this.tableData = res.data.records
this.total = res.data.total
})
@ -49,9 +55,11 @@ export default {
}
}
</script>
<style lang="less" scoped>
.descriptions-table {
min-height: 500px;
/deep/.el-table {
margin-top: 10px;

Loading…
Cancel
Save