|
|
@ -3,7 +3,7 @@
|
|
|
|
<div class="L-main">
|
|
|
|
<div class="L-main">
|
|
|
|
<header id="L-header">
|
|
|
|
<header id="L-header">
|
|
|
|
<el-form :inline="true" :model="formInline" size="small" class="demo-form-inline" ref="queryFrom">
|
|
|
|
<el-form :inline="true" :model="formInline" size="small" class="demo-form-inline" ref="queryFrom">
|
|
|
|
<el-col :span="22">
|
|
|
|
<el-col :span="20">
|
|
|
|
<el-form-item label="年份:">
|
|
|
|
<el-form-item label="年份:">
|
|
|
|
<el-date-picker
|
|
|
|
<el-date-picker
|
|
|
|
class="ignoreElement"
|
|
|
|
class="ignoreElement"
|
|
|
@ -53,8 +53,12 @@
|
|
|
|
<el-button size="mini" type="primary" @click="handleQuery('queryFrom')">查询</el-button>
|
|
|
|
<el-button size="mini" type="primary" @click="handleQuery('queryFrom')">查询</el-button>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="2">
|
|
|
|
<el-col :span="4">
|
|
|
|
<el-button type="primary" class="import-btn" icon="icon iconfont icon-jc-daoru" size="mini" @click="importBtn" v-if="roles.includes('other-gov')">导入新项目</el-button>
|
|
|
|
<!-- <el-button type="primary" class="import-btn" icon="icon iconfont icon-jc-daoru" size="mini" @click="importBtn" v-if="roles.includes('other-gov')">导入新项目</el-button> -->
|
|
|
|
|
|
|
|
<div class="btnss">
|
|
|
|
|
|
|
|
<el-button type="primary" class="import-btn" icon="icon iconfont icon-jc-daoru" size="mini" v-if="roles.includes('other-gov')" @click="importBtn">导入企业</el-button>
|
|
|
|
|
|
|
|
<el-button type="primary" class="import-btn import-btn-export" size="mini" @click="deriveBtn" :loading="exportLoading">导出</el-button>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
</el-form>
|
|
|
|
</el-form>
|
|
|
|
</header>
|
|
|
|
</header>
|
|
|
@ -264,7 +268,7 @@ export default {
|
|
|
|
projectName:[],
|
|
|
|
projectName:[],
|
|
|
|
declareUnit:"",
|
|
|
|
declareUnit:"",
|
|
|
|
projectYear:"",
|
|
|
|
projectYear:"",
|
|
|
|
status: ''
|
|
|
|
status: '5'
|
|
|
|
},
|
|
|
|
},
|
|
|
|
options: [],
|
|
|
|
options: [],
|
|
|
|
optionsTwo: [],
|
|
|
|
optionsTwo: [],
|
|
|
@ -342,6 +346,7 @@ export default {
|
|
|
|
url: process.env.VUE_APP_BASE_API + "/jjh/jProject/importTemplateProject"
|
|
|
|
url: process.env.VUE_APP_BASE_API + "/jjh/jProject/importTemplateProject"
|
|
|
|
},
|
|
|
|
},
|
|
|
|
tabHeader: undefined,
|
|
|
|
tabHeader: undefined,
|
|
|
|
|
|
|
|
exportLoading:false,
|
|
|
|
};
|
|
|
|
};
|
|
|
|
},
|
|
|
|
},
|
|
|
|
mounted() {
|
|
|
|
mounted() {
|
|
|
@ -387,6 +392,7 @@ export default {
|
|
|
|
this.cancalDebounce();
|
|
|
|
this.cancalDebounce();
|
|
|
|
window.addEventListener('resize', this.cancalDebounce);
|
|
|
|
window.addEventListener('resize', this.cancalDebounce);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.pagination.status = '5'
|
|
|
|
this.getList();
|
|
|
|
this.getList();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
destroyed() {
|
|
|
|
destroyed() {
|
|
|
@ -541,6 +547,32 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
// 导出操作
|
|
|
|
|
|
|
|
deriveBtn(){
|
|
|
|
|
|
|
|
this.$confirm("是否确认导出项目库数据项?", "警告", {
|
|
|
|
|
|
|
|
confirmButtonText: "确定",
|
|
|
|
|
|
|
|
cancelButtonText: "取消",
|
|
|
|
|
|
|
|
type: "warning",
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
.then(() => {
|
|
|
|
|
|
|
|
this.exportLoading = true;
|
|
|
|
|
|
|
|
if(this.formInline.projectClassify) {
|
|
|
|
|
|
|
|
this.formInline.projectBigType = this.formInline.projectClassify[0]
|
|
|
|
|
|
|
|
this.formInline.projectMiddleType = this.formInline.projectClassify[1]
|
|
|
|
|
|
|
|
this.formInline.projectSmallType = this.formInline.projectClassify[2]
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
console.log(this.formInline);
|
|
|
|
|
|
|
|
this.download(
|
|
|
|
|
|
|
|
"/jjh/jProject/exportProject",
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
...this.formInline
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
"项目库数据" + new Date().getTime() + ".xlsx"
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
this.exportLoading = false;
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
.catch(() => { });
|
|
|
|
|
|
|
|
},
|
|
|
|
/** 下载模板操作 */
|
|
|
|
/** 下载模板操作 */
|
|
|
|
importTemplate() {
|
|
|
|
importTemplate() {
|
|
|
|
this.download('/jjh/jProject/updateProjectTemplate', {
|
|
|
|
this.download('/jjh/jProject/updateProjectTemplate', {
|
|
|
|