12 |
- "use strict";(self["webpackChunkscproject"]=self["webpackChunkscproject"]||[]).push([[5639],{35639:function(e,t,a){a.r(t),a.d(t,{default:function(){return u}});var l=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"resultsShow"},[e._m(0),t("hr"),t("div",{staticClass:"selectInp"},[t("div",{staticClass:"manageSelects"},[t("div",{staticClass:"selectsBlock"},[t("span",{staticClass:"selectLabel"},[e._v("项目筛选")]),t("el-select",{attrs:{placeholder:"我的项目"},on:{change:e.getData},model:{value:e.pavalues.value,callback:function(t){e.$set(e.pavalues,"value",t)},expression:"pavalues.value"}},[t("el-option",{attrs:{label:"所有项目",value:""}}),e._l(e.options,(function(e){return t("el-option",{key:e.courseId,attrs:{label:e.title,value:e.courseId}})}))],2)],1),t("div",{staticClass:"selectsBlock"},[t("span",{staticClass:"selectLabel"},[e._v("部门")]),t("el-select",{attrs:{placeholder:"请选择"},on:{change:e.getData},model:{value:e.pavalues.value1,callback:function(t){e.$set(e.pavalues,"value1",t)},expression:"pavalues.value1"}},[t("el-option",{attrs:{label:"所有部门",value:""}}),e._l(e.options1,(function(e){return t("el-option",{key:e.classid,attrs:{label:e.name,value:e.classid}})}))],2)],1),t("div",{staticClass:"selectsBlock"},[t("span",{staticClass:"selectLabel"},[e._v("分类")]),t("el-select",{attrs:{placeholder:"请选择"},on:{change:e.getData},model:{value:e.pavalues.value2,callback:function(t){e.$set(e.pavalues,"value2",t)},expression:"pavalues.value2"}},[t("el-option",{attrs:{label:"所有分类",value:""}}),e._l(e.options2,(function(e){return t("el-option",{key:e.typeid,attrs:{label:e.name,value:e.typeid}})}))],2)],1),t("div",{staticClass:"selectsBlock"},[t("span",{staticClass:"selectLabel"},[e._v("负责人")]),t("el-select",{attrs:{placeholder:"请选择"},on:{change:e.getData},model:{value:e.pavalues.value3,callback:function(t){e.$set(e.pavalues,"value3",t)},expression:"pavalues.value3"}},[t("el-option",{attrs:{label:"所有负责人",value:""}}),e._l(e.options3,(function(e){return t("el-option",{key:e.pro_leader,attrs:{label:e.pro_leader,value:e.pro_leader}})}))],2)],1),t("div",{staticClass:"selectsBlock"},[t("span",{staticClass:"selectLabel"},[e._v("年份")]),t("el-select",{attrs:{placeholder:"请选择"},on:{change:e.getData},model:{value:e.pavalues.value4,callback:function(t){e.$set(e.pavalues,"value4",t)},expression:"pavalues.value4"}},[t("el-option",{attrs:{label:"所有年份",value:""}}),e._l(e.options4,(function(e){return t("el-option",{key:e.time,attrs:{label:e.time+"年",value:e.time}})}))],2)],1)]),t("div",{staticClass:"ProjectManagementQuery"},[t("el-input",{attrs:{placeholder:"请输入项目名称/编号"},model:{value:e.input,callback:function(t){e.input=t},expression:"input"}}),t("el-button",{staticClass:"btn",attrs:{type:"primary",size:"mini"},on:{click:e.getData}},[e._v("查询")])],1)]),t("div",[t("span",{staticStyle:{"font-size":"12px"}},[e._v("共 "+e._s(e.Page.total)+" 条")]),t("el-table",{ref:"multipleTable",staticClass:"fontSize",attrs:{data:e.items,"tooltip-effect":"dark",stripe:"","header-cell-style":{background:"#f2f2f2",color:"#000"}},on:{"cell-click":e.cellProjectClick}},[t("el-table-column",{attrs:{prop:"ProjectNo",label:"项目编号",align:"center","min-width":"9%"}}),t("el-table-column",{attrs:{prop:"title",label:"项目名称",align:"center","min-width":"10%"}}),t("el-table-column",{attrs:{prop:"pro_leader",align:"center",label:"项目负责人","min-width":"9%"}}),t("el-table-column",{attrs:{prop:"dName",align:"center",label:"所在部门","min-width":"10%"}}),t("el-table-column",{attrs:{prop:"tName",align:"center",label:"分类","min-width":"10%"}}),t("el-table-column",{attrs:{prop:"fund",label:"预算(万)",align:"center","min-width":"8%"},scopedSlots:e._u([{key:"default",fn:function(a){return[t("div",[e._v(" "+e._s(a.row.fund/1e4)+" ")])]}}])}),t("el-table-column",{attrs:{prop:"startTime",align:"center",label:"开始时间","min-width":"9%"},scopedSlots:e._u([{key:"default",fn:function(a){return[t("div",[e._v(" "+e._s(a.row.startTime)+" ")])]}}])}),t("el-table-column",{attrs:{prop:"endTime",label:"结项时间",align:"center","min-width":"9%"},scopedSlots:e._u([{key:"default",fn:function(a){return[t("div",[e._v(" "+e._s(a.row.endTime)+" ")])]}}])}),t("el-table-column",{attrs:{prop:"phone",align:"center",label:"联系电话","min-width":"10%"},scopedSlots:e._u([{key:"default",fn:function(a){return[t("div",[e._v(" "+e._s(null!=a.row.phone||""==a.row.phone?a.row.phone:"-")+" ")])]}}])}),t("el-table-column",{attrs:{prop:"operation",width:"200",align:"center",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(a){return[t("div",{staticClass:"operations",staticStyle:{"justify-content":"center"}},[t("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.rsBtn(a.row["courseId"],a.row["typeid"])}}},[e._v("成果展示")])],1)]}}])})],1)],1),t("el-pagination",{staticClass:"paginations",attrs:{"current-page":e.Page.currentPage,"page-size":e.Page.lim,layout:" prev, pager, next",background:"",total:e.Page.total},on:{"current-change":e.handleCurrentChange}})],1)},s=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"pAHeader"},[t("div",{staticClass:"pAHeader1"},[e._v("成果展示")])])}],n=(a(57658),{data(){return{input:"",items:[],options:[],options1:[],options2:[],options3:[],options4:[],loading:!1,pavalues:{value:"",value1:"",value2:"",value3:"",value4:""},Page:{currentPage:1,total:0,lim:8}}},methods:{handleCurrentChange(e){this.Page.currentPage=e,this.getData()},rsBtn(e,t){window.open(`/resultShowDetail?pid=${e}&tid=${t}`)},cellProjectClick(e,t,a,l){"operation"!=t.property&&this.rsBtn(e.courseId,e.typeid)},getData(){if(this.loading)return;this.loading=!0;let e={uid:this.$store.state.userInfo.userid,pid:this.pavalues.value,did:this.pavalues.value1,tid:this.pavalues.value2,leader:this.pavalues.value3,year:this.pavalues.value4,textInp:encodeURIComponent(this.input),page:this.Page.currentPage,lim:this.Page.lim};this.ajax.post(this.$store.state.api+"/GetProjectIsConclusion",e).then((e=>{let t=e.data;if(console.log(t),0==t[0].length&&0!=t[5][0]["total"]&&1!=this.Page.currentPage)return this.Page.currentPage=1,this.getData();this.items=t[0],this.options=t[1],this.options1=t[2],this.options2=t[3],this.options3=t[4],this.options4=t[6],0==this.options4.filter((e=>e["time"]==(new Date).getFullYear().toString())).length&&this.options4.push({time:(new Date).getFullYear().toString()}),this.Page.total=t[5][0]["total"],this.loading=!1}),(e=>{console.log(e)}))}},mounted(){},activated(){this.getData()}}),i=n,o=a(43736),r=(0,o.Z)(i,l,s,!1,null,"43858284",null),u=r.exports}}]);
- //# sourceMappingURL=5639.e768d4a2.js.map
|