dictionaries.js 1.23 KB
import filter from '@/utils/filter.js'
let vm = null

const sendThis = (_this) => {
  vm = _this
}
class data extends filter {
  constructor() {
    super()
  }
  columns () {
    return [
      {
        label: '序号',
        type: 'index',
        width: '50',
        render: (h, scope) => {
          return (
            <div>
              {(vm.pageData.currentPage - 1) * vm.pageData.pageSize + scope.$index + 1}
            </div>
          )
        }
      },
      {
        prop: "zdlxbm",
        label: "字典类型编码",
      },
      {
        prop: "zdlxmc",
        label: "字典类型名称",
      },
      {
        prop: "sfyxxg",
        label: "是否允许修改",
        render: (h, scope) => {
          return (
            <div>
              {scope.row.sfyxxg}
            </div>
          )
        }
      },
      {
        label: '操作',
        width: '150',
        align: 'center',
        fixed: 'right',
        render: (h, scope) => {
          return (
            <div>
              <el-button type="text" icon="el-icon-edit-outline" onClick={() => { vm.editClick(scope) }}>修改</el-button>
            </div>
          )
        }
      }
    ]
  }

}
let datas = new data()
export {
  datas,
  sendThis
}