12 |
- "use strict";(self["webpackChunkscproject"]=self["webpackChunkscproject"]||[]).push([[5877],{25877: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"}]},[e._m(0),t("hr"),t("div",{staticClass:"selectInp"},[t("div",{staticClass:"manageSelects",staticStyle:{width:"100%"}},[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.value5,callback:function(t){e.$set(e.pavalues,"value5",t)},expression:"pavalues.value5"}},[t("el-option",{attrs:{label:"所有分类",value:""}}),t("el-option",{attrs:{label:"未审核",value:"0"}}),t("el-option",{attrs:{label:"已审核",value:"1"}})],1)],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",{staticStyle:{width:"200px"},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:{"selection-change":e.handleSelectionChange,"cell-click":e.cellProjectClick}},[t("el-table-column",{attrs:{type:"selection",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:"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:"username",align:"center",label:"经办人","min-width":"10%"}}),t("el-table-column",{attrs:{prop:"tName",align:"center",label:"状态","min-width":"10%"},scopedSlots:e._u([{key:"default",fn:function(a){return[t("div",[t("span",[e._v(e._s(a.row.isupload==e.classType[e.$store.state.userInfo.type]&&a.row.isReturn!=e.classType[e.$store.state.userInfo.type]?"待审核":"审核完成"))])])]}}])}),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("待办公文")])])}],i=(a(57658),{data(){return{input:"",items:[],options:[],options1:[],options2:[],options3:[],options4:[],options5:[{value:0,label:"未审核"},{value:1,label:"审核中"},{value:2,label:"进行中"},{value:3,label:"待结项"},{value:4,label:"已结项"}],classType:{0:6,3:7,4:5},loading:!1,pavalues:{value:"",value1:"",value2:"",value3:"",value4:"",value5:"0"},Page:{currentPage:1,total:0,lim:8},multipleSelection:[]}},methods:{cellProjectClick(e,t,a,l){"operation"!=t.property&&this.rsBtn(e.courseId,e.typeid)},handleCurrentChange(e){this.Page.currentPage=e,this.getData()},rsBtn(e,t){this.$router.push(`/commissionDetailMain?pid=${e}&tid=${t}`)},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,status:this.pavalues.value5,textInp:encodeURIComponent(this.input),page:this.Page.currentPage,lim:this.Page.lim};this.ajax.post(this.$store.state.api+"/getProjectByCommission",e).then((e=>{let t=e.data;if(0==t[0].length&&0!=t[5][0]["total"]&&1!=this.Page.currentPage)return this.Page.currentPage=1,this.loading=!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)}))},handleSelectionChange(e){this.multipleSelection=e.courseId,console.log(this.multipleSelection)}},mounted(){this.pavalues.value4=(new Date).getFullYear().toString()},activated(){this.getData()}}),n=i,o=a(43736),r=(0,o.Z)(n,l,s,!1,null,"ed193968",null),u=r.exports}}]);
- //# sourceMappingURL=5877.29cb9213.js.map
|