update code
parent
b42a176636
commit
40017c5aca
|
@ -218,6 +218,7 @@ import indexDlg3 from './index/indexDlg3'
|
||||||
import indexMap from './index/map.vue'
|
import indexMap from './index/map.vue'
|
||||||
import MonitAndWarning from './components/MonitAndWarning.vue'
|
import MonitAndWarning from './components/MonitAndWarning.vue'
|
||||||
import journalismDlg from './dlg/journalismDlg.vue'
|
import journalismDlg from './dlg/journalismDlg.vue'
|
||||||
|
import { TimeSelect } from 'element-ui'
|
||||||
export default {
|
export default {
|
||||||
name: 'App',
|
name: 'App',
|
||||||
components: {
|
components: {
|
||||||
|
@ -230,6 +231,8 @@ export default {
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
prj:{},
|
||||||
|
prjs:[],
|
||||||
elSumKey:0,
|
elSumKey:0,
|
||||||
elKey: 0,
|
elKey: 0,
|
||||||
prjInfo: {},
|
prjInfo: {},
|
||||||
|
@ -438,11 +441,30 @@ export default {
|
||||||
this.init()
|
this.init()
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
window.xapp=this;
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.loading = true;
|
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.$bus.$on("projectChange", 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.prjInfo = res;
|
||||||
|
}
|
||||||
|
this.prj=res;
|
||||||
this.investmentAmountData1[0].value = "" + res.paidAmount * 1.0;
|
this.investmentAmountData1[0].value = "" + res.paidAmount * 1.0;
|
||||||
this.investmentAmountData2[0].value = "" + res.onAccountAmount * 1.0;
|
this.investmentAmountData2[0].value = "" + res.onAccountAmount * 1.0;
|
||||||
this.elKey++;
|
this.elKey++;
|
||||||
|
|
|
@ -132,7 +132,7 @@
|
||||||
</el-row>
|
</el-row>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="12" style="position: relative;">
|
<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"
|
<img src="images/icon2001.png"
|
||||||
style="position: absolute;cursor: pointer;right: 12px;top: 12px;"
|
style="position: absolute;cursor: pointer;right: 12px;top: 12px;"
|
||||||
@click="showBuildNodeDlg">
|
@click="showBuildNodeDlg">
|
||||||
|
|
Loading…
Reference in New Issue