孔祥富
2021-02-24 b2b9bc40c27157534e66aa60acce0495e2c37766
src/views/user/inemployees.vue
@@ -37,7 +37,6 @@
                value-format="yyyy-MM-dd"
                start-placeholder="开始日期"
                end-placeholder="结束日期"
                :picker-options="pickerOptions"
                style="width: 400px;"
              />
            </el-col>
@@ -168,8 +167,13 @@
          <el-table-column type="selection" width="55" />
          <el-table-column label="操作" width="100">
            <template slot-scope="scope">
              <el-button type="text" size="small" @click="editEmpBase(scope.row)">编辑
              </el-button>
              <el-button
                type="text"
                size="small"
                @click="editArchives(scope.row)"
              >
                档案</el-button>
              <el-button type="text" size="small" @click="editEmpBase(scope.row)">编辑</el-button>
            </template>
          </el-table-column>
          <el-table-column prop="deptName" label="护卫点" width="100" />
@@ -1463,21 +1467,36 @@
        <el-button type="primary" @click="showDcyg(2)">确 定</el-button>
      </div>
    </el-dialog>
    <archives-edit
      ref="article"
      :dialog-visible="dialog.isVisible"
      :title="dialog.title"
      :type="dialog.type"
      @close="editClose"
    />
  </div>
</template>
<script>
import { getToken } from '@/utils/auth'
import Pagination from '@/components/Pagination'
import Treeselect from '@riophae/vue-treeselect'
import '@riophae/vue-treeselect/dist/vue-treeselect.css'
import { calculateSeniority, toCardGetUserInfo } from '@/utils/myUtil'
import ArchivesEdit from './archivesEdit'
export default {
  components: {
    ArchivesEdit,
    Pagination, Treeselect
  },
  data() {
    return {
      dialog: {
        isVisible: false,
        title: '',
        type: ''
      },
      total: 0, // 总数量
      queryParams: {
        empNumb: '',
@@ -1494,6 +1513,8 @@
      pagination: { // 分页参数
        size: 10,
        num: 1
      },
      baseicInformationForm: {
      },
      empBaseInfoForm: {
        empId: '',
@@ -1697,6 +1718,14 @@
    this.initDept()
  },
  methods: {
    editArchives(row) {
      this.$refs.article.setArchives(row)
      this.dialog.title = '档案管理'
      this.dialog.isVisible = true
    },
    editClose() {
      this.dialog.isVisible = false
    },
    resetSearch() {
      this.queryParams = {
        empNumb: '',