cordova-11/www/js/chunk-common.js

1 line
57 KiB
JavaScript
Raw Normal View History

2022-05-25 07:48:07 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[0],{"0748":function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("q-table",{staticClass:"my-sticky-header-table pd-10 common-table",attrs:{"hide-bottom":e.options.hideBottom,dense:e.options.dense,title:e.title,data:e.options.data,columns:e.options.columns,loading:e.options.loading,"row-key":e.options.key,"table-header-style":{backgroundColor:"#F8FBFF"},"rows-per-page-label":e.options.pageLabel,flat:e.options.flat},scopedSlots:e._u([{key:"loading",fn:function(){return[a("q-inner-loading",{attrs:{showing:"",color:"primary"}})]},proxy:!0},{key:"body",fn:function(t){return[a("q-tr",{attrs:{props:t}},e._l(t.cols,(function(s){return a("q-td",{key:s.name,attrs:{props:t}},[e._v("\n "+e._s(s.value)+"\n "),"edit"===s.name?e._t("tableEdit",null,{data:t.row}):e._e()],2)})),1)]}},e.showTop?{key:"top",fn:function(t){return[a("div",{staticClass:"row flex justify-between",staticStyle:{width:"100%"}},[a("div",{staticClass:"col-auto q-table__title tool-title"},[a("span",{staticClass:"icon"},[a("q-icon",{attrs:{name:"app:icon-a-shuju1"}})],1),a("span",{staticClass:"title"},[e._v(e._s(e.options.title))])]),a("div",{staticClass:"col-auto right_tool"},[a("table-search",{staticClass:"right_tool_icon",attrs:{searchOptions:e.searchOptions},on:{reset:e.reset,search:e.search}},[a("template",{slot:"query-form-item"},[e._t("search-item")],2)],2),a("q-btn",{staticClass:"full right_tool_icon",attrs:{flat:"",round:"",dense:"",icon:t.inFullscreen?"fullscreen_exit":"fullscreen"},on:{click:t.toggleFullscreen}})],1)])]}}:null,{key:"bottom",fn:function(){return[a("div",{staticClass:"row justify-between item-center pagination",staticStyle:{width:"100%"}},[a("div",{staticClass:"col-auto self-center"},[e._v("总条数:"+e._s(e.pagination.total))]),a("div",{staticClass:"col-auto"},[a("div",{staticClass:"row"},[a("div",{staticClass:"col-auto self-center select"},[e._v("\n 每页显示  "),a("q-select",{staticClass:"inline-block no-padding",staticStyle:{width:"40px"},attrs:{borderless:"",options:e.pagination.rowsOptions},model:{value:e.pagination.rowsPerPage,callback:function(t){e.$set(e.pagination,"rowsPerPage",t)},expression:"pagination.rowsPerPage"}}),e._v("  条\n ")],1),a("div",{staticClass:"col-auto text-right self-center"},[a("q-pagination",{attrs:{color:"primary",max:20,"max-pages":6,"boundary-numbers":"","direction-links":""},model:{value:e.pagination.page,callback:function(t){e.$set(e.pagination,"page",t)},expression:"pagination.page"}})],1)])])])]},proxy:!0}],null,!0)})],1)},i=[],l=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("span",[a("q-icon",{staticClass:"icon-small",attrs:{name:"app:icon-search"},on:{click:function(t){e.show=!0}}}),a("q-dialog",{model:{value:e.show,callback:function(t){e.show=t},expression:"show"}},[a("q-card",{staticStyle:{width:"700px","max-width":"80vw"}},[a("q-card-section",[a("div",{staticClass:"text-h6"},[e._v(e._s(e.options.title))])]),a("q-card-section",{staticClass:"q-pt-none"},[a("q-form",{ref:"searchForm",staticClass:"searchForm"},[e._t("query-form-item")],2)],1),a("q-card-actions",{staticClass:"bg-white text-primary pd-b-20",attrs:{align:"center"}},[e.options.needReset?a("q-btn",{attrs:{label:"清空",rounded:"",type:"reset"},on:{click:e.onReset}}):e._e(),a("q-btn",{attrs:{label:"搜索",rounded:"",color:"primary"},on:{click:e.onSearch}})],1)],1)],1)],1)},r=[],n={name:"CommonDialog",props:{searchOptions:Object},computed:{options(){let e=this.searchOptions?this.searchOptions:{},t={title:"搜索",needReset:!0};return Object.assign({},t,e)}},data(){return{show:!1}},methods:{onReset(){this.$emit("reset")},onSearch(){this.$emit("search"),this.show=!1},onSubmit(){}}},o=n,d=(a("8b2c"),a("2877")),c=a("0016"),m=a("24e8"),f=a("f09f"),u=a("a370"),p=a("0378"),h=a("4b7e"),b=a("9c40"),g=a("7f67"),v=a("eebe"),C=a.n(v),w=Object(d["a"])(o,l,r,!1,null,"51416bf9",null),y=w.exports;C()(w,"components",{QIcon:c["a"],QDialog:m["a"],QCard:f["a"],QCardSecti