ソースを参照

提交日期问题

“yueshang” 1 年間 前
コミット
788134bc22
1 ファイル変更9 行追加6 行削除
  1. 9 6
      src/views/backend/remindInfo/index.vue

+ 9 - 6
src/views/backend/remindInfo/index.vue

@@ -354,11 +354,11 @@
             <el-form-item
               label="提醒内容:"
               prop="remindContent"
-              style="line-height: 6px !important"
+              style="position: relative;"
             >
               <span
                 v-html="deatilData.remindContent"
-                style="display: flex; justify-content: start"
+                style="position: absolute;top: -13px;"
               ></span>
             </el-form-item>
           </el-col>
@@ -403,8 +403,8 @@
             </el-form-item></el-col
           >
           <el-col :span="14">
-            <el-form-item label="提醒内容:" prop="remindContent">
-              <div v-html="deatilData2.remindInfoRespVO?.remindContent"></div>
+            <el-form-item label="提醒内容:" prop="remindContent" style="position: relative;">
+              <div v-html="deatilData2.remindInfoRespVO?.remindContent"  style="position: absolute;top: -13px;"></div>
             </el-form-item>
           </el-col>
         </el-row>
@@ -501,7 +501,7 @@ import Editor from "@/components/Editor";
 import choiceOrange from "@/components/choiceOrange";
 import FileUpload from "@/components/FileUpload";
 import { getTime } from "../../../utils";
-import { getNowDateTime } from "@/utils/ruoyi";
+import { parseTime } from "@/utils/ruoyi";
 
 export default {
   name: "RemindInfo",
@@ -546,6 +546,7 @@ export default {
       form: {
         deptId: null,
         remindZzList: [],
+        doneDate:null
       },
       // 表单校验
       rules: {
@@ -678,6 +679,7 @@ export default {
         deptId: undefined,
         pubDate: undefined,
         remindZzList: [],
+        doneDate:undefined
       };
       this.resetForm("form");
     },
@@ -747,7 +749,8 @@ export default {
         this.form.fileUrls && this.form.fileUrls.length > 0
           ? this.form.fileUrls.split(",")
           : [];
-      this.form.doneDate = "2024-3-6";
+      this.form.doneDate = parseTime(new Date(), "{y}-{m}-{d}");
+      console.log('this.form', this.form)
       this.$refs["form"].validate((valid) => {
         if (!valid) {
           return;