index.vue 2.99 KB
<template>
  <div class="reportLog from-clues">
    <div class="from-clues-header">
      <el-form ref="ruleForm" :model="form" label-width="100px">
        <el-row>
          <el-col :span="6">
            <el-form-item label="负责人" label-width="60px" prop="fzr">
              <el-input v-model="form.fzr" placeholder="负责人"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="6">
            <el-form-item label="接入点名称" prop="jrdmc">
              <el-select v-model="form.jrdmc" class="width100" clearable placeholder="接入点名称">
                <el-option v-for="item in []" :key="item.value" :label="item.label" :value="item.value">
                </el-option>
              </el-select>
            </el-form-item>
          </el-col>

          <el-col :span="12" class="btnColRight">
            <el-form-item>
              <el-button type="danger">删除</el-button>
              <el-button @click="resetForm('ruleForm')">重置</el-button>
              <el-button type="primary" @click="handleSubmit">查询结果</el-button>
            </el-form-item>
          </el-col>
        </el-row>
      </el-form>
    </div>
    <div class="from-clues-content">
      <lb-table ref="table" @selection-change="handleSelectionChange" :page-size="pageData.size"
        :current-page.sync="pageData.current" :total="pageData.total" @size-change="handleSizeChange"
        @p-current-change="handleCurrentChange" :column="tableData.columns" :data="tableData.data">
      </lb-table>
    </div>
  </div>
</template>

<script>
import data from "./data"
import tableMixin from '@/mixins/tableMixin.js'
export default {
  name: "reportLog",
  mixins: [tableMixin],
  data () {
    return {
      form: {
        fzr: '',
        jrdmc: '',
        currentPage: 1
      },
      rules: {
        fzr: [
          { required: true, message: '负责人', trigger: 'change' }
        ],
        jrdmc: [
          { required: true, message: '接入点名称', trigger: 'change' }
        ]
      },
      tableData: {
        columns: data.columns().concat([
          {
            label: "操作",
            width: '80',
            render: (h, scope) => {
              return (
                <div>
                  <el-button
                    type="text"
                    size="mini"
                    icon="el-icon-edit"
                    style="margin-left: 10px"
                    onClick={() => { this.handleEdit(scope.row) }}
                  >
                    修改
                  </el-button>
                </div>
              )
            }
          }
        ]),
        data: [{}]
      },
      pageData: {
        total: 0,
        pageSize: 15,
      },
    }
  },
  methods: {
    handleSelectionChange (val) {

    },
    resetForm () {
      this.$refs.ruleForm.resetFields();
    },
    async featchData () {
    },
    handleEdit (row) {

    }
  }
}
</script>
<style scoped lang="scss">
@import "~@/styles/public.scss";
@import "./index.scss";
</style>