|
@@ -172,7 +172,7 @@
|
|
</template>
|
|
</template>
|
|
</el-table-column> -->
|
|
</el-table-column> -->
|
|
<el-table-column prop="projectCode" :label="user.companyId == '7030' ? '项目令号' : $t('Itemno')" sortable="custom" width="150"></el-table-column>
|
|
<el-table-column prop="projectCode" :label="user.companyId == '7030' ? '项目令号' : $t('Itemno')" sortable="custom" width="150"></el-table-column>
|
|
- <el-table-column prop="projectMainName" :label="$t('zhu-xiang-mu')" sortable="custom" min-width="250" v-if="(user.timeType.mainProjectState == '1') || user.companyId == 4811">
|
|
|
|
|
|
+ <el-table-column prop="projectMainName" :label="$t('zhu-xiang-mu')" sortable="custom" min-width="250" v-if="user.timeType.mainProjectState == '1'">
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column prop="contractCode" :label="$t('contractno')" width="200" v-if="user.companyId == '936'">
|
|
<el-table-column prop="contractCode" :label="$t('contractno')" width="200" v-if="user.companyId == '936'">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
@@ -377,7 +377,7 @@
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column :label="$t('operation')" :width="showColumnWidth" align="left" fixed="right" v-if="showColumnWidth != '0' || permissions.projectManagement">
|
|
<el-table-column :label="$t('operation')" :width="showColumnWidth" align="left" fixed="right" v-if="showColumnWidth != '0' || permissions.projectManagement">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <el-button v-if="((permissions.projectManagement || user.id==scope.row.creatorId) && user.timeType.mainProjectState != '1' && !user.timeType.hideSubproject) || user.companyId == 4811" size="mini" @click="subProject(scope.row)">{{ $t('lable.subproject') }}</el-button>
|
|
|
|
|
|
+ <el-button v-if="(permissions.projectManagement || user.id==scope.row.creatorId) && user.timeType.mainProjectState != '1' && !user.timeType.hideSubproject" size="mini" @click="subProject(scope.row)">{{ $t('lable.subproject') }}</el-button>
|
|
<el-button size="mini" v-if="permissions.projectParticipator || permissions.projectManagement || user.id==scope.row.inchargerId || user.id==scope.row.creatorId" type="primary" @click="handleAdd(scope.$index, scope.row)">{{ $t('bian-ji') }}</el-button>
|
|
<el-button size="mini" v-if="permissions.projectParticipator || permissions.projectManagement || user.id==scope.row.inchargerId || user.id==scope.row.creatorId" type="primary" @click="handleAdd(scope.$index, scope.row)">{{ $t('bian-ji') }}</el-button>
|
|
<!-- <el-button v-if="permissions.projectManagement || user.id==scope.row.creatorId" size="mini" @click="deletePro(scope.$index, scope.row)">删除</el-button> -->
|
|
<!-- <el-button v-if="permissions.projectManagement || user.id==scope.row.creatorId" size="mini" @click="deletePro(scope.$index, scope.row)">删除</el-button> -->
|
|
<!--如果是威派格,项目经理不给权限-->
|
|
<!--如果是威派格,项目经理不给权限-->
|
|
@@ -448,7 +448,7 @@
|
|
<!-- <el-input v-model="addForm.code" :disabled="!permissions.projectManagement && addForm.creatorId != user.id" placeholder="请输入项目编号" clearable></el-input> -->
|
|
<!-- <el-input v-model="addForm.code" :disabled="!permissions.projectManagement && addForm.creatorId != user.id" placeholder="请输入项目编号" clearable></el-input> -->
|
|
<el-input v-model="addForm.code" :placeholder="$t('peaseenterthe')" clearable :disabled="canOnlyModParticipator || (!permissions.projectManagement && addForm.creatorId != user.id && !permissions.projectCodeAndName) || isShowProjectName" maxlength="50" show-word-limit="true"></el-input>
|
|
<el-input v-model="addForm.code" :placeholder="$t('peaseenterthe')" clearable :disabled="canOnlyModParticipator || (!permissions.projectManagement && addForm.creatorId != user.id && !permissions.projectCodeAndName) || isShowProjectName" maxlength="50" show-word-limit="true"></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item :label="$t('zhu-xiang-mu')" :class="title == $t('newproject') && user.companyId == 936 ? 'wpgCssClass' : ''" v-if="user.timeType.mainProjectState == '1'" prop="projectMainId">
|
|
|
|
|
|
+ <el-form-item :label="$t('zhu-xiang-mu')" :class="title == $t('newproject') && user.companyId == 936 ? 'wpgCssClass' : ''" v-if="user.timeType.mainProjectState == '1'">
|
|
<!-- <el-select v-model="addForm.projectMainId" clearable :disabled="!permissions.projectManagement && addForm.creatorId != user.id" @change="projectManagementChange"> -->
|
|
<!-- <el-select v-model="addForm.projectMainId" clearable :disabled="!permissions.projectManagement && addForm.creatorId != user.id" @change="projectManagementChange"> -->
|
|
<el-select v-model="addForm.projectMainId" clearable @change="projectManagementChange">
|
|
<el-select v-model="addForm.projectMainId" clearable @change="projectManagementChange">
|
|
<el-option v-for="(item) in mainProjectList" :key="item.id" :value="item.id" :label="item.name + '\u3000' + item.code">
|
|
<el-option v-for="(item) in mainProjectList" :key="item.id" :value="item.id" :label="item.name + '\u3000' + item.code">
|
|
@@ -517,7 +517,7 @@
|
|
<el-form-item :label="$t('Allparticipants')" v-show="addForm.isPublic == 0" :class="title == $t('newproject') && user.companyId == 936 ? 'wpgCssClass' : ''">
|
|
<el-form-item :label="$t('Allparticipants')" v-show="addForm.isPublic == 0" :class="title == $t('newproject') && user.companyId == 936 ? 'wpgCssClass' : ''">
|
|
<el-tooltip placement="top" effect="light" v-if="user.userNameNeedTranslate != 1">
|
|
<el-tooltip placement="top" effect="light" v-if="user.userNameNeedTranslate != 1">
|
|
<div slot="content" style="width:780px">{{addForm.userNames}}</div>
|
|
<div slot="content" style="width:780px">{{addForm.userNames}}</div>
|
|
- <el-input @focus="showChooseMembTree()" v-model="addForm.userNames"></el-input>
|
|
|
|
|
|
+ <el-input @focus="showChooseMembTree" v-model="addForm.userNames"></el-input>
|
|
</el-tooltip>
|
|
</el-tooltip>
|
|
|
|
|
|
<el-tooltip placement="top" effect="light" v-if="user.userNameNeedTranslate == 1">
|
|
<el-tooltip placement="top" effect="light" v-if="user.userNameNeedTranslate == 1">
|
|
@@ -527,7 +527,7 @@
|
|
<span v-if="index < addFormUserNames.length - 1">,</span>
|
|
<span v-if="index < addFormUserNames.length - 1">,</span>
|
|
</span>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
- <div @click="showChooseMembTree()" style="width: 800px;overflow:hidden;white-space:nowrap;height:40px;border: 1px solid #DCDFE6;border-radius: 4px;box-sizing: border-box;padding: 0 10px">
|
|
|
|
|
|
+ <div @click="showChooseMembTree" style="width: 800px;overflow:hidden;white-space:nowrap;height:40px;border: 1px solid #DCDFE6;border-radius: 4px;box-sizing: border-box;padding: 0 10px">
|
|
<template v-for="(item, index) in addFormUserNames">
|
|
<template v-for="(item, index) in addFormUserNames">
|
|
<template v-if="index <= 13">
|
|
<template v-if="index <= 13">
|
|
<TranslationOpenDataText type='userName' :openid='item'></TranslationOpenDataText>
|
|
<TranslationOpenDataText type='userName' :openid='item'></TranslationOpenDataText>
|
|
@@ -538,29 +538,6 @@
|
|
</div>
|
|
</div>
|
|
</el-tooltip>
|
|
</el-tooltip>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item label="项目参与部门">
|
|
|
|
- <template v-if="user.userNameNeedTranslate != 1">
|
|
|
|
- <div slot="content" style="width:780px">{{addForm.deptIdNames}}</div>
|
|
|
|
- <el-input @focus="showChooseMembTree('multipleDepartmentsSelected')" v-model="addForm.deptIdNames"></el-input>
|
|
|
|
- </template>
|
|
|
|
- <template v-if="user.userNameNeedTranslate == 1">
|
|
|
|
- <div slot="content" style="max-width: 780px;max-height: 400px;overflow-y: auto;">
|
|
|
|
- <span v-for="(item, index) in deptIdNames" :key="index">
|
|
|
|
- <TranslationOpenDataText type='userName' :openid='item'></TranslationOpenDataText>
|
|
|
|
- <span v-if="index < deptIdNames.length - 1">,</span>
|
|
|
|
- </span>
|
|
|
|
- </div>
|
|
|
|
- <div @click="showChooseMembTree('multipleDepartmentsSelected')" style="width: 800px;overflow:hidden;white-space:nowrap;height:40px;border: 1px solid #DCDFE6;border-radius: 4px;box-sizing: border-box;padding: 0 10px">
|
|
|
|
- <template v-for="(item, index) in deptIdNames">
|
|
|
|
- <template v-if="index <= 13">
|
|
|
|
- <TranslationOpenDataText type='userName' :openid='item'></TranslationOpenDataText>
|
|
|
|
- <span v-if="index < deptIdNames.length - 1">,</span>
|
|
|
|
- <span v-if="(deptIdNames || []).length > 13 && index == 13">...</span>
|
|
|
|
- </template>
|
|
|
|
- </template>
|
|
|
|
- </div>
|
|
|
|
- </template>
|
|
|
|
- </el-form-item>
|
|
|
|
<el-form-item :label="$t('projectmanager')" :class="title == $t('newproject') && user.companyId == 936 ? 'wpgCssClass' : ''" v-if="user.company.nonProjectSimple == 0 || (user.company.nonProjectSimple == 1 && addForm.isPublic == 0)">
|
|
<el-form-item :label="$t('projectmanager')" :class="title == $t('newproject') && user.companyId == 936 ? 'wpgCssClass' : ''" v-if="user.company.nonProjectSimple == 0 || (user.company.nonProjectSimple == 1 && addForm.isPublic == 0)">
|
|
<el-select v-if="user.userNameNeedTranslate != 1" v-model="addForm.inchargerId" filterable :placeholder="$t('defaultText.pleaseChoose')" style="width:32%;" :disabled="canOnlyModParticipator || projectManagerEdit">
|
|
<el-select v-if="user.userNameNeedTranslate != 1" v-model="addForm.inchargerId" filterable :placeholder="$t('defaultText.pleaseChoose')" style="width:32%;" :disabled="canOnlyModParticipator || projectManagerEdit">
|
|
<el-option v-for="item in participator" :key="item.id" :label="item.name" :value="item.id">
|
|
<el-option v-for="item in participator" :key="item.id" :label="item.name" :value="item.id">
|
|
@@ -1252,7 +1229,7 @@
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
|
|
<!-- 按部门选择人员 -->
|
|
<!-- 按部门选择人员 -->
|
|
- <el-dialog :title="originallyDeptMembDataFlag == 'multipleDepartmentsSelected' ? '选择部门' : $t('selectingParticipants')" :visible.sync="chooseParticipVisible" :close-on-click-modal="false" customClass="customWidth" width="500px">
|
|
|
|
|
|
+ <el-dialog :title="$t('selectingParticipants')" :visible.sync="chooseParticipVisible" :close-on-click-modal="false" customClass="customWidth" width="500px">
|
|
<!-- <el-input style="width:100%" v-model="filterName" placeholder="请输入姓名搜索" @change="findUserInTree"></el-input> -->
|
|
<!-- <el-input style="width:100%" v-model="filterName" placeholder="请输入姓名搜索" @change="findUserInTree"></el-input> -->
|
|
<div v-if="user.userNameNeedTranslate == '1'">
|
|
<div v-if="user.userNameNeedTranslate == '1'">
|
|
<el-input :placeholder="$t('pleaseentercontent')" v-model.trim="filterText" class="input-with-select" @keyup.enter.native="echartDepartment()">
|
|
<el-input :placeholder="$t('pleaseentercontent')" v-model.trim="filterText" class="input-with-select" @keyup.enter.native="echartDepartment()">
|
|
@@ -1286,7 +1263,7 @@
|
|
</el-tree>
|
|
</el-tree>
|
|
</el-scrollbar>
|
|
</el-scrollbar>
|
|
</div>
|
|
</div>
|
|
- <div v-if="originallyDeptMembDataFlag != 'multipleDepartmentsSelected'">{{ $t('btn.choose') }} {{chosenMembCount}} {{ $t('other.people') }}</div>
|
|
|
|
|
|
+ <div>{{ $t('btn.choose') }} {{chosenMembCount}} {{ $t('other.people') }}</div>
|
|
<div slot="footer" class="dialog-footer">
|
|
<div slot="footer" class="dialog-footer">
|
|
<el-button @click="chooseParticipVisible = false" >{{ $t('btn.cancel') }}</el-button>
|
|
<el-button @click="chooseParticipVisible = false" >{{ $t('btn.cancel') }}</el-button>
|
|
<el-button type="primary" @click="chooseParticip()" >{{ $t('btn.determine') }}</el-button>
|
|
<el-button type="primary" @click="chooseParticip()" >{{ $t('btn.determine') }}</el-button>
|
|
@@ -1931,8 +1908,7 @@ a {
|
|
code: [{ required: true, message: this.$t('qing-shu-ru-bian-hao'), trigger: "blur" }],
|
|
code: [{ required: true, message: this.$t('qing-shu-ru-bian-hao'), trigger: "blur" }],
|
|
projectStageName: [{ required: true, message: this.$t('pleaseentername'), trigger: "blur" }],
|
|
projectStageName: [{ required: true, message: this.$t('pleaseentername'), trigger: "blur" }],
|
|
projectLevelName: [{ required: true, message: this.$t('pleaseentername'), trigger: "blur" }],
|
|
projectLevelName: [{ required: true, message: this.$t('pleaseentername'), trigger: "blur" }],
|
|
- deptId: [{ required: true, message: this.$t('qingXuanZeSuoShuBuMen'), trigger: "blur" }],
|
|
|
|
- projectMainId: [{ required: JSON.parse(sessionStorage.getItem("user")).companyId == 4811, message: '请选择', trigger: "change" }]
|
|
|
|
|
|
+ deptId: [{ required: true, message: this.$t('qingXuanZeSuoShuBuMen'), trigger: "blur" }]
|
|
},
|
|
},
|
|
ause: [],
|
|
ause: [],
|
|
auseList: [],
|
|
auseList: [],
|
|
@@ -2096,10 +2072,7 @@ a {
|
|
participatorValue: [],
|
|
participatorValue: [],
|
|
batchChangeStageDialogVisible: false,
|
|
batchChangeStageDialogVisible: false,
|
|
batchChangeStageLoading: false,
|
|
batchChangeStageLoading: false,
|
|
- batchProjectTaskParticipantVisible: false,
|
|
|
|
- originallyDeptMembData: [],
|
|
|
|
- originallyDeptMembDataTwo: [],
|
|
|
|
- originallyDeptMembDataFlag: 'personnel'
|
|
|
|
|
|
+ batchProjectTaskParticipantVisible: false
|
|
};
|
|
};
|
|
},
|
|
},
|
|
// 过滤器
|
|
// 过滤器
|
|
@@ -3958,33 +3931,14 @@ a {
|
|
this.chosenMembCount = list.length;
|
|
this.chosenMembCount = list.length;
|
|
},
|
|
},
|
|
|
|
|
|
- showChooseMembTree(type = false) {
|
|
|
|
- if(!type) {
|
|
|
|
- this.originallyDeptMembDataFlag = 'personnel'
|
|
|
|
- this.deptMembData = JSON.parse(JSON.stringify(this.originallyDeptMembDataTwo))
|
|
|
|
- this.allMembData = JSON.parse(JSON.stringify(this.originallyDeptMembDataTwo))
|
|
|
|
- console.log(this.deptMembData, '<=== this.deptMembData')
|
|
|
|
- setTimeout(()=>{
|
|
|
|
- const numberArray = this.addForm.userId
|
|
|
|
- this.$refs.chooseMembTree.setCheckedKeys([...numberArray])
|
|
|
|
- }, 500)
|
|
|
|
- } else {
|
|
|
|
- this.originallyDeptMembDataFlag = type
|
|
|
|
- this.deptMembData = JSON.parse(JSON.stringify(this.originallyDeptMembData))
|
|
|
|
- this.allMembData = JSON.parse(JSON.stringify(this.originallyDeptMembData))
|
|
|
|
- setTimeout(()=>{
|
|
|
|
- const numberArray = this.addForm.deptIds
|
|
|
|
- this.$refs.chooseMembTree.setCheckedKeys([...numberArray])
|
|
|
|
- }, 500)
|
|
|
|
- }
|
|
|
|
- // this.deptMembData = JSON.parse(JSON.stringify(this.allMembData))
|
|
|
|
-
|
|
|
|
|
|
+ showChooseMembTree() {
|
|
|
|
+ this.deptMembData = JSON.parse(JSON.stringify(this.allMembData))
|
|
this.chosenMembCount = this.participator.length;
|
|
this.chosenMembCount = this.participator.length;
|
|
this.chooseParticipVisible = true;
|
|
this.chooseParticipVisible = true;
|
|
this.filterText = ''
|
|
this.filterText = ''
|
|
this.wxFilterText = ''
|
|
this.wxFilterText = ''
|
|
if(this.user.userNameNeedTranslate == 1) {
|
|
if(this.user.userNameNeedTranslate == 1) {
|
|
- this.getDepartment(type)
|
|
|
|
|
|
+ this.getDepartment()
|
|
}
|
|
}
|
|
let that = this
|
|
let that = this
|
|
setTimeout(()=>{
|
|
setTimeout(()=>{
|
|
@@ -4026,38 +3980,31 @@ a {
|
|
|
|
|
|
//确定选择参与人
|
|
//确定选择参与人
|
|
chooseParticip() {
|
|
chooseParticip() {
|
|
|
|
+ this.chooseParticipVisible = false;
|
|
var chosenList = this.$refs.chooseMembTree.getCheckedNodes();
|
|
var chosenList = this.$refs.chooseMembTree.getCheckedNodes();
|
|
- if(this.originallyDeptMembDataFlag == 'personnel') {
|
|
|
|
- if(this.searchPersonnelFlg) {
|
|
|
|
- chosenList = [...chosenList, ...this.chosenListBackup]
|
|
|
|
- }
|
|
|
|
- this.chosenMembList = chosenList.filter(item=>item.isUser == 1);
|
|
|
|
- this.addForm.userNames = '';
|
|
|
|
- this.addFormUserNames = []
|
|
|
|
- this.addForm.userId = [];
|
|
|
|
- this.participator = [];
|
|
|
|
- for (var i=0;i<this.chosenMembList.length; i++) {
|
|
|
|
- this.addForm.userId.push(this.chosenMembList[i].id);
|
|
|
|
- this.addForm.userNames += this.chosenMembList[i].label+',';
|
|
|
|
- this.addFormUserNames.push(this.chosenMembList[i].label)
|
|
|
|
- var item = {id:this.chosenMembList[i].id, name:this.chosenMembList[i].label};
|
|
|
|
- this.participator.push(item);
|
|
|
|
- }
|
|
|
|
- if (this.addForm.userNames.length > 0) {
|
|
|
|
- this.addForm.userNames = this.addForm.userNames.substring(0, this.addForm.userNames.length-1);
|
|
|
|
- // this.addFormUserNames = this.addFormUserNames.substring(0, this.addFormUserNames.length-1);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- console.log(this.addForm.userId)
|
|
|
|
- console.log(this.addForm.userNames)
|
|
|
|
- console.log(this.addFormUserNames)
|
|
|
|
- } else {
|
|
|
|
- this.addForm.deptIds = chosenList.map(item => item.id)
|
|
|
|
- this.addForm.deptIdNames = chosenList.map(item => item.label)
|
|
|
|
|
|
+ if(this.searchPersonnelFlg) {
|
|
|
|
+ chosenList = [...chosenList, ...this.chosenListBackup]
|
|
}
|
|
}
|
|
-
|
|
|
|
- this.chooseParticipVisible = false;
|
|
|
|
-
|
|
|
|
|
|
+ this.chosenMembList = chosenList.filter(item=>item.isUser == 1);
|
|
|
|
+ this.addForm.userNames = '';
|
|
|
|
+ this.addFormUserNames = []
|
|
|
|
+ this.addForm.userId = [];
|
|
|
|
+ this.participator = [];
|
|
|
|
+ for (var i=0;i<this.chosenMembList.length; i++) {
|
|
|
|
+ this.addForm.userId.push(this.chosenMembList[i].id);
|
|
|
|
+ this.addForm.userNames += this.chosenMembList[i].label+',';
|
|
|
|
+ this.addFormUserNames.push(this.chosenMembList[i].label)
|
|
|
|
+ var item = {id:this.chosenMembList[i].id, name:this.chosenMembList[i].label};
|
|
|
|
+ this.participator.push(item);
|
|
|
|
+ }
|
|
|
|
+ if (this.addForm.userNames.length > 0) {
|
|
|
|
+ this.addForm.userNames = this.addForm.userNames.substring(0, this.addForm.userNames.length-1);
|
|
|
|
+ // this.addFormUserNames = this.addFormUserNames.substring(0, this.addFormUserNames.length-1);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ console.log(this.addForm.userId)
|
|
|
|
+ console.log(this.addForm.userNames)
|
|
|
|
+ console.log(this.addFormUserNames)
|
|
},
|
|
},
|
|
|
|
|
|
//选中相关领导
|
|
//选中相关领导
|
|
@@ -4080,23 +4027,18 @@ a {
|
|
// },
|
|
// },
|
|
|
|
|
|
// 获取部门列表
|
|
// 获取部门列表
|
|
- getDepartment(type = false) {
|
|
|
|
|
|
+ getDepartment() {
|
|
this.http.post("/department/listAllMemb", {},
|
|
this.http.post("/department/listAllMemb", {},
|
|
res => {
|
|
res => {
|
|
if (res.code == "ok") {
|
|
if (res.code == "ok") {
|
|
- this.originallyDeptMembData = JSON.parse(JSON.stringify(res.data))
|
|
|
|
var list = res.data;
|
|
var list = res.data;
|
|
//设置员工到部门下面
|
|
//设置员工到部门下面
|
|
this.setUserToDept(list);
|
|
this.setUserToDept(list);
|
|
- this.originallyDeptMembDataTwo = JSON.parse(JSON.stringify(list))
|
|
|
|
- if(!type) {
|
|
|
|
- //用于筛选过滤
|
|
|
|
- this.deptMembData = list;
|
|
|
|
- } else {
|
|
|
|
- this.deptMembData = JSON.parse(JSON.stringify(res.data))
|
|
|
|
- }
|
|
|
|
- this.allMembData = JSON.parse(JSON.stringify(this.deptMembData));
|
|
|
|
|
|
+ this.deptMembData = list;
|
|
|
|
+ console.log(this.deptMembData, '看看数据')
|
|
|
|
|
|
|
|
+ //用于筛选过滤
|
|
|
|
+ this.allMembData = JSON.parse(JSON.stringify(this.deptMembData));
|
|
} else {
|
|
} else {
|
|
this.$message({
|
|
this.$message({
|
|
message: res.msg,
|
|
message: res.msg,
|
|
@@ -5104,9 +5046,7 @@ a {
|
|
bu: [],
|
|
bu: [],
|
|
manDay:0,
|
|
manDay:0,
|
|
fromOutside: 0,
|
|
fromOutside: 0,
|
|
- // deptId: [],
|
|
|
|
- deptIds: [],
|
|
|
|
- deptIdNames: []
|
|
|
|
|
|
+ // deptId: []
|
|
}
|
|
}
|
|
this.estimatedWorkTime=''
|
|
this.estimatedWorkTime=''
|
|
for(var i in this.dataList) {
|
|
for(var i in this.dataList) {
|
|
@@ -5243,9 +5183,7 @@ a {
|
|
manDay:item.manDay==null?0:item.manDay,
|
|
manDay:item.manDay==null?0:item.manDay,
|
|
manDayStartDate:item.manDayStartDate,
|
|
manDayStartDate:item.manDayStartDate,
|
|
manDayDisable:item.manDay,
|
|
manDayDisable:item.manDay,
|
|
- fromOutside:item.fromOutside,
|
|
|
|
- deptIds: (item.departmentList || []).map(item => item.departmentId),
|
|
|
|
- deptIdNames: (item.departmentList || []).map(item => item.departmentName)
|
|
|
|
|
|
+ fromOutside:item.fromOutside
|
|
}
|
|
}
|
|
for(var i in this.dataList) {
|
|
for(var i in this.dataList) {
|
|
var str = 'plate' + (+i + 1)
|
|
var str = 'plate' + (+i + 1)
|
|
@@ -5663,7 +5601,6 @@ a {
|
|
if (this.addForm.reviwerId) {
|
|
if (this.addForm.reviwerId) {
|
|
formData.append('reviwerId', this.addForm.reviwerId);
|
|
formData.append('reviwerId', this.addForm.reviwerId);
|
|
}
|
|
}
|
|
- formData.append('deptIds', this.addForm.deptIds.join(','))
|
|
|
|
this.http.uploadFile(this.port.project.add,formData,
|
|
this.http.uploadFile(this.port.project.add,formData,
|
|
res => {
|
|
res => {
|
|
this.addLoading = false;
|
|
this.addLoading = false;
|