Commit 66aedf5a authored by youjie's avatar youjie

no message

parent 152509c7
...@@ -193,6 +193,14 @@ ...@@ -193,6 +193,14 @@
} }
}, },
watch: {
msg:{
handler(newValue, oldValue) {
this.getList()
},
deep: true,
},
},
mounted() { mounted() {
let userInfo = this.getLocalStorage(); let userInfo = this.getLocalStorage();
let ActionMenuCode = userInfo.ActionMenuCode; let ActionMenuCode = userInfo.ActionMenuCode;
...@@ -213,16 +221,17 @@ ...@@ -213,16 +221,17 @@
this.msg.Type = this.$route.query.Type this.msg.Type = this.$route.query.Type
} }
this.msg.TCNUM = this.$route.query.TCNUM?this.$route.query.TCNUM:"" this.msg.TCNUM = this.$route.query.TCNUM?this.$route.query.TCNUM:""
this.msg.UserId = this.$route.query.UserId?Number(this.$route.query.UserId):-1
this.isSearch = this.$route.query.isSearch?this.$route.query.isSearch:false this.isSearch = this.$route.query.isSearch?this.$route.query.isSearch:false
} }
if (ActionMenuCode.indexOf('home_CommissionSeeAll') != -1) { //是否有看所有人的权限 if (ActionMenuCode.indexOf('home_CommissionSeeAll') != -1) { //是否有看所有人的权限
this.disabled = false; this.disabled = false;
} else { } else {
this.disabled = true; this.disabled = true;
if(!this.$route.query.UserId){
this.msg.UserId = Number(userInfo.EmployeeId) this.msg.UserId = Number(userInfo.EmployeeId)
} }
this.getList(); }
this.getList()
this.getqishilist() this.getqishilist()
this.getCompanyList() //获取公司 this.getCompanyList() //获取公司
this.getEmployee() //人员 this.getEmployee() //人员
......
...@@ -218,8 +218,10 @@ ...@@ -218,8 +218,10 @@
this.disabled = false; this.disabled = false;
} else { } else {
this.disabled = true; this.disabled = true;
if(!this.$route.query.UserId){
this.msg.UserId = Number(userInfo.EmployeeId) this.msg.UserId = Number(userInfo.EmployeeId)
} }
}
this.getList(); this.getList();
this.getqishilist() this.getqishilist()
this.getCompanyList() //获取公司 this.getCompanyList() //获取公司
......
...@@ -1463,7 +1463,7 @@ ...@@ -1463,7 +1463,7 @@
name = 'ServiceCommissiondetails' name = 'ServiceCommissiondetails'
obj.UserId = item.UserId obj.UserId = item.UserId
obj.TCNUM = row.TCNUM obj.TCNUM = row.TCNUM
obj.Type = '' obj.Type = 2
} }
this.$router.push({ this.$router.push({
name: name, name: name,
......
...@@ -955,7 +955,7 @@ ...@@ -955,7 +955,7 @@
name = 'ServiceCommissiondetails' name = 'ServiceCommissiondetails'
obj.UserId = item.UserId obj.UserId = item.UserId
obj.TCNUM = row.TCNUM obj.TCNUM = row.TCNUM
obj.Type = '' obj.Type = 2
} }
this.$router.push({ this.$router.push({
name: name, name: name,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment