diff --git a/dist/index.html b/dist/index.html index 20da317..9cc3e17 100644 --- a/dist/index.html +++ b/dist/index.html @@ -1,4 +1,4 @@ -X-PHP

当前浏览器内核版本过低

当前版本:-- --

最低版本要求:Chrome 71+、Firefox 65+、Safari 12+、Edge 97+。

请升级浏览器版本,或更换现代浏览器,如果你使用的是双核浏览器,请切换到极速/高速模式。

");const u=i(e),g=a(e),h=t.os.isMacOS()||t.os.isiOS()?"e.metaKey":"e.ctrlKey && !e.altKey",p=' \ No newline at end of file diff --git a/src/views/table/2/index.vue b/src/views/table/2/index.vue index 1d7ff67..6292ee3 100644 --- a/src/views/table/2/index.vue +++ b/src/views/table/2/index.vue @@ -7,8 +7,12 @@ - - 搜索 + + 搜索 + + + + 导出 @@ -121,6 +125,18 @@ export default { return item.width ? item.width + 'px' : 'auto'; } }, + exporturl() { + if (this.displayHandle()) { + const url = new URL(this.operation.export.url); + const searchParams = new URLSearchParams(url.search); + for (const key in this.search) { + searchParams.append(key, this.search[key]); + } + url.search = searchParams.toString(); + return url.href; + } + return ''; + }, filterObj() { const obj = [] this.filter.forEach((item) => { @@ -142,6 +158,12 @@ export default { } }, methods: { + displayHandle() { + if (this.$refs.table.total && this.operation.export && this.operation.export.showhandle) { + return eval(this.operation.export.showhandle.replace(/\$/g, "this.search")) // $.id==1 $.ids.includes("4") + } + return false; + }, //树过滤 groupFilterNode(value, data) { if (!value) return true; diff --git a/src/x.js b/src/x.js index e2cdcf4..5b5546d 100644 --- a/src/x.js +++ b/src/x.js @@ -18,6 +18,7 @@ import xUser from './components/xUser' import xAvatar from './components/xAvatar' import xUpdate from './components/xUpdate' import xTitle from './components/xTitle' +import xStat from './components/xStat' import xTabledialog from './components/xTabledialog' import xForm from './components/xForm' import xFormTable from './components/xFormTable' @@ -73,6 +74,7 @@ export default { app.component('xSelect', xSelect); app.component('xDialog', xDialog); app.component('xTitle', xTitle); + app.component('xStat', xStat); app.component('xTabledialog', xTabledialog); app.component('xWaterMark', xWaterMark); app.component('xQrCode', xQrCode);