| | |
| | | <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> |
| | | <section> |
| | | <el-button type="primary" @click="search">搜索</el-button> |
| | | <el-button @click="reset">重置</el-button> |
| | | </section> |
| | | </el-form> |
| | | <!-- 表格和分页 --> |
| | | <template v-slot:table-wrap> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | 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 |
| | | }, |
| | | 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(() => { |
| | | |
| | | }); |
| | | 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> |