jiangping
2024-10-15 1097c146d849c00ac67a261b12c496b5cc8b92a8
最新版本
已修改1个文件
43 ■■■■ 文件已修改
admin/src/views/business/internalMember.vue 43 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
admin/src/views/business/internalMember.vue
@@ -95,11 +95,12 @@
        <el-table-column prop="companyName" label="所属部门" min-width="100px"></el-table-column>
        <el-table-column prop="postionName" label="岗位" min-width="100px"></el-table-column>
        <el-table-column prop="isDangyuan" label="是否党员" min-width="100px">
          <span v-if="row.status == 0" style="color: green">是</span>
          <template slot-scope="{row}">
          <span v-if="row.isDangyuan == 0" style="color: green">是</span>
          <span v-else >否</span>
          </template>
        </el-table-column>
        <el-table-column prop="jobDate" label="入职日期" min-width="100px">
        <el-table-column prop="jobDate" label="入职日期" min-width="100px"></el-table-column>
<!--        <el-table-column prop="status" label="状态" min-width="100px">
          <template slot-scope="{row}">
            <span v-if="row.status == 0" style="color: green">正常</span>
@@ -206,13 +207,13 @@
import OperaMemberRoleWindow from '@/components/business/OperaMemberRoleWindow'
import OperaMemberImportWindow from '@/components/business/OperaMemberImportWindow'
import { fetchList } from '@/api/business/company'
import { fetchList as postionList } from '@/api/business/position'
import { fetchList as alllist } from '@/api/business/position'
import { memberSync, roleAuth, updateCanVisit, updateHead, updateWorkStatus } from '@/api/business/member'
export default {
  name: 'internalMember',
  extends: BaseTable,
  components: { TableLayout1, Pagination, Tree, cardOpeningRecord, OperaMemberWindow, OperaMemberRoleWindow, OperaMemberImportWindow },
  data() {
  data () {
    return {
      TreeList: [],
      // 搜索
@@ -240,7 +241,7 @@
      department: []
    }
  },
  created() {
  created () {
    this.config({
      module: '人员信息表',
      api: '/business/member',
@@ -252,7 +253,7 @@
    this.getPositionList()
  },
  methods: {
    startEmpowerBatch() {
    startEmpowerBatch () {
      if (this.tableData.selectedRows.length === 0) {
        this.$tip.warning('请至少选择一条数据')
        return
@@ -265,13 +266,13 @@
      })
      this.$refs.OperaMemberRoleWindow.open('内部员工下发权限', ids, names, this.searchForm.companyType)
    },
    getPositionList() {
      positionList({})
          .then(res => {
            this.positionList = res
          })
    getPositionList () {
      alllist({})
        .then(res => {
          this.positionList = res
        })
    },
    empower(id) {
    empower (id) {
      var that = this
      this.$confirm('确定重新授权吗?', '提示', {
        confirmButtonText: '确定',
@@ -288,7 +289,7 @@
      })
    },
    // 获取组织树
    getfindCompanyTreePage() {
    getfindCompanyTreePage () {
      fetchList()
        .then(res => {
          if (res && res.length > 0) {
@@ -300,7 +301,7 @@
          }
        })
    },
    getDepartmentTree(tree) {
    getDepartmentTree (tree) {
      if (tree == null) {
        return []
      }
@@ -316,7 +317,7 @@
        }
        if (newItem.type === this.searchForm.companyType) {
          //newItem.disabled =false
          // newItem.disabled =false
        } else {
          newItem.disabled = true
        }
@@ -324,7 +325,7 @@
      })
    },
    // 同步信息
    async synchronous() {
    async synchronous () {
      this.$dialog.actionConfirm('该操作降触发全员信息更新和重新下发!请谨慎操作', '您确认全量同步内部人员信息吗?')
        .then(() => {
          this.loading = true
@@ -342,7 +343,7 @@
        })
        .catch(() => { })
    },
    async updateHead(row, type) {
    async updateHead (row, type) {
      this.$dialog.actionConfirm('您确认进行当前操作吗?', '部门主管设置操作提示')
        .then(() => {
          this.heading = true
@@ -360,7 +361,7 @@
            .catch(() => { })
        })
    },
    changeWorkStatus(e, row) {
    changeWorkStatus (e, row) {
      this.working = true
      updateWorkStatus({ id: row.id, workStatus: e })
        .then(res => {
@@ -375,7 +376,7 @@
        })
        .catch(() => { })
    },
    changeCanvisit(e, row) {
    changeCanvisit (e, row) {
      this.canvisiting = true
      updateCanVisit({ id: row.id, canVisit: e })
        .then(res => {
@@ -390,7 +391,7 @@
        })
        .catch(() => { })
    },
    callback(row) {
    callback (row) {
      console.log(row)
      this.searchForm.erpOrgId = row.erpId
      this.searchForm.companyId = row.id