update code
parent
b42a176636
commit
40017c5aca
|
@ -218,6 +218,7 @@ import indexDlg3 from './index/indexDlg3'
|
|||
import indexMap from './index/map.vue'
|
||||
import MonitAndWarning from './components/MonitAndWarning.vue'
|
||||
import journalismDlg from './dlg/journalismDlg.vue'
|
||||
import { TimeSelect } from 'element-ui'
|
||||
export default {
|
||||
name: 'App',
|
||||
components: {
|
||||
|
@ -230,6 +231,8 @@ export default {
|
|||
},
|
||||
data() {
|
||||
return {
|
||||
prj:{},
|
||||
prjs:[],
|
||||
elSumKey:0,
|
||||
elKey: 0,
|
||||
prjInfo: {},
|
||||
|
@ -438,11 +441,30 @@ export default {
|
|||
this.init()
|
||||
},
|
||||
mounted() {
|
||||
window.xapp=this;
|
||||
this.$nextTick(() => {
|
||||
this.loading = true;
|
||||
});
|
||||
this.$bus.$on("loadProjects", prjs => {
|
||||
this.prjs = prjs;
|
||||
if(this.prj.id==0){
|
||||
this.prjInfo=this.prjs[1];
|
||||
}
|
||||
});
|
||||
this.$bus.$on("projectChange", res => {
|
||||
this.prjInfo = res;
|
||||
if(res.id==0){
|
||||
const func=()=>{
|
||||
if(this.prjs && this.prjs.length>1){
|
||||
this.prjInfo = this.prjs[1];
|
||||
}else{
|
||||
setTimeout(func,100);
|
||||
}
|
||||
}
|
||||
func();
|
||||
}else{
|
||||
this.prjInfo = res;
|
||||
}
|
||||
this.prj=res;
|
||||
this.investmentAmountData1[0].value = "" + res.paidAmount * 1.0;
|
||||
this.investmentAmountData2[0].value = "" + res.onAccountAmount * 1.0;
|
||||
this.elKey++;
|
||||
|
|
|
@ -132,7 +132,7 @@
|
|||
</el-row>
|
||||
</el-col>
|
||||
<el-col :span="12" style="position: relative;">
|
||||
<div class="glr-title" style="margin-top:10px;color:#4DDEDF">在建项目节点明细</div>
|
||||
<div class="glr-title" style="margin-top:10px;color:#4DDEDF">建设项目节点明细</div>
|
||||
<img src="images/icon2001.png"
|
||||
style="position: absolute;cursor: pointer;right: 12px;top: 12px;"
|
||||
@click="showBuildNodeDlg">
|
||||
|
|
Loading…
Reference in New Issue