-
+
+ 新建项目
@@ -44,13 +44,14 @@
- 查询
+ 查询
重置
-
删除
@@ -141,9 +142,9 @@ export default {
label: "项目状态",
type: "status",
callback: (value) => {
- let status = this.statusList.find(
- (ele) => ele.dictValue == value
- )?.dictLabel||'';
+ let status =
+ this.statusList.find((ele) => ele.dictValue == value)
+ ?.dictLabel || "";
let color = "#333";
switch (status) {
case "待启动":
@@ -201,12 +202,16 @@ export default {
path: "/project/detail",
});
},
- handleDemand(row){
+ handleDemand(row) {
this.$router.push({
path: "/demandManage",
- query: { id: row.projectId,projectName:row.projectName },
+ query: {
+ id: row.projectId,
+ projectName: row.projectName,
+ startDate: new Date(row.startDate).getTime(),
+ endDate: new Date(row.endDate).getTime(),
+ },
});
-
},
handleEdit(row) {
this.$router.push({
@@ -297,11 +302,11 @@ export default {
border: 1px solid #ccc;
padding-left: 10px;
border-radius: 4px;
- ::v-deep .el-form-item__label{
+ ::v-deep .el-form-item__label {
color: #999 !important;
}
}
-.formBtn{
+.formBtn {
border: none !important;
}
.demo-form-inline .el-form-item:last-child {
@@ -319,15 +324,14 @@ export default {
.form-item ::v-deep .el-input,
.form-item ::v-deep .el-select {
// width: 100%;
- input,select{
+ input,
+ select {
border: none !important;
-
}
}
.search-buttons {
white-space: nowrap;
-
}
::v-deep .operation-buttons .el-button {
diff --git a/src/views/worklog/components/leftMonth.vue b/src/views/worklog/components/leftMonth.vue
index aab1b74..4111e6b 100644
--- a/src/views/worklog/components/leftMonth.vue
+++ b/src/views/worklog/components/leftMonth.vue
@@ -177,7 +177,7 @@ export default {
}
tbody {
.hasLog {
- background: #a2c6f2;
+ background: #71afff;
border-radius: 50%;
color: #fff;
}
diff --git a/src/views/worklog/components/rightTable.vue b/src/views/worklog/components/rightTable.vue
index 1db0efe..944d1bd 100644
--- a/src/views/worklog/components/rightTable.vue
+++ b/src/views/worklog/components/rightTable.vue
@@ -112,7 +112,10 @@
:disabled="!scope.row.edit"
>
-
+
确认
@@ -342,13 +345,18 @@ export default {
edit: true,
};
this.computedTime(0);
- this.tableData.push(row);
+ if (this.workTimeList.length) this.tableData.push(row);
} else {
this.computedTime(row.workTime);
}
},
computedTime(time) {
let length = (this.hasTimeLong + (Number(time) || 0)).toFixed(1);
+ if (length <= 0) {
+ this.$modal.msgWarning("当日剩余工时为0");
+ this.workTimeList = [];
+ return;
+ }
this.workTimeList = new Array((length * 10) / 1)
.fill(0)
.map((ele, index) => {
@@ -356,12 +364,15 @@ export default {
});
},
getVersionList(val, row, isOpen) {
- if (!isOpen) row.versionId = "";
+ if (!isOpen) {
+ row.versionId = "";
+ row.demandId = "";
+ }
this.$nextTick(async () => {
const res = await demandApi.getVersionTree({
projectId: val,
userId: this.userId,
- demandStatusList: [2],
+ demandStatusList: [0, 1, 2, 3],
queryDate: this.selectDay,
});
this.versionList = res.data.filter((ele) => ele.type == 0);
@@ -398,8 +409,6 @@ export default {
watch: {
$route(to, from) {
if (this.$route.query.userId) {
- console.log(1234444);
-
this.init();
}
},
@@ -419,8 +428,7 @@ export default {
return this.projectList.filter(
(ele) =>
new Date(ele.startDate).getTime() <= now &&
- new Date(ele.endDate).getTime() >= now &&
- ele.projectState == 1
+ new Date(ele.endDate).getTime() >= now
);
},
totalWorkTime() {