修改保存日期格式yyyy-MM-dd

This commit is contained in:
wans 2020-11-26 11:33:29 +08:00
parent 8f0ed13d95
commit f7d3ae04bc
10 changed files with 66 additions and 22 deletions

View File

@ -15,7 +15,35 @@
<div id="LAY-app" class="layui-fluid">
<div class="layui-row layui-col-space15"></div>
</div>
<div id="msgPop-div">
<div class="layui-fluid">
<ul class="layui-timeline">
<li class="layui-timeline-item">
<i class="layui-icon layui-timeline-axis"><i class="layui-icon layui-icon-note"></i></i>
<div class="layui-timeline-content layui-text">
<h3 class="layui-timeline-title">8月18日</h3>
<p>
layui 2.0 的一切准备工作似乎都已到位。发布之弦,一触即发。
<br>不枉近百个日日夜夜与之为伴。因小而大,因弱而强。
<br>无论它能走多远,抑或如何支撑?至少我曾倾注全心,无怨无悔 <i class="layui-icon"></i>
</p>
</div>
</li>
<li class="layui-timeline-item">
<i class="layui-icon layui-timeline-axis"><i class="layui-icon layui-icon-note"></i></i>
<div class="layui-timeline-content layui-text">
<h3 class="layui-timeline-title">8月18日</h3>
<p>
layui 2.0 的一切准备工作似乎都已到位。发布之弦,一触即发。
<br>不枉近百个日日夜夜与之为伴。因小而大,因弱而强。
<br>无论它能走多远,抑或如何支撑?至少我曾倾注全心,无怨无悔 <i class="layui-icon"></i>
</p>
</div>
</li>
</ul>
</div>
</div>
<script type="text/javascript" src="assets/js/vue.min.js"></script>
<script src="assets/layuiadmin/layui/layui.js"></script>
<script>
@ -28,9 +56,25 @@
new Vue({
el: '#LAY-app',
data: {},
methods: {},
methods: {
msgPop: function(){
layer.open({
type: 1,
title: '<i class="layui-icon layui-icon-notice"></i>',
area: ['400px;', '250px;'],
offset: 'rb',
shade: 0,
closeBtn: 1, //不显示关闭按钮
anim: 2,
shadeClose: true, //开启遮罩关闭
resize: false,
content: $('#msgPop-div')
});
}
},
mounted: function() {
var self = this;
self.msgPop();
}
})
});

View File

@ -322,7 +322,7 @@
function initDiscoveryDateDate() {
laydate.render({
elem: '#discoveryDate',
format: 'yyyyMMdd',
format: 'yyyy-MM-dd',
type: 'date',
trigger: 'click'
});

View File

@ -268,7 +268,7 @@
function initDiscoveryDateDate() {
laydate.render({
elem: '#discoveryDate',
format: 'yyyyMMdd',
format: 'yyyy-MM-dd',
type: 'date',
trigger: 'click'
});

View File

@ -354,7 +354,7 @@
function initBirthDateDate() {
laydate.render({
elem: '#birthDate',
format: 'yyyyMMdd',
format: 'yyyy-MM-dd',
type: 'date',
trigger: 'click'
});

View File

@ -511,7 +511,7 @@
function initOriginalSentenceStrDate() {
laydate.render({
elem: '#originalSentenceStr',
format: 'yyyyMMdd',
format: 'yyyy-MM-dd',
type: 'date',
trigger: 'click'
});
@ -521,7 +521,7 @@
function initOriginalSentenceEndDate() {
laydate.render({
elem: '#originalSentenceEnd',
format: 'yyyyMMdd',
format: 'yyyy-MM-dd',
type: 'date',
trigger: 'click'
});
@ -531,7 +531,7 @@
function initCorrectStrDateDate() {
laydate.render({
elem: '#correctStrDate',
format: 'yyyyMMdd',
format: 'yyyy-MM-dd',
type: 'date',
trigger: 'click'
});
@ -541,7 +541,7 @@
function initCorrectEndDateDate() {
laydate.render({
elem: '#correctEndDate',
format: 'yyyyMMdd',
format: 'yyyy-MM-dd',
type: 'date',
trigger: 'click'
});

View File

@ -459,7 +459,7 @@
function initOriginalSentenceStrDate() {
laydate.render({
elem: '#originalSentenceStr',
format: 'yyyyMMdd',
format: 'yyyy-MM-dd',
type: 'date',
trigger: 'click'
});
@ -469,7 +469,7 @@
function initOriginalSentenceEndDate() {
laydate.render({
elem: '#originalSentenceEnd',
format: 'yyyyMMdd',
format: 'yyyy-MM-dd',
type: 'date',
trigger: 'click'
});
@ -479,7 +479,7 @@
function initCorrectStrDateDate() {
laydate.render({
elem: '#correctStrDate',
format: 'yyyyMMdd',
format: 'yyyy-MM-dd',
type: 'date',
trigger: 'click'
});
@ -489,7 +489,7 @@
function initCorrectEndDateDate() {
laydate.render({
elem: '#correctEndDate',
format: 'yyyyMMdd',
format: 'yyyy-MM-dd',
type: 'date',
trigger: 'click'
});

View File

@ -373,7 +373,7 @@
function initLastTroubleDateDate() {
laydate.render({
elem: '#lastTroubleDate',
format: 'yyyyMMdd',
format: 'yyyy-MM-dd',
type: 'date',
trigger: 'click'
});
@ -383,7 +383,7 @@
function initFirstOnsetDateDate() {
laydate.render({
elem: '#firstOnsetDate',
format: 'yyyyMMdd',
format: 'yyyy-MM-dd',
type: 'date',
trigger: 'click'
});

View File

@ -311,7 +311,7 @@
function initLastTroubleDateDate() {
laydate.render({
elem: '#lastTroubleDate',
format: 'yyyyMMdd',
format: 'yyyy-MM-dd',
type: 'date',
trigger: 'click'
});
@ -321,7 +321,7 @@
function initFirstOnsetDateDate() {
laydate.render({
elem: '#firstOnsetDate',
format: 'yyyyMMdd',
format: 'yyyy-MM-dd',
type: 'date',
trigger: 'click'
});

View File

@ -339,7 +339,7 @@
function initReleaseDateDate() {
laydate.render({
elem: '#releaseDate',
format: 'yyyyMMdd',
format: 'yyyy-MM-dd',
type: 'date',
trigger: 'click'
});
@ -349,7 +349,7 @@
function initLinkUpDateDate() {
laydate.render({
elem: '#linkUpDate',
format: 'yyyyMMdd',
format: 'yyyy-MM-dd',
type: 'date',
trigger: 'click'
});
@ -359,7 +359,7 @@
function initPlacementDateDate() {
laydate.render({
elem: '#placementDate',
format: 'yyyyMMdd',
format: 'yyyy-MM-dd',
type: 'date',
trigger: 'click'
});

View File

@ -284,7 +284,7 @@
function initReleaseDateDate() {
laydate.render({
elem: '#releaseDate',
format: 'yyyyMMdd',
format: 'yyyy-MM-dd',
type: 'date',
trigger: 'click'
});
@ -294,7 +294,7 @@
function initLinkUpDateDate() {
laydate.render({
elem: '#linkUpDate',
format: 'yyyyMMdd',
format: 'yyyy-MM-dd',
type: 'date',
trigger: 'click'
});
@ -304,7 +304,7 @@
function initPlacementDateDate() {
laydate.render({
elem: '#placementDate',
format: 'yyyyMMdd',
format: 'yyyy-MM-dd',
type: 'date',
trigger: 'click'
});