|
@@ -49,17 +49,17 @@
|
|
|
<!-- 人员/项目筛选 -->
|
|
|
<div class="head_select">
|
|
|
<span>{{(this.radio1 == $t('an-ren-yuan-cha-kan') ? $t('ren-yuan') : $t('other.project'))}}</span>
|
|
|
- <el-select clearable filterable v-model="valuex" :placeholder="$t('defaultText.pleaseChoose')" size="small" style="margin-left:9px;width:10vw" @change="optupdata()">
|
|
|
- <el-option
|
|
|
- v-for="item in screenList"
|
|
|
- :key="item.id"
|
|
|
- :label="reqpar1 ? item.projectName : item.name"
|
|
|
- :value="item.id"
|
|
|
- >
|
|
|
- <span v-if="reqpar1" style="float: left;color: #8492a6;">{{ item.projectCode }}</span>
|
|
|
- <span v-if="reqpar1" style="float: right;font-size: 13px;margin-left: 20px">{{ item.projectName }}</span>
|
|
|
- </el-option>
|
|
|
- </el-select>
|
|
|
+ <el-select v-if="reqpar1" clearable filterable v-model="valuex" :placeholder="$t('defaultText.pleaseChoose')" size="small" style="margin-left:9px;width:10vw" @change="optupdata()">
|
|
|
+ <el-option v-for="item in screenList" :key="item.id" :label="item.projectName" :value="item.id">
|
|
|
+ <span v-if="reqpar1" style="float: left;color: #8492a6;">{{ item.projectCode }}</span>
|
|
|
+ <span v-if="reqpar1" style="float: right;font-size: 13px;margin-left: 20px">{{ item.projectName }}</span>
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ <el-select v-if="!reqpar1 && user.userNameNeedTranslate != '1'" clearable filterable v-model="valuex" :placeholder="$t('defaultText.pleaseChoose')" size="small" style="margin-left:9px;width:10vw" @change="optupdata()">
|
|
|
+ <el-option v-for="item in screenList" :key="item.id" :label="item.name" :value="item.id">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ <selectCat v-if="!reqpar1 && user.userNameNeedTranslate == '1'" style="margin-left:9px;" :size="'small'" :widthStr="'153'" :subject="screenList" :subjectId="valuex" :distinction="'1'" @selectCal="selectCal"></selectCat>
|
|
|
</div>
|
|
|
<!-- 资源需求导入/导出 -->
|
|
|
<div class="head_files" v-if="!isDataLoaded">
|
|
@@ -180,11 +180,13 @@
|
|
|
import { error } from 'dingtalk-jsapi';
|
|
|
import Gantt from './gantt.vue';
|
|
|
import vueGantt from './vueGantt.vue'
|
|
|
+// 自定义select组件
|
|
|
+import SelectCat from "@/components/select.vue"
|
|
|
|
|
|
export default {
|
|
|
name: 'project_gantt',
|
|
|
props: {},
|
|
|
- components: {Gantt, vueGantt},
|
|
|
+ components: {Gantt, vueGantt, SelectCat},
|
|
|
data() {
|
|
|
return {
|
|
|
taskType: '',
|
|
@@ -240,6 +242,12 @@ export default {
|
|
|
this.isDataLoaded = true
|
|
|
},
|
|
|
methods: {
|
|
|
+ selectCal() {
|
|
|
+ if(obj.distinction == '1') {
|
|
|
+ this.valuex = obj.id
|
|
|
+ this.optupdata()
|
|
|
+ }
|
|
|
+ },
|
|
|
setGroup() {
|
|
|
this.$refs.ganttTable1.setGroup();
|
|
|
// this.$refs.ganttTable2.setGroup();
|