|
@@ -57,9 +57,7 @@ export default window.$crudCommon({
|
|
|
yearAndMonth: moment(new Date()).format('YYYYMM'),
|
|
yearAndMonth: moment(new Date()).format('YYYYMM'),
|
|
|
|
|
|
|
|
},
|
|
},
|
|
|
- spanArr: [
|
|
|
|
|
- { prop: 'projectName', span: [] },
|
|
|
|
|
- ],
|
|
|
|
|
|
|
+
|
|
|
wideTableColumns: [],
|
|
wideTableColumns: [],
|
|
|
printTitle: "",
|
|
printTitle: "",
|
|
|
};
|
|
};
|
|
@@ -71,19 +69,6 @@ export default window.$crudCommon({
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
- getList() {
|
|
|
|
|
- this.data = [{
|
|
|
|
|
- projectName: '项目1'
|
|
|
|
|
- }, {
|
|
|
|
|
- projectName: '项目1'
|
|
|
|
|
- }, {
|
|
|
|
|
- projectName: '项目1'
|
|
|
|
|
- }, {
|
|
|
|
|
- projectName: '项目2'
|
|
|
|
|
- }, {
|
|
|
|
|
- projectName: '项目3'
|
|
|
|
|
- }];
|
|
|
|
|
- },
|
|
|
|
|
spanMethod({ row, column, rowIndex, columnIndex }) {
|
|
spanMethod({ row, column, rowIndex, columnIndex }) {
|
|
|
let fields = ["projectName"];
|
|
let fields = ["projectName"];
|
|
|
let cellValue = row[column.property];
|
|
let cellValue = row[column.property];
|
|
@@ -111,7 +96,7 @@ export default window.$crudCommon({
|
|
|
type: "warning"
|
|
type: "warning"
|
|
|
}).then(() => {
|
|
}).then(() => {
|
|
|
NProgress.start();
|
|
NProgress.start();
|
|
|
- exportBloByPost(`/api/kd-scientific/technician/export?${this.website.tokenHeader}=${getToken()}`, this.params).then(res => {
|
|
|
|
|
|
|
+ exportBloByPost(`/api/kd-scientific/technician/xmcyryhzb/export?${this.website.tokenHeader}=${getToken()}`, this.params).then(res => {
|
|
|
downloadXls(res.data, `${this.params.yearAndMonth}项目参研人员汇总表.xlsx`);
|
|
downloadXls(res.data, `${this.params.yearAndMonth}项目参研人员汇总表.xlsx`);
|
|
|
NProgress.done();
|
|
NProgress.done();
|
|
|
})
|
|
})
|
|
@@ -128,6 +113,19 @@ export default window.$crudCommon({
|
|
|
},
|
|
},
|
|
|
}, {
|
|
}, {
|
|
|
// 模块路径
|
|
// 模块路径
|
|
|
- name: 'techPerson/cyPersonSumList'
|
|
|
|
|
|
|
+ name: 'techPerson/cyPersonSumList',
|
|
|
|
|
+ res: ({ data }) => {
|
|
|
|
|
+ let newList = [];
|
|
|
|
|
+ data.records.forEach(item => {
|
|
|
|
|
+ item.technicianList.forEach(techItem => {
|
|
|
|
|
+ newList.push({
|
|
|
|
|
+ projectName: item.xmmc,
|
|
|
|
|
+ ...techItem
|
|
|
|
|
+ });
|
|
|
|
|
+ });
|
|
|
|
|
+ });
|
|
|
|
|
+ data.records = newList;
|
|
|
|
|
+ return data;
|
|
|
|
|
+ }
|
|
|
});
|
|
});
|
|
|
</script>
|
|
</script>
|