Browse Source

feat: 优化渲染

aXin-0810 2 năm trước cách đây
mục cha
commit
5d8b9c2102

+ 3 - 1
src/components/template/template-page-1.vue

@@ -431,7 +431,9 @@ export default {
               this.setDefaultPlan(`${item.tbName ? item.tbName + '.' : ''}${item.colName}`)
             }
             if (item.pk) {
-              this.pk = item.colName
+              this.$nextTick(() => {
+                this.pk = item.colName
+              })
             }
             if (item.frontCode && !~this.frontCodes.indexOf(item.frontCode)) {
               this.frontCodes.push(item.frontCode)

+ 1 - 1
src/views/supply/policy/policy_list.vue

@@ -9,7 +9,7 @@
     :tableEvents="tableEvents"
     :tableAttributes="tableAttributes"
   >
-    <ExamineDialog :isShow.sync="isShowExamineDialog" :examineForm.sync="examineForm" @submit="submitExamineForm"/>
+    <ExamineDialog :isShow.sync="isShowExamineDialog" :examineForm.sync="examineForm" @submit="submitExamineForm" />
     <EditDateDialog :is-show.sync="isShowEditDateDialog" :date-form.sync="dateForm" />
 
     <Popu v-if="isShowDetail || isShowForm || isShowExamine || isShowReturn">