(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-9d9fd6bc","chunk-b8543860","chunk-2d0df437"],{"04a4":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e._self._c;return t("j-modal",{attrs:{title:e.title,width:e.width,visible:e.visible,confirmLoading:e.confirmLoading,switchFullscreen:"",cancelText:"关闭"},on:{ok:e.handleOk,cancel:e.handleCancel}},[t("a-spin",{attrs:{spinning:e.confirmLoading}},[t("a-form",{attrs:{form:e.form}},[t("a-form-item",{attrs:{label:"产品名字",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["name"],expression:"['name']"}],attrs:{placeholder:"请输入产品名字"}})],1),t("a-form-item",{attrs:{label:"保险公司",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("j-popup",{directives:[{name:"decorator",rawName:"v-decorator",value:["compy_name"],expression:"['compy_name']"}],attrs:{"trigger-change":!0,"org-fields":"short_name,id","dest-fields":"compy_name, compy_id",code:"ins_company"},on:{callback:e.popupCallback}})],1)],1)],1)],1)},i=[],r=a("0fea"),l=a("88bc"),o=a.n(l),s=(a("ca00"),a("e610")),c=a("a061"),u={name:"TourismSpotModal",components:{JImageUpload:s["default"],JEditor:c["default"]},data:function(){return{form:this.$form.createForm(this),title:"操作",width:800,visible:!1,model:{},labelCol:{xs:{span:24},sm:{span:5}},wrapperCol:{xs:{span:24},sm:{span:16}},confirmLoading:!1,validatorRules:{},url:{add:"/admin/product/add",edit:"/admin/product/edit"}}},created:function(){},methods:{add:function(){this.edit({})},edit:function(e){var t=this;this.form.resetFields(),this.model=Object.assign({},e),this.visible=!0,this.$nextTick((function(){t.form.setFieldsValue(o()(t.model,"name","cityName","countryName","address","avatar","images","description"))}))},close:function(){this.$emit("close"),this.visible=!1},handleOk:function(){var e=this,t=this;this.form.validateFields((function(a,n){if(!a){t.confirmLoading=!0;var i="",l="";e.model.id?(i+=e.url.edit,l="put"):(i+=e.url.add,l="post");var o=Object.assign(e.model,n);Object(r["i"])(i,o,l).then((function(e){e.success?(t.$message.success(e.message),t.$emit("ok")):t.$message.warning(e.message)})).finally((function(){t.confirmLoading=!1,t.close()}))}}))},handleCancel:function(){this.close()},popupCallback:function(e){this.form.setFieldsValue(o()(e,"name","cityName","countryName","address","avatar","images","description"))}}},d=u,p=a("2877"),f=Object(p["a"])(d,n,i,!1,null,null,null);t["default"]=f.exports},"6c61":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e._self._c;return t("a-card",{attrs:{bordered:!1}},[t("div",{staticClass:"table-page-search-wrapper"},[t("a-form",{attrs:{layout:"inline"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.searchQuery.apply(null,arguments)}}},[t("a-row",{attrs:{gutter:24}},[t("a-col",{attrs:{xl:6,lg:7,md:8,sm:24}},[t("a-form-item",{attrs:{label:"产品名字"}},[t("a-input",{attrs:{placeholder:"请输入产品名字"},model:{value:e.queryParam.name,callback:function(t){e.$set(e.queryParam,"name",t)},expression:"queryParam.name"}})],1)],1),t("a-col",{attrs:{xl:6,lg:7,md:8,sm:24}},[t("a-form-item",{attrs:{label:"保险公司"}},[t("f-popup",{attrs:{placeholder:"请选择保险公司",code:"ins_company","org-fields":"short_name,id","dest-fields":"cmpy_name,cmpy_id",field:e.getPopupField("city_name,country_name")},model:{value:e.queryParam.cmpy_id,callback:function(t){e.$set(e.queryParam,"cmpy_id",t)},expression:"queryParam.cmpy_id"}})],1)],1),t("a-col",{attrs:{xl:6,lg:7,md:8,sm:24}},[t("span",{staticClass:"table-page-search-submitButtons",staticStyle:{float:"left",overflow:"hidden"}},[t("a-button",{attrs:{type:"primary",icon:"search"},on:{click:e.searchQuery}},[e._v("查询")]),t("a-button",{staticStyle:{"margin-left":"8px"},attrs:{type:"primary",icon:"reload"},on:{click:e.searchReset}},[e._v("重置")])],1)])],1)],1)],1),t("div",{staticClass:"table-operator"},[t("a-button",{attrs:{type:"primary",icon:"plus"},on:{click:e.handleAdd}},[e._v("新增")])],1),t("div",[t("div",{staticClass:"ant-alert ant-alert-info",staticStyle:{"margin-bottom":"16px"}},[t("i",{staticClass:"anticon anticon-info-circle ant-alert-icon"}),e._v(" 已选择 "),t("a",{staticStyle:{"font-weight":"600"}},[e._v(e._s(e.selectedRowKeys.length))]),e._v("项\n "),t("a",{staticStyle:{"margin-left":"24px"},on:{click:e.onClearSelected}},[e._v("清空")])]),t("a-table",{ref:"table",staticClass:"j-table-force-nowrap",attrs:{size:"middle",bordered:"",rowKey:"id",columns:e.columns,dataSource:e.dataSource,pagination:e.ipagination,loading:e.loading,rowSelection:{selectedRowKeys:e.selectedRowKeys,onChange:e.onSelectChange}},on:{change:e.handleTableChange},scopedSlots:e._u([{key:"htmlSlot",fn:function(a){return[t("div",{domProps:{innerHTML:e._s(a)}})]}},{key:"imgSlot",fn:function(a){return[a?t("img",{staticStyle:{"max-width":"80px","font-size":"12px","font-style":"italic"},attrs:{src:e.getImgView(a),height:"25px",alt:""}}):t("span",{staticStyle:{"font-size":"12px","font-style":"italic"}},[e._v("无图片")])]}},{key:"fileSlot",fn:function(a){return[a?t("a-button",{attrs:{ghost:!0,type:"primary",icon:"download",size:"small"},on:{click:function(t){return e.uploadFile(a)}}},[e._v("\n 下载\n ")]):t("span",{staticStyle:{"font-size":"12px","font-style":"italic"}},[e._v("无文件")])]}},{key:"action",fn:function(a,n){return t("span",{},[t("a",{on:{click:function(t){return e.handleEdit(n)}}},[e._v("编辑")]),t("a-divider",{attrs:{type:"vertical"}}),t("a-dropdown",[t("a",{staticClass:"ant-dropdown-link"},[e._v("更多 "),t("a-icon",{attrs:{type:"down"}})],1),t("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[t("a-menu-item",[t("a-popconfirm",{attrs:{title:"确定删除吗?"},on:{confirm:function(){return e.handleDelete(n.id)}}},[t("a",[e._v("删除")])])],1)],1)],1)],1)}}])})],1),t("tourismSpot-modal",{ref:"modalForm",on:{ok:e.modalFormOk}})],1)},i=[],r=(a("6eb7"),a("ac0d")),l=a("b65a"),o=a("04a4"),s={name:"TourismSpotList",mixins:[l["a"],r["b"]],components:{TourismSpotModal:o["default"]},data:function(){return{description:"保险公司产品列表页面",columns:[{title:"#",dataIndex:"",key:"rowIndex",width:60,align:"center",customRender:function(e,t,a){return parseInt(a)+1}},{title:"名字",align:"center",dataIndex:"name"},{title:"保险公司",align:"center",dataIndex:"cmpy_name"},{title:"操作",dataIndex:"action",align:"center",width:147,scopedSlots:{customRender:"action"}}],url:{list:"/admin/product/list",delete:"/admin/product/delete"},dictOptions:{}}},computed:{importExcelUrl:function(){return"".concat(window._CONFIG["domianURL"],"/").concat(this.url.importExcelUrl)}},methods:{initDictConfig:function(){}}},c=s,u=(a("f4d8"),a("2877")),d=Object(u["a"])(c,n,i,!1,null,"115e843d",null);t["default"]=d.exports},"6eb7":function(e,t,a){},"88bc":function(e,t,a){(function(t){var a=1/0,n=9007199254740991,i="[object Arguments]",r="[object Function]",l="[object GeneratorFunction]",o="[object Symbol]",s="object"==typeof t&&t&&t.Object===Object&&t,c="object"==typeof self&&self&&self.Object===Object&&self,u=s||c||Function("return this")();function d(e,t,a){switch(a.length){case 0:return e.call(t);case 1:return e.call(t,a[0]);case 2:return e.call(t,a[0],a[1]);case 3:return e.call(t,a[0],a[1],a[2])}return e.apply(t,a)}function p(e,t){var a=-1,n=e?e.length:0,i=Array(n);while(++a0&&a(o)?t>1?x(o,t-1,a,n,i):f(i,o):n||(i[i.length]=o)}return i}function _(e,t){return e=Object(e),C(e,t,(function(t,a){return a in e}))}function C(e,t,a){var n=-1,i=t.length,r={};while(++n-1&&e%1==0&&e<=n}function A(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function M(e){return!!e&&"object"==typeof e}function q(e){return"symbol"==typeof e||M(e)&&g.call(e)==o}var $=k((function(e,t){return null==e?{}:_(e,p(x(t,1),j))}));e.exports=$}).call(this,a("c8ba"))},cd40:function(e,t,a){},e610:function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e._self._c;return t("a-upload",{attrs:{name:"file",listType:"picture-card",multiple:e.isMultiple,action:e.uploadAction,headers:e.headers,data:{biz:e.bizPath},fileList:e.fileList,beforeUpload:e.beforeUpload,disabled:e.disabled,isMultiple:e.isMultiple,showUploadList:e.isMultiple},on:{change:e.handleChange,preview:e.handlePreview}},[!e.isMultiple&&e.picUrl?t("img",{staticStyle:{height:"104px","max-width":"300px"},attrs:{src:e.getAvatarView()}}):t("div",[t("a-icon",{attrs:{type:e.uploadLoading?"loading":"plus"}}),t("div",{staticClass:"ant-upload-text"},[e._v(e._s(e.text))])],1),t("a-modal",{attrs:{visible:e.previewVisible,footer:null},on:{cancel:function(t){return e.handleCancel()}}},[t("img",{staticStyle:{width:"100%"},attrs:{alt:"example",src:e.previewImage}})])],1)},i=[],r=a("2b0e"),l=a("9fb0"),o=a("0fea"),s=function(){return"-"+parseInt(1e4*Math.random()+1,10)},c=function(e){if(e.lastIndexOf("\\")>=0){var t=new RegExp("\\\\","g");e=e.replace(t,"/")}return e.substring(e.lastIndexOf("/")+1)},u={name:"JImageUpload",data:function(){return{uploadAction:window._CONFIG["domianURL"]+"/sys/common/upload",uploadLoading:!1,picUrl:!1,headers:{},fileList:[],previewImage:"",previewVisible:!1}},props:{text:{type:String,required:!1,default:"上传"},bizPath:{type:String,required:!1,default:"temp"},value:{type:[String,Array],required:!1},disabled:{type:Boolean,required:!1,default:!1},isMultiple:{type:Boolean,required:!1,default:!1}},watch:{value:function(e){e instanceof Array?this.initFileList(e.join(",")):this.initFileList(e)}},created:function(){var e=r["default"].ls.get(l["a"]);this.headers={"X-Access-Token":e}},methods:{initFileList:function(e){if(e&&0!=e.length){this.picUrl=!0;for(var t=[],a=e.split(","),n=0;n0){var e=this.fileList[0].url;return Object(o["e"])(e)}},handlePathChange:function(){var e=this.fileList,t="";e&&0!=e.length||(t="");var a=[];if(this.isMultiple)for(var n=0;n0&&(t=a.join(",")),this.$emit("change",t)},handleDelete:function(e){},handleCancel:function(){this.close(),this.previewVisible=!1},close:function(){}},model:{prop:"value",event:"change"}},d=u,p=a("2877"),f=Object(p["a"])(d,n,i,!1,null,"244aa1d3",null);t["default"]=f.exports},f4d8:function(e,t,a){"use strict";a("cd40")}}]);