diff --git a/jero-web/src/components/globalAdvancedQuery/index.vue b/jero-web/src/components/globalAdvancedQuery/index.vue
index d7058e9d1..45dbc9e1b 100644
--- a/jero-web/src/components/globalAdvancedQuery/index.vue
+++ b/jero-web/src/components/globalAdvancedQuery/index.vue
@@ -387,7 +387,7 @@
return str
},
handleOk() {
- if (!this.isNullArray(this.queryParamsModel)) {
+ // if (!this.isNullArray(this.queryParamsModel)) {
let event = {
matchType: this.matchType,
params: this.removeEmptyObject(this.queryParamsModel)
@@ -397,9 +397,9 @@
this.visible = false
}
this.emitCallback(event)
- } else {
- this.$message.warn(this.$t('CannotQueryEmpty'))
- }
+ // } else {
+ // this.$message.warn(this.$t('CannotQueryEmpty'))
+ // }
},
emitCallback(event = {}) {
let { params = [], matchType = this.matchType } = event
@@ -408,6 +408,9 @@
if (Array.isArray(param.val)) {
param.val = param.val.join(',')
}
+ if (param.type == "Personnel" && !param.val){
+ param.val = ' is null '
+ }
}
console.debug('---高级查询参数--->', { params, matchType })
this.$emit(this.callback, params, matchType)
@@ -614,7 +617,6 @@
item.val = values[item.popup['destFields']]
},
PersonnelSelectionChange(value, id,index){
- console.log(index)
this.queryParamsModel[index].val = id
this.queryParamsModel[index].valueId = id
console.log(this.queryParamsModel)
diff --git a/jero-web/src/views/projectManagement/projectStatusBoard/components/TaskPlanList.vue b/jero-web/src/views/projectManagement/projectStatusBoard/components/TaskPlanList.vue
index 788dc4dd3..6f84b8023 100644
--- a/jero-web/src/views/projectManagement/projectStatusBoard/components/TaskPlanList.vue
+++ b/jero-web/src/views/projectManagement/projectStatusBoard/components/TaskPlanList.vue
@@ -45,11 +45,12 @@
+
+
{{val.name}}
{{val.time.slice(0,11)}}
- {{val.name}}
12 ? 1 : month + 1
+
+ }
+
+ thirtyDays.includes(month) ? (countDays += 30) : thirtyOneDays.includes(month) ? (countDays += 31) : isLeapYear ? (countDays += 29) : (countDays += 28)
+ }
+
+ targetDateMilli = currDate.setDate(
+ currDate.getDate() - (flag === 'before' ? countDays : countDays * -1)
+ )
+
+ GMTDate = new Date(targetDateMilli)
+
+ targetYear = GMTDate.getFullYear()
+
+ targetMonth = GMTDate.getMonth() + 1
+
+ targetDate = GMTDate.getDate()
+
+ targetMonth = targetMonth.toString().padStart(2, '0')
+
+ targetDate = targetDate.toString().padStart(2, '0')
+
+ dealTargetDays = `${targetYear}-${targetMonth}`
+
+ return dealTargetDays
+ },
getTimeline() {
let query = {
- startTime: this.startTime,
- endTime: this.endTime
+ startTime: this.startTime || this.getNewDate('before', 6),
+ endTime: this.endTime || this.getNewDate('after', 5)
}
this.loadingMain = true
getAction(this.url.timeline, query).then((res) => {
@@ -143,8 +207,8 @@
},
getTimelineList(time) {
let query = {
- startTime: this.startTime,
- endTime: this.endTime
+ startTime: this.startTime || this.getNewDate('before', 6),
+ endTime: this.endTime || this.getNewDate('after', 5)
}
getAction(this.url.timelineList, query).then((res) => {
if (res.success) {
@@ -355,7 +419,7 @@
}
.box-top-content-left {
- width: 160px;
+ width: 140px;
float: left;
padding-top: 100px;
margin-right: 20px;
@@ -364,8 +428,8 @@
.box-top-content-left-text {
color: #191E29;
font-weight: bold;
- font-size: 14px;
- height: 104px;
+ font-size: 12px;
+ height: 84px;
letter-spacing: 0px;
text-align: left;
text-overflow: ellipsis;
@@ -374,7 +438,7 @@
}
.box-top-content-right {
- width: calc(100% - 180px);
+ width: calc(100% - 160px);
float: left;
}
@@ -392,7 +456,7 @@
height: 36px;
color: #54565A;
font-weight: bold;
- font-size: 14px;
+ font-size: 13px;
line-height: 36px;
letter-spacing: 0px;
text-align: center;
@@ -409,7 +473,7 @@
.process-content {
position: relative;
- height: 104px;
+ height: 84px;
.process-content-content {
background: #fff;
@@ -430,15 +494,22 @@
}
.process-content-right-top {
- font-size: 14px;
+ font-size: 12px;
color: #040B29;
- max-width: 155px;
- text-overflow: ellipsis;
- white-space: nowrap;
+ width: 50px;
overflow: hidden;
position: absolute;
- top: -8px;
+ top: -14px;
left: 50%;
+ line-height: 1.2;
+ display: -webkit-box;
+ text-overflow: ellipsis;
+ /*! autoprefixer: off */
+ -webkit-box-orient: vertical;
+ -webkit-line-clamp: 2;
+ /*! autoprefixer: on;*/
+ text-justify: inter-ideograph;
+ word-break: break-all;
transform: translate(-50%, -50%);
}
diff --git a/jero-web/src/views/projectManagement/projectStatusBoard/index.vue b/jero-web/src/views/projectManagement/projectStatusBoard/index.vue
index e81f5dc9f..b979eed10 100644
--- a/jero-web/src/views/projectManagement/projectStatusBoard/index.vue
+++ b/jero-web/src/views/projectManagement/projectStatusBoard/index.vue
@@ -242,11 +242,73 @@
this.handlingTime = moment(new Date()).format('YYYY-MM-DD')
},
methods: {
+ getNewDate(flag, many) {
+ const thirtyDays = [4, 6, 9, 11] // 30天的月份
+
+ const thirtyOneDays = [1, 3, 5, 7, 8, 10, 12] // 31天的月份
+
+ const currDate = new Date() // 今天日期
+
+ const year = currDate.getFullYear()
+
+ let month = currDate.getMonth() + 1
+
+ let targetDateMilli = 0
+
+ let GMTDate = '' // 中国标准时间
+
+ let targetYear = '' // 年
+
+ let targetMonth = '' // 月
+
+ let targetDate = '' // 日
+
+ let dealTargetDays = '' // 目标日期
+
+ const isLeapYear = !!((year % 4 == 0 && year % 100 != 0) || year % 400 == 0) // 是否是闰年
+
+ let countDays = 0 // 累计天数
+
+ for (let i = 0; i < many; i++) {
+
+ if (flag === 'before') {
+
+ month = month - 1 <= 0 ? 12 : month - 1
+
+ } else {
+
+ month = month + 1 > 12 ? 1 : month + 1
+
+ }
+
+ thirtyDays.includes(month) ? (countDays += 30) : thirtyOneDays.includes(month) ? (countDays += 31) : isLeapYear ? (countDays += 29) : (countDays += 28)
+ }
+
+ targetDateMilli = currDate.setDate(
+ currDate.getDate() - (flag === 'before' ? countDays : countDays * -1)
+ )
+
+ GMTDate = new Date(targetDateMilli)
+
+ targetYear = GMTDate.getFullYear()
+
+ targetMonth = GMTDate.getMonth() + 1
+
+ targetDate = GMTDate.getDate()
+
+ targetMonth = targetMonth.toString().padStart(2, '0')
+
+ targetDate = targetDate.toString().padStart(2, '0')
+
+ dealTargetDays = `${targetYear}-${targetMonth}`
+
+ return dealTargetDays
+ },
getTimeline() {
let query = {
- startTime: this.startTime,
- endTime: this.endTime,
+ startTime: this.startTime || this.getNewDate('before',6),
+ endTime: this.endTime || this.getNewDate('after',5),
...this.queryParam
}
this.loadingMain = true
@@ -278,8 +340,8 @@
},
getTimelineList(time) {
let query = {
- startTime: this.startTime,
- endTime: this.endTime,
+ startTime: this.startTime || this.getNewDate('before',6),
+ endTime: this.endTime || this.getNewDate('after',5),
...this.queryParam
}
getAction(this.url.timelineList, query).then((res) => {