|
@@ -92,7 +92,7 @@
|
|
|
<el-button
|
|
|
size="small"
|
|
|
type="primary"
|
|
|
- icon="search"
|
|
|
+ icon="el-icon-search"
|
|
|
@click="searchRecords"
|
|
|
>查询
|
|
|
</el-button>
|
|
@@ -127,10 +127,10 @@
|
|
|
<el-button
|
|
|
size="mini"
|
|
|
type="primary"
|
|
|
+ icon="el-icon-setting"
|
|
|
@click="editProjectSetting(scope.row);"
|
|
|
:disabled="!hasPermit"
|
|
|
- >
|
|
|
- <i class="el-icon-edit"></i> 项目设置
|
|
|
+ >项目设置
|
|
|
</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -234,8 +234,7 @@ export default {
|
|
|
/* 查询项目经理列表 */
|
|
|
this.pmList = [];
|
|
|
let url =
|
|
|
- core_api +
|
|
|
- "/user/query?rootOrgIdNull=true&roleCode=PRINT_PROJECT_LEADER";
|
|
|
+ core_api + "/user/query?rootOrgCode=qmth&roleCode=PRINT_PROJECT_LEADER";
|
|
|
|
|
|
if (!this.isEmptyStr(query)) {
|
|
|
url += "&name=" + query;
|
|
@@ -249,7 +248,7 @@ export default {
|
|
|
/* 查询印刷供应商列表 */
|
|
|
this.supplierList = [];
|
|
|
let url =
|
|
|
- core_api + "/user/query?rootOrgIdNull=true&roleCode=PRINT_SUPPLIER";
|
|
|
+ core_api + "/user/query?rootOrgCode=qmth-print&roleCode=PRINT_SUPPLIER";
|
|
|
|
|
|
if (!this.isEmptyStr(query)) {
|
|
|
url += "&name=" + query;
|
|
@@ -277,8 +276,16 @@ export default {
|
|
|
|
|
|
this.loadUserRole(this.user);
|
|
|
|
|
|
- if (this.curUserRole.isSuperLeader || this.curUserRole.isPM) {
|
|
|
+ if (this.curUserRole.isSuperLeader) {
|
|
|
this.hasPermit = true;
|
|
|
+ // this.searchPmList();
|
|
|
+ // this.searchSupplierList();
|
|
|
+ } else if (this.curUserRole.isPM) {
|
|
|
+ this.hasPermit = true;
|
|
|
+ //this.loadPmInfo(this.user);
|
|
|
+ } else if (this.curUserRole.isSupplier) {
|
|
|
+ this.hasPermit = false;
|
|
|
+ //this.loadSupplierInfo(this.user);
|
|
|
} else {
|
|
|
this.hasPermit = false;
|
|
|
}
|