index.vue 3.74 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 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 123 124 125 126 127 128 129 130 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
<template>
  <BasePage :power='power' ref="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> -->
    </template>

  </BasePage>
</template>

<script>
  export default {
    name: 'wlxx',
    data() {
      return {
        power: {
          add: false,
          copy: false,
          /* 手动控制删除 */
          delButton: false,
          /* 手动控制编辑按钮权限 */
          editButton: false,
          /* 是否渲染右侧操作按钮 */
          operateButtons: false,
          /* 是否开启工作流按钮 */
          workFlow: false,
          /* 表格开启选择,以及记住选择 */
          showSelection: false,
          saveSelected: false
        },
        config: {
          /* 基本配置*/
          url: 'sbgl/usbxx',
          tableTitle: [
            {
              title: "设备编码",
              field: "code",
              width: 140
            },
            {
              title: "设备名称",
              field: "name",
              width: 140
            },
            // {
            //   title: "层级码",
            //   field: "cjid",
            //   width: 140
            // },
            {
              title: "设备类型",
              field: "type",
              width: 140,
              transform: {
                "url": "sbgl/usblx/query",
                "label": "name",
                "value": "code"
              }
            },
            {
              title: "机组编码",
              field: "jzbm",
              width: 140,
              transform: {
                "url": "sbgl/ujzbm/query",
                "label": "name",
                "value": "code"
              }
            },
            {
              title: "风险等级",
              field: "fxdj",
              width: 140,
              transform: {
                "url": "sbgl/usbxx/init/fxlevel",
                "label": "name",
                "value": "id"
              }
            },
            {
              title: "规格",
              field: "gg",
              width: 140
            },
            {
              title: "管径",
              field: "gj",
              width: 140
            },
            {
              title: "流通直径",
              field: "ltzj",
              width: 140
            },
            {
              title: "备注",
              field: "bz",
              width: 250
            },
            {
              title: "创建人",
              field: "cjr",
              width:120
            },
            {
              title: "创建时间",
              field: "cjsj",
              fieldType: 'ftDateTime'
            },
            {
              title: "维护人",
              field: "whr",
              hidden: true,
               width:120
            },
            {
              title: "维护时间",
              field: "whsj",
              fieldType: 'ftDateTime',
              hidden: true
            }

          ],
          queryParams: [
            [
              {
                label: '设备信息',
                prop: 'sbxxInfo',
                span: 6,
                type: 'input',
                value: ''
              }
            ]
          ],
          /* 默认启停用  */
          showqt: false,

        }
      }

    },
    methods: {
      /* 示例*/
      // demo(basePage){

      // }
    },
    components: {

    }

  }
</script>

<style>
</style>