| @@ -35,7 +35,7 @@ | |||
| <span style="display:inline-block;margin-left: 20px; "> | |||
| <el-input size="small" placeholder="输入项目关键字搜索" v-model="search" class="input-with-select" @keyup.enter.native="searchName() "><i slot="suffix" class="el-input__icon el-icon-search"></i> | |||
| <el-input size="small" placeholder="输入项目关键字搜索" v-model="search" class="input-with-select" @keyup.enter.native="searchName() "><i slot="suffix" class="el-input__icon el-icon-search" @click="searchName() "></i> | |||
| </el-input> | |||
| </span> | |||
| </span> | |||
| @@ -53,6 +53,16 @@ | |||
| stripe | |||
| > | |||
| </el-table-column> | |||
| <el-table-column | |||
| label="拥有者" | |||
| align="center" | |||
| prop="ownerName" | |||
| stripe | |||
| v-if='0' | |||
| > | |||
| </el-table-column> | |||
| <el-table-column | |||
| label="项目名称" | |||
| width="125px" | |||
| @@ -61,7 +71,7 @@ | |||
| style="color:#0366D6 100%;" | |||
| > | |||
| <template slot-scope="scope"> | |||
| <a @click=goToDetailPage(scope.row.repo_id,scope.row.name)>{{scope.row.name}} </a> | |||
| <a @click=goToDetailPage(scope.row.repo_id,scope.row.name,scope.row.ownerName)>{{scope.row.name}} </a> | |||
| </template> | |||
| </el-table-column> | |||
| <el-table-column | |||
| @@ -146,7 +156,7 @@ | |||
| </div> | |||
| <div id ="pro_detail" style="display:none;width: 100%;"> | |||
| <div style="margin-top: 10px;"> | |||
| <b class="pro_item">{{this.pro_name}}</b> <span class="update_time">数据更新时间:{{tableDataIDTotal.lastUpdatedTime}}/{{tableDataIDTotal.recordBeginTime}}</span> | |||
| <b class="pro_item">{{this.ownerName}}/{{this.pro_name}}</b> <span class="update_time">数据更新时间:{{tableDataIDTotal.lastUpdatedTime}}/{{tableDataIDTotal.recordBeginTime}}</span> | |||
| </div> | |||
| <div style="margin-top: 10px;"> | |||
| 项目描述:{{tableDataIDTotal.description | discriptionFun}} | |||
| @@ -209,16 +219,15 @@ | |||
| <a v-if="scope.row.mode!=-1" :href="AppSubUrl +'../../../'+ scope.row.user"><img class="ui avatar s16 image js-popover-card" :src="scope.row.relAvatarLink">{{scope.row.user}} </a> | |||
| <a v-else :href="'mailto:'+ scope.row.email "> <img class="ui avatar s16 image js-popover-card" :avatar="scope.row.email"> {{scope.row.user}}</a> | |||
| </template> | |||
| </el-table-column> | |||
| <el-table-column | |||
| label="身份" | |||
| align="center" | |||
| prop="mode"> | |||
| <template slot-scope="scope"> | |||
| {{scope.row.mode | showMode}} | |||
| </template> | |||
| prop="mode" | |||
| v-if='0'> | |||
| <template slot-scope="scope"> | |||
| {{scope.row.mode | showMode}} | |||
| </template> | |||
| </el-table-column> | |||
| <el-table-column | |||
| prop="pr" | |||
| @@ -366,6 +375,7 @@ | |||
| dynamic_pro:7, | |||
| pro_name:'', | |||
| pro_id:'', | |||
| ownerName:'', | |||
| radarOpenI:'', | |||
| echartsOITd:'', | |||
| echartsSelectData:'', | |||
| @@ -578,13 +588,13 @@ | |||
| }) | |||
| }, | |||
| searchName(){ | |||
| this.params.q = this.search | |||
| this.params.page = 1 | |||
| this.page=1 | |||
| this.getAllProList("all",7) | |||
| this.params.q = this.search | |||
| this.params.page = 1 | |||
| this.page=1 | |||
| this.getAllProList(this.params.type, this.dynamic) | |||
| }, | |||
| goToDetailPage(pro_id,pro_name){ | |||
| goToDetailPage(pro_id,pro_name,ownerName){ | |||
| this.currentPage=1 | |||
| document.getElementById("pro_main").style.display="none"; | |||
| document.getElementById("pro_detail").style.display="block"; | |||
| @@ -592,6 +602,7 @@ | |||
| console.log(pro_name) | |||
| this.pro_name=pro_name; | |||
| this.pro_id=pro_id; | |||
| this.ownerName=ownerName | |||
| this.getOneProData(pro_id); | |||
| this.getOneProList(pro_id,"monthly",true,5); | |||
| this.getOneProList(pro_id,"monthly",false,5); | |||
| @@ -1012,6 +1023,19 @@ | |||
| // } | |||
| // console.log("this.radarOpenI:"+this.radarOpenI) | |||
| }, | |||
| watch:{ | |||
| search(val){ | |||
| if(!val){ | |||
| this.params.q = this.search | |||
| this.params.page = 1 | |||
| this.page=1 | |||
| this.getAllProList(this.params.type, this.dynamic) | |||
| } | |||
| } | |||
| }, | |||
| created() { | |||
| // this.download_a=document.getElementById("download_file") | |||
| } | |||