Commit adbf81fe by zhangzhijie

单位效能分析调整

parent c0b84b27
export default { 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 * @param {Object} timeStamp
......
...@@ -267,20 +267,20 @@ export default { ...@@ -267,20 +267,20 @@ export default {
this.initDate(this.unitList[index]); this.initDate(this.unitList[index]);
}, },
goDetail(row, type) { goDetail(row, type) {
console.log(row)
console.log(type)
if (type == "unitName") { if (type == "unitName") {
this.formData.unitCode = row.unitCode;
this.initDate();
// this.initDate(row.unitCode); // this.initDate(row.unitCode);
// this.unitList.push(row.unitCode) // this.unitList.push(row.unitCode)
this.$router.pushToTab({ // this.$router.pushToTab({
path: '/queryDwcztj', // path: '/queryDwcztj',
query: { // query: {
unitCode: row.unitCode, // unitCode: row.unitCode,
yymcdm: row.yymcdm ?? '', // yymcdm: row.yymcdm ?? '',
djsjKssj: this.formData.djsjKssj ? util.dateToStr(this.formData.djsjKssj) : '', // djsjKssj: this.formData.djsjKssj ? util.dateToStr(this.formData.djsjKssj) : '',
djsjJssj: this.formData.djsjJssj ? util.dateToStr(this.formData.djsjJssj) : '' // djsjJssj: this.formData.djsjJssj ? util.dateToStr(this.formData.djsjJssj) : ''
} // }
}) // })
} else { } else {
let yymcdm = ''; let yymcdm = '';
for (let i in this.queryTypeList) { 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