Commit c438ffc4 authored by anxixi's avatar anxixi

运营指标验收等功能

parent 2ca936da
......@@ -41,6 +41,7 @@
</el-row>
<el-row style="margin: 20px 0 0 10px" class="contnetform gendisplay">
<el-input style="width: 240px;" v-model="search.content"
@keyup.enter.native="searchCik"
placeholder="请输入关键词查询"></el-input>
<el-button type="primary" style="width: 140px;margin-left: 20px" @click="searchCik">{{$t('operationjson.search')}}</el-button>
<el-button type="primary" plain style="width: 140px;margin: 0 20px;" @click="resetCik">重置</el-button>
......
......@@ -42,6 +42,7 @@
<el-row style="margin: 20px 0 0 10px" class="contnetform">
<div style="display:flex;line-height: 40px;">
<el-input style="width: 240px;margin-left: 20px;" v-model="search.keyName"
@keyup.enter.native="searchCik"
placeholder="请输入关键词查询"></el-input>
<el-button type="primary" style="width: 140px;margin-left: 20px" @click="searchCik">{{$t('operationjson.search')}}</el-button>
<el-button type="primary" plain style="width: 140px;margin: 0 20px" @click="resetCik">重置</el-button>
......
......@@ -30,4 +30,9 @@ export default {
getCheckProfessor( params ) {
return api.fetchGet( '/base/check/professor/getCheckProfessor?professorId=' + params );
},
//kol专家导出
exportProfessorList( params ) {
return api.fetchLoadingPostex( '/base/manage/professor/exportProfessorList', params );
},
}
\ No newline at end of file
......@@ -23,8 +23,8 @@
</template>
</el-form-item>
<el-form-item class="formcontentnk">
<el-button type="primary" @click="" style="margin-right: 20px;">导出</el-button>
<el-input placeholder="请输入关键字" v-model="searchs.content" class="input-with-select" style="width: 290px">
<el-button type="primary" @click="exportSuccess" style="margin-right: 20px;">导出</el-button>
<el-input placeholder="请输入关键字" @keyup.enter.native="searchCik" v-model="searchs.content" class="input-with-select" style="width: 290px">
<el-button slot="append" icon="el-icon-search" @click="searchCik"></el-button>
</el-input>
</el-form-item>
......@@ -186,6 +186,26 @@
return false;
});
},
// 专家导出
exportSuccess(){
let params = this.searchs;
api.exportProfessorList(params).then(response => {
let blob = new Blob([response], {
type: "application/vnd.ms-excel" //word文档为msword,pdf文档为pdf
});
let objectUrl = URL.createObjectURL(blob);
let link = document.createElement("a");
let fname = `维护的专家列表`+`.xls`; //下载文件的名字
link.href = objectUrl;
link.setAttribute("download", fname);
document.body.appendChild(link);
link.click();
})
.catch(error => {
console.log("提交出错");
return false;
});
},
},
mounted() {
this.getCreatedProfessors();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment