|
@@ -63,7 +63,8 @@
|
|
|
<el-link type="primary" :underline="false" @click="exportProjectData" :download="$t('exportProject') + '.xlsx'">{{ $t('exportProject') }}</el-link>
|
|
|
</el-dropdown-item>
|
|
|
<el-dropdown-item v-if="user.company.packageProject == 1 && permissions.projectExport">
|
|
|
- <el-link type="primary" :underline="false" @click="exportProjectGroup" :download="$t('exportingTaskGroups') +'.xlsx'">{{ $t('exportingTaskGroups') }}</el-link>
|
|
|
+ <el-link type="primary" :underline="false" v-if="user.companyId==936" @click="groupTaskDialog=true" :download="$t('exportingTaskGroups') +'.xlsx'">{{ $t('exportingTaskGroups') }}</el-link>
|
|
|
+ <el-link type="primary" :underline="false" v-else @click="exportProjectGroup" :download="$t('exportingTaskGroups') +'.xlsx'">{{ $t('exportingTaskGroups') }}</el-link>
|
|
|
</el-dropdown-item>
|
|
|
<el-dropdown-item v-if="user.company.packageProject == 1 && permissions.projectCostOfItems">
|
|
|
<el-link type="primary" :underline="false" @click="showBaseCostItemDialog">{{ $t('baselinecostitem') }}</el-link>
|
|
@@ -1053,6 +1054,21 @@
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
|
|
|
+ <!-- 导出任务分组 -->
|
|
|
+ <el-dialog :title="'导出任务分组'" show-header="false" v-if="groupTaskDialog" :visible.sync="groupTaskDialog" :close-on-click-modal="false" customClass="customWidth" width="600px">
|
|
|
+ <el-form>
|
|
|
+ <el-form-item :label="'主项目类别'">
|
|
|
+ <el-select v-model="mainProjectId" :placeholder="$t('defaultText.pleaseChoose')" clearable >
|
|
|
+ <el-option v-for="item in mainProjectList" :key="item.id" :label="item.name" :value="item.id"></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
+ <el-button type="primary" @click="groupTaskDialog = false" >{{ $t('Shutdown') }}</el-button>
|
|
|
+ <el-button type="primary" @click="exportProjectGroup" >{{ '导出' }}</el-button>
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
+
|
|
|
<!-- 新增/编辑项目级别 -->
|
|
|
<el-dialog :title="$t('modifyingtheprojectLevel')" v-if="addProjectLevelDialog" :visible.sync="addProjectLevelDialog" :close-on-click-modal="false" customClass="customWidth" width="500px">
|
|
|
<el-form ref="form2" :model="addLevelForm" :rules="rules" label-width="120px">
|
|
@@ -1472,6 +1488,7 @@ a {
|
|
|
},
|
|
|
|
|
|
wxFilterText: '',
|
|
|
+ mainProjectId:'',
|
|
|
filterName:null,
|
|
|
chooseParticipVisible: false,
|
|
|
projectBaseCostData:[],
|
|
@@ -1504,6 +1521,7 @@ a {
|
|
|
addSubProject: false,
|
|
|
addFormVisible: false,
|
|
|
addLoading: false,
|
|
|
+ groupTaskDialog:false,
|
|
|
addUp: 0, // 合计
|
|
|
title: "",
|
|
|
addForm: {
|
|
@@ -2618,7 +2636,7 @@ a {
|
|
|
},
|
|
|
exportProjectGroup() {
|
|
|
//导出项目分组
|
|
|
- this.http.post('/project/exportGroupData',{},
|
|
|
+ this.http.post('/project/exportGroupData',{mainProjectId:this.mainProjectId},
|
|
|
res => {
|
|
|
if (res.code == "ok") {
|
|
|
var filePath = res.data;
|