瀏覽代碼

调整检查任务

luojun 2 年之前
父節點
當前提交
f8cd4677a9
共有 1 個文件被更改,包括 8 次插入0 次删除
  1. 8 0
      src/views/check/task/index.vue

+ 8 - 0
src/views/check/task/index.vue

@@ -70,6 +70,8 @@
               :clearable="timeClearable"
               type="date"
               placeholder="选择时间"
+              value-format="yyyy-MM-dd"
+              @change="updatePlanStartTime"
             >
             </el-date-picker>
           </el-form-item>
@@ -349,6 +351,11 @@ export default {
     ...mapGetters(["orgName"])
   },
   methods: {
+    updatePlanStartTime(value) {
+      // console.log(this.queryParams.planStartTime,"前");
+      this.queryParams.planStartTime = value;
+      // console.log(this.queryParams.planStartTime,"后");
+    },
     inputRestriction(){
       // 限制只允许输入汉字、英文和数字
       this.queryParams.orgName = this.queryParams.orgName.replace(/[^\u4e00-\u9fa5a-zA-Z0-9]/g, '');
@@ -390,6 +397,7 @@ export default {
       this.getList();
     },
     async getList() {
+      console.log(this.queryParams,"this.queryParams")
       this.loading = true;
       api
         .page(this.queryParams)