Kaynağa Gözat

feature:$parent修复

chenqilong 2 yıl önce
ebeveyn
işleme
8a7d30cc29

+ 0 - 1
src/components/Common/examine-dialog.vue

@@ -63,7 +63,6 @@ export default {
     submitForm() {
       this.$refs.examineForm.validate(valid => {
         if (valid) {
-          // this.$parent.submitExamineForm()
           this.$emit('submit')
           this.$refs.examineForm.resetFields()
         }

+ 0 - 1
src/views/supply/direct/components/direct_form.vue

@@ -446,7 +446,6 @@ export default {
           editData(params).then(res => {
             this.$successMsg('编辑成功')
             this.goBack()
-            this.$parent.getList()
           })
         }
       })

+ 3 - 2
src/views/supply/direct/direct_list.vue

@@ -46,7 +46,7 @@
                     <el-date-picker
                       v-model="screenForm.date"
                       type="datetimerange"
-:default-time="['00:00:00','23:59:59']"
+                      :default-time="['00:00:00', '23:59:59']"
                       range-separator="至"
                       style="width: 100%"
                       value-format="yyyy-MM-dd HH:mm:ss"
@@ -434,7 +434,7 @@ export default {
 
     // 重置筛选表单
     resetScreenForm() {
-        this.$refs.screenForm.resetFields()
+      this.$refs.screenForm.resetFields()
       this.currentPage = 1
       this.getList()
     },
@@ -475,6 +475,7 @@ export default {
       this.isShowDetail = false
       this.isShowExamine = false
       this.isShowForm = false
+      this.getList()
     },
 
     // 删除