expertList.vue 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <template>
  2. <div id="expertList">
  3. <el-row>
  4. <el-col :span="24" style="text-align:center;font-size:24px">评价专家组名单</el-col>
  5. <el-col :span="24" style="text-align:center">
  6. <table border="1" style="border-collapse:collapse">
  7. <tr>
  8. <td>序号</td>
  9. <td width="200">评价专家组职务</td>
  10. <td width="120">姓名</td>
  11. <td width="200">工作单位</td>
  12. <td width="200">所学专业</td>
  13. <td width="200">现从事专业</td>
  14. <td width="200">职务</td>
  15. <td width="200">职称</td>
  16. <td width="200">签名</td>
  17. </tr>
  18. <tr v-for="(i, index) in dataList" :key="`tr${index}`">
  19. <td>{{ index + 1 }}</td>
  20. <td>{{ getProp(i, 'expert_id.group_zw') }}</td>
  21. <td>{{ getProp(i, 'expert_id.expert_name') }}</td>
  22. <td>{{ getProp(i, 'expert_id.company') }}</td>
  23. <td>{{ getProp(i, 'expert_id.major') }}</td>
  24. <td>{{ getProp(i, 'expert_id.now_major') }}</td>
  25. <td>{{ getProp(i, 'expert_id.zw') }}</td>
  26. <td>{{ getProp(i, 'expert_id.zc') }}</td>
  27. <td></td>
  28. </tr>
  29. </table>
  30. </el-col>
  31. </el-row>
  32. <el-row>
  33. <el-col :span="24" style="text-align:right;padding-right:50px">(加盖吉林省科技成果评价专用章有效)</el-col>
  34. </el-row>
  35. </div>
  36. </template>
  37. <script>
  38. const _ = require('lodash');
  39. import { mapState, createNamespacedHelpers } from 'vuex';
  40. export default {
  41. name: 'expertList',
  42. props: {
  43. list: { type: Array, default: () => [] },
  44. },
  45. components: {},
  46. data: function() {
  47. return {};
  48. },
  49. created() {},
  50. methods: {
  51. getProp(data, prop) {
  52. return _.get(data, prop);
  53. },
  54. },
  55. computed: {
  56. ...mapState(['user', 'menuParams']),
  57. pageTitle() {
  58. return `${this.$route.meta.title}`;
  59. },
  60. dataList() {
  61. let dup = _.cloneDeep(_.get(this, 'list', []));
  62. while (dup.length < 10) {
  63. dup.push({});
  64. }
  65. return dup;
  66. },
  67. },
  68. metaInfo() {
  69. return { title: this.$route.meta.title };
  70. },
  71. };
  72. </script>
  73. <style lang="less" scoped></style>