cnhis-design-vue 3.1.41-beta.35 → 3.1.41-beta.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/components/base-search/index.d.ts +286 -0
- package/es/components/base-search/index.js +1 -0
- package/es/components/{table-filter/src/base-search-com/BaseSearch.vue.d.ts → base-search/src/index.vue.d.ts} +1 -4
- package/es/components/base-search/src/index.vue.js +1 -0
- package/es/components/base-search/style/index.css +1 -0
- package/es/components/classification/index.d.ts +1013 -0
- package/es/components/classification/index.js +1 -0
- package/es/components/{table-filter → classification}/src/components/search-filter/index.vue.d.ts +9 -9
- package/es/components/classification/src/components/search-filter/index.vue.js +1 -0
- package/es/components/classification/src/components/set-classification/index.vue.js +1 -0
- package/es/components/{table-filter → classification}/src/components/table-modal/index.vue.d.ts +1 -3
- package/es/components/classification/src/const/index.d.ts +2 -0
- package/es/components/classification/src/const/index.js +1 -0
- package/es/components/{table-filter/src/classification/Classification-com.vue.d.ts → classification/src/index.vue.d.ts} +6 -6
- package/es/components/classification/src/index.vue.js +1 -0
- package/es/components/classification/style/iconfont.ttf +0 -0
- package/es/components/classification/style/index.css +1 -0
- package/es/components/index.css +1 -1
- package/es/components/index.d.ts +3 -1
- package/es/components/index.js +1 -1
- package/es/components/quick-search/index.d.ts +712 -0
- package/es/components/quick-search/index.js +1 -0
- package/es/components/{table-filter/src/quick-search/QuickSearch.vue.d.ts → quick-search/src/index.vue.d.ts} +21 -8
- package/es/components/quick-search/src/index.vue.js +1 -0
- package/es/components/quick-search/style/index.css +1 -0
- package/es/components/table-filter/index.d.ts +0 -1997
- package/es/components/table-filter/index.js +1 -1
- package/es/components/table-filter/src/hooks/useAdvanced.d.ts +2 -1
- package/es/components/table-filter/src/hooks/useAdvanced.js +1 -1
- package/es/components/table-filter/src/hooks/useMixins.d.ts +1 -54
- package/es/components/table-filter/src/hooks/useMixins.js +1 -1
- package/es/components/table-filter/src/tool/generateDefOptions.js +1 -1
- package/es/components/table-filter/src/tool/transformData.d.ts +1 -0
- package/es/components/table-filter/src/tool/transformData.js +1 -1
- package/package.json +2 -2
- package/es/components/table-filter/src/base-search-com/BaseSearch.vue.js +0 -1
- package/es/components/table-filter/src/classification/Classification-com.vue.js +0 -1
- package/es/components/table-filter/src/components/search-filter/index.vue.js +0 -1
- package/es/components/table-filter/src/components/set-classification/index.vue.js +0 -1
- package/es/components/table-filter/src/const/index.d.ts +0 -5
- package/es/components/table-filter/src/const/index.js +0 -1
- package/es/components/table-filter/src/hooks/useTableSearchCon.d.ts +0 -8
- package/es/components/table-filter/src/hooks/useTableSearchCon.js +0 -1
- package/es/components/table-filter/src/hooks/useWordBookutils.d.ts +0 -12
- package/es/components/table-filter/src/hooks/useWordBookutils.js +0 -1
- package/es/components/table-filter/src/quick-search/QuickSearch.vue.js +0 -1
- package/es/components/table-filter/src/tool/time-domain.d.ts +0 -39
- package/es/components/table-filter/src/tool/time-domain.js +0 -1
- package/es/components/table-filter/src/tool/utils.d.ts +0 -4
- package/es/components/table-filter/src/tool/utils.js +0 -1
- package/es/components/table-filter/style/index.css +0 -1
- /package/es/components/{table-filter → base-search}/src/directive/resize.d.ts +0 -0
- /package/es/components/{table-filter → base-search}/src/directive/resize.js +0 -0
- /package/es/components/{table-filter → base-search}/src/tool/resizeSensor.d.ts +0 -0
- /package/es/components/{table-filter → base-search}/src/tool/resizeSensor.js +0 -0
- /package/es/components/{table-filter → base-search}/style/iconfont.ttf +0 -0
- /package/es/components/{table-filter → classification}/src/components/set-classification/index.vue.d.ts +0 -0
- /package/es/components/{table-filter → classification}/src/components/table-modal/index.vue.js +0 -0
- /package/es/components/{table-filter → classification}/src/directive/flexibleResize.d.ts +0 -0
- /package/es/components/{table-filter → classification}/src/directive/flexibleResize.js +0 -0
- /package/es/components/table-filter/src/tool/{options.d.ts → baseOptions.d.ts} +0 -0
- /package/es/components/table-filter/src/tool/{options.js → baseOptions.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import"./src/hooks/useAdvanced.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IApiServerType } from '../../../../../es/components/table-filter/src/types';
|
|
1
|
+
import { IApiServerType, ISearchType } from '../../../../../es/components/table-filter/src/types';
|
|
2
2
|
export default function useAdvanced(): {
|
|
3
3
|
transformData: (advancedFilterData: IApiServerType[]) => {
|
|
4
4
|
fieldType: string;
|
|
@@ -25,4 +25,5 @@ export default function useAdvanced(): {
|
|
|
25
25
|
placeholder: string | undefined;
|
|
26
26
|
advanceColWidth: string;
|
|
27
27
|
}[];
|
|
28
|
+
getCacheDef: (item: ISearchType, cacheList: string[]) => string | string[];
|
|
28
29
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{WidgetOptionEnums as t,WidgetTypeEnums as e}from"../types/enums.js";const i={[t.RADIO]:"0",[t.MULTIPLE]:"1",[t.ALL]:"0",[t.SELECT_TIME]:"1",[t.PAST_TIME]:"2",[t.FUTURE_TIME]:"3"};function l(){return{transformData:function(l){return l.map((l=>{var n,a;const{optionInfo:o={list:[]},type:u,defaultValue:r,optionType:d,filterExplicit:p}=l,s={},
|
|
1
|
+
import{WidgetOptionEnums as t,WidgetTypeEnums as e}from"../types/enums.js";const i={[t.RADIO]:"0",[t.MULTIPLE]:"1",[t.ALL]:"0",[t.SELECT_TIME]:"1",[t.PAST_TIME]:"2",[t.FUTURE_TIME]:"3"};function l(){return{transformData:function(l){return l.map((l=>{var n,a;const{optionInfo:o={list:[]},type:u,defaultValue:r,optionType:d,filterExplicit:p}=l,s={},c={title:(T=l).title,alias:T.customTitle,isShowSearch:T.isShowSearch?1:0,filterExplicit:T.filterExplicit?1:0,explicitRequired:T.explicitRequired?1:0,advanceOptionSetting:T.optionType?i[T.optionType]:"",placeholder:T.remark,advanceColWidth:String(T.width)};var T;let E,f,v=u;p?(E=u===e.SELECT&&d===t.MULTIPLE?null==r?void 0:r.valueList:null==(n=null==r?void 0:r.valueList)?void 0:n[0],f=null==r?void 0:r.unit):u===e.SELECT&&(null==o?void 0:o.list)&&(null==o?void 0:o.list.length)<10&&(v="CHECKBOX_GROUP");const L={isRender:!0,widgetType:v,valueList:null==(a=null==o?void 0:o.list)?void 0:a.map((({name:t,value:e})=>({value:e,label:t}))),defaultValue:E,defValueUnit:f,multiple:d===t.MULTIPLE};return{...c,fieldType:l.dataType,columnName:l.name,settingObj:s,setting:JSON.stringify(s),widgetCfg:L}}))},getCacheDef:function(t,i){const{widgetType:l,widgetCfg:n}=t;return l===e.SELECT&&n.multiple?i:i[0]}}}export{l as default};
|
|
@@ -1,61 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ISearchType, IbtnType } from '../../../../../es/components/table-filter/src/types';
|
|
1
|
+
import { ISearchType } from '../../../../../es/components/table-filter/src/types';
|
|
3
2
|
export default function (): {
|
|
4
3
|
filterApiConfig: import("vue").Ref<{}>;
|
|
5
4
|
handleGetConfigApi: (params: any, key: string, config: {} | undefined, filterApiConfigVal: any) => Promise<any>;
|
|
6
|
-
$utils: {
|
|
7
|
-
/**
|
|
8
|
-
* 获取按钮自定义颜色
|
|
9
|
-
* @param {string} v
|
|
10
|
-
*/
|
|
11
|
-
getBtnStyle(v: IbtnType): {
|
|
12
|
-
'border-color': string;
|
|
13
|
-
color: string;
|
|
14
|
-
'background-color'?: undefined;
|
|
15
|
-
} | {
|
|
16
|
-
color: string;
|
|
17
|
-
'border-color'?: undefined;
|
|
18
|
-
'background-color'?: undefined;
|
|
19
|
-
} | {
|
|
20
|
-
'background-color': string;
|
|
21
|
-
'border-color': string;
|
|
22
|
-
color?: undefined;
|
|
23
|
-
};
|
|
24
|
-
/**
|
|
25
|
-
* @param: 获取按钮的操作对象
|
|
26
|
-
* @param {Object} row 行对象
|
|
27
|
-
* @param {Object} btn 按钮
|
|
28
|
-
*/
|
|
29
|
-
getRowOperatorIdSetting(row: any, btn: AnyObject): any;
|
|
30
|
-
getAlphafloat(a: any, alpha?: any): number;
|
|
31
|
-
hexToRGBA(hex: string, alpha?: any): "" | {
|
|
32
|
-
r: any;
|
|
33
|
-
g: any;
|
|
34
|
-
b: any;
|
|
35
|
-
a: number;
|
|
36
|
-
};
|
|
37
|
-
handleLabelColor(item: any, isSelect: boolean): {
|
|
38
|
-
color: string;
|
|
39
|
-
background: string;
|
|
40
|
-
borderColor: string;
|
|
41
|
-
};
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
* 时间转换
|
|
45
|
-
* @param {type} type 时间戳类型
|
|
46
|
-
* @param {time} time 时间戳
|
|
47
|
-
*/
|
|
48
|
-
formatTime(type: string, time: any): string;
|
|
49
|
-
isJSON(str: any): boolean;
|
|
50
|
-
isArray(val: any): boolean;
|
|
51
|
-
isEmpty(val: any): boolean;
|
|
52
|
-
isString(val: any): boolean;
|
|
53
|
-
isPlainObject(val: any): boolean;
|
|
54
|
-
};
|
|
55
5
|
outQuickSearchFn: {
|
|
56
|
-
handleRequestedLabel(v: any): Promise<import("axios").AxiosResponse<any, any>>;
|
|
57
6
|
handlerInitSearchItem(arr: ISearchType[]): void;
|
|
58
|
-
handleSetLabelOptions(labelType: any, el: ISearchType): void;
|
|
59
|
-
getConObj(arr: any): any;
|
|
60
7
|
};
|
|
61
8
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ref as e}from"vue";import r from"
|
|
1
|
+
import{ref as e}from"vue";import r from"./useRenderWidget.js";const{initRenderWidgetCfg:t,getRenderSearchConObj:n}=r();function o(){const r=e({});return{filterApiConfig:r,handleGetConfigApi:async function(e,t,n={},o){try{o&&(r.value=o);const i=r.value[t]||null;if("function"==typeof i){const r=await i(e,n);return Promise.resolve(r)}return Promise.reject(new Error(`${t} Is not a function`))}catch(e){return Promise.reject(e)}},outQuickSearchFn:{handlerInitSearchItem(e){Array.isArray(e)&&e.forEach((e=>{t(e)}))}}}}export{o as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{WidgetTypeEnums as T,MappingMethodEnums as n,WidgetValEnums as E,DataTypeEnums as
|
|
1
|
+
import{WidgetTypeEnums as T,MappingMethodEnums as n,WidgetValEnums as E,DataTypeEnums as r,WidgetOptionEnums as t}from"../types/enums.js";import{widgetValOptions as i}from"./baseOptions.js";import{isNil as l}from"./transformData.js";const e=(e,p={mappingMethod:null,mapping:[]},o=null)=>{var u,_;if(l(e))return[];if(e===T.SELECT){const{mapping:T,mappingMethod:r}=p;if(T&&r)return r===n.DICT?[{label:"默认选中第一项",value:E.FIRST_VAL}]:T}let A=null!=(_=null==(u=i[r.SQL])?void 0:u[e])?_:[];if(o===t.FUTURE_TIME){const T=[E.TODAY,E.TOMORROW,E.THIS_WEEK,E.NEXT_WEEK,E.THIS_MONTH,E.NEXT_MONTH,E.THIS_QUARTER,E.NEXT_QUARTER,E.THIS_YEAR,E.NEXT_YEAR];A=A.filter((({value:n})=>T.includes(n)))}if(o===t.PAST_TIME){const T=[E.TODAY,E.YESTERDAY,E.THIS_WEEK,E.LAST_WEEK,E.THIS_MONTH,E.LAST_MONTH,E.THIS_QUARTER,E.LAST_QUARTER,E.THIS_YEAR,E.LAST_YEAR];A=A.filter((({value:n})=>T.includes(n)))}return A},p=(n,E={mappingMethod:null,mapping:[]})=>{var t,e;if(l(n))return[];if(n===T.SELECT){const{mapping:T}=E;return T}return null!=(e=null==(t=i[r.API])?void 0:t[n])?e:[]};export{p as generateDefOptionsInApi,e as generateDefOptionsInSql};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{DataTypeEnums as l,WidgetTypeEnums as e,WidgetOptionEnums as t,MappingMethodEnums as i}from"../types/enums.js";import{getWidgetTypeInSql as a}from"./getWidgetType.js";
|
|
1
|
+
import{DataTypeEnums as l,WidgetTypeEnums as e,WidgetOptionEnums as t,MappingMethodEnums as i}from"../types/enums.js";import{getWidgetTypeInSql as a}from"./getWidgetType.js";const n=l=>null==l||null==l,u=(u,p=[])=>u===l.API?p.map((l=>{var i,a,n,p,o,r,d,y,v,f,m;const s=null!=(a=null==(i=l.optionInfo)?void 0:i.list)?a:[];return{dataType:u,p_name:l.name,p_type:l.dataType,title:l.title,customTitle:l.customTitle,type:l.type,optionSetting:l.optionType,openAdvancedFilter:l.isShowSearch,filterOutDisplay:l.filterExplicit,filterOutRequired:l.explicitRequired,width:l.width,defValCfg:{value:l.type===e.SELECT&&l.optionType===t.MULTIPLE?null!=(p=null==(n=l.defaultValue)?void 0:n.valueList)?p:[]:null!=(d=null==(r=null==(o=l.defaultValue)?void 0:o.valueList)?void 0:r[0])?d:null,presetVal:l.type===e.SELECT&&l.optionType===t.MULTIPLE?(null==(y=l.defaultValue)?void 0:y.unit)?[null==(v=l.defaultValue)?void 0:v.unit]:[]:null!=(m=null==(f=l.defaultValue)?void 0:f.unit)?m:null},mappingConfig:{mappingMethod:null,mapping:s.map((({name:l,value:e})=>({label:l,value:e})))},remark:l.remark,_rawData:l}})):u===l.SQL?p.map((l=>{var p,o,r,d,y,v,f,m,s,T,c,g,L;let V=null;n(null==(p=l.optionInfo)?void 0:p.manualMapping)||(V=(null==(o=null==l?void 0:l.optionInfo)?void 0:o.manualMapping)?i.MANUAL:i.DICT);const A={mappingMethod:V,mapping:(null!=(d=null==(r=l.optionInfo)?void 0:r.list)?d:[]).map((({name:l,value:e})=>({label:l,value:e})))},E=a(l.dataType,A);return{dataType:u,fieldType:l.dataType,title:l.title,customTitle:l.customTitle,optionSetting:l.optionType,openAdvancedFilter:l.isShowSearch,filterOutDisplay:l.filterExplicit,filterOutRequired:l.explicitRequired,width:l.width,defValCfg:{value:E===e.SELECT&&l.optionType===t.MULTIPLE?null!=(v=null==(y=l.defaultValue)?void 0:y.valueList)?v:[]:null!=(s=null==(m=null==(f=l.defaultValue)?void 0:f.valueList)?void 0:m[0])?s:null,presetVal:E===e.SELECT&&l.optionType===t.MULTIPLE?(null==(T=l.defaultValue)?void 0:T.unit)?[null==(c=l.defaultValue)?void 0:c.unit]:[]:null!=(L=null==(g=l.defaultValue)?void 0:g.unit)?L:null},mappingConfig:A,remark:l.remark,_rawData:l}})):[],p=e=>e.map((e=>{var t;const{title:i,customTitle:a,openAdvancedFilter:n,filterOutDisplay:u,filterOutRequired:p,width:o,optionSetting:r,defValCfg:d,mappingConfig:y,remark:v,_rawData:f}=e,{value:m,presetVal:s}=d,{mapping:T}=y;if(e.dataType===l.API){const{p_name:l,p_type:d,type:y}=e;return{...f,name:l,title:i,customTitle:a,type:y,dataType:d,isShowSearch:n,filterExplicit:u,explicitRequired:p,width:o,optionType:r,defaultValue:{valueList:Array.isArray(m)?m:m?[m]:[],unit:Array.isArray(s)?s[0]:s},optionInfo:{manualMapping:null==(t=null==f?void 0:f.optionInfo)?void 0:t.manualMapping,list:T.map((({label:l,value:e})=>({name:l,value:e})))},remark:v}}if(e.dataType===l.SQL){const{title:l,fieldType:t}=e;return{...f,name:f&&f.name,title:l,customTitle:a,type:f&&f.type,dataType:t,isShowSearch:n,filterExplicit:u,explicitRequired:p,width:o,optionType:r,defaultValue:{valueList:Array.isArray(m)?m:m?[m]:[],unit:Array.isArray(s)?s[0]:s},optionInfo:f&&f.optionInfo,remark:v}}return null})).filter((l=>!!l)),o=(l,i)=>l.map((l=>{var a,n;const u=((l,e)=>e.find((e=>e.p_name===l)))(l.field_key,i);let p=l.value;p&&!Array.isArray(p)&&(p=[p]);const o=(null==u?void 0:u.type)===e.SELECT&&(null==u?void 0:u.optionSetting)===t.MULTIPLE?null!=p?p:[]:null!=(a=null==p?void 0:p[0])?a:null;return{key:l.field_key,condition:l.con,value:o,presetVal:null!=(n=l.unit)?n:null}})),r=l=>l.map((l=>({field_key:l.key,con:l.condition,value:Array.isArray(l.value)?l.value:l.value?[l.value]:[],unit:l.presetVal})));export{n as isNil,o as transformConditions,p as transformDataToEnd,u as transformDataToFront,r as transformRawConditions};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cnhis-design-vue",
|
|
3
|
-
"version": "3.1.41-beta.
|
|
3
|
+
"version": "3.1.41-beta.36",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"module": "./es/components/index.js",
|
|
6
6
|
"main": "./es/components/index.js",
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"iOS 7",
|
|
62
62
|
"last 3 iOS versions"
|
|
63
63
|
],
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "37ccda608adaddacaaf4b3680718081c3c4809c2"
|
|
65
65
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{defineComponent as e,ref as t,computed as l,watch as i,openBlock as a,createElementBlock as r,createElementVNode as n,withDirectives as s,createCommentVNode as u,renderSlot as o,unref as c,createVNode as f,withCtx as d,createTextVNode as m,toDisplayString as h,Fragment as p,renderList as v}from"vue";import g from"xe-utils";import"moment";import y from"../directive/resize.js";import b from"../components/render-widget/index.vue.js";import k from"../hooks/useMixins.js";import x from"../hooks/useAdvanced.js";import S from"../hooks/useRenderWidget.js";import{NButton as _,NIcon as j}from"naive-ui";import{Search as C}from"@vicons/ionicons5";import{cloneDeep as F}from"lodash-es";import R from"../../../../_virtual/plugin-vue_export-helper.js";const q={class:"base-search-block"},I={class:"base-container"},Q={class:"base-ul"},V=n("i",{class:"iconfont-table-filter icon-table-filter-shaixuan",style:{color:"inherit","margin-right":"6px"}},null,-1),A={key:1,class:"baseli"},O={key:2,class:"baseli"},L=n("i",{class:"iconfont-table-filter icon-table-filter-reset",style:{"margin-right":"6px"}},null,-1);var W=R(e({__name:"BaseSearch",props:{showSettings:{type:Object,default:()=>({hideQuickSearch:0})},searchFieldList:{type:Array,default:()=>[]},classificationIndex:{type:Number},qqConObjCount:{type:Number,default:0}},emits:["foldQuickSearch","onFilterSearch","handleReset","getFilterParam"],setup(e,{emit:R}){const W=e,{outQuickSearchFn:w}=k(),{isRender:z,getRenderSearchConObj:B,isExistDefValByRenderWidget:D,resetRenderWidgetValue:E}=S(),{transformData:N}=x(),P=t(null),U=t(null),$=t(0),M=t(0),T=t(0),G=t(0),H=t(!1),J=t(!1),K=t([]),X=l((()=>{var e;return e="hideQuickSearch",0==W.showSettings[e]}));function Y(e){var t;if(J.value)return;let l=P.value;if(!l)return;J.value=!0,$.value=l.clientWidth,M.value=2===W.classificationIndex?160:0,T.value=(null==(t=U.value)?void 0:t.clientWidth)||0;let i=M.value+T.value,a=$.value-i;G.value=a,e.type&&"resize"===e.type&&function(){if(K.value.length>0)return;J.value=!1}()}function Z(){g.debounce(Y({type:"resize"}),300)}function ee(){R("foldQuickSearch",!0)}function te(e={}){!function(e,t=!1,l={}){let i=[];K.value.length>0&&(i=F(K.value));R("onFilterSearch",e,t,i,l)}(le()||[],!0,e)}function le(){return function(e){if(!Array.isArray(e))return[];let t=[];for(let l=0;l<e.length;l++){let i=e[l];const a=B(i);a&&t.push(a)}return t.filter((e=>e.value))}(K.value)}function ie(){!function(e){if(!Array.isArray(e))return;e.forEach((e=>{E(e)})),w.handlerInitSearchItem(e)}(K.value),R("handleReset",{targetType:"outQuickSearchReset"})}return i((()=>W.searchFieldList),(e=>{e&&e.length>0&&function(e={}){K.value=[];let t=F(N(W.searchFieldList)).filter((e=>1==e.isShowSearch&&1==e.filterExplicit));K.value=t,w.handlerInitSearchItem(K.value),K.value.some((e=>z(e)?D(e):!!e.explicitDefaultVal))}()}),{immediate:!0,deep:!0}),i((()=>K),(()=>{const e=le()||[];R("getFilterParam",e),H.value=!!e.length}),{immediate:!0,deep:!0}),(t,l)=>(a(),r("div",q,[n("div",I,[s((a(),r("div",{class:"bease-left",ref_key:"baseLeft",ref:P},[n("ul",Q,[u(" 筛选分类插槽内容 "),o(t.$slots,"classification"),c(X)?(a(),r("li",{key:0,class:"baseli",ref_key:"quickSearchLi",ref:U},[f(c(_),{class:"search-default",type:"default",onClick:ee},{default:d((()=>[V,m(" 筛选 "+h(e.qqConObjCount?`(${e.qqConObjCount})`:""),1)])),_:1})],512)):u("v-if",!0),u(" start--筛选外显--start "),(a(!0),r(p,null,v(K.value,(e=>(a(),r(p,null,[e.isRender?(a(),r("li",{class:"baseli outQuickSearch-li",key:e._frontId},[f(b,{style:{margin:"0 8px 8px 0"},cfg:e,modelValue:e.value,"onUpdate:modelValue":t=>e.value=t,onOutFilterChange:te},null,8,["cfg","modelValue","onUpdate:modelValue"])])):u("v-if",!0)],64)))),256)),u(" end--筛选外显--end "),u(" 查询按钮 "),K.value&&K.value.length>0?(a(),r("li",A,[f(c(_),{type:"primary",onClick:te,style:{margin:"0 8px 8px 0"}},{default:d((()=>[f(c(j),{component:c(C),size:"16",style:{"margin-right":"6px"}},null,8,["component"]),m(" 查询 ")])),_:1})])):u("v-if",!0),u(" 重置按钮 "),H.value?(a(),r("li",O,[f(c(_),{onClick:ie,style:{margin:"0 8px 8px 0"}},{default:d((()=>[L,m(" 重置 ")])),_:1})])):u("v-if",!0)])])),[[c(y),Z]])])]))}}),[["__file","BaseSearch.vue"]]);export{W as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{defineComponent as e,useAttrs as i,ref as n,provide as l,computed as t,onActivated as a,onBeforeMount as o,onMounted as s,nextTick as d,watch as c,openBlock as r,createElementBlock as h,normalizeClass as u,unref as f,normalizeStyle as p,withDirectives as m,createVNode as g,createTextVNode as v,toDisplayString as C,createCommentVNode as y,createElementVNode as k,Fragment as S,renderList as b,createBlock as x,withCtx as _}from"vue";import{NIcon as O,NTooltip as w}from"naive-ui";import{Repeat as I,SettingsOutline as L,ChevronDown as z,ChevronForward as j,Checkmark as B,Close as N,ChevronUp as P}from"@vicons/ionicons5";import M from"../components/set-classification/index.vue.js";import A from"../directive/flexibleResize.js";import{root_isShowResetButton as E}from"../const/index.js";import J from"../hooks/useMixins.js";import T from"../../../../_virtual/plugin-vue_export-helper.js";const R={key:0,class:"header"},F={class:"tree"},W=["onClick"],q=["onClick"],G=["onClick"],Q={class:"child-item-name"},$={key:1,class:"tree-type-footer"},D={class:"selected-num"},V=k("i",{class:"iconfont-table-filter icon-table-filter-menzhenyishengzhananniushanchu2"},null,-1),H={key:0,class:"tile-type classify-1"},K={key:0,class:"header"},U={class:"right-setting"},X=["onClick"],Y={class:"parent ellips"},Z={class:"children"},ee=["onClick"],ie={key:1,class:"selected-list"},ne={class:"selected-num"},le=k("i",{class:"iconfont-table-filter icon-table-filter-menzhenyishengzhananniushanchu2"},null,-1),te={class:"name"},ae={class:"name"},oe={key:0,class:"main-wrapper"},se=["onClick"],de={class:"tree-footer"},ce=["onClick"],re=["onClick"],he={key:0,class:"select-type-footer"},ue={class:"selected-num"},fe=k("i",{class:"iconfont-table-filter icon-table-filter-menzhenyishengzhananniushanchu2"},null,-1);var pe=T(e({__name:"Classification-com",props:{tableId:{type:String,default:""},searchFieldList:{type:Array,default:()=>[]},conditionMap:{type:Object,default:()=>{}},conditionSid:{type:Array,default:()=>[]},curClassificationIndex:{type:Number,default:0},curClassificationWidth:{type:Number},hideConditionChangeBtn:{type:Number,default:0},hideConditionChangeSetting:{type:Number,default:0},hideClearConditionChange:{type:Number,default:1},isShowResetButton:{type:Boolean,default:!0},filterApiConfig:{type:Object,default:()=>({})}},emits:["changeSearch","setClassificationIndex","getQuickSearchListObj"],setup(e,{emit:T}){const pe=e,{handleGetConfigApi:me}=J(),ge=i(),ve=n(null);let Ce=n(150),ye=n(!1),ke=n([]),Se=n([]),be=n([]),xe=n(2),_e=n(""),Oe=n({name:"全部数据",sid:"all_data"}),we=n([]),Ie=n([]),Le=n(""),ze=n(!1),je=n("全部数据");l(E,n(pe.isShowResetButton));let Be=t((()=>0===xe.value?{marginRight:"8px"}:2===xe.value?{display:"inline-block"}:{})),Ne=t((()=>{let e=Se.value.filter((e=>-1!==pe.conditionSid.indexOf(e.sid)));if(-1!==pe.conditionSid.indexOf("all_data"))return"全部数据";{let i=[];return e.map((e=>{i.push(e.name)})),i.join(",")}})),Pe=t((()=>function(e){let i=0===e.digital?"(0)":e.digital?`(${e.digital})`:"";const{name:n,isPublic:l}=e;return Ue(n,l)+i}));function Me(e){e.open?e.open=!1:e.open=!0}function Ae(e,i,n){je.value=e.name;let l=function(e){let i=[];return ke.value.forEach((n=>{n.children?n.children.forEach((n=>{-1!==e.indexOf(n.sid)?(n.selected=!0,i.push(n)):n.selected=!1})):-1!==e.indexOf(n.sid)?(n.selected=!0,i.push(n)):n.selected=!1})),i}(function(e,i,n){let l=JSON.parse(JSON.stringify(i));l="all_data"===e||-1!==l.indexOf(e)?["all_data"]:[e];return l}(e.sid,pe.conditionSid));Fe(!1),T("changeSearch",Boolean("all_data"===e.sid),e,n,l)}function Ee(){let e="";if(2===xe.value)e=0;else{let i=xe.value;e=++i}Ce.value=150,Je(e)}async function Je(e,i){let n={tableId:pe.tableId,setting:JSON.stringify({classificationIndex:e,classificationWidth:i})};try{await me(n,"requestSaveListPersonaSetting",{},pe.filterApiConfig)&&T("setClassificationIndex",e)}catch(e){console.log(e)}}function Te(){ze.value=!0,Fe(!1)}function Re(e){ze.value=e}function Fe(e){ye.value=void 0===e?!ye.value:e}function We(e){var i;if((void 0!==e&&"delete"===e.type&&-1!==pe.conditionSid.indexOf(e.item.sid)&&T("changeSearch",!0,{name:"全部数据",sid:"all_data",selected:!0}),pe.tableId)&&Object.keys(pe.conditionMap).length>0){ke.value=[];let{displayCategoryList:e=[],conditionList:n=[]}=pe.conditionMap;be.value=JSON.parse(JSON.stringify(n)),Ie.value=e||[],Se.value=JSON.parse(JSON.stringify(n));const l={name:"全部数据",sid:"all_data"};Se.value.unshift(l);let t=[];0===e.length&&(e=["未分类"]),e.forEach((e=>{let i={name:e,children:[]};n.forEach((n=>{(n.displayCategory===e||!n.displayCategory&&"未分类"===e&&"all_data"!==n.sid)&&(-1!==pe.conditionSid.indexOf(n.sid)&&(n.selected=!0,i.open=!0),n.isShow&&i.children.push(n))})),i.children.length>0&&t.push(i)})),t.unshift({name:"全部数据",sid:"all_data"}),ke.value=t,0===xe.value&&(i=!0,ke.value.forEach((e=>{e.children&&e.children.length&&(e.open=i)})))}}async function qe(e){try{await We(e)}catch(e){console.log(e)}}function Ge({distance:e}){const i=Ce.value+e;Ce.value=Math.min(Math.max(i,50),650)}function Qe(){Je(xe.value,Ce.value)}async function $e(){await Ke(pe.tableId),Ve()}async function De(e){await Ke(pe.tableId),He()}function Ve(e){He(e).then((e=>{}))}function He(e,i={}){if(!pe.tableId)return new Promise((e=>e(!1)));let n=Object.keys(i).length>0?i:pe.conditionMap;return new Promise(((i,l)=>{var t,a,o,s,d,c;if(Object.keys(n).length>0){we.value=n.conditionList||[],Ie.value=n.displayCategoryList||[];let l={conditionList:we.value,displayCategoryList:Ie.value};T("getQuickSearchListObj",l),Le.value=n.settingId;const r=we.value.find((e=>e.isDefault))||{name:"全部数据",sid:"all_data"};(null==(a=null==(t=ge.tableOptions)?void 0:t.filterCondition)?void 0:a.displayCategory)&&e&&i({name:null==(s=null==(o=ge.tableOptions)?void 0:o.filterCondition)?void 0:s.name,sid:null==(c=null==(d=ge.tableOptions)?void 0:d.filterCondition)?void 0:c.displayCategory}),i(r)}else i({})}))}async function Ke(e){try{if(!e)return new Promise((e=>e(!1)));let i={tableId:e},n=await me(i,"requestTableCondiTionList",{},pe.filterApiConfig);return Promise.resolve(n)}catch(e){return Promise.resolve(!1)}}function Ue(e,i){return e&&"1"===i?e.replace(/\(公共\)$/,""):e}return a((()=>{qe({})})),o((()=>{qe({})})),s((()=>{document.addEventListener("click",(e=>{d((()=>{let i=e.composedPath&&e.composedPath();ve&&i.includes(ve.value)||Fe(!1)}))}))})),c((()=>pe.tableId),(e=>{e&&(Ve(!0),_e.value!==e&&(_e.value=e))}),{immediate:!0,deep:!0}),c((()=>pe.curClassificationIndex),(e=>{void 0!==e&&(xe.value=e)}),{immediate:!0,deep:!0}),c((()=>pe.curClassificationWidth),(e=>{e&&(Ce.value=Number(e)||150)}),{immediate:!0}),(i,n)=>(r(),h("div",{class:u(["classification-block","classificationIndex-"+f(xe)]),style:p(f(Be))},[0===f(xe)?m((r(),h("div",{key:0,class:"tree-type classify-0",style:p({width:f(Ce)+"px",paddingBottom:1!=e.hideClearConditionChange?"80px":0,position:"relative"})},[1!=e.hideConditionChangeBtn||1!=e.hideConditionChangeSetting?(r(),h("div",R,[1!=e.hideConditionChangeBtn?(r(),h("span",{key:0,class:"header-1",onClick:Ee},[g(f(O),{component:f(I),size:"16"},null,8,["component"]),v(" "+C("切换"))])):y("v-if",!0),1!=e.hideConditionChangeSetting?(r(),h("span",{key:1,class:"header-1",onClick:Te},[g(f(O),{component:f(L),size:"16"},null,8,["component"]),v(" "+C("设置"))])):y("v-if",!0)])):y("v-if",!0),k("ul",F,[(r(!0),h(S,null,b(f(ke),((i,n)=>(r(),h(S,null,[0===n||!i.children||0===i.children.length||i.children&&0!==i.children.filter((e=>e.isShow)).length?(r(),h("li",{key:n,class:u(["tree-item",{"tree-header":0===n||!i.children||0===i.children.length}])},[0!==n&&i.children&&0!==i.children.length?(r(),h(S,{key:1},[k("span",{class:u(["parent",{open:i.open}]),onClick:e=>Me(i)},[k("span",null,C(i.name),1),g(f(O),{component:i.open?f(z):f(j)},null,8,["component"])],10,q),i.open?(r(!0),h(S,{key:0},b(i.children.filter((e=>e.isShow)),((e,n)=>(r(),h("div",{class:"children",key:n},[e.isShow?(r(),x(f(w),{key:0,trigger:"hover",placement:"right"},{trigger:_((()=>[k("span",{class:u(["child-item",{selected:e.selected}]),onClick:n=>Ae(e,0,i)},[k("span",Q,C(e.name||Ue(e.isPublic)),1),e.selected?(r(),x(f(O),{key:0,component:f(B),size:"20"},null,8,["component"])):y("v-if",!0)],10,G)])),default:_((()=>[k("span",null,C(f(Pe)(e)),1)])),_:2},1024)):y("v-if",!0)])))),128)):y("v-if",!0)],64)):(r(),h("span",{key:0,class:u(["child-item header-item",{selected:i.selected||-1!==e.conditionSid.indexOf("all_data")}]),onClick:e=>Ae(i)},C(i.name),11,W))],2)):y("v-if",!0)],64)))),256))]),1!=e.hideClearConditionChange?(r(),h("div",$,[k("div",D,"已选择"+C(e.conditionSid.filter((e=>"all_data"!==e)).length)+"项",1),k("div",{class:"selected-item-del",onClick:n[0]||(n[0]=e=>Ae({sid:"all_data",name:"全部数据",digital:f(Oe).digital}))},[V,v(" 清空筛选 ")])])):y("v-if",!0)],4)),[[f(A),{mode:"VR",onMove:Ge,onEnd:Qe}]]):y("v-if",!0),1===f(xe)?(r(),h(S,{key:1},[1!=e.hideConditionChangeBtn||1!=e.hideConditionChangeSetting||1!=e.hideConditionChangeSetting||f(be).filter((e=>e.isShow)).length>0?(r(),h("div",H,[1!=e.hideConditionChangeBtn||1!=e.hideConditionChangeSetting?(r(),h("div",K,[k("span",{class:u(["all-data",{selected:-1!==e.conditionSid.indexOf("all_data")}]),onClick:n[1]||(n[1]=e=>Ae({sid:"all_data",name:"全部数据",digital:f(Oe).digital}))},[v(" 全部数据 "),f(Oe).digital||0===f(Oe).digital?(r(),h(S,{key:0},[v(" ("+C(f(Oe).digital||0)+") ",1)],64)):y("v-if",!0)],2),k("div",U,[1!=e.hideConditionChangeBtn?(r(),h("span",{key:0,class:"setting-1",onClick:Ee,style:{"margin-right":"30px"}},[g(f(O),{component:f(I),size:"16"},null,8,["component"]),v(" "+C("切换"))])):y("v-if",!0),1!=e.hideConditionChangeSetting?(r(),h("span",{key:1,class:"setting-1",onClick:Te},[g(f(O),{component:f(L),size:"16"},null,8,["component"]),v(" "+C("设置"))])):y("v-if",!0)])])):y("v-if",!0),k("ul",{class:"tile",style:p({borderBottom:1!=e.hideClearConditionChange?"1px solid #d5d5d5":0})},[(r(!0),h(S,null,b(f(ke).slice(1),((e,i)=>(r(),h(S,null,[e.children&&e.children.length>0?(r(),h("li",{class:"tile-item",key:i},[e.children&&0!==e.children.length?(r(),h(S,{key:1},[k("span",Y,C(e.name),1),k("div",Z,[(r(!0),h(S,null,b(e.children,((i,n)=>(r(),h(S,null,[i.isShow?(r(),h("span",{key:n,class:u(["child-item",{selected:i.selected}]),onClick:n=>Ae(i,0,e)},C(i.name||Ue(i.isPublic)),11,ee)):y("v-if",!0)],64)))),256))])],64)):(r(),h("span",{key:0,class:u(["child-item",{selected:e.selected}]),style:{"padding-left":"17px"},onClick:i=>Ae(e)},C(e.name)+" "+C(e.digital),11,X))])):y("v-if",!0)],64)))),256))],4),1!=e.hideClearConditionChange?(r(),h("div",ie,[k("div",ne,"已选择"+C(e.conditionSid.filter((e=>"all_data"!==e)).length)+"项",1),(r(!0),h(S,null,b(f(ke).slice(1),((e,i)=>(r(),h(S,null,[e.children&&0!==e.children.length?(r(!0),h(S,{key:1},b(e.children,((i,n)=>(r(),h(S,null,[i.selected?(r(),h("div",{class:"selected-item",key:i.sid},[v(C(i.name)+" ",1),g(f(O),{component:f(N),onClick:n=>Ae(i,0,e)},null,8,["component","onClick"])])):y("v-if",!0)],64)))),256)):(r(),h("div",{class:"selected-item",key:e.sid},[v(C(e.name)+" ",1),g(f(O),{component:f(N),onClick:i=>Ae(e)},null,8,["component","onClick"])]))],64)))),256)),k("div",{class:"selected-item-del",onClick:n[2]||(n[2]=e=>Ae({sid:"all_data",name:"全部数据",digital:f(Oe).digital}))},[le,v(" 清空筛选 ")])])):y("v-if",!0)])):y("v-if",!0)],64)):y("v-if",!0),2===f(xe)?(r(),h("div",{key:2,class:"select-type classify-2",ref_key:"selectType",ref:ve},[k("span",{class:"title",onClick:n[3]||(n[3]=()=>Fe())},[g(f(w),{trigger:"hover",placement:"top"},{trigger:_((()=>[k("span",te,C(f(Ne)),1)])),default:_((()=>[k("span",ae,C(f(Ne)),1)])),_:1}),g(f(O),{component:f(ye)?f(P):f(z)},null,8,["component"])]),f(ye)?(r(),h("div",oe,[k("ul",{class:"tree",style:p({padding:1!=e.hideClearConditionChange?"40px 0":"40px 0 0"})},[(r(!0),h(S,null,b(f(ke),((i,n)=>(r(),h(S,null,[0===n||!i.children||0===i.children.length||i.children&&0!==i.children.filter((e=>e.isShow)).length?(r(),h("li",{key:n,class:u(["tree-item",{"tree-header":0===n||!i.children||0===i.children.length}])},[0!==n&&i.children&&0!==i.children.length?(r(),h(S,{key:1},[0!==i.children.filter((e=>e.isShow)).length?(r(),h("span",{key:0,class:u(["parent",{open:i.open}]),onClick:e=>Me(i)},[v(C(i.name)+C(i.digital||0===i.digital?"("+i.digital+")":"")+" ",1),g(f(O),{component:i.open?f(z):f(j)},null,8,["component"])],10,ce)):y("v-if",!0),i.open?(r(!0),h(S,{key:1},b(i.children.filter((e=>e.isShow)),((e,n)=>(r(),h("div",{class:"children",key:n},[e.isShow?(r(),x(f(w),{key:0,placement:"right",trigger:"hover","z-index":1e4},{trigger:_((()=>[k("span",{class:u(["child-item",{selected:e.selected}]),onClick:n=>Ae(e,0,i)},[k("span",null,C(e.name||Ue(null==e?void 0:e.isPublic)),1),e.selected?(r(),x(f(O),{key:0,component:f(B),size:"20"},null,8,["component"])):y("v-if",!0)],10,re)])),default:_((()=>[k("span",null,C(f(Pe)(e)),1)])),_:2},1024)):y("v-if",!0)])))),128)):y("v-if",!0)],64)):(r(),h(S,{key:0},[k("span",{class:u(["child-item child-header header-item",{selected:i.selected||-1!==e.conditionSid.indexOf("all_data")}]),onClick:e=>Ae(i)},C(i.name),11,se),k("div",de,[1!=e.hideConditionChangeBtn?(r(),h("span",{key:0,class:"tree-footer-icon",onClick:Ee},[g(f(O),{component:f(I),size:"16"},null,8,["component"]),v(" "+C("切换"))])):y("v-if",!0),1!=e.hideConditionChangeSetting?(r(),h("span",{key:1,class:"tree-footer-icon",onClick:Te},[g(f(O),{component:f(L),size:"16"},null,8,["component"]),v(" "+C("设置"))])):y("v-if",!0)])],64))],2)):y("v-if",!0)],64)))),256))],4),1!=e.hideClearConditionChange?(r(),h("div",he,[k("div",ue,"已选择"+C(e.conditionSid.filter((e=>"all_data"!==e)).length)+"项",1),k("div",{class:"selected-item-del",onClick:n[4]||(n[4]=e=>Ae({sid:"all_data",name:"全部数据",digital:f(Oe).digital}))},[fe,v(" 清空筛选 ")])])):y("v-if",!0)])):y("v-if",!0)],512)):y("v-if",!0),y(" 弹出弹窗 "),g(M,{ref:"search",searchFieldList:e.searchFieldList,conditionList:f(we),displayCategoryList:f(Ie),settingId:f(Le),tableId:e.tableId,classifyModal:f(ze),filterApiConfig:e.filterApiConfig,onSaveGetTableCondiTionList:De,onCondiTionListInit:$e,onSetClassifyModal:Re},null,8,["searchFieldList","conditionList","displayCategoryList","settingId","tableId","classifyModal","filterApiConfig"])],6))}}),[["__file","Classification-com.vue"]]);export{pe as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{defineComponent as e,ref as i,onBeforeUnmount as t,watch as l,openBlock as a,createBlock as o,unref as n,normalizeClass as u,withCtx as d,createVNode as s,normalizeStyle as c,createElementVNode as r,createTextVNode as v,mergeProps as f}from"vue";import{NModal as h,NCard as p,NButton as m}from"naive-ui";import x from"../classify-filter/index.vue.js";import g from"../../../../../_virtual/plugin-vue_export-helper.js";const b={class:"svg-wrap"},y={class:"flex_right"};var _=g(e({__name:"index",props:{visible:{type:Boolean,default:!1},modalTitle:{type:String,default:"设置分类"},conditionList:{type:Array,default:()=>[]},searchFieldList:{type:Array,default:()=>[]},filterApiConfig:{type:Object,default:()=>({})}},emits:["cancelSaveAdd"],setup(e,{expose:g,emit:_}){const w=e,k=i(w.visible),z=i(!1),A=i("860px");let C=i({maxHeight:"496px",height:"496px",overflowY:"auto"}),L=i(null),S=null;function H(){F(),S=setTimeout((()=>{L&&L.value.handleInitConditions()}),30)}function F(){S&&clearTimeout(S)}function T(){L&&L.value.saveAdd()}function j(){k.value=!1,_("cancelSaveAdd"),A.value="860px",C.value={height:"496px",maxHeight:"496px",overflowY:"auto"},z.value=!1,L&&L.value.cancelSaveAdd()}function $(){z.value=!z.value;let e=document.body.clientHeight;"860px"===A.value?(A.value="100%",C.value.maxHeight=`${e}px`,C.value.height=`${e}px`):(A.value="860px",C.value.maxHeight="496px",C.value.height="")}return t((()=>{F()})),l((()=>w.visible),(e=>{k.value=e,e&&H()})),g({cancelSaveAdd:j}),(e,i)=>(a(),o(n(h),{class:u(["classification-modal-block standard-modal standard-modal-white",{"modal-screen":z.value}]),show:k.value,"onUpdate:show":i[0]||(i[0]=e=>k.value=e),maskClosable:!1,width:A.value,bodyStyle:n(C),closable:!1,centered:"",onPositiveClick:T,onNegativeClick:j},{default:d((()=>[s(n(p),{style:c({width:A.value,...n(C)}),title:w.modalTitle,bordered:!1,size:"huge",role:"dialog","aria-modal":"true"},{"header-extra":d((()=>[r("div",b,[r("i",{onClick:$,class:u(["iconfont-table-filter",z.value?"icon-table-filter-menzhenyishengzhanxitongtubiaozuixiaohua2":"icon-table-filter-menzhenyishengzhanxitongtubiaozuidahua"])},null,2),r("i",{onClick:j,class:"iconfont-table-filter icon-table-filter-menzhenyishengzhanxitongtubiaoguanbi"})])])),footer:d((()=>[r("div",y,[s(n(m),{onClick:j},{default:d((()=>[v("取消")])),_:1}),s(n(m),{type:"info",onClick:T},{default:d((()=>[v("保存")])),_:1})])])),default:d((()=>[s(x,f(e.$attrs,{ref_key:"conditionApiRef",ref:L,searchFieldList:w.searchFieldList,conditionList:w.conditionList}),null,16,["searchFieldList","conditionList"])])),_:1},8,["style","title"])])),_:1},8,["class","show","width","bodyStyle"]))}}),[["__file","index.vue"]]);export{_ as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{defineComponent as e,ref as i,useAttrs as t,computed as n,watch as o,openBlock as a,createElementBlock as l,createVNode as s,mergeProps as r,unref as c,withCtx as d,createTextVNode as f}from"vue";import{useMessage as u,NButton as p}from"naive-ui";import v from"../table-modal/index.vue.js";import g from"../search-filter/index.vue.js";import C from"../../hooks/useMixins.js";import y from"../../../../../_virtual/plugin-vue_export-helper.js";const m={class:"search"};var h=y(e({__name:"index",props:{searchFieldList:{type:Array,default:()=>[]},conditionList:{type:Array,default:()=>[]},settingId:String,filterApiConfig:{type:Object,default:()=>({})},classifyModal:{type:Boolean,default:!1}},emits:["CondiTionListInit","saveGetTableCondiTionList","setClassifyModal"],setup(e,{emit:y}){const h=e,b=u(),{handleGetConfigApi:A}=C();let L=i(h.conditionList),I=i(),T=i(!1),S=i({}),_=i([]),j=i(!1);const O=i(null),x=t();async function F(e){try{let i=Object.assign(e,{id:h.settingId,tableId:x.tableId});await A(i,"requestSaveTableCondiTionSetting",{},h.filterApiConfig)&&(y("CondiTionListInit"),H(!1))}catch(e){console.log(e)}}function k(){H(!1),L.value.forEach((e=>{e.checked=!1}))}function w(){T.value=!0}function G(e,i){T.value=!0,S.value=Object.assign(e,{from:"edit"})}function M(e,i){T.value=!0,S.value=Object.assign(e,{from:"copy"})}async function q(e){try{if(Object.assign(e,{tableId:x.tableId,conditionList:JSON.stringify(L.value)}),j.value=!0,!await A(e,"requestSaveTableCondiTion",{},h.filterApiConfig))return;O&&O.value.cancelSaveAdd(),y("saveGetTableCondiTionList"),T.value=!1}catch(e){console.log(e)}finally{j.value=!1}}function R(){T.value=!1,S.value={}}function D(e,i){L.value=e,I.value=i}async function E(e,i){if(e)try{let i={id:e.sid};if(!await A(i,"requestDeleteTableCondiTion",{},h.filterApiConfig))return;b.success("删除成功"),y("saveGetTableCondiTionList",{type:"delete",item:e})}catch(e){console.log(e)}else b.info("请选择行")}function H(e){y("setClassifyModal",e)}async function K(){try{let e={id:h.settingId,tableId:x.tableId,type:"SEARCH_CATEGORY"};await A(e,"requestResetDefaultSetting",{},h.filterApiConfig)&&(y("CondiTionListInit"),H(!1))}catch(e){console.log(e)}}let N=n((()=>h.classifyModal));return o((()=>x.searchKey),(()=>{x.selectKeys=[x.searchKey||"all"]})),o((()=>h.searchFieldList),(e=>{e&&e.length>0&&(_.value=e.filter((e=>"operatorColumn"!==e.columnName)))}),{immediate:!0,deep:!0}),o((()=>T),(e=>{e||(S.value={})})),(i,t)=>(a(),l("div",m,[s(v,r({dataSource:c(L),visibleIn:c(N)},i.$attrs,{onHandleOk:F,onClose:k,onChangeData:D,onResetPopconfirm:K,edit:G,copy:M,delItem:E,type:"search",filterApiConfig:e.filterApiConfig}),{add:d((()=>[s(c(p),{type:"info",onClick:w},{default:d((()=>[f("新增")])),_:1})])),_:1},16,["dataSource","visibleIn","filterApiConfig"]),s(g,r({ref_key:"searchFilter",ref:O},i.$attrs,{visible:c(T),loading:c(j),conditionList:c(L),actionList_prop:c(S),searchFieldList:c(_),isInSearch:!0,isCnHis:!0,showCompareField:!0,filterApiConfig:e.filterApiConfig,onSaveAdd:q,onCancelSaveAdd:R}),null,16,["visible","loading","conditionList","actionList_prop","searchFieldList","filterApiConfig"])]))}}),[["__file","index.vue"]]);export{h as default};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { Ref, InjectionKey } from 'vue';
|
|
2
|
-
import { IeditTableWrapperItem } from '../types';
|
|
3
|
-
export declare const GROUP_TITLE_KEY = "group-show-title";
|
|
4
|
-
export declare const root_isShowResetButton: InjectionKey<Ref<boolean>>;
|
|
5
|
-
export declare const InjecteditTableWrapper: InjectionKey<Ref<IeditTableWrapperItem>>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const o="group-show-title",t=Symbol("root_isShowResetButton"),e=Symbol("editTableWrapper");export{o as GROUP_TITLE_KEY,e as InjecteditTableWrapper,t as root_isShowResetButton};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import moment from 'moment';
|
|
2
|
-
import 'moment/locale/zh-cn';
|
|
3
|
-
import { ISearchType } from '../../../../../es/components/table-filter/src/types';
|
|
4
|
-
export default function (): {
|
|
5
|
-
validConObj: (conObj: any, fieldList: ISearchType[], fieldSearchLimit: any) => any;
|
|
6
|
-
getSearchDefValueByLimit: (field: ISearchType, searchLimit?: any) => "" | moment.Moment[];
|
|
7
|
-
formatSearchLimit: (limitList: any, freeze?: boolean) => any;
|
|
8
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import e from"moment";import"moment/locale/zh-cn";import{useMessage as t}from"naive-ui";const n=t();function r(){function t(e){e=Number(e)||0;const t=Math.floor(e/12),n=e%12;return(t?`${t}年`:"")+(n?6==n?"半"+(t?"":"年"):`${n}个月`:"")}return{validConObj:function(r,o,i){if(!i||!(null==r?void 0:r.length)||!(null==o?void 0:o.length))return!0;const u=o.reduce(((e,t,n)=>(e[t.columnName]=n,e)),{});return r.every((r=>{const c=r.field_key,l=o[u[c]],a=i[c];return!l||!a||("time"!==a.type||((r,o,i)=>{let u=i.value,c=0;const l=u;if(!u)return!0;const a={TODAY:1/30,TOMORROW:1/30,YESTERDAY:1/30,THIS_WEEK:7/30,NEXT_WEEK:7/30,LAST_WEEK:7/30,THIS_MONTH:1,NEXT_MONTH:1,LAST_MONTH:1,THIS_SEASON:3,NEXT_SEASON:3,LAST_SEASON:3,THIS_YEAR:12,NEXT_YEAR:12,LAST_YEAR:12},f={HOUR:1/24/30,DAY:1/30,WEEK:7/30,MONTH:1,QUARTER:3,YEAR:12},E=r.con;if("IN"===E){const{start_val:t,end_val:i}=r;if(!t&&i||t&&!i)return void n.warning(`请选择${o.title}${t?"截止":"起始"}日期`);t&&i&&(c=e(i).valueOf(),u=e(t).add(l,"month").valueOf())}else if(a[E])c=a[E];else if(",IN_THE_PAST,IN_THE_FUTURE,".includes(`,${E},`)){const{value:e,unit:t}=r,n=f[t]||1;c=Math.floor(Number(e)*Number(n)*100)/100}else if(",IN_THE_PAST_DI,IN_THE_FUTURE_DI,".includes(`,${E},`)){const{unit:e}=r;c=f[e]||0}const T=c<=u;if(!T){const e=o.title||"";n.warning(`${e}最大查询跨度${t(i.value)}`)}return T})(r,l,a))}))},getSearchDefValueByLimit:function(t,n){if(n){const r=n[t.columnName];if(r&&"time"===r.type){const{way:t,defValue:n}=r,o=1==t,i=e(),u=i.clone().add("month",n*(o?-1:1));return o?[u,i]:[i,u]}}return""},formatSearchLimit:function(e,n=!0){const r={time(e){const{value:n,defValue:r}=e;return`默认查询${t(r)},最大查询跨度${t(n)}`}},o=e.reduce(((e,t)=>{const{key:n}=t;if(n){const o=r[t.type]?r[t.type](t):"";e[n]={...t,tips:o}}return e}),{});return n?Object.freeze(o):o}}}export{r as default};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ISearchType } from '../../../../../es/components/table-filter/src/types';
|
|
2
|
-
export default function (): {
|
|
3
|
-
wordBookutils: {
|
|
4
|
-
hasArray: (arr: ISearchType[]) => boolean;
|
|
5
|
-
handleWordbookData(item: any, data: any, params: any): {
|
|
6
|
-
rows: never[];
|
|
7
|
-
hasFieldList: boolean;
|
|
8
|
-
searchPageConfig: {};
|
|
9
|
-
};
|
|
10
|
-
getTitleHeader(fieldList: ISearchType[], renderKey: any): any;
|
|
11
|
-
};
|
|
12
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import e from"xe-utils";import"moment";function t(){const t="<&=&>",a={hasArray:e=>Array.isArray(e)&&e.length>0,handleWordbookData(o,s,r){const{setting:n={}}=o,{showKeys:i=[],defaultValue:l,defaultValueTitle:u}=n.wordbook||{};let h=null,d=[],m=!1,c={};if(l&&u&&(h={myName:l,showKeys:u}),s&&s.result){const n=(null==s?void 0:s.reqParams)||{},{page:l,hasNextPage:u,fieldList:y}=s.map;c=Object.assign(o.searchPageConfig,{page:l,hasNextPage:u,isRequest:!0,keyword:(null==r?void 0:r.keyword)||void 0,asyncCount:(null==n?void 0:n.asyncCount)||void 0});const g=s.map.rows.map((a=>{const s=[];i.forEach((t=>{const o=e.stringToValue(a[t],"change_text");s.push(o)}));const r=e.stringToValue(a[o.setting.wordbook.field_key],"value");return Object.assign(a,{myName:r,showKeys:s.join(t),_show_title:s.join(" ")})})),f={};if(d=g.reduce(((e,t)=>(!f[t.myName]&&(f[t.myName]=e.push(t)),e)),[]),h&&d.unshift(h),a.hasArray(y)&&a.hasArray(i)&&i.length>1){const e=a.getTitleHeader(y,i);d.unshift({myName:e,showKeys:e,sid:Math.random()}),m=!0}}return{rows:d,hasFieldList:m,searchPageConfig:c}},getTitleHeader(e,a){const o=[];let s=[];s=Array.isArray(a)?[...a]:[a],s.forEach((t=>{for(let a=0;a<e.length;a++)if(t===e[a].columnName){o.push(`${e[a].title}`);break}}));return o.join(t)}};return{wordBookutils:a}}export{t as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{defineComponent as e,ref as l,computed as a,watch as t,openBlock as i,createElementBlock as n,createElementVNode as o,Fragment as s,renderList as u,unref as c,normalizeClass as r,createCommentVNode as d,toDisplayString as v,createBlock as f,createVNode as m,withCtx as p,createTextVNode as h,withDirectives as g,vShow as k,isRef as b}from"vue";import{useMessage as y,NModal as C,NCard as S,NIcon as x,NButton as _,NForm as w,NFormItem as A,NInput as q}from"naive-ui";import{CloseOutline as F,AddOutline as j}from"@vicons/ionicons5";import I from"../hooks/useMixins.js";import L from"../hooks/useRenderWidget.js";import R from"../hooks/useAdvanced.js";import"moment/locale/zh-cn";import{cloneDeep as T}from"lodash-es";import U from"../components/render-widget/index.vue.js";import V from"../../../../_virtual/plugin-vue_export-helper.js";const z={class:"quick-search-block quick-search-table"},E={class:"quick-row"},Q={class:"quick-item-title"},B={class:"quick-item-col"},D={class:"svg-wrap"},O={class:"flex_right"},N={class:"class-filter-content"},P={class:"quickSearch-content"},W=o("span",{class:"label"},"父类名称:",-1),M=["onDblclick","onClick"],G={key:0,class:"s-content"};var J=V(e({__name:"QuickSearch",props:{searchFieldList:{type:Array,default:()=>[]},tableId:{type:String,default:""},filterApiConfig:{type:Object}},emits:["getFilterParam","onFilterSearch","clearQuickSearchConfig"],setup(e,{expose:V,emit:J}){const H=e,K={classname:{required:!0,message:"请输入分类名称",trigger:["input","blur"]}},X=y(),{handleGetConfigApi:Y,outQuickSearchFn:Z}=I(),{initRenderWidgetCfg:$,getRenderSearchConObj:ee,resetRenderWidgetValue:le}=L(),{transformData:ae}=R(),te=l(null),ie=l({classname:""});let ne=l(!1),oe=l([]),se=l([]),ue=l(!1),ce=l(""),re=a((()=>!!se.value.length&&se.value.some((e=>e.isAdd)))),de=a((()=>(e,l="name")=>e.alias||e[l]));function ve(){return function(e){if(!Array.isArray(e))return[];let l=[];for(let a=0;a<e.length;a++){let t=e[a];const i=ee(t);i&&l.push(i)}return l.filter((e=>e.value))}(oe.value)||[]}function fe(){var e;null==(e=te.value)||e.validate((e=>{var l;if(e)return;let a=ve();a.length||(a=[]);let t=null==(l=se.value.filter((e=>e.selected))[0])?void 0:l.value;!async function(e){var l;try{if(!await Y(e,"requestSaveTableCondiTion",{},H.filterApiConfig))return;ne.value=!1,null==(l=te.value)||l.restoreValidation(),ie.value.classname="",se.value=[],ke()}catch(e){console.log(e)}}({tableId:H.tableId||"",setting:JSON.stringify({displayCategory:t,name:ie.value.classname,conObj:a}),conditionList:"[]"})}))}function me(e){var l;const a=null==(l=null==e?void 0:e.target)?void 0:l.nextElementSibling;setTimeout((()=>{a&&a.focus()})),ue.value=!0}function pe(){ue.value=!1,ce.value&&(se.value.forEach((e=>e.selected=!1)),se.value.push({disabled:!0,value:ce.value,selected:!0,isAdd:!0}),ce.value="")}function he(e,l){!function(e,l){se.value.splice(e,1)}(e)}function ge(){ne.value=!1}function ke(){!function(e){if(!Array.isArray(e))return;e.forEach((e=>{le(e)})),Z.handlerInitSearchItem(oe.value)}(oe.value),J("clearQuickSearchConfig")}return t((()=>H.searchFieldList),(e=>{e&&e.length>0&&function(){let e=T(ae(H.searchFieldList)).filter((e=>1==e.isShowSearch&&1!=e.filterExplicit))||[];setTimeout((()=>{oe.value=e||[],Z.handlerInitSearchItem(oe.value)}))}()}),{immediate:!0,deep:!0}),t((()=>oe),(()=>{const e=ve()||[];J("getFilterParam",e)}),{deep:!0}),V({openSaveToCalss:function(){let e=ve();e&&(e.length>0?ne.value=!0:X.warning("请设置搜索条件"))},clearData:ke,onFilterSearch:function(){let e=ve()||[];return J("onFilterSearch",e,!1),oe.value}}),(e,l)=>(i(),n("div",null,[o("div",z,[(i(!0),n(s,null,u(c(oe),(e=>(i(),n("div",{class:r(["quick-item",{"quick-block":e._isBlock}]),key:e.sid||e.columnName},[o("div",E,[d(" title "),o("div",Q,[o("span",null,v(c(de)(e,"title"))+" ",1)]),d(" content "),o("div",B,[d(" 直接渲染组件 "),e.isRender?(i(),f(U,{key:0,cfg:e,modelValue:e.value,"onUpdate:modelValue":l=>e.value=l},null,8,["cfg","modelValue","onUpdate:modelValue"])):d("v-if",!0)])])],2)))),128))]),d(" 保存到分类的弹窗 "),m(c(C),{show:c(ne),maskClosable:!1,"positive-text":"确认","negative-text":"取消",onPositiveClick:fe,onNegativeClick:ge,class:"classification-modal-block"},{default:p((()=>[m(c(S),{title:"设置筛选分类",style:{width:"520px"},bordered:!1,size:"huge",role:"dialog","aria-modal":"true"},{"header-extra":p((()=>[o("div",D,[m(c(x),{component:c(F),size:"24",onClick:ge},null,8,["component"])])])),footer:p((()=>[o("div",O,[m(c(_),{onClick:ge},{default:p((()=>[h("取消")])),_:1}),m(c(_),{type:"info",onClick:fe},{default:p((()=>[h("确认")])),_:1})])])),default:p((()=>[o("div",N,[m(c(w),{ref_key:"formRef",ref:te,"label-placement":"left",rules:K,model:ie.value},{default:p((()=>[m(c(A),{label:"筛选集名称",path:"classname"},{default:p((()=>[m(c(q),{value:ie.value.classname,"onUpdate:value":l[0]||(l[0]=e=>ie.value.classname=e),placeholder:"请输入分类名称",clearable:""},null,8,["value"])])),_:1})])),_:1},8,["model"]),o("div",P,[W,(i(!0),n(s,null,u(c(se),((e,l)=>(i(),n("div",{class:r(["edit-tag",{"edit-tag-select":e.selected&&e.disabled}]),key:l,onDblclick:l=>function(e,l){l.disabled=!1,setTimeout((()=>{var l;null==(l=e.target)||l.focus()}),0)}(l,e),onClick:a=>function(e,l){e.disabled&&(se.value.forEach(((e,a)=>{a!==l&&(e.selected=!1)})),e.selected=!e.selected)}(e,l)},[e.disabled?(i(),n("div",G,[o("span",null,v(e.value),1)])):(i(),f(c(q),{key:1,style:{width:"100px"},value:e.value,"onUpdate:value":l=>e.value=l,disabled:e.disabled,onBlur:()=>e.disabled=!0,maxLength:10},null,8,["value","onUpdate:value","disabled","onBlur"])),m(c(x),{component:c(F),class:"anticon-close",size:"20",onClick:e=>he(l)},null,8,["component","onClick"])],42,M)))),128)),c(re)?d("v-if",!0):(i(),n(s,{key:0},[g(m(c(_),{dashed:"",icon:"plus",class:"ant-btn",onClick:me},{default:p((()=>[m(c(x),{component:c(j),size:"20"},null,8,["component"]),h("添加分类 ")])),_:1},512),[[k,!c(ue)]]),g(m(c(q),{style:{width:"100px"},class:"edit-tag",value:c(ce),"onUpdate:value":l[1]||(l[1]=e=>b(ce)?ce.value=e:ce=e),valueModifiers:{trim:!0},onBlur:pe,maxLength:10},null,8,["value"]),[[k,c(ue)]])],64))])])])),_:1})])),_:1},8,["show"])]))}}),[["__file","QuickSearch.vue"]]);export{J as default};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import moment from 'moment';
|
|
2
|
-
declare const timeDomain: {
|
|
3
|
-
TODAY(): moment.Moment[];
|
|
4
|
-
TOMORROW(): moment.Moment[];
|
|
5
|
-
YESTERDAY(): moment.Moment[];
|
|
6
|
-
THIS_WEEK(): moment.Moment[];
|
|
7
|
-
NEXT_WEEK(): moment.Moment[];
|
|
8
|
-
UP_WEEK(): moment.Moment[];
|
|
9
|
-
THIS_MONTH(): moment.Moment[];
|
|
10
|
-
NEXT_MONTH(): moment.Moment[];
|
|
11
|
-
UP_MONTH(): moment.Moment[];
|
|
12
|
-
THIS_SEASON(): moment.Moment[];
|
|
13
|
-
NEXT_SEASON(): moment.Moment[];
|
|
14
|
-
UP_SEASON(): moment.Moment[];
|
|
15
|
-
THIS_YEAR(): moment.Moment[];
|
|
16
|
-
UP_YEAR(): moment.Moment[];
|
|
17
|
-
NEXT_YEAR(): moment.Moment[];
|
|
18
|
-
getMonth(difference?: number): moment.Moment[];
|
|
19
|
-
getQuarter(difference?: number): moment.Moment[];
|
|
20
|
-
getYear(difference?: number): moment.Moment[];
|
|
21
|
-
/**
|
|
22
|
-
* 获取前 i 周的周一和周日日期,并以数组的方式返回。
|
|
23
|
-
* 当 i=1,获取的是上周一和上周日的日期;
|
|
24
|
-
* 当 i=2,获取的是上上周一和上上周日的日期
|
|
25
|
-
* ...以此类推
|
|
26
|
-
* @param i
|
|
27
|
-
*/
|
|
28
|
-
getLastWeek(i: number): moment.Moment[];
|
|
29
|
-
/**
|
|
30
|
-
* 获取后 i 周的周一和周日日期,并以数组的方式返回。
|
|
31
|
-
* 当 i=1,获取的是下周一和下周日的日期;
|
|
32
|
-
* 当 i=2,获取的是下下周一和下下周日的日期
|
|
33
|
-
* ...以此类推
|
|
34
|
-
* @param i
|
|
35
|
-
*/
|
|
36
|
-
getNextWeek(i: number): moment.Moment[];
|
|
37
|
-
getTimeDomain(type: string, format?: string): any;
|
|
38
|
-
};
|
|
39
|
-
export default timeDomain;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import t from"moment";const e={TODAY:()=>[t().startOf("day"),t().endOf("day")],TOMORROW:()=>[t().add(1,"days").startOf("days"),t().add(1,"days").endOf("days")],YESTERDAY:()=>[t().subtract(1,"days").startOf("days"),t().subtract(1,"days").endOf("days")],THIS_WEEK:()=>[t().startOf("week"),t().endOf("week")],NEXT_WEEK:()=>e.getNextWeek(1),UP_WEEK:()=>e.getLastWeek(1),THIS_MONTH:()=>e.getMonth(0),NEXT_MONTH:()=>e.getMonth(1),UP_MONTH:()=>e.getMonth(-1),THIS_SEASON:()=>e.getQuarter(0),NEXT_SEASON:()=>e.getQuarter(1),UP_SEASON:()=>e.getQuarter(-1),THIS_YEAR:()=>e.getYear(0),UP_YEAR:()=>e.getYear(-1),NEXT_YEAR:()=>e.getYear(1),getMonth(e=0){const a=t().month()+e;return[t().month(a).startOf("month"),t().month(a).endOf("month")]},getQuarter(e=0){const a=t().quarter()+e;return[t().quarter(a).startOf("quarter"),t().quarter(a).endOf("quarter")]},getYear(e=0){const a=t().year()+e;return[t().year(a).startOf("year"),t().year(a).endOf("year")]},getLastWeek(e){const a=parseInt(t().format("E"));return[t().subtract(a+7*e-1,"days").startOf("days"),t().subtract(a+7*(e-1),"days").endOf("days")]},getNextWeek(e){const a=parseInt(t().format("E"));return[t().add(7-a+7*(e-1)+1,"days").startOf("days"),t().add(7-a+7*e,"days").endOf("days")]},getTimeDomain(t,a){if(e[t]){const r=e[t]();return"string"==typeof a?r.map((e=>e.format(t))):r}return[]}};export{e as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const t=Object.prototype.toString,r=r=>"[object String]"===t.call(r),e=t=>{for(const r in t)return!1;return!0},n=t=>{if(!e(t))return Object.keys(t).forEach((e=>{if(r(t[e])){if(t[e]&&t[e].startsWith("###{")){const r=JSON.parse(t[e].replace("###",""));t[e]=r.change_text}t[e]&&t[e].startsWith("{")&&JSON.parse(t[e]).objs&&(t[e]=JSON.parse(t[e]).objStr)}})),t},o=t=>null==t||null==t;export{e as isEmpty,o as isNil,r as isString,n as paramsToPrintValue};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@font-face{font-family:iconfont;src:url(iconfont.ttf) format("truetype")}.iconfont-table-filter{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:iconfont!important;font-size:14px;font-style:normal}.icon-table-filter-menzhenyishengzhananniuqingchu:before{content:"\e74e"}.icon-table-filter-menzhenyishengzhananniushanchu2:before{content:"\e757"}.icon-table-filter-menzhenyishengzhanxitongtubiaoguanbi:before{content:"\e76e"}.icon-table-filter-menzhenyishengzhanxitongtubiaozuixiaohua2:before{content:"\e778"}.icon-table-filter-menzhenyishengzhanxitongtubiaozuidahua:before{content:"\e779"}.icon-table-filter-reset:before{content:"\e611"}.icon-table-filter-shaixuan:before{content:"\e64b"}.classification-modal-block .n-card-header .svg-wrap .iconfont-table-filter{cursor:pointer;font-size:18px}.classification-modal-block .n-card-header .svg-wrap .iconfont-table-filter:last-child{margin-left:16px}.classification-modal-block .n-card-header .svg-wrap .n-icon{cursor:pointer}.classification-modal-block .n-card__content{overflow-y:auto}.classification-modal-block .n-card__content .table-modal-list .list-title{background-color:#f2f2f4;border:1px solid #e1dfdf;display:flex;height:52px;line-height:52px}.classification-modal-block .n-card__content .table-modal-list .list-title .list-title-item{font-weight:700;width:25%}.classification-modal-block .n-card__content .table-modal-list .list-content{padding:0}.classification-modal-block .n-card__content .table-modal-list .list-content li{display:flex;height:52px;line-height:52px}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-item{align-items:center;display:flex;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap;width:25%}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-item .n-icon{cursor:pointer;margin-right:8px}.classification-modal-block .n-card__content .table-modal-list .list-content li.checked,.classification-modal-block .n-card__content .table-modal-list .list-content li.checked .text{background-color:#f2f2f2}.classification-modal-block .n-card__content .table-modal-list .list-content li .text{background-color:#fff;display:inline-block;padding:0 10px;position:relative}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-line{position:relative;text-align:center;width:75%}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-line:before{border:1px solid #e8e8e8;content:"";left:0;margin-top:20px;position:absolute;width:100%}.classification-modal-block .n-card__content .table-modal-list .list-title-item{margin-left:-1px;padding:0 10px}.classification-modal-block .n-card__content .table-modal-list .list-content-item{border-bottom:1px solid #e1dfdf;margin-left:-1px;margin-top:-1px;padding:0 10px}.classification-modal-block .n-card__content .table-modal-list .list-content-item .ant-switch{height:16px;min-width:28px;width:28px}.classification-modal-block .n-card__content .table-modal-list .list-content-item .ant-switch:after{height:12px;width:12px}.classification-modal-block .n-card__content .table-modal-list .list-content-radio,.classification-modal-block .n-card__content .table-modal-list .list-content-switch{text-align:center}.classification-modal-block .n-card__content .table-modal-list .anticon+.anticon{margin-left:8px}.classification-modal-block .n-card__content .class-filter-content .item-name{display:flex;height:32px;line-height:32px;margin-bottom:10px}.classification-modal-block .n-card__content .class-filter-content .item-name .label{text-align:right;width:120px}.classification-modal-block .n-card__content .class-filter-content .item-name .addAction{align-items:center;cursor:pointer;display:flex}.classification-modal-block .n-card__content .class-filter-content .item-name .blue{color:#2d7aff;margin-right:8px}.classification-modal-block .n-card__content .class-filter-content .n-form-item-label{width:120px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content{align-items:center;display:flex;flex-wrap:wrap;line-height:32px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .label{display:inline-block;height:32px;line-height:32px;margin-bottom:10px;text-align:right;width:120px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .ant-btn-dashed{border-color:#a6a6a6;color:#a6a6a6}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag{margin-bottom:10px;margin-right:10px;position:relative}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag .anticon-close{color:#2d7aff;cursor:pointer;line-height:36px;position:absolute;right:5px;top:2px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag .s-content{align-items:center;background-color:rgba(45,122,255,.1);border:1px solid #2d7aff;border-radius:3px;box-sizing:border-box;color:#2d7aff;cursor:pointer;display:flex;justify-content:center;opacity:1;padding:0 10px;width:100px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag .s-content span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag.edit-tag-select .ant-input-disabled,.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag.edit-tag-select .s-content{background-color:#2d7aff;color:#fff}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag.edit-tag-select .anticon-close{color:#fff}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .ant-btn{margin-bottom:10px}.classification-modal-block .n-card__content .class-filter-content .select-item-list{border-top:1px solid #e6e6e6;margin-bottom:6px;margin-top:16px;padding-top:12px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li{align-items:center;display:flex;list-style:none;margin-bottom:10px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .index-span{display:inline-block;width:30px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .form-item{margin-right:10px;width:120px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .form-item.n-date-picker{width:auto}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .value-cfg_wrapper{display:flex;flex-wrap:wrap}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .value-cfg_wrapper .form-item{margin-right:10px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .delete-item-icon{color:red;cursor:pointer;font-size:18px}.classification-modal-block .n-card__footer{padding-top:10px}.classification-modal-block .n-card__footer .flex_between{display:flex;justify-content:space-between}.classification-modal-block .n-card__footer .flex_right{display:flex;justify-content:right}.classification-modal-block .n-card__footer .n-button{margin-left:8px}.base-search-block .base-container{display:flex;justify-content:space-between;text-align:left}.base-search-block .base-container .bease-left{align-items:flex-start;display:flex;flex:1;justify-content:flex-start}.base-search-block .base-container .bease-left .base-ul{align-items:center;display:flex;flex-wrap:wrap;margin-top:8px}.base-search-block .base-container .bease-left .base-ul .baseli{display:flex}.base-search-block .base-container .bease-left .base-ul .baseli .search-default{height:32px;line-height:32px;margin-bottom:8px;margin-right:8px}.quick-search-block .quick-item{margin-bottom:10px;min-width:32px}.quick-search-block .quick-item .quick-row{align-items:center;display:flex}.quick-search-block .quick-item .quick-row .quick-item-title{line-height:32px;min-width:80px;padding-left:12px;text-align:right}.quick-search-block .quick-item .quick-row .quick-item-col{align-items:center;display:flex;padding:0 12px}.quick-search-block .quick-item .quick-row .quick-item-title-default{width:25%}.quick-search-block .quick-item .quick-row .quick-item-col-default{width:75%}.quick-search-block.quick-search-table .quick-item{display:inline-block}.quick-search-block.quick-search-table .quick-item.quick-block{display:block}.classification-block .tree-type{border:1px solid #d5d5d5;border-radius:4px;height:100%;line-height:32px;margin-top:8px;padding-bottom:80px;width:150px}.classification-block .tree-type .header{border-bottom:1px solid #e6eaef;display:flex;font-size:14px;justify-content:space-between;padding:0 10px}.classification-block .tree-type .header .header-1{align-items:center;cursor:pointer;display:flex}.classification-block .tree-type .tree{height:calc(100% - 32px);line-height:32px;margin:0;overflow:auto;padding-left:0}.classification-block .tree-type .tree::-webkit-scrollbar{width:5px}.classification-block .tree-type .tree .tree-item{border-bottom:1px solid #d5d5d5;cursor:pointer}.classification-block .tree-type .tree .tree-item.tree-header{box-sizing:border-box;padding:0 10px}.classification-block .tree-type .tree .tree-item .parent{align-items:center;display:flex;font-weight:600;justify-content:space-between;padding:0 10px}.classification-block .tree-type .tree .tree-item .parent.open{background-color:#f2f2f2;border-bottom:1px solid #d5d5d5}.classification-block .tree-type .tree .tree-item .header-item{box-sizing:border-box;line-height:1.4}.classification-block .tree-type .tree .tree-item .header-item.selected,.classification-block .tree-type .tree .tree-item .header-item:hover{color:#2d7aff}.classification-block .tree-type .tree .tree-item .header-item:active{border-color:transparent;color:#000}.classification-block .tree-type .tree .tree-item .children{align-items:center;display:flex;height:32px;padding-left:23px;padding-right:10px}.classification-block .tree-type .tree .tree-item .children .child-item{align-items:center;border-bottom:1px solid transparent;color:#7c7c7c;display:flex;line-height:1.5;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.classification-block .tree-type .tree .tree-item .children .child-item:hover{color:#2d7aff}.classification-block .tree-type .tree .tree-item .children .child-item.selected{align-items:center;color:#2d7aff;display:flex;justify-content:space-between;width:100%}.classification-block .tree-type .tree .tree-item .children .child-item:active{border-color:transparent;color:#000}.classification-block .tree-type .tree .tree-item .children .child-item.disabled{color:rgba(0,0,0,.2)}.classification-block .tree-type .tree .tree-item .children .child-item .child-item-content{align-items:center;display:flex}.classification-block .tree-type .tree .tree-item .children .child-item .child-item-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.classification-block .tree-type .tree .tree-item .children .child-item .digital-span{flex:1;margin-left:5px;text-align:left}.classification-block .tree-type .tree .tree-item:last-child{border-bottom:none}.classification-block .tree-type .tree-type-footer{border-top:1px solid #d5d5d5;bottom:0;height:80px;line-height:20px;padding-left:16px;position:absolute;width:100%}.classification-block .tree-type .tree-type-footer .selected-num{margin:10px}.classification-block .tree-type .tree-type-footer .selected-item-del{align-items:center;color:#2474ff;cursor:pointer;display:flex;justify-content:center;margin-left:0}.classification-block .tile-type{border:1px solid #d5d5d5;border-radius:4px;margin-bottom:8px;padding:0 17px}.classification-block .tile-type .header{align-items:center;border-bottom:1px solid #d5d5d5;display:inline-flex;justify-content:space-between;line-height:44px;width:100%}.classification-block .tile-type .header .all-data{border-bottom:1px solid transparent;font-family:PingFangSC-Medium,PingFang SC;font-size:14px;font-weight:500;line-height:1.4;margin-right:auto}.classification-block .tile-type .header .all-data:hover{color:#2d7aff}.classification-block .tile-type .header .all-data:active{border-color:transparent;color:#000}.classification-block .tile-type .header .selected{color:#2d7aff}.classification-block .tile-type .header .right-setting{display:flex}.classification-block .tile-type .header .right-setting .setting-1{align-items:center;cursor:pointer;display:flex}.classification-block .tile-type .header .right-setting .setting-1 .n-icon{margin-right:6px}.classification-block .tile-type .header .right-setting .upack-up-btn{color:#2d7aff}.classification-block .tile-type .tile{border-bottom:1px solid #d5d5d5;margin:0;padding:9px 0}.classification-block .tile-type .tile .tile-item{cursor:pointer;display:flex;line-height:38px}.classification-block .tile-type .tile .tile-item .parent{box-sizing:border-box;font-family:PingFangSC-Medium,PingFang SC;font-size:14px;font-weight:600;max-width:135px;padding-right:16px;width:135px}.classification-block .tile-type .tile .tile-item .children{flex:1}.classification-block .tile-type .tile .tile-item .children .child-item{border-bottom:1px solid transparent;border-radius:4px;color:#7c7c7c;display:inline-block;font-size:14px;line-height:1.5;margin:0 5px;padding:1px 6px}.classification-block .tile-type .tile .tile-item .children .child-item.selected,.classification-block .tile-type .tile .tile-item .children .child-item:hover{background-color:rgba(45,122,255,.1);color:#2d7aff}.classification-block .tile-type .tile .tile-item .children .child-item:active{border-color:transparent;color:#000}.classification-block .tile-type .tile .tile-item .children .child-item.disabled{color:rgba(0,0,0,.2)}.classification-block .tile-type .tile .tile-item .child-item.selected{color:#2d7aff}.classification-block .tile-type .selected-list{align-items:center;display:flex;padding:12px 6px}.classification-block .tile-type .selected-list .selected-num{font-size:14px;line-height:20px;margin-right:8px}.classification-block .tile-type .selected-list .selected-item{align-items:center;background-color:rgba(45,122,255,.1);border-radius:4px;color:#2d7aff;cursor:pointer;display:flex;margin-left:8px;padding:1px 8px}.classification-block .tile-type .selected-list .selected-item-del{align-items:center;color:#2474ff;cursor:pointer;display:flex;font-size:14px;line-height:20px;margin-left:22px}.classification-block .select-type{height:32px;line-height:32px;margin-bottom:8px;margin-right:8px;position:relative;width:100px}.classification-block .select-type .title{align-items:center;border:1px solid #d5d5d5;border-radius:4px;box-sizing:border-box;color:#969696;cursor:pointer;display:flex;font-size:12px;height:100%;justify-content:space-between;padding:0 8px;width:100%}.classification-block .select-type .title>.name{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.classification-block .select-type .main-wrapper{background-color:#fff;border:1px solid #d5d5d5;border-radius:4px;min-width:270px;position:absolute;top:39px;width:100%;z-index:3000}.classification-block .select-type .main-wrapper::-webkit-scrollbar{width:5px}.classification-block .select-type .tree{margin:0;max-height:300px;overflow:auto;padding:32px 0}.classification-block .select-type .tree .tree-item{border-bottom:1px solid #d5d5d5;cursor:pointer;line-height:32px}.classification-block .select-type .tree .tree-item.tree-header{align-items:center;background-color:#fff;box-sizing:border-box;display:flex;height:40px;padding:0 10px;position:absolute;top:0;width:100%;z-index:1}.classification-block .select-type .tree .tree-item .tree-footer{align-items:center;color:rgba(0,0,0,.6);display:flex}.classification-block .select-type .tree .tree-item .tree-footer .tree-footer-icon{align-items:center;cursor:pointer;display:flex}.classification-block .select-type .tree .tree-item .tree-footer .tree-footer-icon .n-icon{margin-right:6px}.classification-block .select-type .tree .tree-item .tree-footer .tree-footer-icon:first-child{margin-right:16px}.classification-block .select-type .tree .tree-item .parent{align-items:center;display:flex;font-weight:600;justify-content:space-between;padding:0 10px}.classification-block .select-type .tree .tree-item .parent.open{background-color:#f2f2f2;border-bottom:1px solid #d5d5d5}.classification-block .select-type .tree .tree-item .header-item{border-bottom:1px solid transparent;color:rgba(0,0,0,.6);flex:1}.classification-block .select-type .tree .tree-item .header-item.selected,.classification-block .select-type .tree .tree-item .header-item:hover{color:#2d7aff}.classification-block .select-type .tree .tree-item .header-item:active{border-color:transparent;color:#000}.classification-block .select-type .tree .tree-item .children{align-items:center;display:flex;height:32px;line-height:32px;padding-left:23px;padding-right:10px}.classification-block .select-type .tree .tree-item .children .child-item{border-bottom:1px solid transparent;color:#7c7c7c;display:inline-block;line-height:1.5;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.classification-block .select-type .tree .tree-item .children .child-item.child-header{padding:0 10px}.classification-block .select-type .tree .tree-item .children .child-item.header-item{border-bottom:1px solid transparent;color:rgba(0,0,0,.6)}.classification-block .select-type .tree .tree-item .children .child-item.header-item.selected,.classification-block .select-type .tree .tree-item .children .child-item.header-item:hover{color:#2d7aff}.classification-block .select-type .tree .tree-item .children .child-item.header-item:active{border-color:transparent;color:#000}.classification-block .select-type .tree .tree-item .children .child-item:hover{color:#2d7aff}.classification-block .select-type .tree .tree-item .children .child-item.selected{align-items:center;color:#2d7aff;display:flex;justify-content:space-between;width:100%}.classification-block .select-type .tree .tree-item .children .child-item:active{border-color:transparent;color:#000}.classification-block .select-type .tree .tree-item .children .child-item.disabled{color:rgba(0,0,0,.2)}.classification-block .select-type .tree .tree-item:last-child{border-bottom:0}.classification-block .select-type .select-type-footer{align-items:center;background-color:#fff;border-top:1px solid #d5d5d5;bottom:0;display:flex;height:40px;justify-content:space-between;padding:0 12px;position:absolute;width:100%}.classification-block .select-type .select-type-footer .selected-num{color:rgba(0,0,0,.6)}.classification-block .select-type .select-type-footer .selected-item-del{color:#2474ff;cursor:pointer}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/es/components/{table-filter → classification}/src/components/table-modal/index.vue.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|