Commit 26029d88 authored by 程卓's avatar 程卓

变更var 为 let

parent 977b3dd0
......@@ -137,20 +137,19 @@ export default {
this.getCompanyList()
},
getCompanyList(params){
let searchParms=params
if(params && params.hasOwnProperty('streetsId')){
var searchParms=params
this.$nextTick(() => {
this.searchForm.setFieldsValue(params)
})
}else{
var searchParms = {
searchParms = {
'createTime_desc': 'desc',
'createTime_btw': !!this.searchForm.getFieldValue('createTime_btw') ? [this.$moment(this.searchForm.getFieldValue('createTime_btw')[0]).format('YYYY-MM-DD'), this.$moment(this.searchForm.getFieldValue('createTime_btw')[1]).format('YYYY-MM-DD')].toString(): '',
pageNo: this.pagination.current,
pageSize: 10,
}
}
this.searchParms=searchParms
this.$ajax.get({
url: this.$api.GET_RIZHI,
......
......@@ -149,14 +149,15 @@ export default {
})
},
getTreeNode(item, index){
let childrenNode = {}
if(this.roleIds.length>0 && this.roleIds.indexOf(item.id)<0 && !this.$store.state.userInfos.isAllPerm){
var childrenNode={
childrenNode={
title: item.permName,
key: item.id,
disabled: true,
}
}else{
var childrenNode={
childrenNode={
title: item.permName,
key: item.id
}
......
......@@ -121,14 +121,15 @@ export default {
* 整理权限树
*/
getTreeNode(item, index){
let childrenNode = {}
if(this.roleIds.length>0 && this.roleIds.indexOf(item.id)<0 && !this.$store.state.userInfos.isAllPerm){
var childrenNode={
childrenNode={
title: item.permName,
key: item.id,
disabled: true,
}
}else{
var childrenNode={
childrenNode={
title: item.permName,
key: item.id
}
......
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