Browse Source

日期选择器

panhui 6 năm trước cách đây
mục cha
commit
60210eb1e4
2 tập tin đã thay đổi với 11 bổ sung2 xóa
  1. 9 0
      WebRoot/WEB-INF/jsp/newAdmin/rentInfo.jsp
  2. 2 2
      WebRoot/form_zf.html

+ 9 - 0
WebRoot/WEB-INF/jsp/newAdmin/rentInfo.jsp

@@ -619,6 +619,15 @@
 
                     if (res.success == true) {
                         that.edit = true;
+                        if(!res.data.contractStart) {
+                            res.data.contractStart ='';
+                        }
+                        if(!res.data.contractEnd) {
+                            res.data.contractEnd = '';
+                        }
+                        if(!res.data.firstPayTime){
+                            res.data.firstPayTime='';
+                        }
                         that.row_info = res.data;
                         for (var j in res.data) {
                             that[j] = res.data[j];

+ 2 - 2
WebRoot/form_zf.html

@@ -5,7 +5,7 @@
     <meta name="viewport" content="width=device-width,initial-scale=1">
     <title>租客信息页面</title>
     <!-- 引入样式 -->
-    <link rel="stylesheet" href="https://unpkg.com/element-ui@2.0.2/lib/theme-chalk/index.css">
+    <link rel="stylesheet" href="lib/element/element-ui.css">
     <link rel="stylesheet" href="css/style.css">
 </head>
 <body>
@@ -19,7 +19,7 @@
              </el-carousel> -->
         </template>
     </el-row>
-    <el-form ref="form" :model="form" :rules="rules" label-width="80px">
+    <el-form ref="form" :model="form" :rules="rules" label-width="80px" style="max-width:300px">
         <el-form-item label="房屋地址" prop="address">
             <el-input v-model="form.address"></el-input>
         </el-form-item>