刘翔宇-旅管家 3 years ago
parent 74e830d90c
commit 05b6a4784e

@ -2,11 +2,7 @@
ENV = 'development' ENV = 'development'
# base api # base api
<<<<<<< HEAD
VUE_APP_BASE_API = '' VUE_APP_BASE_API = ''
======= VUE_APP_OUT_URL = http://suzhouhedaooa.langye.net
VUE_APP_BASE_API = http://192.168.60.99:9003/
>>>>>>> a6c8b1e1684440c52d558eda7fdfa132ae1ca972
#VUE_APP_OUT_URL = http://suzhouhedaooa.langye.net
VUE_APP_OUT_URL = http://192.168.60.18:2021 #VUE_APP_OUT_URL = http://192.168.60.18:2021

@ -1,4 +1,3 @@
<template> <template>
<div style="padding: 0 20px"> <div style="padding: 0 20px">
<lx-header icon="md-apps" text="预算计划" style="margin-bottom: 10px; border: 0px; margin-top: 15px"> <lx-header icon="md-apps" text="预算计划" style="margin-bottom: 10px; border: 0px; margin-top: 15px">
@ -37,7 +36,7 @@
</slot> </slot>
</lx-header> </lx-header>
<xy-table :table-item="table" :list="list" @delete="deleteTable" @editor="showEditor" :show-summary="true" <xy-table ref="xyTable" :table-item="table" :list="list" @delete="deleteTable" @editor="showEditor" :show-summary="true"
:summary-method="summary"> :summary-method="summary">
</xy-table> </xy-table>
@ -352,6 +351,9 @@
methods: { methods: {
// //
summary(param) { summary(param) {
this.$nextTick(() => {
this.$refs['xyTable'].$children[0].doLayout()
})
const { const {
columns, columns,
data data
@ -485,12 +487,6 @@
mounted() { mounted() {
this.getDepartment() this.getDepartment()
this.getBudgets() this.getBudgets()
},
updated() {
console.log(this.$refs['table'])
this.$nextTick(() => {
this.$refs.addBudget.$refs.table.doLayout();
})
} }
} }
</script> </script>
@ -516,5 +512,5 @@
right: 30px; right: 30px;
z-index: 2; z-index: 2;
} }
} }
</style> </style>

@ -508,7 +508,7 @@ export default {
{ {
label:'已付金额', label:'已付金额',
prop:'fund_log_total', prop:'fund_log_total',
width:180, width:120,
align:'right', align:'right',
formatter:(cell,data,value)=>{ formatter:(cell,data,value)=>{
if(!value){ if(!value){
@ -519,7 +519,7 @@ export default {
}, },
{ {
label:"合同预算价(万元)", label:"合同预算价(万元)",
width: 200, width: 160,
prop:"plan_price", prop:"plan_price",
align:'right', align:'right',
formatter:(v1,v2,value)=>{ formatter:(v1,v2,value)=>{
@ -528,7 +528,7 @@ export default {
}, },
{ {
label:'合同签订价(万元)', label:'合同签订价(万元)',
width: 200, width: 180,
prop:'money', prop:'money',
align:'right' align:'right'
}, },

@ -329,7 +329,7 @@ export default {
{ {
label:'已付金额', label:'已付金额',
prop:'fund_log_total', prop:'fund_log_total',
width:180, width:120,
align:'right', align:'right',
formatter:(cell,data,value)=>{ formatter:(cell,data,value)=>{
if(!value){ if(!value){
@ -340,7 +340,7 @@ export default {
}, },
{ {
label:"合同预算价(万元)", label:"合同预算价(万元)",
width: 200, width: 160,
prop:"plan_price", prop:"plan_price",
align:'right', align:'right',
formatter:(v1,v2,value)=>{ formatter:(v1,v2,value)=>{
@ -349,7 +349,7 @@ export default {
}, },
{ {
label:'合同签订价(万元)', label:'合同签订价(万元)',
width: 200, width: 180,
prop:'money', prop:'money',
align:'right' align:'right'
}, },
@ -892,4 +892,3 @@ export default {
} }
} }
</style> </style>

@ -24,6 +24,11 @@
</el-table-column> </el-table-column>
<el-table-column prop="username" label="用户名"> <el-table-column prop="username" label="用户名">
</el-table-column> </el-table-column>
<el-table-column prop="department" label="部门">
<template slot-scope="scope">
{{scope.row.department?scope.row.department.name:""}}
</template>
</el-table-column>
<el-table-column prop="address" label="角色"> <el-table-column prop="address" label="角色">
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag size="medium" v-for="(item,index) in scope.row.roles" style="margin-right: 10px;">{{ item.name }} <el-tag size="medium" v-for="(item,index) in scope.row.roles" style="margin-right: 10px;">{{ item.name }}

@ -46,8 +46,8 @@ module.exports = {
//before: require('./mock/mock-server.js') //before: require('./mock/mock-server.js')
proxy: { proxy: {
[process.env.VUE_APP_BASE_API]: { [process.env.VUE_APP_BASE_API]: {
//target: 'http://hdcontract.ali251.langye.net', target: 'http://hdcontract.ali251.langye.net',
target: 'http://192.168.60.99:9003/', //target: 'http://192.168.60.99:9003/',
changeOrigin: true, //配置跨域 changeOrigin: true, //配置跨域
pathRewrite: { pathRewrite: {
['^' + process.env.VUE_APP_BASE_API]: '' ['^' + process.env.VUE_APP_BASE_API]: ''

Loading…
Cancel
Save