index.vue 3.88 KB
Newer Older
李苏's avatar
李苏 committed
1 2 3 4 5
<!--
 * @Description: 生成基础basePage组件,屏蔽不必要细节
 * @Author: lisu lisu@gavelinfo.com
 * @Date: 2024-09-19 10:55:27
 * @LastEditors: lisu lisu@gavelinfo.com
李苏's avatar
李苏 committed
6
 * @LastEditTime: 2024-12-06 15:01:35
李苏's avatar
李苏 committed
7 8 9 10 11 12 13 14 15 16
 * @FilePath: /zghywpc-vue/src/views/fmegl/fmezbpgl/biao/index.vue
-->
<template>
  <BasePage class="min_full" :config="config">
    <template #dialog="ctx">
      <!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
    </template>
    <template #toolbar="ctx">
      <!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
      <!-- <el-button @click="demo(ctx.basePage)" size='mini'  type="primary">示例按钮</el-button> -->
李苏's avatar
李苏 committed
17
      <ZghImportButton @success="()=>{ctx.basePage.refresh()}" :url="'fme/ufmezbp/import'" />
李苏's avatar
李苏 committed
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122
    </template>

  </BasePage>
</template>

<script>
  import Edit from './edit.vue'
  export default {
    name: 'template',
    data() {
      return {
        config: {
          /* 基本配置*/
          url: 'fme/ufmezbp',
          tableTitle: [{
              title: "年份",
              field: "year",
              width: 100
            },
            {
              title: "月份",
              field: "month",
              width: 100
            },
            {
              title: "一级异物事件",
              field: "oneywsj",
              width: 100
            },
            {
              title: "二级异物事件",
              field: "twoywsj",
              width: 100
            },
            {
              title: "外部引入异物事件",
              field: "wbyrywsj",
              width: 180
            },
            {
              title: "燃料可靠性",
              field: "rlkkx",
              width: 100
            },
            {
              title: "督办任务超期",
              field: "dbrwcq",
              width: 100
            },
            {
              title: "月会任务超期",
              field: "yhrwcq",
              width: 100
            },
            {
              title: "例会缺席",
              field: "lhqx",
              width: 100
            },
            {
              title: "事件通报异常",
              field: "sjtbyc",
              width: 100
            },
            {
              title: "事件关闭超期",
              field: "sjgbcq",
              width: 100
            },

            {
              title: "类型",
              field: "type",
              width: 100,
              formatter(a, b, v) {
                let map = {
                  'year': '年',
                  'month': '月'
                }
                return map[v]
              }
            },
            {
              title: "维护人",
              field: "whr"
            },
            {
              title: "维护时间",
              field: "whsj",
              fieldType: "ftDateTime"
            },
          ],
          queryParams: [
            [{
                label: '年度',
                prop: 'year',
                span: 6,
                type: 'year',
                value: new Date().getFullYear()
              },
              {
                label: '类型',
                prop: 'type',
                span: 6,
                type: 'RelSelect',
123
                value: 'Y',
李苏's avatar
李苏 committed
124 125
                typeConfig: {
                  clearable: false,
126 127 128 129 130
                  "src": "fme/ufmezbp/init/year",
                  "match": {
                    "value": "id",
                    "label": "name"
                  }
李苏's avatar
李苏 committed
131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159
                }
              }

            ]
          ],
          /* 默认启停用  */

        }
      }

    },
    methods: {
      /**
       * @description:示例按钮
       * @param {*} ctx操作basePage实例内容
       * @return {*}
       * @author: lisu
       */
      // demo(ctx){}
    },
    components: {
      Edit
    }

  }
</script>

<style>
</style>