dictionaries.vue 2.08 KB
<template>
  <div class="from-clues">
    <!-- 表单部分 -->
    <div class="from-clues-header">
      <el-form :model="ruleForm" ref="ruleForm">
        <el-row>
          <el-col :span="6">
            <el-form-item label="字典类型编码">
              <el-input v-model="ruleForm.zdlxbm" placeholder="字典类型编码"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="6">
            <el-form-item label="字典类型名称">
              <el-input v-model="ruleForm.zdlxmc" placeholder="字典类型名称"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12" class="btnCol">
            <el-form-item>
              <el-button type="primary" @click="fetchData()">查询</el-button>
              <el-button @click="moreQueryClick()">高级查询</el-button>
            </el-form-item>
          </el-col>
        </el-row>
      </el-form>
    </div>
    <!-- 表格 -->
    <div class="from-clues-content">
      <lb-table :page-size="pageData.size" :current-page.sync="pageData.current" :total="tableData.total"
        @size-change="handleSizeChange" @p-current-change="handleCurrentChange" :column="tableData.columns"
        :data="tableData.data">
      </lb-table>
    </div>
    <editDialog v-model="isDialog" />
  </div>
</template>
<script>
import table from "@/utils/mixin/table"
import { datas, sendThis } from "./dictionaries"
import editDialog from "./components/editDialog.vue"
export default {
  name: "djbcx",
  components: {
    editDialog
  },
  mixins: [table],
  mounted () {
    sendThis(this);
  },
  data () {
    return {
      isDialog: false,
      ruleForm: {
        zdlxbm: '',
        zdlxmc: ''
      },
      tableData: {
        total: 0,
        columns: datas.columns(),
        data: [
          {
            zdlxbm: "66666666666666",
          }
        ]
      }
    }
  },
  methods: {
    // 初始化数据
    fetchData () {
    },
    moreQueryClick () { },
    editClick () {
      this.isDialog = true
    }
  },
};
</script>
<style scoped lang="scss">
@import "~@/styles/public.scss";
</style>