空指针修复
This commit is contained in:
parent
4079526950
commit
0651a77dab
@ -229,13 +229,13 @@
|
||||
children: [], //子级
|
||||
remark: threeData[j].children[k].remark, //备注
|
||||
// "PredecessorLink":threeData[j].children[k].predecessorIds,
|
||||
// PredecessorLink: [
|
||||
// //前置任务字段
|
||||
// {
|
||||
// Type: 1,
|
||||
// PredecessorUID:number-1
|
||||
// },
|
||||
// ],
|
||||
PredecessorLink: [
|
||||
//前置任务字段
|
||||
{
|
||||
Type: 1,
|
||||
PredecessorUID:number-1
|
||||
},
|
||||
],
|
||||
};
|
||||
data.children[0].children.push(children2);
|
||||
}
|
||||
@ -334,6 +334,9 @@
|
||||
editor: {
|
||||
type: "textbox",
|
||||
},
|
||||
style:{
|
||||
display:'hidden'
|
||||
}
|
||||
};
|
||||
columns.push(idColumn);
|
||||
var stringColumn = {
|
||||
@ -476,7 +479,7 @@
|
||||
}, 3000);
|
||||
|
||||
var cellCommitEdit = (e) => {
|
||||
console.log("eeeeeeee", e);
|
||||
console.log("eeeeeeee编辑行的信息", e);
|
||||
var data = {
|
||||
taskName: e.task.taskName,
|
||||
Start: e.task.Start,
|
||||
|
||||
@ -18,7 +18,7 @@ var PROJECT = {
|
||||
}
|
||||
|
||||
|
||||
var PROJECT_TYPE = PROJECT.online_zjsj
|
||||
var PROJECT_TYPE = PROJECT.local_test
|
||||
|
||||
var headerShow = true; // 是否显示头部
|
||||
var tabsShow = true; // 是否显示tabs
|
||||
|
||||
@ -40,11 +40,11 @@ if (process.env.NODE_ENV == 'development') {
|
||||
// axios.defaults.baseURL = 'http://124.71.178.44:100/' // 河南
|
||||
// tag: 本地
|
||||
// axios.defaults.baseURL = 'http://192.168.34.174:6023/' // 老大本地
|
||||
// axios.defaults.baseURL = 'http://192.168.34.116:6023/' // 邱平毅本地
|
||||
axios.defaults.baseURL = 'http://192.168.34.116:6023/' // 邱平毅本地
|
||||
// axios.defaults.baseURL = 'http://192.168.34.117:6023/' // 杨杰本地
|
||||
// axios.defaults.baseURL = 'http://ue6a4s.natappfree.cc' // 邱平毅vpn本地
|
||||
// axios.defaults.baseURL = 'http://139.9.66.234:6324/' // 河南春笋
|
||||
axios.defaults.baseURL ='http://124.71.67.160:8088/' //中建四局线上
|
||||
// axios.defaults.baseURL ='http://124.71.67.160:8088/' //中建四局线上
|
||||
// axios.defaults.baseURL = 'http://192.168.34.125:6023/' //杨意本地 http/1.1
|
||||
// axios.defaults.baseURL ='http://47.97.202.104:6023/' //金林湾线上
|
||||
// axios.defaults.baseURL = 'http://192.168.34.231:6023/'; //杨思瑞本地
|
||||
|
||||
@ -541,8 +541,10 @@ export default {
|
||||
});
|
||||
},
|
||||
parseLoginData(data) {
|
||||
console.log("登录进来的data", data);
|
||||
localStorage.setItem('sn',data.sn)
|
||||
// console.log("登录进来的data", data);
|
||||
// if( this.projectType == "zjsj"){
|
||||
// localStorage.setItem('sn',data.sn)
|
||||
// }
|
||||
window._paq.push(["trackEvent", "点击", "登录", "登录账号"]);
|
||||
this.$message.success(this.$t("message.login.login_success_msg")); //登录成功!
|
||||
this.$http.defaults.headers.common["Authorization"] =
|
||||
|
||||
@ -76,7 +76,7 @@ export default {
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.projectSn=localStorage.getItem('sn')
|
||||
this.projectSn = this.$store.state.projectSn
|
||||
},
|
||||
mounted(){
|
||||
this.getList()
|
||||
|
||||
@ -22,8 +22,10 @@ export default {
|
||||
lifterNumber:"",
|
||||
}
|
||||
},
|
||||
created(){
|
||||
this.projectSn = this.$store.state.projectSn
|
||||
},
|
||||
mounted() {
|
||||
this.projectSn=localStorage.getItem('sn')
|
||||
this.getData()
|
||||
},
|
||||
methods: {
|
||||
|
||||
@ -41,14 +41,12 @@ export default {
|
||||
},
|
||||
}),
|
||||
created() {
|
||||
this.projectSn=localStorage.getItem('sn')
|
||||
this.projectSn = this.$store.state.projectSn
|
||||
// this.projectSn=localStorage.getItem('sn')
|
||||
},
|
||||
mounted(){
|
||||
this.getList()
|
||||
},
|
||||
// computed: {
|
||||
// ...mapState(['projectSn']),
|
||||
// },
|
||||
methods: {
|
||||
/** 查询列表 */
|
||||
getList() {
|
||||
|
||||
@ -75,7 +75,7 @@ export default {
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.projectSn=localStorage.getItem('sn')
|
||||
this.projectSn = this.$store.state.projectSn
|
||||
this.selectDustNoisePageList()
|
||||
},
|
||||
methods: {
|
||||
|
||||
@ -33,7 +33,7 @@ export default {
|
||||
}
|
||||
},
|
||||
created(){
|
||||
this.projectSn=localStorage.getItem('sn')
|
||||
this.projectSn = this.$store.state.projectSn
|
||||
console.log('this.list',this.list)
|
||||
this.getDataDateils()
|
||||
},
|
||||
|
||||
@ -121,7 +121,7 @@ export default {
|
||||
}
|
||||
},
|
||||
created(){
|
||||
this.projectSn=localStorage.getItem('sn')
|
||||
this.projectSn = this.$store.state.projectSn
|
||||
this.getWorkerStatisticsCount()
|
||||
},
|
||||
methods:{
|
||||
@ -129,7 +129,6 @@ export default {
|
||||
getWorkerStatisticsCount() {
|
||||
console.log('执行');
|
||||
getWorkerStatisticsCountApi({ sn: this.projectSn }).then((res) => {
|
||||
console.log('老区啊拉垃圾啊哈哈',res);
|
||||
this.statisticsCount = res.result;
|
||||
});
|
||||
},
|
||||
|
||||
@ -77,12 +77,9 @@ export default {
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.projectSn=localStorage.getItem('sn')
|
||||
this.projectSn = this.$store.state.projectSn
|
||||
this.getList()
|
||||
},
|
||||
computed: {
|
||||
// ...mapState(['projectSn']),
|
||||
},
|
||||
methods: {
|
||||
/** 查询列表 */
|
||||
getList() {
|
||||
|
||||
@ -119,11 +119,8 @@ export default {
|
||||
};
|
||||
},
|
||||
created() {
|
||||
this.projectSn=localStorage.getItem('sn')
|
||||
this.projectSn = this.$store.state.projectSn
|
||||
},
|
||||
// computed: {
|
||||
// ...mapState(["projectSn"]),
|
||||
// },
|
||||
mounted() {
|
||||
this.getQualityProblem();
|
||||
this.getQuality();
|
||||
|
||||
@ -133,7 +133,7 @@ export default {
|
||||
};
|
||||
},
|
||||
created(){
|
||||
this.projectSn = localStorage.getItem('sn')
|
||||
this.projectSn = this.$store.state.projectSn
|
||||
this.baseURL = this.$http.defaults.baseURL
|
||||
},
|
||||
mounted() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user