From 88c60e6e4e03eb59bde5f83a944c818dfecb3975 Mon Sep 17 00:00:00 2001
From: doum <doum>
Date: 星期三, 05 十一月 2025 10:56:10 +0800
Subject: [PATCH] 最新版本541200007
---
admin/src/views/business/deletePersonnel.vue | 204 ++++++++++++++++++++++++++------------------------
1 files changed, 107 insertions(+), 97 deletions(-)
diff --git a/admin/src/views/business/deletePersonnel.vue b/admin/src/views/business/deletePersonnel.vue
index c933e02..b759df5 100644
--- a/admin/src/views/business/deletePersonnel.vue
+++ b/admin/src/views/business/deletePersonnel.vue
@@ -2,32 +2,38 @@
<TableLayout :permissions="['business:member:query']">
<!-- 鎼滅储琛ㄥ崟 -->
<el-form ref="searchForm" slot="search-form" :model="searchForm" label-width="100px" inline>
- <el-form-item label="濮撳悕" prop="name">
- <el-input v-model="searchForm.name" placeholder="璇疯緭鍏ヨ瀹㈠悕绉�" @keypress.enter.native="search"></el-input>
+ <el-form-item label="濮撳悕/鎵嬫満鍙�" prop="keyword">
+ <el-input v-model="searchForm.keyword" placeholder="璇疯緭鍏ュ鍚�/鎵嬫満鍙�" @keypress.enter.native="search"></el-input>
</el-form-item>
- <el-form-item label="鍏徃鍚嶇О" prop="companyName">
- <el-input v-model="searchForm.companyName" placeholder="璇疯緭鍏ュ叕鍙稿悕绉�" @keypress.enter.native="search"></el-input>
+ <el-form-item label="缁勭粐鍚嶇О" prop="companyName">
+ <el-input v-model="searchForm.companyName" placeholder="璇疯緭鍏ョ粍缁囧悕绉�" @keypress.enter.native="search"></el-input>
</el-form-item>
- <section>
- <el-button type="primary" @click="search">鎼滅储</el-button>
- <el-button @click="reset">閲嶇疆</el-button>
- </section>
+ <el-form-item label="涓嬪彂鐘舵��" prop="hkStatus">
+ <el-select v-model="searchForm.hkStatus" placeholder="璇烽�夋嫨" clearable @change="search">
+ <el-option label="寰呬笅鍙�" value="0"></el-option>
+ <el-option label="宸插悓姝�" value="1"></el-option>
+ <el-option label="鍚屾澶辫触" value="2"></el-option>
+ <el-option label="涓嶇鍚堜笅鍙戞潯浠�" value="3"></el-option>
+ <el-option label="绛夊緟鍒犻櫎鏉冮檺" value="4"></el-option>
+ </el-select>
+ </el-form-item>
+ <section>
+ <el-button type="primary" @click="search">鎼滅储</el-button>
+ <el-button @click="reset">閲嶇疆</el-button>
+ </section>
</el-form>
<!-- 琛ㄦ牸鍜屽垎椤� -->
<template v-slot:table-wrap>
- <!-- <ul class="toolbar" v-permissions="['business:member:create', 'business:member:delete']">-->
- <!-- <li><el-button type="primary" v-permissions="['business:member:create']" @click="thaws">绂诲満</el-button></li>-->
- <!-- </ul>-->
<el-table
+ :height="tableHeightNew"
v-loading="isWorking.search"
:data="tableData.list"
stripe
@selection-change="handleSelectionChange"
>
- <!-- <el-table-column type="selection" width="55"></el-table-column>-->
<el-table-column prop="name" label="濮撳悕" min-width="100px"></el-table-column>
<el-table-column prop="phone" label="鎵嬫満鍙�" min-width="100px"></el-table-column>
- <el-table-column prop="companyName" label="鍏徃" min-width="100px"></el-table-column>
+ <el-table-column prop="companyName" label="缁勭粐鍚嶇О" min-width="100px"></el-table-column>
<el-table-column label="鐢ㄦ埛绫诲瀷" min-width="100px">
<template slot-scope="{row}">
<span v-if="row.type === 0">鍔冲姟璁垮</span>
@@ -35,14 +41,16 @@
<span v-if="row.type === 2">鍐呴儴浜哄憳</span>
</template>
</el-table-column>
-<!-- <el-table-column prop="inDate" label="鍏ュ満鏃堕棿" min-width="100px"></el-table-column>-->
-<!-- <el-table-column prop="outDate" label="鎺堟潈鍒版湡鏃堕棿" min-width="100px"></el-table-column>-->
-<!-- <el-table-column label="瓒呮椂鏃堕暱" min-width="100px">-->
-<!-- <template slot-scope="{row}">-->
-<!-- <span v-if="row.outStatus === 1">{{row.timeOut.toString().replace('-', '')}}鍒嗛挓</span>-->
-<!-- <span v-else>-</span>-->
-<!-- </template>-->
-<!-- </el-table-column>-->
+ <el-table-column fixed="right" label="浜鸿劯淇℃伅" min-width="100px">
+ <template slot-scope="{row}">
+ <el-image
+ v-if="row.faceImgFull"
+ style="width: 60px; height: 60px"
+ :src="row.faceImgFull"
+ :preview-src-list="[row.faceImgFull]">
+ </el-image>
+ </template>
+ </el-table-column>
<el-table-column label="鐘舵��" min-width="100px">
<template slot-scope="{row}">
<span v-if="row.hkStatus === 0">鏈悓姝�</span>
@@ -52,16 +60,18 @@
<span v-else-if="row.hkStatus === 4">绛夊緟鍒犻櫎鏉冮檺</span>
</template>
</el-table-column>
-<!-- <el-table-column-->
-<!-- v-if="containPermissions(['business:member:update', 'business:member:delete'])"-->
-<!-- label="鎿嶄綔"-->
-<!-- min-width="120"-->
-<!-- fixed="right"-->
-<!-- >-->
-<!-- <template slot-scope="{row}">-->
-<!-- <el-button type="text" icon="el-icon-edit" v-permissions="['business:member:update']" @click="departure(row.id)">绂诲巶</el-button>-->
-<!-- </template>-->
-<!-- </el-table-column>-->
+ <el-table-column prop="remark" label="澶囨敞" min-width="100px"></el-table-column>-
+ <el-table-column
+ v-if="containPermissions(['business:member:update'])"
+ label="鎿嶄綔"
+ min-width="120"
+ fixed="right"
+ >
+ <template slot-scope="{row}">
+ <el-button v-if="row.hkStatus === 2" type="text" @click="delHkForce(row.id)" v-permissions="['business:member:update']">閲嶆柊鍒犻櫎</el-button>
+ <el-button v-if="row.hkStatus === 4 " type="text" @click="delHkForce(row.id)" v-permissions="['business:member:update']">绔嬪嵆鍒犻櫎</el-button>
+ </template>
+ </el-table-column>
</el-table>
<pagination
@size-change="handleSizeChange"
@@ -72,74 +82,74 @@
</template>
</TableLayout>
</template>
-
<script>
- import BaseTable from '@/components/base/BaseTable'
- import TableLayout from '@/layouts/TableLayout'
- import Pagination from '@/components/common/Pagination'
- import { level } from '@/api/business/staging'
- export default {
- name: 'deletePersonnel',
- extends: BaseTable,
- components: { TableLayout, Pagination },
- data () {
- return {
- // 鎼滅储
- searchForm: {
- companyName: '',
- name: '',
- type: '2',
- isdeleted: 1
- },
- user: []
- }
- },
- created () {
- this.config({
- module: '浜哄憳淇℃伅琛�',
- api: '/business/member',
- 'field.id': 'id',
- 'field.main': 'id'
- })
- this.search()
- },
- methods: {
- departure(id) {
- this.$confirm('纭畾绂诲満鍚�, 鏄惁缁х画?', '鎻愮ず', {
- confirmButtonText: '纭畾',
- cancelButtonText: '鍙栨秷',
- type: 'warning'
- }).then(() => {
- level(id)
- .then(res => {
- this.search()
- })
- }).catch(() => {
-
- });
+import BaseTable from '@/components/base/BaseTable'
+import TableLayout from '@/layouts/TableLayout'
+import Pagination from '@/components/common/Pagination'
+import { delHkForce } from '@/api/business/member'
+export default {
+ name: 'deletePersonnel',
+ extends: BaseTable,
+ components: { TableLayout, Pagination },
+ data () {
+ return {
+ // 鎼滅储
+ searchForm: {
+ companyName: '',
+ keyword: '',
+ type: '2',
+ isdeleted: 1,
+ hkStatus: null
},
- // thaws () {
- // if (this.tableData.selectedRows.length === 0) return this.$message.warning('鑷冲皯閫夋嫨涓�椤瑰唴瀹�')
- // const ids = this.tableData.selectedRows.map(item => {
- // return { id: item.id }
- // })
- // this.thaw(ids)
- // },
- // thaw (ids) {
- // this.$confirm('纭畾绉婚櫎姝ょ敤鎴峰悧?', '鎻愮ず', {
- // confirmButtonText: '纭畾',
- // cancelButtonText: '鍙栨秷',
- // type: 'warning'
- // }).then(() => {
- // // updateRemoveStatusById(ids)
- // // .then(res => {
- // // this.$message.success('鎿嶄綔鎴愬姛')
- // // this.search()
- // // })
- // }).catch(() => {
- //
- // })
- // },
+ user: []
}
+ },
+ created () {
+ this.config({
+ module: '浜哄憳淇℃伅琛�',
+ api: '/business/member',
+ 'field.id': 'id',
+ 'field.main': 'id'
+ })
+ this.search()
+ },
+ methods: {
+ delHkForce (dataId) {
+ this.$confirm('纭畾寮哄埗鍒犻櫎瀹夐槻骞冲彴浜哄憳淇℃伅鍚楋紵姝ゆ搷浣滀笉鍙�嗭紝璇疯皑鎱庢搷浣滐紝鏄惁缁х画?', '鎻愮ず', {
+ confirmButtonText: '纭畾',
+ cancelButtonText: '鍙栨秷',
+ type: 'warning'
+ }).then(() => {
+ delHkForce({ id: dataId })
+ .then(res => {
+ this.search()
+ })
+ }).catch(() => {
+
+ })
+ }
+ // thaws () {
+ // if (this.tableData.selectedRows.length === 0) return this.$message.warning('鑷冲皯閫夋嫨涓�椤瑰唴瀹�')
+ // const ids = this.tableData.selectedRows.map(item => {
+ // return { id: item.id }
+ // })
+ // this.thaw(ids)
+ // },
+ // thaw (ids) {
+ // this.$confirm('纭畾绉婚櫎姝ょ敤鎴峰悧?', '鎻愮ず', {
+ // confirmButtonText: '纭畾',
+ // cancelButtonText: '鍙栨秷',
+ // type: 'warning'
+ // }).then(() => {
+ // // updateRemoveStatusById(ids)
+ // // .then(res => {
+ // // this.$message.success('鎿嶄綔鎴愬姛')
+ // // this.search()
+ // // })
+ // }).catch(() => {
+ //
+ // })
+ // },
}
+}
</script>
--
Gitblit v1.9.3