Commit adbf81fe by zhangzhijie

单位效能分析调整

parent c0b84b27
export default {
dateToStr(from) {
let date = new Date();
date.setTime(from);
let y = date.getFullYear();
let m = date.getMonth() + 1;
m = m < 10 ? "0" + m : m;
let d = date.getDate();
d = d < 10 ? "0" + d : d;
return y + '-' + m + '-' + d;
},
/**
* 时间戳转日期格式
* @param {Object} timeStamp
......
......@@ -267,20 +267,20 @@ export default {
this.initDate(this.unitList[index]);
},
goDetail(row, type) {
console.log(row)
console.log(type)
if (type == "unitName") {
this.formData.unitCode = row.unitCode;
this.initDate();
// this.initDate(row.unitCode);
// this.unitList.push(row.unitCode)
this.$router.pushToTab({
path: '/queryDwcztj',
query: {
unitCode: row.unitCode,
yymcdm: row.yymcdm ?? '',
djsjKssj: this.formData.djsjKssj ? util.dateToStr(this.formData.djsjKssj) : '',
djsjJssj: this.formData.djsjJssj ? util.dateToStr(this.formData.djsjJssj) : ''
}
})
// this.$router.pushToTab({
// path: '/queryDwcztj',
// query: {
// unitCode: row.unitCode,
// yymcdm: row.yymcdm ?? '',
// djsjKssj: this.formData.djsjKssj ? util.dateToStr(this.formData.djsjKssj) : '',
// djsjJssj: this.formData.djsjJssj ? util.dateToStr(this.formData.djsjJssj) : ''
// }
// })
} else {
let yymcdm = '';
for (let i in this.queryTypeList) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment