|
@@ -483,7 +483,8 @@
|
|
|
<!--修改工程专业界面-->
|
|
|
<el-dialog :title="$t('engineering')" v-if="editProfessionDialog" :visible.sync="editProfessionDialog"
|
|
|
:close-on-click-modal="false" customClass="customWidth" width="1000px">
|
|
|
- <el-table :data="projectProfessionList" size="small" max-height="400" :key="Math.random()">
|
|
|
+ <div class="gongcheng">
|
|
|
+ <el-table :data="projectProfessionList" size="small" height="500" :key="Math.random()">
|
|
|
<el-table-column prop="professionId" width="200">
|
|
|
<template slot-scope="scope">
|
|
|
<el-select v-model="scope.row.professionId" >
|
|
@@ -513,12 +514,13 @@
|
|
|
</el-link>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="inchargerName" width="120" :label="$t('head')">
|
|
|
+ <el-table-column prop="inchargerName" width="200" :label="$t('head')">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-select v-model="scope.row.inchargerId" >
|
|
|
+ <el-select v-model="scope.row.inchargerId" v-if="user.userNameNeedTranslate != 1">
|
|
|
<el-option v-for="item in participator" :key="item.id" :label="item.name" :value="item.id">
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
+ <selectCat v-if="user.userNameNeedTranslate == 1" :size="'mini'" :subject="participator" :subjectId="scope.row.inchargerId" :other="scope.$index" :distinction="'2'" @selectCal="selectCal"></selectCat>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column width="80">
|
|
@@ -534,17 +536,20 @@
|
|
|
<el-button @click.native="editProfessionDialog = false">{{ $t('btn.cancel') }}</el-button>
|
|
|
<el-button type="primary" @click="saveProjectProfessions" :loading="addLoading">{{ $t('btn.submit') }}</el-button>
|
|
|
</div>
|
|
|
+ </div>
|
|
|
</el-dialog>
|
|
|
|
|
|
<!-- 项目专业人员的设置 -->
|
|
|
<el-dialog :title="$t('setupprojectprofessionals')" v-if="editPpMembDialog" :visible.sync="editPpMembDialog" :close-on-click-modal="false" customClass="customWidth" width="600px">
|
|
|
+ <div class="gongcheng">
|
|
|
<el-table :data="curProfessionRow.membList" height="400">
|
|
|
<el-table-column prop="name" :label="$t('professionals')">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-select v-model="scope.row.membId" filterable :placeholder="$t('professionaladdsparticipant')" style="width:100%;" >
|
|
|
+ <el-select v-if="user.userNameNeedTranslate != 1" v-model="scope.row.membId" filterable :placeholder="$t('professionaladdsparticipant')" style="width:100%;" >
|
|
|
<el-option v-for="item in participator" :key="item.id" :label="item.name" :value="item.id">
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
+ <selectCat v-if="user.userNameNeedTranslate == 1" :size="'medium'" :subject="participator" :subjectId="scope.row.membId" :distinction="'3'" :other="scope.$index" @selectCal="selectCal"></selectCat>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="percentage" width="120" :label="$t('zhan-bi')">
|
|
@@ -565,6 +570,7 @@
|
|
|
<el-button @click="editPpMembDialog = false" >{{ $t('btn.cancel') }}</el-button>
|
|
|
<el-button type="primary" @click="addPpMemb" >{{ $t('btn.determine') }}</el-button>
|
|
|
</div>
|
|
|
+ </div>
|
|
|
</el-dialog>
|
|
|
<!-- 编辑项目关键节点 -->
|
|
|
<el-dialog :title="$t('editkeyprojectnodes')" :visible.sync="keyNodeIsShow" width="960px" :before-close="handleClose">
|
|
@@ -1987,6 +1993,11 @@
|
|
|
selectCal(obj) {
|
|
|
if(obj.distinction == '1' ) {
|
|
|
this.addForm.inchargerId = obj.id
|
|
|
+ } else if(obj.distinction == '2') {
|
|
|
+ this.projectProfessionList[obj.other].inchargerId = obj.id
|
|
|
+ } else if(obj.distinction == '3') {
|
|
|
+ let userList = obj.id
|
|
|
+ this.curProfessionRow.membList[obj.other].membId = userList
|
|
|
}
|
|
|
}
|
|
|
},
|