|
@@ -10,8 +10,8 @@
|
|
filterable
|
|
filterable
|
|
clearable
|
|
clearable
|
|
style="width:100%"
|
|
style="width:100%"
|
|
- :multiple="multiple? multiple : false"
|
|
|
|
- :collapse-tags="collapseTags?collapseTags: false"
|
|
|
|
|
|
+ :multiple="multiple ? multiple : false"
|
|
|
|
+ :collapse-tags="collapseTags ? collapseTags : false"
|
|
@change="corpChange"
|
|
@change="corpChange"
|
|
>
|
|
>
|
|
<el-option
|
|
<el-option
|
|
@@ -37,6 +37,7 @@
|
|
append-to-body
|
|
append-to-body
|
|
@closed="closed"
|
|
@closed="closed"
|
|
class="el-dialogDeep"
|
|
class="el-dialogDeep"
|
|
|
|
+ :close-on-click-modal="false"
|
|
v-dialog-drag
|
|
v-dialog-drag
|
|
>
|
|
>
|
|
<span>
|
|
<span>
|
|
@@ -128,7 +129,7 @@ export default {
|
|
corpVisible: false,
|
|
corpVisible: false,
|
|
selectionList: [],
|
|
selectionList: [],
|
|
title: null,
|
|
title: null,
|
|
- treeStyle:'height:'+(window.innerHeight - 315)+'px'
|
|
|
|
|
|
+ treeStyle: "height:" + (window.innerHeight - 315) + "px"
|
|
};
|
|
};
|
|
},
|
|
},
|
|
props: {
|
|
props: {
|
|
@@ -137,7 +138,7 @@ export default {
|
|
cropIndex: Number,
|
|
cropIndex: Number,
|
|
corpType: String,
|
|
corpType: String,
|
|
multiple: Boolean,
|
|
multiple: Boolean,
|
|
- collapseTags: Boolean,
|
|
|
|
|
|
+ collapseTags: Boolean
|
|
},
|
|
},
|
|
model: {
|
|
model: {
|
|
prop: "value",
|
|
prop: "value",
|
|
@@ -145,9 +146,11 @@ export default {
|
|
},
|
|
},
|
|
async created() {
|
|
async created() {
|
|
this.tableOption = await this.getColumnData(this.getColumnName(51), option);
|
|
this.tableOption = await this.getColumnData(this.getColumnName(51), option);
|
|
|
|
+ let userObj = JSON.parse(localStorage.getItem("saber-userInfo")).content;
|
|
this.title = getCustomerName(this.corpType);
|
|
this.title = getCustomerName(this.corpType);
|
|
allCropList({
|
|
allCropList({
|
|
- corpType: getCustomerCode(this.corpType)
|
|
|
|
|
|
+ corpType: getCustomerCode(this.corpType),
|
|
|
|
+ adminProfiles: userObj.role_name != "admin" ? userObj.user_id : null
|
|
}).then(res => {
|
|
}).then(res => {
|
|
this.corpList = res.data.data;
|
|
this.corpList = res.data.data;
|
|
});
|
|
});
|
|
@@ -199,11 +202,13 @@ export default {
|
|
this.onLoad(this.page, this.search);
|
|
this.onLoad(this.page, this.search);
|
|
},
|
|
},
|
|
onLoad(page, params = { parentId: 0 }) {
|
|
onLoad(page, params = { parentId: 0 }) {
|
|
|
|
+ let userObj = JSON.parse(localStorage.getItem("saber-userInfo")).content;
|
|
let queryParams = Object.assign({}, params, {
|
|
let queryParams = Object.assign({}, params, {
|
|
size: page.pageSize,
|
|
size: page.pageSize,
|
|
current: page.currentPage,
|
|
current: page.currentPage,
|
|
corpsTypeId: this.treeDeptId,
|
|
corpsTypeId: this.treeDeptId,
|
|
- corpType: getCustomerCode(this.corpType)
|
|
|
|
|
|
+ corpType: getCustomerCode(this.corpType),
|
|
|
|
+ adminProfiles: userObj.role_name != "admin" ? userObj.user_id : null
|
|
});
|
|
});
|
|
this.loading = true;
|
|
this.loading = true;
|
|
customerList(queryParams)
|
|
customerList(queryParams)
|