日期时间 格式化
This commit is contained in:
parent
0aec4b119e
commit
430c7aac24
@ -154,7 +154,7 @@ export default {
|
|||||||
query: {
|
query: {
|
||||||
path: "/patient/patientinfoimport",
|
path: "/patient/patientinfoimport",
|
||||||
// signPatientRecordId: row.id,
|
// signPatientRecordId: row.id,
|
||||||
importId: row.id ?row.id : '',
|
importMainId: row.id ?row.id : '',
|
||||||
patientName: row.patientName ? row.patientName : '',
|
patientName: row.patientName ? row.patientName : '',
|
||||||
departmentId: row.departmentId ? row.departmentId : '',
|
departmentId: row.departmentId ? row.departmentId : '',
|
||||||
departmentName: row.departmentName ? row.departmentName : '',
|
departmentName: row.departmentName ? row.departmentName : '',
|
||||||
|
|||||||
@ -558,7 +558,7 @@ export default {
|
|||||||
optionslisttime: [],
|
optionslisttime: [],
|
||||||
parentDictCodelist: [],
|
parentDictCodelist: [],
|
||||||
updata: {
|
updata: {
|
||||||
importId: "",
|
importMainId: "",
|
||||||
signPatientRecordId: "",
|
signPatientRecordId: "",
|
||||||
patientId: "",
|
patientId: "",
|
||||||
patientName: "",
|
patientName: "",
|
||||||
@ -642,7 +642,7 @@ export default {
|
|||||||
this.optiononditionOperator();
|
this.optiononditionOperator();
|
||||||
this.updata.signPatientRecordId = this.$route.query.signPatientRecordId;
|
this.updata.signPatientRecordId = this.$route.query.signPatientRecordId;
|
||||||
this.updata.patientId = this.$route.query.patientId;
|
this.updata.patientId = this.$route.query.patientId;
|
||||||
this.updata.importId = this.$route.query.importId;
|
this.updata.importMainId = this.$route.query.importMainId;
|
||||||
this.updata.patientName = this.$route.query.patientName;
|
this.updata.patientName = this.$route.query.patientName;
|
||||||
this.updata.departmentId = this.$route.query.departmentId;
|
this.updata.departmentId = this.$route.query.departmentId;
|
||||||
this.updata.departmentName = this.$route.query.departmentName;
|
this.updata.departmentName = this.$route.query.departmentName;
|
||||||
@ -708,7 +708,17 @@ export default {
|
|||||||
topclack(item,index){
|
topclack(item,index){
|
||||||
},
|
},
|
||||||
input(item,index){
|
input(item,index){
|
||||||
item.nodePlanTime = new Date();
|
// item.nodePlanTime = new Date();
|
||||||
|
|
||||||
|
const date = new Date(item.nodePlanTime);
|
||||||
|
const year = date.getFullYear();
|
||||||
|
const month = String(date.getMonth() + 1).padStart(2, '0'); // 月份从0开始,所以需要加1
|
||||||
|
const day = String(date.getDate()).padStart(2, '0');
|
||||||
|
const hours = String(date.getHours()).padStart(2, '0');
|
||||||
|
const minutes = String(date.getMinutes()).padStart(2, '0');
|
||||||
|
const ss = String(date.getSeconds()).padStart(2, '0');
|
||||||
|
item.nodePlanTime = year + '-' + month + '-' + day + ' ' + hours + ':' + minutes;// + ':' + ss ;
|
||||||
|
|
||||||
this.$forceUpdate()
|
this.$forceUpdate()
|
||||||
},
|
},
|
||||||
handleDateChange(value) {
|
handleDateChange(value) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user