Selaa lähdekoodia

高级查询组件暂时去掉,引用删除

zhangdaiscott 2 vuotta sitten
vanhempi
commit
efb850693e

+ 0 - 19
src/views/demo/jeecg/JeecgComponents.vue

@@ -33,9 +33,6 @@
     <template #dargVerify="{ model, field }">
       <BasicDragVerify v-model:value="model[field]" />
     </template>
-    <template #superQuery="{ model, field }">
-      <super-query :config="superQueryConfig" @search="(value)=>handleSuperQuery(value, model, field)"/>
-    </template>
   </BasicForm>
 </template>
 <script lang="ts">
@@ -78,20 +75,6 @@
         keyword.value = value;
       }
       
-      const superQueryConfig = {
-        name:{ title: "名称", view: "text", type: "string", order: 1 },
-        birthday:{ title: "生日", view: "date", type: "string", order: 2 },
-        age:{ title: "年龄", view: "number", type: "number", order: 4 },
-        sex:{ title: "性别", view: "list", type: "string", dictCode: "sex", order: 5 },
-        bpmStatus:{ title: "流程状态", view: "list_multi", type: "string",  dictCode: "bpm_status", order: 6 },
-      }
-      function handleSuperQuery(value, model, field){
-        if(value){
-          let str = decodeURI(value.superQueryParams)
-          console.log(str)
-          model[field] = str
-        }
-      }
 
       return {
         schemas,
@@ -101,8 +84,6 @@
         submitButtonOptions,
         onSearch: useDebounceFn(onSearch, 300),
         searchParams,
-        superQueryConfig,
-        handleSuperQuery,
         handleReset: () => {
           keyword.value = '';
         },

+ 0 - 14
src/views/system/examples/demo/index.vue

@@ -60,8 +60,6 @@
         }}</a-button>
         <a-button preIcon="ant-design:import-outlined" type="primary" @click="handleImport">弹窗导入</a-button>
 
-        <super-query :config="superQueryConfig" @search="handleSuperQuery"/>
-
         <a-dropdown v-if="checkedKeys.length > 0">
           <template #overlay>
             <a-menu>
@@ -99,7 +97,6 @@
   import { useGo } from '/@/hooks/web/usePage';
   import { router } from '/@/router';
   import { filterObj } from '/@/utils/common/compUtils';
-  import SuperQuery from '/@/components/jeecg/super/superquery/SuperQuery.vue'
   
   const go = useGo();
   const checkedKeys = ref<Array<string | number>>([]);
@@ -266,17 +263,6 @@
   }
   //自定义查询----end---------
 
-  const superQueryConfig = reactive({
-    name:{ title: "名称", view: "text", type: "string", order: 1 },
-    sex:{ title: "性别", view: "list", type: "string", dictCode:'sex', order: 2 },
-  });
-  
-  function handleSuperQuery(params) {
-    Object.keys(params).map(k=>{
-      queryParam[k] = params[k]
-    });
-    searchQuery();
-  }
 </script>
 <style lang="less" scoped>
   .jeecg-basic-table-form-container {