You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
28 KiB

4 years ago
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5871cf1e"],{"22ff":function(e,t,i){"use strict";var a=i("a3f9"),s=i.n(a);s.a},"951e":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"app-container"},[i("el-row",{attrs:{gutter:10}},[i("el-col",{attrs:{sm:12,xs:24}},[i("el-card",{staticClass:"box-card"},[i("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[i("span",[e._v("字典列表")])]),i("dictionary",{ref:"dictionary",on:{dictionaryClick:e.dictionaryClick,resetItem:e.resetItem}})],1)],1),i("el-col",{attrs:{sm:12,xs:24}},[i("el-card",{staticClass:"box-card"},[i("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[i("span",[e._v("字典详情")])]),i("dictionary-item",{ref:"dictionaryItem"})],1)],1)],1)],1)},s=[],r=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"app-container"},[i("div",{staticClass:"filter-container"},[i("el-input",{staticClass:"filter-item search-item",attrs:{placeholder:e.$t("table.dictionary.type"),size:"small"},model:{value:e.queryParams.model.type,callback:function(t){e.$set(e.queryParams.model,"type",t)},expression:"queryParams.model.type"}}),i("el-input",{staticClass:"filter-item search-item",attrs:{placeholder:e.$t("table.dictionary.name"),size:"small"},model:{value:e.queryParams.model.name,callback:function(t){e.$set(e.queryParams.model,"name",t)},expression:"queryParams.model.name"}}),i("el-button",{staticClass:"filter-item",attrs:{plain:"",type:"primary",size:"small"},on:{click:e.search}},[e._v(e._s(e.$t("table.search")))]),i("el-button",{staticClass:"filter-item",attrs:{plain:"",type:"warning",size:"small"},on:{click:e.reset}},[e._v(e._s(e.$t("table.reset")))]),i("el-dropdown",{directives:[{name:"has-any-permission",rawName:"v-has-any-permission",value:["dict:delete","dict:export","dict:import"],expression:"['dict:delete','dict:export', 'dict:import']"}],staticClass:"filter-item",attrs:{trigger:"click"}},[i("el-button",{attrs:{size:"small"}},[e._v(" "+e._s(e.$t("table.more"))+" "),i("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),i("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[i("el-dropdown-item",{directives:[{name:"has-permission",rawName:"v-has-permission",value:["dict:add"],expression:"['dict:add']"}],nativeOn:{click:function(t){return e.add(t)}}},[e._v(" "+e._s(e.$t("table.add"))+" ")]),i("el-dropdown-item",{directives:[{name:"has-permission",rawName:"v-has-permission",value:["dict:delete"],expression:"['dict:delete']"}],nativeOn:{click:function(t){return e.batchDelete(t)}}},[e._v(" "+e._s(e.$t("table.delete"))+" ")])],1)],1)],1),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],key:e.tableKey,ref:"table",staticStyle:{width:"100%"},attrs:{data:e.tableData.records,border:"",fit:"","row-key":"id",size:"mini"},on:{"filter-change":e.filterChange,"row-click":e.rowClick,"selection-change":e.onSelectChange,"sort-change":e.sortChange}},[i("el-table-column",{attrs:{align:"center",type:"selection",width:"40px","reserve-selection":!0}}),i("el-table-column",{attrs:{label:e.$t("table.dictionary.type"),"show-overflow-tooltip":!0,align:"center",prop:"type"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(t.row.type))])]}}])}),i("el-table-column",{attrs:{label:e.$t("table.dictionary.name"),"show-overflow-tooltip":!0,align:"center",prop:"name"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(t.row.name))])]}}])}),i("el-table-column",{attrs:{label:e.$t("table.dictionary.describe"),"show-overflow-tooltip":!0,align:"center",prop:"describe"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(t.row.describe))])]}}])}),i("el-table-column",{attrs:{"filter-multiple":!1,"column-key":"status",filters:[{text:e.$t("common.status.valid"),value:!0},{text:e.$t("common.status.invalid"),value:!1}],label:e.$t("table.dictionary.status"),"class-name":"status-col",width:"70px"},scopedSlots:e._u([{key:"defaul