|
@@ -94,6 +94,13 @@
|
|
</el-select>
|
|
</el-select>
|
|
|
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
+ <el-form-item prop="exportContent" label="导出内容" v-if="permissions.countCost && permissions.countHours && (radio == $t('other.project') || radio == $t('projectclassification'))">
|
|
|
|
+ <el-select v-model="exportParam.exportContent" style="width:350px;" filterable="true" popper-class="projectSelectPopperClass">
|
|
|
|
+ <el-option label="工时和成本" value="hoursAndCost"></el-option>
|
|
|
|
+ <el-option label="仅工时" value="hours"></el-option>
|
|
|
|
+ <el-option label="仅成本" value="cost"></el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+ </el-form-item>
|
|
|
|
|
|
<el-form-item :label="$t('departmentchoice')" v-if="radio == $t('other.project')">
|
|
<el-form-item :label="$t('departmentchoice')" v-if="radio == $t('other.project')">
|
|
<el-cascader v-if="user.userNameNeedTranslate != 1" v-model="exportParam.deptId" :options="departmentList" :placeholder="$t('defaultText.pleaseChoose')"
|
|
<el-cascader v-if="user.userNameNeedTranslate != 1" v-model="exportParam.deptId" :options="departmentList" :placeholder="$t('defaultText.pleaseChoose')"
|
|
@@ -298,6 +305,9 @@
|
|
if (this.radio == this.$t('other.project')) {
|
|
if (this.radio == this.$t('other.project')) {
|
|
this.exportParam.deptId = []
|
|
this.exportParam.deptId = []
|
|
}
|
|
}
|
|
|
|
+ if(this.permissions.countCost && this.permissions.countHours && (this.radio == this.$t('other.project') || this.radio == this.$t('projectclassification'))){
|
|
|
|
+ this.$set(this.exportParam, 'exportContent', 'hoursAndCost')
|
|
|
|
+ }
|
|
},
|
|
},
|
|
//获取我的项目列表
|
|
//获取我的项目列表
|
|
getMyProjectList() {
|
|
getMyProjectList() {
|
|
@@ -382,6 +392,9 @@
|
|
param.deptId = this.exportParam.deptId[this.exportParam.deptId.length - 1]
|
|
param.deptId = this.exportParam.deptId[this.exportParam.deptId.length - 1]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ if(this.permissions.countCost && this.permissions.countHours && (this.radio == this.$t('other.project') || this.radio == this.$t('projectclassification'))){
|
|
|
|
+ param.exportContent = this.exportParam.exportContent
|
|
|
|
+ }
|
|
this.http.post(url, param,
|
|
this.http.post(url, param,
|
|
res => {
|
|
res => {
|
|
this.listLoading = false;
|
|
this.listLoading = false;
|