|
|
@@ -4,6 +4,7 @@
|
|
|
<el-button @click="getCurrentWeek(-7)" size="small"><<</el-button>
|
|
|
<el-button @click="getCurrentWeek(0)" size="small">{{ $t('time.thisWeek') }}</el-button>
|
|
|
<el-button @click="getCurrentWeek(7)" size="small">>></el-button>
|
|
|
+ <el-button @click="refreshCardTime()" size="small" style="margin-left:20px;" :loading="isRefreshing">刷新考勤</el-button>
|
|
|
</div>
|
|
|
<div class="weekcen flexColumn" v-loading="submitLoading">
|
|
|
<div class="flexColumnAuto flex1">
|
|
|
@@ -12,26 +13,48 @@
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{ scope.row.dateTime }}</span>
|
|
|
(<span>{{ scope.row.weekDayTxt }}</span>)
|
|
|
+ <span v-if="scope.row.time && scope.row.time.askLeaveTime > 0" style="color:green;">请假{{scope.row.time.askLeaveTime}}h</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column :label="$t('other.project')" width="220">
|
|
|
+ <el-table-column :label="$t('other.project')" >
|
|
|
<template slot-scope="scope">
|
|
|
<el-select v-model="scope.row.projectId" size="small" :placeholder="$t('defaultText.pleaseSelectSnItem')" clearable
|
|
|
@change="changeProject(scope.row.projectId, scope.$index)" filterable
|
|
|
:disabled="scope.row.state == 1 || scope.row.state == 0 || !scope.row.canFill">
|
|
|
- <el-option v-for="item in projectList" :key="item.id" :label="item.projectName + '\u3000' + item.projectCode"
|
|
|
+ <el-option v-for="item in projectList" :key="item.id" :label="item.projectName"
|
|
|
:value="item.id">
|
|
|
- <span style="float: left; color: #8492a6; font-size: 13px;">{{ item.projectCode }}</span>
|
|
|
- <span style="float: right;padding-left: 10px">{{ item.projectName }}</span>
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="content" :label="$t('gongZuoNeiRong')">
|
|
|
+ <el-table-column label="研发工时" >
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input size="small" type="textarea" :rows="2" v-model="scope.row.content"
|
|
|
- :disabled="scope.row.state == 1 || scope.row.state == 0 || !scope.row.canFill"
|
|
|
- resize="none"></el-input>
|
|
|
+ <el-select v-model="scope.row.degreeId" size="small" placeholder="请选择" filterable
|
|
|
+ :disabled="scope.row.state == 1 || scope.row.state == 0 || !scope.row.canFill">
|
|
|
+ <el-option v-for="item in scope.row.wuduList" :key="item.id" :label="item.name"
|
|
|
+ :value="item.id">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column :label="$t('fenZu')" v-if="!user.timeType.hideGroup">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-select v-model="scope.row.groupId" size="small" :placeholder="$t('selectagroup')"
|
|
|
+ :disabled="scope.row.state == 1 || scope.row.state == 0 || !scope.row.canFill">
|
|
|
+ <el-option v-for="item in scope.row.taskGroups" :key="item.id" :label="item.name"
|
|
|
+ :value="item.id">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="content" label="工作内容" width="300">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <div>
|
|
|
+ <el-input size="small" type="textarea" :rows="2" v-model="scope.row.content"
|
|
|
+ :disabled="scope.row.state == 1 || scope.row.state == 0 || !scope.row.canFill"
|
|
|
+ resize="none" :maxlength="user.companyId == wuqiId && 30" :show-word-limit="user.companyId == wuqiId" :placeholder="user.companyId == wuqiId ? '所在项目负责哪一模块(可重复填写),无需涉及技术细节。' : '' ">
|
|
|
+ </el-input>
|
|
|
+ </div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="workingTime" :label="$t('shiJianXiaoShi')" width="160">
|
|
|
@@ -40,7 +63,15 @@
|
|
|
:disabled="scope.row.state == 1 || scope.row.state == 0 || !scope.row.canFill"></el-input-number>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="state" :label="$t('state.states')" width="140" fixed="right">
|
|
|
+ <!-- <el-table-column prop="projectAuditorId" :label="$t('approver')" width="160">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span v-if="user.userNameNeedTranslate != '1'">{{ auditorNameFun(scope.row) }}</span>
|
|
|
+ <span v-if="user.userNameNeedTranslate == '1'">
|
|
|
+ <TranslationOpenDataText type='userName' :openid='auditorNameFun(scope.row)'></TranslationOpenDataText>
|
|
|
+ </span>
|
|
|
+ </template>
|
|
|
+ </el-table-column> -->
|
|
|
+ <el-table-column prop="state" label="状态" width="140" fixed="right">
|
|
|
<template slot-scope="scope">
|
|
|
<div class="controls">
|
|
|
<el-tag v-if="scope.row.state == 0" type="warning">{{ $t('daiShen') }}</el-tag>
|
|
|
@@ -57,6 +88,28 @@
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
</div>
|
|
|
+ <div class="weeklySummary">
|
|
|
+ <div class="weekly"><span style="font: size 14px;">周报</span>
|
|
|
+ <br/>
|
|
|
+ <el-upload
|
|
|
+ class="upload-demo"
|
|
|
+ :on-preview="handlePreview"
|
|
|
+ :on-remove="handleRemove"
|
|
|
+ :before-remove="beforeRemove"
|
|
|
+ :http-request="uploadFile"
|
|
|
+ multiple
|
|
|
+ :limit="5"
|
|
|
+ :on-exceed="handleExceed"
|
|
|
+ :file-list="fileList">
|
|
|
+ <el-button size="small" type="primary" :loading="upLoading">上传附件</el-button>
|
|
|
+ <div slot="tip" class="el-upload__tip">附件大小不超过10M</div>
|
|
|
+ </el-upload>
|
|
|
+ </div>
|
|
|
+ <el-input type="textarea" :autosize="{ minRows: 4, maxRows: 6}" maxlength="1000" show-word-limit
|
|
|
+ :placeholder="'本周主要工作回顾、遗留事宜的初步处理方案和预计完成时间、下周工作的计划,尽可能详细。'"
|
|
|
+ v-model="summaryContent" style="flex: 1;">
|
|
|
+ </el-input>
|
|
|
+ </div>
|
|
|
<div class="weeklyCustomization_btn">
|
|
|
<el-button @click="handleClose()">{{ $t('quXiao') }}</el-button>
|
|
|
<el-button @click="submitWeekData(1)">{{ $t('zanCun') }}</el-button>
|
|
|
@@ -81,6 +134,10 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ isRefreshing: false,
|
|
|
+ serverFileList:[],
|
|
|
+ upLoading: false,
|
|
|
+ fileList:[],
|
|
|
summaryContent: null,
|
|
|
weekTableData: [],
|
|
|
projectList: [],
|
|
|
@@ -88,6 +145,7 @@ export default {
|
|
|
submitLoading: false,
|
|
|
permissions: JSON.parse(sessionStorage.getItem("permissions")),
|
|
|
user: JSON.parse(sessionStorage.getItem("user")),
|
|
|
+ wuqiId: '1071'
|
|
|
}
|
|
|
},
|
|
|
computed: {},
|
|
|
@@ -99,23 +157,100 @@ export default {
|
|
|
this.getProjectList()
|
|
|
},
|
|
|
methods: {
|
|
|
+ async refreshCardTime() {
|
|
|
+ this.isRefreshing = true;
|
|
|
+ var dateArray = this.weekTableData.map(item=>item.dateTime);
|
|
|
+ console.log(dateArray);
|
|
|
+ let { data } = await this.getData('/user-corpwx-time/refreshWeeklyCardTime', {dateArray: JSON.stringify(dateArray)})
|
|
|
+ this.isRefreshing = false;
|
|
|
+ for (var i=0;i<this.weekTableData.length; i++) {
|
|
|
+ for (var j=0;j<data.length; j++) {
|
|
|
+ if (data[j].createDate == this.weekTableData[i].dateTime) {
|
|
|
+ this.weekTableData[i].time = data[j]
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ handleRemove(file, fileList) {
|
|
|
+ console.log(file, fileList);
|
|
|
+ console.log('删除的文件名=='+file.name);
|
|
|
+ console.log('服务器文件数组=='+this.serverFileList);
|
|
|
+ for (var i=0;i<this.serverFileList.length; i++) {
|
|
|
+ if (this.serverFileList[i].originName == file.name) {
|
|
|
+ this.serverFileList.splice(i,1);
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ handlePreview(file) {
|
|
|
+ console.log(file);
|
|
|
+ },
|
|
|
+ handleExceed(files, fileList) {
|
|
|
+ this.$message.warning(`最多上传5个文件`);
|
|
|
+ },
|
|
|
+ beforeRemove(file, fileList) {
|
|
|
+ return this.$confirm(`确定移除 ${ file.name }?`);
|
|
|
+ },
|
|
|
+ //上传
|
|
|
+ uploadFile(params) {
|
|
|
+ this.upLoading = true;
|
|
|
+ var fileObj = params.file;
|
|
|
+ var form = new FormData();
|
|
|
+ form.append("multipartFile", fileObj);
|
|
|
+ this.http.uploadFile('/common/uploadFile', form , res => {
|
|
|
+ this.upLoading = false;
|
|
|
+ if (res.code == "ok") {
|
|
|
+ this.$message({
|
|
|
+ message: this.$t('uploadedsuccessfully'),
|
|
|
+ type: 'success'
|
|
|
+ });
|
|
|
+ this.serverFileList.push({'originName':fileObj.name,'serverName':res.data});
|
|
|
+ } else {
|
|
|
+ this.$message({
|
|
|
+ message: res.msg,
|
|
|
+ type: 'error'
|
|
|
+ });
|
|
|
+ }
|
|
|
+ console.log(this.fileList);
|
|
|
+ }, error => {
|
|
|
+ this.upLoading = false;
|
|
|
+ this.$message({
|
|
|
+ message: error,
|
|
|
+ type: 'error'
|
|
|
+ });
|
|
|
+ })
|
|
|
+ },
|
|
|
+
|
|
|
+ //下载
|
|
|
+ dowloadFile(row) {
|
|
|
+ this.http.post(this.port.project.dowloadFile, {
|
|
|
+ id: row.id
|
|
|
+ } , res => {
|
|
|
+ this.getOperList();
|
|
|
+ }, error => {
|
|
|
+ })
|
|
|
+ },
|
|
|
// 提交与暂存
|
|
|
submitWeekData(draft) { // draft 暂存(1)提交(0)
|
|
|
const newWeekData = cloneDeep(this.weekTableData)
|
|
|
-
|
|
|
+ console.log('总文件数=='+this.serverFileList.length);
|
|
|
+ console.log(this.serverFileList);
|
|
|
let strArr = this.judgmentData(newWeekData)
|
|
|
const { allday } = this.user.timeType // 系统设置的每日工作时间
|
|
|
- // if (strArr.length > 0) {
|
|
|
- // this.$message({
|
|
|
- // message: `【${strArr.join('、')}】`+this.$t('tianXieGongShiHeJiFei')+` ${allday}`+ this.$t('time.hour'),
|
|
|
- // type: "error"
|
|
|
- // });
|
|
|
- // return
|
|
|
- // }
|
|
|
+ if (strArr.length > 0) {
|
|
|
+ this.$message({
|
|
|
+ message: `【${strArr.join('、')}】`+'每日填写工时合计不可超过'+` ${allday}`+ this.$t('time.hour'),
|
|
|
+ type: "error"
|
|
|
+ });
|
|
|
+ return
|
|
|
+ }
|
|
|
|
|
|
let formData = new FormData();
|
|
|
formData.append("draft", draft);
|
|
|
formData.append('summary', this.summaryContent);
|
|
|
+ if (this.serverFileList.length > 0) {
|
|
|
+ formData.append('weeklyAttachment', JSON.stringify(this.serverFileList));
|
|
|
+ }
|
|
|
let fixation = {
|
|
|
id: -1,
|
|
|
projectId: '',
|
|
|
@@ -126,14 +261,18 @@ export default {
|
|
|
multiWorktime: 0,
|
|
|
content: '',
|
|
|
isOvertime: 0,
|
|
|
+ // professionProgress: [],
|
|
|
+ groupId: '',
|
|
|
+ stage: '',
|
|
|
createDate: '',
|
|
|
+ projectAuditorId: '',
|
|
|
basecostId: 0,
|
|
|
degreeId: -1,
|
|
|
customData: 0,
|
|
|
customText: '-',
|
|
|
}
|
|
|
|
|
|
- let arr = newWeekData
|
|
|
+ const arr = newWeekData
|
|
|
.filter(data => data.projectId)
|
|
|
.map(data => ({
|
|
|
...fixation,
|
|
|
@@ -144,18 +283,35 @@ export default {
|
|
|
workingTime: data.workingTime,
|
|
|
groupId: data.groupId,
|
|
|
id: data.id || -1,
|
|
|
+ degreeId: data.degreeId || -1
|
|
|
}));
|
|
|
-
|
|
|
- arr.forEach(item => {
|
|
|
- delete item.groupId
|
|
|
- })
|
|
|
-
|
|
|
+ let flag = false
|
|
|
arr.forEach(item => {
|
|
|
+ if(item.projectId && !item.content && this.user.companyId == this.wuqiId) {
|
|
|
+ this.$message({
|
|
|
+ type: 'warning',
|
|
|
+ message: `${item.createDate} 日报请填写完整`,
|
|
|
+ })
|
|
|
+ flag = true
|
|
|
+ return
|
|
|
+ } else {
|
|
|
+ flag = false
|
|
|
+ }
|
|
|
Object.entries(item).forEach(([key, value]) => {
|
|
|
formData.append(key, value);
|
|
|
});
|
|
|
});
|
|
|
-
|
|
|
+ const hasProjectIdValue = arr.some(obj => obj.projectId && obj.projectId !== '');
|
|
|
+ if(hasProjectIdValue && !this.summaryContent && this.user.companyId == this.wuqiId) {
|
|
|
+ this.$message({
|
|
|
+ type: 'warning',
|
|
|
+ message: `请填写周报`,
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if(flag) {
|
|
|
+ return
|
|
|
+ }
|
|
|
this.submitLoading = true
|
|
|
this.http.uploadFile(this.port.report.editPort, formData,
|
|
|
res => {
|
|
|
@@ -185,7 +341,6 @@ export default {
|
|
|
// 判断是否小于系统设置的每日工作时间
|
|
|
judgmentData(data) {
|
|
|
const { allday } = this.user.timeType // 系统设置的每日工作时间
|
|
|
- console.log(allday, '<======= 填写日报时长allday')
|
|
|
const result = [];
|
|
|
data.forEach((item) => {
|
|
|
const date = item.dateTime;
|
|
|
@@ -201,7 +356,7 @@ export default {
|
|
|
const strArr = result
|
|
|
.filter((arr) => arr[0].projectId)
|
|
|
.filter(
|
|
|
- (arr) => arr.reduce((sum, item) => sum + (+item.workingTime || 0), 0) != allday
|
|
|
+ (arr) => arr.reduce((sum, item) => sum + (+item.workingTime || 0), 0) > allday
|
|
|
)
|
|
|
.map((arr) => arr[0].dateTime);
|
|
|
|
|
|
@@ -212,9 +367,18 @@ export default {
|
|
|
this.$set(this.weekTableData[index], 'projectAuditorId', '')
|
|
|
this.$set(this.weekTableData[index], 'projectAuditorName', '')
|
|
|
this.$set(this.weekTableData[index], 'groupId', '')
|
|
|
- // if (projectId) {
|
|
|
- // this.getProjectGroup(projectId, index)
|
|
|
- // }
|
|
|
+ this.$set(this.weekTableData[index], 'projectName', '')
|
|
|
+ if (projectId) {
|
|
|
+ var pName = this.projectList.filter(p=>p.id == projectId)[0].projectName + '-';
|
|
|
+ this.$set(this.weekTableData[index], 'projectName', pName)
|
|
|
+ this.getTaskGroups(projectId, index);
|
|
|
+ // 获取项目相关的维度
|
|
|
+ // domain.degreeId = null
|
|
|
+ this.$set(this.weekTableData[index],'degreeId',null)
|
|
|
+ this.$set(this.weekTableData[index],'multiDegrIdArray',null)
|
|
|
+ this.dimension(projectId, index);
|
|
|
+
|
|
|
+ }
|
|
|
},
|
|
|
// 分组切换事件
|
|
|
changeGroup(groupId, groupList, index) {
|
|
|
@@ -239,6 +403,16 @@ export default {
|
|
|
let { data } = await this.getData('/report/getWeeklyFillReportData', { targetDate: this.nowTime })
|
|
|
console.log(JSON.parse(JSON.stringify(data)), '<===== 处理之前的')
|
|
|
this.summaryContent = data.summary;
|
|
|
+ this.serverFileList = data.weeklyAttachment?JSON.parse(data.weeklyAttachment):[];
|
|
|
+ //重置文件列表
|
|
|
+ this.fileList = [];
|
|
|
+ if (this.serverFileList) {
|
|
|
+ for (var i=0;i<this.serverFileList.length; i++) {
|
|
|
+ var item = this.serverFileList[i];
|
|
|
+ this.fileList.push({name:item.originName, url:this.serverFileList[i].serverName});
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
data.dateList.forEach(dateItem => {
|
|
|
const reportList = dateItem.reportList;
|
|
|
reportList.forEach(report => {
|
|
|
@@ -253,14 +427,19 @@ export default {
|
|
|
taskGroups[0].inchargerId = report.projectAuditorId;
|
|
|
taskGroups[0].inchargerName = report.projectAuditorName;
|
|
|
}
|
|
|
+ if (report.degreeId == -1) {
|
|
|
+ report.degreeId = null;
|
|
|
+ }
|
|
|
+ report.wuduList = report.degreeList;
|
|
|
});
|
|
|
});
|
|
|
console.log(data, '<===== 处理之后的')
|
|
|
const { dateList, projectList, sumTimeList, cardTimeList } = data;
|
|
|
const weekTableData = dateList.flatMap(date => {
|
|
|
- const { weekDayTxt, date: dateTime, reportList, canFill } = date;
|
|
|
- const reports = reportList.map(report => ({ ...report, weekDayTxt, dateTime, canFill }));
|
|
|
- return reports.length > 0 ? reports : [{ weekDayTxt, dateTime, canFill }];
|
|
|
+ const { weekDayTxt, date: dateTime, reportList, canFill, time } = date;
|
|
|
+ const reports = reportList.map(report => ({ ...report, weekDayTxt, dateTime,time, canFill,projectName:projectList.filter(p=>p.id == report.projectId)[0].projectName }));
|
|
|
+
|
|
|
+ return reports.length > 0 ? reports : [{ weekDayTxt, dateTime,time, canFill }];
|
|
|
});
|
|
|
let sumSet = new Set();
|
|
|
weekTableData.forEach(obj => {
|
|
|
@@ -276,27 +455,73 @@ export default {
|
|
|
this.projectList = data
|
|
|
},
|
|
|
// 获取项目下的分组
|
|
|
- // async getProjectGroup(projectId, index) {
|
|
|
- // const { isSubstitude } = this.weekParentData;
|
|
|
- // let { data } = await this.getData('/task-group/listProjectGroupAndAuditor', { projectId, isSubstitude: isSubstitude ? 1 : 0 })
|
|
|
- // if (data.length == 0) {
|
|
|
- // this.$message({
|
|
|
- // message: this.$t('fenZuWeiSheZhiQingLianXiGaiXiangMuGuanLiRenYuan'),
|
|
|
- // type: "error"
|
|
|
- // });
|
|
|
- // } else if (data.length == 1) {
|
|
|
- // this.$set(this.weekTableData[index], 'groupId', data[0].id)
|
|
|
- // this.$set(this.weekTableData[index], 'projectAuditorId', data[0].inchargerId)
|
|
|
- // this.$set(this.weekTableData[index], 'projectAuditorName', data[0].inchargerName)
|
|
|
- // if (!data[0].inchargerId) {
|
|
|
- // this.$message({
|
|
|
- // message: `【${data[0].name}】`+this.$t('fenZuWeiSheZhiShenPiRenQingLianXiGaiXiangMuGuanLiRenYuan'),
|
|
|
- // type: "error"
|
|
|
- // });
|
|
|
- // }
|
|
|
- // }
|
|
|
- // this.$set(this.weekTableData[index], 'taskGroups', data)
|
|
|
- // },
|
|
|
+ async getProjectGroup(projectId, index) {
|
|
|
+ const { isSubstitude } = this.weekParentData;
|
|
|
+ let { data } = await this.getData('/task-group/listProjectGroupAndAuditor', { projectId, isSubstitude: isSubstitude ? 1 : 0 })
|
|
|
+ if (data.length == 0) {
|
|
|
+ this.$message({
|
|
|
+ message: this.$t('fenZuWeiSheZhiQingLianXiGaiXiangMuGuanLiRenYuan'),
|
|
|
+ type: "error"
|
|
|
+ });
|
|
|
+ } else if (data.length == 1) {
|
|
|
+ this.$set(this.weekTableData[index], 'groupId', data[0].id)
|
|
|
+ this.$set(this.weekTableData[index], 'projectAuditorId', data[0].inchargerId)
|
|
|
+ this.$set(this.weekTableData[index], 'projectAuditorName', data[0].inchargerName)
|
|
|
+ if (!data[0].inchargerId) {
|
|
|
+ this.$message({
|
|
|
+ message: `【${data[0].name}】`+this.$t('fenZuWeiSheZhiShenPiRenQingLianXiGaiXiangMuGuanLiRenYuan'),
|
|
|
+ type: "error"
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.$set(this.weekTableData[index], 'taskGroups', data)
|
|
|
+ },
|
|
|
+ async getTaskGroups(projectId, index) {
|
|
|
+ const { isSubstitude } = this.weekParentData;
|
|
|
+ let { data } = await this.getData('/task-group/listMyJoinGroup', { projectId, isSubstitude: isSubstitude ? 1 : 0 })
|
|
|
+ if (data.length == 1) {
|
|
|
+ this.$set(this.weekTableData[index], 'groupId', data[0].id)
|
|
|
+ }
|
|
|
+ this.$set(this.weekTableData[index], 'taskGroups', data)
|
|
|
+ },
|
|
|
+ async dimension(projectId, index) {
|
|
|
+ const { isSubstitude } = this.weekParentData;
|
|
|
+ // let { data } = await this.getData('/task-group/listMyJoinGroup', { projectId, isSubstitude: isSubstitude ? 1 : 0 })
|
|
|
+ // if (data.length == 1) {
|
|
|
+ // this.$set(this.weekTableData[index], 'groupId', data[0].id)
|
|
|
+ // }
|
|
|
+ // this.$set(this.weekTableData[index], 'taskGroups', data);
|
|
|
+
|
|
|
+ if(projectId == '') {
|
|
|
+ return
|
|
|
+ }
|
|
|
+ var param = {
|
|
|
+ projectId: projectId,
|
|
|
+ };
|
|
|
+ // if (isSubstitude) {
|
|
|
+ // if (this.weekParentData.userId.length > 0) {
|
|
|
+ // param.targetUserId = this.weekParentData.userId[0];
|
|
|
+ // } else {
|
|
|
+ // this.weekParentData[index].wuduList = [];
|
|
|
+ // return;//暂未选择代填人,不获取数据
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ this.http.post('/project/getDegreeList',param,
|
|
|
+ res => {
|
|
|
+ if (res.code == "ok") {
|
|
|
+ // console.log("维度数据",res.data);
|
|
|
+ // this.workForm.domains[index].wuduList = res.data
|
|
|
+ this.$set(this.weekTableData[index], 'wuduList', res.data);
|
|
|
+ }
|
|
|
+ },
|
|
|
+ error => {
|
|
|
+ this.$message({
|
|
|
+ message: error,
|
|
|
+ type: "error"
|
|
|
+ });
|
|
|
+ }
|
|
|
+ );
|
|
|
+ },
|
|
|
// 插入一行
|
|
|
insertRow(index) {
|
|
|
this.weekTableData.splice(index + 1, 0, {
|
|
|
@@ -380,6 +605,21 @@ export default {
|
|
|
}
|
|
|
</script>
|
|
|
<style scoped lang='scss'>
|
|
|
+.weeklySummary {
|
|
|
+ width: 100%;
|
|
|
+ display: flex;
|
|
|
+ flex-direction: row;
|
|
|
+ align-items: center;
|
|
|
+ border: 1px solid #EBEEF5;
|
|
|
+ border-top: 0px;
|
|
|
+ padding: 10px 20px;
|
|
|
+ box-sizing: border-box;
|
|
|
+ .weekly {
|
|
|
+ padding: 0 20px;
|
|
|
+ font-size: 20px;
|
|
|
+ color: #909399;
|
|
|
+ }
|
|
|
+}
|
|
|
.flexColumn {
|
|
|
display: flex;
|
|
|
flex-direction: column;
|