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.
 
 
 
 
 
 
shipin/public/admin/system_static/js/chunk-6864c1b1.4d3b9d27.js

1 lines
4.1 KiB

(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-6864c1b1"],{2364:function(t,e,a){"use strict";a("5774")},5774:function(t,e,a){},"5b6a":function(t,e,a){"use strict";a.r(e),a("b0c0");var i=a("c7eb"),n=a("1da1"),l=a("5530"),o=(a("a434"),a("2f62")),r=a("90e7");l={data:function(){return{grid:{xl:7,lg:7,md:12,sm:24,xs:24},formValidate:{keyword:"",page:1,limit:20},total:0,loading:!1,tabList:[],code:null}},computed:Object(l.a)(Object(l.a)({},Object(o.d)("media",["isMobile"])),{},{labelWidth:function(){return this.isMobile?void 0:"80px"},labelPosition:function(){return this.isMobile?"top":"right"}}),mounted:function(){this.getList()},methods:{add:function(){var t=this;this.$modalForm(Object(r.N)(0)).then((function(){return t.getList()}))},edit:function(t){var e=this;this.$modalForm(Object(r.N)(t.id)).then((function(){return e.getList()}))},del:function(t,e,a){var i=this;e={title:e,num:a,url:"setting/lang_country/del/".concat(t.id),method:"DELETE",ids:""};this.$modalSure(e).then((function(t){i.$message.success(t.msg),i.tabList.splice(a,1)})).catch((function(t){i.$message.error(t.msg)}))},selChange:function(){this.formValidate.page=1,this.getList()},getList:function(){var t=this;this.loading=!0,Object(r.O)(this.formValidate).then(function(){var e=Object(n.a)(Object(i.a)().mark((function e(a){return Object(i.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.loading=!1,t.tabList=a.data.list,t.total=a.data.count;case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.loading=!1,t.$message.error(e.msg)}))}}},a("2364"),o=a("2877"),a=Object(o.a)(l,(function(){var t=this,e=t._self._c;return e("div",[e("el-card",{staticClass:"ivu-mt mb10",attrs:{bordered:!1,shadow:"never","body-style":{padding:0}}},[e("div",{staticClass:"padding-add"},[e("el-form",{ref:"formValidate",attrs:{model:t.formValidate,"label-width":t.labelWidth,"label-position":"right",inline:""},nativeOn:{submit:function(t){t.preventDefault()}}},[e("el-form-item",{attrs:{label:"搜索:"}},[e("div",{staticClass:"acea-row row-middle"},[e("el-input",{staticClass:"form_content_width",attrs:{clearable:"",placeholder:"请输入语言Code"},model:{value:t.formValidate.keyword,callback:function(e){t.$set(t.formValidate,"keyword",e)},expression:"formValidate.keyword"}})],1)]),e("el-form-item",[e("el-button",{attrs:{type:"primary"},on:{click:t.selChange}},[t._v("搜索")])],1)],1)],1)]),e("el-card",{attrs:{bordered:!1,shadow:"never"}},[e("el-row",[e("el-col",t._b({},"el-col",t.grid,!1),[e("el-button",{attrs:{type:"primary"},on:{click:t.add}},[t._v("添加语言地区")])],1)],1),e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"table",staticClass:"ivu-mt mt14",attrs:{data:t.tabList,"empty-text":"暂无数据"}},[e("el-table-column",{attrs:{label:"编号","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("span",[t._v(t._s(a.row.id))])]}}])}),e("el-table-column",{attrs:{label:"浏览器语言识别码","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("span",[t._v(t._s(a.row.code))])]}}])}),e("el-table-column",{attrs:{label:"语言说明","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("span",[t._v(t._s(a.row.name))])]}}])}),e("el-table-column",{attrs:{label:"关联语言","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("span",[t._v(t._s(a.row.link_lang))])]}}])}),e("el-table-column",{attrs:{label:"操作",fixed:"right",width:"100"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("a",{on:{click:function(e){return t.edit(a.row)}}},[t._v("编辑")]),e("el-divider",{attrs:{direction:"vertical"}}),e("a",{on:{click:function(e){return t.del(a.row,"删除地区语言",a.$index)}}},[t._v("删除")])]}}])})],1),e("div",{staticClass:"acea-row row-right page"},[t.total?e("pagination",{attrs:{total:t.total,page:t.formValidate.page,limit:t.formValidate.limit},on:{"update:page":function(e){return t.$set(t.formValidate,"page",e)},"update:limit":function(e){return t.$set(t.formValidate,"limit",e)},pagination:t.getList}}):t._e()],1)],1)],1)}),[],!1,null,"022c298e",null);e.default=a.exports}}]);