feat:修改人员管理全选切换失效

This commit is contained in:
X_Rian 2024-06-15 22:45:01 +08:00
parent 5bcdc09641
commit 8cb03692de
4 changed files with 51 additions and 39 deletions

View File

@ -172,9 +172,9 @@ if (process.env.NODE_ENV == "development") {
// axios.defaults.baseURL ='http://101.43.164.214:45011/' //上海优益(上海建工) // axios.defaults.baseURL ='http://101.43.164.214:45011/' //上海优益(上海建工)
// axios.defaults.baseURL = 'http://192.168.34.221:28888/' //郭圣雄本地 // axios.defaults.baseURL = 'http://192.168.34.221:28888/' //郭圣雄本地
// axios.defaults.baseURL = 'http://192.168.34.221:28889/' //郭圣雄本地 // axios.defaults.baseURL = 'http://192.168.34.221:28889/' //郭圣雄本地
axios.defaults.baseURL = "http://192.168.34.221:9111/"; //郭圣雄本地 // axios.defaults.baseURL = "http://192.168.34.221:9111/"; //郭圣雄本地
// axios.defaults.baseURL = 'http://192.168.34.155:19111/' //彭洁本地 // axios.defaults.baseURL = 'http://192.168.34.155:19111/' //彭洁本地
// axios.defaults.baseURL = 'http://182.90.224.237:51234/' //郭圣雄远程 axios.defaults.baseURL = 'http://182.90.224.237:51234/' //郭圣雄远程
// axios.defaults.baseURL = 'http://jxj.zhgdyun.com:61212/' //彭洁远程 // axios.defaults.baseURL = 'http://jxj.zhgdyun.com:61212/' //彭洁远程
// axios.defaults.baseURL ='http://101.43.164.214:45020/' //沈阳和盈 // axios.defaults.baseURL ='http://101.43.164.214:45020/' //沈阳和盈
// axios.defaults.baseURL ='http://183.249.224.118:9000/' //嘉兴王江泾公用码头 // axios.defaults.baseURL ='http://183.249.224.118:9000/' //嘉兴王江泾公用码头

View File

@ -487,11 +487,13 @@
style="width: 100%; color: #737996" style="width: 100%; color: #737996"
@selection-change="handleCheckedCitiesChange" @selection-change="handleCheckedCitiesChange"
:show-header="false" :show-header="false"
row-key="id"
:row-class-name="tableRowClassName" :row-class-name="tableRowClassName"
> >
<el-table-column <el-table-column
type="selection" type="selection"
width="55" width="55"
:reserve-selection="true"
:selectable="selectEnable" :selectable="selectEnable"
></el-table-column> ></el-table-column>
<el-table-column prop="workerName"> <el-table-column prop="workerName">
@ -2925,6 +2927,8 @@ export default {
data.userEnterpriseId = this.$store.state.userInfo.userEnterpriseId; data.userEnterpriseId = this.$store.state.userInfo.userEnterpriseId;
getWorkerInfoList(data).then((res) => { getWorkerInfoList(data).then((res) => {
if (res.code == 200) { if (res.code == 200) {
console.log(333333, this.tableListData);
debugger;
this.tableListData = res.result.records; this.tableListData = res.result.records;
let boole = true; let boole = true;
for (let i in res.result.records) { for (let i in res.result.records) {

View File

@ -202,9 +202,10 @@
tooltip-effect="dark" tooltip-effect="dark"
style="width: 100%;color:#737996;" style="width: 100%;color:#737996;"
@selection-change="handleCheckedCitiesChange" @selection-change="handleCheckedCitiesChange"
row-key="id"
:show-header="false" :show-header="false"
> >
<el-table-column type="selection" width="55" :selectable="selectEnable"></el-table-column> <el-table-column type="selection" width="55" :reserve-selection="true" :selectable="selectEnable"></el-table-column>
<el-table-column prop="workerName"> <el-table-column prop="workerName">
<template slot-scope="scope"> <template slot-scope="scope">
<div class="flex2"> <div class="flex2">

View File

@ -290,7 +290,7 @@
size="medium" size="medium"
@click="passEquipment()" @click="passEquipment()"
type="primary" type="primary"
style="margin-left: 5px;" style="margin-left: 5px"
:disabled="checkedWorker.length <= 0" :disabled="checkedWorker.length <= 0"
>下发通行设备</el-button >下发通行设备</el-button
> >
@ -303,7 +303,7 @@
size="medium" size="medium"
@click="checkAllFn()" @click="checkAllFn()"
type="primary" type="primary"
style="margin-left: 5px;" style="margin-left: 5px"
>全选</el-button >全选</el-button
> >
<br /> <br />
@ -312,7 +312,7 @@
:model="tableParameter" :model="tableParameter"
size="medium" size="medium"
class="demo-form-inline" class="demo-form-inline"
style="margin-top: 5px;" style="margin-top: 5px"
> >
<el-form-item label="人员下发状态" v-if="isIscDevice"> <el-form-item label="人员下发状态" v-if="isIscDevice">
<el-select <el-select
@ -449,11 +449,13 @@
style="width: 100%; color: #737996" style="width: 100%; color: #737996"
@selection-change="handleCheckedCitiesChange" @selection-change="handleCheckedCitiesChange"
:show-header="false" :show-header="false"
row-key="id"
:row-class-name="tableRowClassName" :row-class-name="tableRowClassName"
> >
<el-table-column <el-table-column
type="selection" type="selection"
width="55" width="55"
:reserve-selection="true"
:selectable="selectEnable" :selectable="selectEnable"
></el-table-column> ></el-table-column>
<el-table-column prop="workerName"> <el-table-column prop="workerName">
@ -541,7 +543,8 @@
'valuesColor', 'valuesColor',
row.sendSuccessStatus === 1 row.sendSuccessStatus === 1
? 'green' ? 'green'
: row.sendSuccessStatus === 2 || row.sendSuccessStatus === 4 : row.sendSuccessStatus === 2 ||
row.sendSuccessStatus === 4
? 'red' ? 'red'
: row.sendSuccessStatus === 3 : row.sendSuccessStatus === 3
? 'yellow' ? 'yellow'
@ -554,7 +557,8 @@
: row.sendSuccessStatus === 2 : row.sendSuccessStatus === 2
? "失败" ? "失败"
: row.sendSuccessStatus === 3 : row.sendSuccessStatus === 3
? "部分成功" : row.sendSuccessStatus === 4 ? "部分成功"
: row.sendSuccessStatus === 4
? "未下发" ? "未下发"
: "" : ""
}}</span }}</span
@ -2820,11 +2824,11 @@ export default {
projectSn: this.projectSn, projectSn: this.projectSn,
personType: "1", personType: "1",
userId: this.$store.state.userInfo.userId, userId: this.$store.state.userInfo.userId,
enterpriseId: this.checkedId enterpriseId: this.checkedId,
} };
if (this.checkedWorker.length > 0) { if (this.checkedWorker.length > 0) {
const ids = this.checkedWorker.map((item) => item.id).join(","); const ids = this.checkedWorker.map((item) => item.id).join(",");
requestData.workerIds = ids requestData.workerIds = ids;
} }
sendBatchWokerApi(requestData).then((res) => { sendBatchWokerApi(requestData).then((res) => {
if (res.code == 200) { if (res.code == 200) {
@ -3479,6 +3483,9 @@ export default {
data.enterpriseId = this.checkedId; data.enterpriseId = this.checkedId;
getWorkerInfoList(data).then((res) => { getWorkerInfoList(data).then((res) => {
if (res.code == 200) { if (res.code == 200) {
console.log(111111111, this.tableListData);
debugger;
this.tableListData = res.result.records; this.tableListData = res.result.records;
console.log("------------", res.result.records); console.log("------------", res.result.records);
let boole = true; let boole = true;