|
@@ -138,7 +138,14 @@
|
|
|
<!-- 搜索框结束 -->
|
|
|
<!-- 表格开始 -->
|
|
|
<div>
|
|
|
- <span style="font-size: 12px">共 {{ table.total }} 条</span>
|
|
|
+ <div>
|
|
|
+ <el-button v-if="$store.state.userInfo.type == 0" size="mini" :type="!isPromotion?'primary':''" @click="selectAll">全部</el-button>
|
|
|
+ <el-button v-if="$store.state.userInfo.type == 0" size="mini" :type="isPromotion?'primary':''" @click="selectPromotion">晋级项目</el-button>
|
|
|
+ <span style="font-size: 12px; margin-left: 10px"
|
|
|
+ >共 {{ table.total }} 条</span
|
|
|
+ >
|
|
|
+ </div>
|
|
|
+
|
|
|
<el-table
|
|
|
ref="multipleTable"
|
|
|
:data="tableData"
|
|
@@ -559,6 +566,7 @@ export default {
|
|
|
// components:{MakerSpaceWordPreview,studentMakerProjectPreview},
|
|
|
data() {
|
|
|
return {
|
|
|
+ isPromotion: '',
|
|
|
iid: "",
|
|
|
loading: false,
|
|
|
textarea: "",
|
|
@@ -659,6 +667,17 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
methods: {
|
|
|
+ selectAll() {
|
|
|
+ console.log("所有");
|
|
|
+ this.isPromotion = '';
|
|
|
+ this.getData()
|
|
|
+ },
|
|
|
+ selectPromotion() {
|
|
|
+ console.log("晋级");
|
|
|
+ this.isPromotion = 1;
|
|
|
+ this.getData()
|
|
|
+ },
|
|
|
+
|
|
|
init() {
|
|
|
this.dialogVisible = false;
|
|
|
this.dialogVisible1 = false;
|
|
@@ -927,6 +946,7 @@ export default {
|
|
|
st: this.selectInp.state, //审核状态
|
|
|
year: this.selectInp.year,
|
|
|
textInp: encodeURIComponent(this.input),
|
|
|
+ promotion: this.isPromotion,
|
|
|
page: this.table.currentPage, //当前页
|
|
|
lim: this.table.packageSize, //限制获取几条数据
|
|
|
};
|
|
@@ -1044,18 +1064,30 @@ export default {
|
|
|
let student = item.course_student
|
|
|
? JSON.parse(item.course_student)
|
|
|
: [];
|
|
|
- let money = item.money?JSON.parse(item.money):{}
|
|
|
+ let money = item.money ? JSON.parse(item.money) : {};
|
|
|
// _json["项目编号"] = item.ProjectNo;
|
|
|
_json["项目名称"] = item.title;
|
|
|
_json["项目负责人"] = item.pro_leader;
|
|
|
- _json["小型仪器设备费"] = money["device"]?money["device"]:"0";
|
|
|
- _json["材料费"] = money["Material"]?money["Material"]:"0";
|
|
|
- _json["测试化验加工费"] = money["processing"]?money["processing"]:"0";
|
|
|
- _json["项目协作费"] = money["Collaboration"]?money["Collaboration"]:"0";
|
|
|
- _json["项目成果鉴定费"] = money["APPRAISAL"]?money["APPRAISAL"]:"0";
|
|
|
- _json["参展参赛费"] = money["entery"]?money["entery"]:"0";
|
|
|
- _json["创客交流活动费"] = money["activities"]?money["activities"]:"0";
|
|
|
- _json["知识产权事务费"] = money["Transaction"]?money["Transaction"]:"0";
|
|
|
+ _json["小型仪器设备费"] = money["device"]
|
|
|
+ ? money["device"]
|
|
|
+ : "0";
|
|
|
+ _json["材料费"] = money["Material"] ? money["Material"] : "0";
|
|
|
+ _json["测试化验加工费"] = money["processing"]
|
|
|
+ ? money["processing"]
|
|
|
+ : "0";
|
|
|
+ _json["项目协作费"] = money["Collaboration"]
|
|
|
+ ? money["Collaboration"]
|
|
|
+ : "0";
|
|
|
+ _json["项目成果鉴定费"] = money["APPRAISAL"]
|
|
|
+ ? money["APPRAISAL"]
|
|
|
+ : "0";
|
|
|
+ _json["参展参赛费"] = money["entery"] ? money["entery"] : "0";
|
|
|
+ _json["创客交流活动费"] = money["activities"]
|
|
|
+ ? money["activities"]
|
|
|
+ : "0";
|
|
|
+ _json["知识产权事务费"] = money["Transaction"]
|
|
|
+ ? money["Transaction"]
|
|
|
+ : "0";
|
|
|
|
|
|
// _json["所在部门"] = item.name;
|
|
|
// _json["分类"] = item.sort;
|
|
@@ -1070,7 +1102,7 @@ export default {
|
|
|
// : this.isReturnType[item.isReturn];
|
|
|
// for (let i = 0; i < student.length; i++) {
|
|
|
// _json["学生成员" + (i + 1)] = student[i].name;
|
|
|
- // _json["学生班级" + (i + 1)] = student[i].collage;
|
|
|
+ // _json["学生班级" + (i + 1)] = student[i].collage;
|
|
|
// }
|
|
|
// for (let i = 0; i < teacher.length; i++) {
|
|
|
// _json["指导老师" + (i + 1)] = teacher[i].name;
|
|
@@ -1079,7 +1111,6 @@ export default {
|
|
|
_array.push(_json);
|
|
|
});
|
|
|
|
|
|
-
|
|
|
let XLSX = require("xlsx");
|
|
|
const workbook = XLSX.utils.book_new(); //创建一个新的工作簿对象
|
|
|
let ws = XLSX.utils.json_to_sheet(_array); //将json对象数组转化成工作表
|
|
@@ -1174,5 +1205,10 @@ export default {
|
|
|
cursor: default;
|
|
|
}
|
|
|
}
|
|
|
+ .btnCss{
|
|
|
+ color: #409EFF;
|
|
|
+ border-color: #c6e2ff;
|
|
|
+ background-color: #ecf5ff;
|
|
|
+ }
|
|
|
}
|
|
|
</style>
|