(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0dab02"],{"6d53":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("el-button",{staticClass:"filter-item",attrs:{type:"success",icon:"el-icon-refresh"},on:{click:t.refresh}},[t._v("刷新")])],1),a("div",{staticClass:"padding-lg margin-top back-white"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#eef1f6",color:"#606266"},data:t.list,border:"",fit:"","highlight-current-row":""}},[a("el-table-column",{attrs:{label:"ID",sortable:"custom",align:"center",width:"80"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("span",[t._v(t._s(i.id))])]}}])}),a("el-table-column",{attrs:{label:"用户信息",align:"center",width:"160"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("div",{staticClass:"flex align-center"},[a("img",{staticStyle:{width:"40px",height:"40px"},attrs:{src:i.user.avatar}}),a("div",{staticClass:"flex flex-column align-start padding-left-sm"},[a("div",{staticClass:"fs-24 color0",staticStyle:{"line-height":"initial"}},[t._v(t._s(i.user.nickname))]),a("div",{staticClass:"fs-24 color0 padding-top-xs",staticStyle:{"line-height":"initial"}},[t._v("ID:"+t._s(i.user.id))])])])]}}])}),a("el-table-column",{attrs:{label:"合同名称",property:"name",align:"center"}}),a("el-table-column",{attrs:{label:"合同类型",property:"type",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("span",[t._v(t._s(1==i.type?"商品合同":""))])]}}])}),a("el-table-column",{attrs:{label:"签约类型",property:"type",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("span",[t._v(t._s(0==i.signing_type?"强制签约":"普通签约"))])]}}])}),a("el-table-column",{attrs:{label:"合同状态",property:"type",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("span",[t._v(t._s(1==i.status?"已签约":"未签约 "))])]}}])}),a("el-table-column",{attrs:{label:"签约时间",property:"signingtime",align:"center"}}),a("el-table-column",{attrs:{label:"创建时间",property:"createtime",align:"center"}}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"300","class-name":"small-padding fixed-width"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;e.$index;return[1==i.status?a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(e){return t.download(i)}}},[t._v("下载合同")]):t._e()]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:t.total>0,expression:"total>0"}],attrs:{total:t.total,page:t.listQuery.page,limit:t.listQuery.limit},on:{"update:page":function(e){return t.$set(t.listQuery,"page",e)},"update:limit":function(e){return t.$set(t.listQuery,"limit",e)},pagination:t.getList}})],1),a("copyright")],1)},n=[],l=a("7f70"),s=(a("baf6"),a("8327")),r=a("333d"),o={name:"ContractUserList",components:{Pagination:r["a"]},data:function(){return{list:null,total:0,listLoading:!0,dialogFormVisible:!1,listQuery:{page:1,limit:10}}},computed:Object(l["a"])({},Object(s["b"])(["config"])),created:function(){this.getList()},methods:{download:function(t){window.open(t.content)},refresh:function(){this.getList()},getList:function(){var t=this;this.listLoading=!0,this.api.get("contract/contract/getUserContractList",this.listQuery).then((function(e){t.listLoading=!1,1==e.code?(t.total=parseInt(e.data.total),t.list=e.data.list):t.$util.error(e.message||e.msg||"数据异常")}))},del:function(t,e){var a=this;if(!t)return!1;this.$util.confirm("此操作将永久删除该数据, 是否继续?",(function(i){i&&a.api.get("contract/contract/deleteContract",{id:t}).then((function(t){1==t.code?(a.list.splice(e,1),a.$util.success(t.message)):a.$util.error(t.message)}))}))}}},c=o,u=a("3d7a"),d=Object(u["a"])(c,i,n,!1,null,null,null);e["default"]=d.exports}}]);