chunk-a161e254.619400c1.js 9.0 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-a161e254"],{"2f36":function(t,e,n){},"333d":function(t,e,n){"use strict";var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"page-content"},[n("el-pagination",{attrs:{background:"","hide-on-single-page":t.paginationConfig.hideSinglePage,"current-page":t.paginationConfig.page,"page-size":t.paginationConfig.size,"page-sizes":t.paginationConfig.sizeList,layout:t.paginationConfig.layout,"pager-count":5,total:t.paginationConfig.total},on:{"current-change":t.handleCurrentChange,"size-change":t.handleSizeChange}}),t._v(" "),n("el-button",{attrs:{type:"primary",size:"mini",icon:"el-icon-refresh"},nativeOn:{click:function(e){return e.preventDefault(),t.refresh(e)}}},[t._v("刷新")])],1)},i=[],o=(n("c5f6"),{name:"Pagination",props:{paginationConfig:{hideSinglePage:{type:Boolean,default:function(){return!1}},page:{type:Number,default:function(){return 1}},size:{type:Number,default:function(){return 15}},sizeList:{type:Array,default:function(){return[10,15,30,50]}},layout:{type:String,default:function(){return"total, sizes, prev, pager, next, jumper"}},total:{type:Number,default:function(){return 0}}}},data:function(){return{}},created:function(){},methods:{handleCurrentChange:function(t){this.paginationConfig.page=t,this.$emit("putPagination",this.paginationConfig)},handleSizeChange:function(t){this.paginationConfig.size=t,this.$emit("putPagination",this.paginationConfig)},refresh:function(){this.$emit("putPagination",this.paginationConfig)}}}),r=o,s=(n("5f6c"),n("2877")),l=Object(s["a"])(r,a,i,!1,null,null,null);e["a"]=l.exports},"3b0b":function(t,e,n){},"5dbc":function(t,e,n){var a=n("d3f4"),i=n("8b97").set;t.exports=function(t,e,n){var o,r=e.constructor;return r!==n&&"function"==typeof r&&(o=r.prototype)!==n.prototype&&a(o)&&i&&i(t,o),t}},"5f6c":function(t,e,n){"use strict";var a=n("ed77"),i=n.n(a);i.a},"8aef":function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"myproject"},[t._m(0),t._v(" "),n("div",{staticClass:"btn"},[n("el-row",[n("el-button",{staticClass:"btn_color1",on:{click:function(e){t.dialogVisible=!0}}},[t._v("新建项目")])],1)],1),t._v(" "),n("div",{staticClass:"scher"},[n("div",{staticClass:"input "},[n("el-input",{staticClass:"text",attrs:{placeholder:"请输入项目名称"},model:{value:t.searchtag,callback:function(e){t.searchtag=e},expression:"searchtag"}}),t._v(" "),n("el-button",{staticStyle:{"border-radius":"0"},attrs:{type:"primary",icon:"el-icon-search"},on:{click:function(e){return t.search()}}},[t._v("搜索")])],1)]),t._v(" "),[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"lbg_color2",staticStyle:{width:"100%"},attrs:{"element-loading-text":"拼命加载中",data:t.tableData,height:"600"},on:{"row-click":t.rowclinck}},[n("el-table-column",{attrs:{label:"名称",prop:"name"}}),t._v(" "),n("el-table-column",{attrs:{prop:"updateTime",label:"最近编辑时间"}}),t._v(" "),n("el-table-column",{attrs:{prop:"remark",label:"描述"}}),t._v(" "),n("el-table-column",{attrs:{prop:"isshare",label:"是否公开"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",{attrs:{slot:"content"},slot:"content"},[t._v(t._s("0"==e.row.isshare?"公有":"私有"))])]}}])})],1),t._v(" "),n("div",{staticClass:"pagination"},[n("Pagination",{attrs:{"pagination-config":t.paginationConfig},on:{putPagination:t.getPagination}})],1)],t._v(" "),n("el-dialog",{attrs:{title:"创建新项目",visible:t.dialogVisible,width:"30%"},on:{"update:visible":function(e){t.dialogVisible=e}}},[n("el-form",{staticClass:"newfile"},[n("el-form-item",{attrs:{label:"项目名称:","label-width":t.formLabelWidth5}},[n("el-radio",{attrs:{label:0},model:{value:t.newobj.isshare,callback:function(e){t.$set(t.newobj,"isshare",e)},expression:"newobj.isshare"}},[t._v("公开")]),t._v(" "),n("el-radio",{attrs:{label:1},model:{value:t.newobj.isshare,callback:function(e){t.$set(t.newobj,"isshare",e)},expression:"newobj.isshare"}},[t._v("私有")])],1),t._v(" "),n("el-form-item",{attrs:{label:"项目名称:","label-width":t.formLabelWidth5}},[n("el-input",{attrs:{autocomplete:"off"},model:{value:t.newobj.name,callback:function(e){t.$set(t.newobj,"name",e)},expression:"newobj.name"}})],1),t._v(" "),n("el-form-item",{attrs:{label:"项目描述:","label-width":t.formLabelWidth5}},[n("el-input",{attrs:{autocomplete:"off"},model:{value:t.newobj.remark,callback:function(e){t.$set(t.newobj,"remark",e)},expression:"newobj.remark"}})],1)],1),t._v(" "),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(e){t.dialogVisible=!1}}},[t._v("取 消")]),t._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:function(e){t.dialogVisible=!1,t.newsave()}}},[t._v("确 定")])],1)],1)],2)},i=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"title"},[n("span",[t._v("我的项目")])])}],o=(n("7f7f"),n("333d")),r=n("b775"),s={name:"Project",components:{Pagination:o["a"]},data:function(){return{loading:!1,paginationConfig:{hideSinglePage:!1,page:1,size:15,sizeList:[10,15,30,50],layout:"total, sizes, prev, pager, next, jumper",total:0},searchtag:"",isshare:"",options:[{value:"0",label:"搜索项目"},{value:"1",label:"搜索标签"}],newobj:{name:"",remark:"",image:"",isshare:0},formLabelWidth:"60px",formLabelWidth2:"73px",formLabelWidth4:"37px",formLabelWidth5:"100px",formLabelWidth6:"120px",value:"0",input:"",tableData:[],dialogVisible:!1,project:{fileType:"公开",name:""}}},created:function(){},mounted:function(){this.init()},methods:{init:function(){this.projectlist("")},getPagination:function(t){this.paginationConfig=t,this.projectlist("")},search:function(){this.projectlist(this.searchtag)},projectlist:function(t){var e=this,n=this.$loading({lock:!0,text:"Loading",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"});setTimeout((function(){var a={transCode:"C00001",page:e.paginationConfig.page,count:e.paginationConfig.size,searchtag:t};Object(r["c"])(a).then((function(t){n.close(),e.paginationConfig.total=t.total,e.tableData=t.rows})).catch((function(t){n.close()}))}),1500)},rowclinck:function(t,e,n){console.log(t),this.$router.push({path:"/index",query:{pid:t.id}})},newsave:function(){var t=this,e={transCode:"C00002",name:this.newobj.name,remark:this.newobj.remark,isshare:this.newobj.isshare};Object(r["c"])(e).then((function(e){t.projectlist()})).catch((function(t){}))}}},l=s,c=(n("97f5"),n("b261"),n("2877")),f=Object(c["a"])(l,a,i,!1,null,"40a4c055",null);e["default"]=f.exports},"8b97":function(t,e,n){var a=n("d3f4"),i=n("cb7c"),o=function(t,e){if(i(t),!a(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,a){try{a=n("9b43")(Function.call,n("11e9").f(Object.prototype,"__proto__").set,2),a(t,[]),e=!(t instanceof Array)}catch(i){e=!0}return function(t,n){return o(t,n),e?t.__proto__=n:a(t,n),t}}({},!1):void 0),check:o}},"97f5":function(t,e,n){"use strict";var a=n("2f36"),i=n.n(a);i.a},aa77:function(t,e,n){var a=n("5ca1"),i=n("be13"),o=n("79e5"),r=n("fdef"),s="["+r+"]",l="​…",c=RegExp("^"+s+s+"*"),f=RegExp(s+s+"*$"),u=function(t,e,n){var i={},s=o((function(){return!!r[t]()||l[t]()!=l})),c=i[t]=s?e(p):r[t];n&&(i[n]=c),a(a.P+a.F*s,"String",i)},p=u.trim=function(t,e){return t=String(i(t)),1&e&&(t=t.replace(c,"")),2&e&&(t=t.replace(f,"")),t};t.exports=u},b261:function(t,e,n){"use strict";var a=n("3b0b"),i=n.n(a);i.a},c5f6:function(t,e,n){"use strict";var a=n("7726"),i=n("69a8"),o=n("2d95"),r=n("5dbc"),s=n("6a99"),l=n("79e5"),c=n("9093").f,f=n("11e9").f,u=n("86cc").f,p=n("aa77").trim,g="Number",b=a[g],d=b,h=b.prototype,m=o(n("2aeb")(h))==g,v="trim"in String.prototype,_=function(t){var e=s(t,!1);if("string"==typeof e&&e.length>2){e=v?e.trim():p(e,3);var n,a,i,o=e.charCodeAt(0);if(43===o||45===o){if(n=e.charCodeAt(2),88===n||120===n)return NaN}else if(48===o){switch(e.charCodeAt(1)){case 66:case 98:a=2,i=49;break;case 79:case 111:a=8,i=55;break;default:return+e}for(var r,l=e.slice(2),c=0,f=l.length;c<f;c++)if(r=l.charCodeAt(c),r<48||r>i)return NaN;return parseInt(l,a)}}return+e};if(!b(" 0o1")||!b("0b1")||b("+0x1")){b=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof b&&(m?l((function(){h.valueOf.call(n)})):o(n)!=g)?r(new d(_(e)),n,b):_(e)};for(var C,w=n("9e1e")?c(d):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),y=0;w.length>y;y++)i(d,C=w[y])&&!i(b,C)&&u(b,C,f(d,C));b.prototype=h,h.constructor=b,n("2aba")(a,g,b)}},ed77:function(t,e,n){t.exports={color_0:"#000",color_3:"#333",color_6:"#666",color_9:"#999",color_b:"#bbb",color_d:"#ddd",color_e:"#eee",color_f2:"#f2f2f2",color_f5:"#f5f5f5",color_fa:"#fafafa",color_fc:"#fcfcfc",color_f:"#fff",color_on:"#FD5A57",pad:"120px"}},fdef:function(t,e){t.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"}}]);