Bläddra i källkod

关联add页面传入参数

lcl 4 månader sedan
förälder
incheckning
49d810f39a
1 ändrade filer med 5 tillägg och 1 borttagningar
  1. 5 1
      src/views/pri/priQueryField/components/add/index.vue

+ 5 - 1
src/views/pri/priQueryField/components/add/index.vue

@@ -161,13 +161,17 @@ const closeVisible = () => {
   closeFn();
 };
 
+const openfn = () => {
+  UpdateForm.value.queryTableId = props.queryTableId;
+}
+
 // 弹窗是否全屏
 const isFullscreen = ref(false)
 </script>
 
 <template lang="pug">
 .main
-  el-dialog(v-model='props.addVisible' width="50%" :fullscreen="isFullscreen" title="新增" draggable @close="closeVisible")
+  el-dialog(v-model='props.addVisible' width="50%" :fullscreen="isFullscreen" title="新增" draggable @close="closeVisible" @open="openfn")
     el-form(:model='UpdateForm' label-position="right" ref="ruleFormRef" :rules="rules" label-width="100px")
       el-form-item(label='字段名称' prop="fieldName")
         el-input(v-model='UpdateForm.fieldName' autocomplete='off'