Parcourir la source

查询增加自定义sql

lcl il y a 4 mois
Parent
commit
180dea72d4

+ 6 - 0
src/views/pri/priQueryTable/components/add/index.vue

@@ -40,6 +40,7 @@ let UpdateForm = ref({
   summary: "", //说明
   startDataFlag: false, //起始数据
   stepCount: null, //每次读取数量
+  customSql: "", //说明
 
 });
 // 表单实例
@@ -80,6 +81,7 @@ const submit = async (formEl) => {
           summary: "", //说明
           startDataFlag: false, //起始数据
           stepCount: null, //每次读取数量
+          customSql: "", //说明
         };
         // 关闭新增弹窗;
         closeVisible()
@@ -139,6 +141,7 @@ const closeVisible = () => {
     summary: "", //说明
     startDataFlag: false, //起始数据
     stepCount: null, //每次读取数量
+    customSql: "", //说明
   };
   closeFn();
 };
@@ -169,6 +172,9 @@ const isFullscreen = ref(false)
           placeholder="请输入每次读取数量")
       el-form-item(label='起始数据' prop="startDataFlag")
         el-switch(v-model="UpdateForm.startDataFlag")
+      el-form-item(label='自定义sql查询' prop="customSql")
+        el-input(v-model='UpdateForm.customSql' autocomplete='off'
+          placeholder="请输入自定义sql查询")
       el-form-item(label="项目", prop="projectId")
         el-select(
           v-model="UpdateForm.projectId",

+ 6 - 0
src/views/pri/priQueryTable/components/updatePriQueryTable/index.vue

@@ -37,6 +37,7 @@ const UpdateForm: any = ref({
   summary: "", //说明
   startDataFlag: false, //起始数据
   stepCount: null, //每次读取数量
+  customSql: "", //说明
 });
 
 // 表单实例
@@ -72,6 +73,7 @@ const submit = async (formEl) => {
           summary: "", //说明
           startDataFlag: false, //起始数据
           stepCount: null, //每次读取数量
+          customSql: "", //说明
 
         };
         // 关闭修改弹窗;
@@ -129,6 +131,7 @@ const closeUpdatePriQueryTableVisible = () => {
     summary: "", //说明
     startDataFlag: false, //起始数据
     stepCount: null, //每次读取数量
+    customSql: "", //说明
 
   };
   closeFn();
@@ -163,6 +166,9 @@ const isFullscreen = ref(false)
           placeholder="请输入每次读取数量")
       el-form-item(label='起始数据' prop="startDataFlag")
         el-switch(v-model="UpdateForm.startDataFlag")
+      el-form-item(label='自定义sql查询' prop="customSql")
+        el-input(v-model='UpdateForm.customSql' autocomplete='off'
+          placeholder="请输入自定义sql查询")
 
     .flex.justify-end
       el-button(

+ 1 - 0
src/views/pri/priReturnField/components/add/index.vue

@@ -53,6 +53,7 @@ const fieldReturnKindOptionList = [
   { id: '4', label: '平均值' },
   { id: '5', label: '最大值' },
   { id: '6', label: '最小值' },
+  { id: '7', label: 'sql表达式' },
 ]
 // 匹配表选项数据
 const queryTableIdOptionList = ref([]);

+ 1 - 0
src/views/pri/priReturnField/components/updatePriReturnField/index.vue

@@ -45,6 +45,7 @@ const fieldReturnKindOptionList = [
   { id: '4', label: '平均值' },
   { id: '5', label: '最大值' },
   { id: '6', label: '最小值' },
+  { id: '7', label: 'sql表达式' },
 ]
 
 // 表单实例