|
@@ -29,9 +29,14 @@
|
|
<div v-if="radio1 == $t('an-xiang-mu-cha-kan')" class="head_taskType">
|
|
<div v-if="radio1 == $t('an-xiang-mu-cha-kan')" class="head_taskType">
|
|
<span>{{ $t('ren-wu-lei-xing') }}</span>
|
|
<span>{{ $t('ren-wu-lei-xing') }}</span>
|
|
<el-select clearable filterable v-model="taskType" :placeholder="$t('defaultText.pleaseChoose')" size="small" style="margin-left:9px;width:10vw" @change="taskTypeSel()">
|
|
<el-select clearable filterable v-model="taskType" :placeholder="$t('defaultText.pleaseChoose')" size="small" style="margin-left:9px;width:10vw" @change="taskTypeSel()">
|
|
- <el-option :label="$t('other.task')" :value="0"></el-option>
|
|
|
|
- <el-option :label="$t('other.milestone')" :value="1"></el-option>
|
|
|
|
- </el-select>
|
|
|
|
|
|
+ <el-option v-for="item in typeList" :label="item.name" :value="item.id" :key="item.id">
|
|
|
|
+ <div style="display: flex;justify-content: space-between;align-items: center;">
|
|
|
|
+ <!--左边是文字,右边是色块(有color的话)-->
|
|
|
|
+ <div style="float: left; ">{{ item.name }}</div>
|
|
|
|
+ <div v-if="item.color" :style="'width:40px;margin-left:20px;height:20px;background-color:'+item.color"></div>
|
|
|
|
+ </div>
|
|
|
|
+ </el-option>
|
|
|
|
+ </el-select>
|
|
</div>
|
|
</div>
|
|
<!-- 任务分组筛选 -->
|
|
<!-- 任务分组筛选 -->
|
|
<div v-if="reqpar1" class="head_taskgroup">
|
|
<div v-if="reqpar1" class="head_taskgroup">
|
|
@@ -220,6 +225,7 @@ export default {
|
|
valuex2: '',
|
|
valuex2: '',
|
|
|
|
|
|
user: JSON.parse(sessionStorage.getItem("user")),
|
|
user: JSON.parse(sessionStorage.getItem("user")),
|
|
|
|
+ typeList: []
|
|
};
|
|
};
|
|
},
|
|
},
|
|
computed: {},
|
|
computed: {},
|
|
@@ -240,8 +246,23 @@ export default {
|
|
this.getScreen()
|
|
this.getScreen()
|
|
// this.tasks1 = this.tasks
|
|
// this.tasks1 = this.tasks
|
|
this.isDataLoaded = true
|
|
this.isDataLoaded = true
|
|
|
|
+
|
|
|
|
+ this.getTaskTypeList()
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ getTaskTypeList() {
|
|
|
|
+ this.http.post('/task-type/list', { companyId: this.user.companyId },
|
|
|
|
+ res => {
|
|
|
|
+ if (res.code == "ok") {
|
|
|
|
+ this.typeList = res.data;
|
|
|
|
+ } else {
|
|
|
|
+ this.$message({ message: res.msg, type: "error" });
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ error => {
|
|
|
|
+ this.$message({ message: error, type: "error" });
|
|
|
|
+ });
|
|
|
|
+ },
|
|
parentLevelOpensPopUpWindowGantt(row) {
|
|
parentLevelOpensPopUpWindowGantt(row) {
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
this.$refs.ganttTable1.detaliTaskExposure(row);
|
|
this.$refs.ganttTable1.detaliTaskExposure(row);
|