| | |
| | | |
| | | <el-card> |
| | | <el-form |
| | | :model="security" |
| | | :model="form" |
| | | label-position="right" |
| | | size="mini" |
| | | label-width="100px" |
| | |
| | | <el-form-item label="人员编号"> |
| | | <el-input |
| | | disabled="true" |
| | | v-model="security.snumber" |
| | | v-model="form.baname" |
| | | autocomplete="off" |
| | | ></el-input> |
| | | </el-form-item> |
| | |
| | | <el-form-item label="人员名称"> |
| | | <el-input |
| | | disabled="true" |
| | | v-model="security.sname" |
| | | v-model="form.baid" |
| | | autocomplete="off" |
| | | ></el-input> |
| | | </el-form-item> |
| | |
| | | <el-form-item label="联系电话"> |
| | | <el-input |
| | | disabled="true" |
| | | v-model="security.phone" |
| | | v-model="form.baphone" |
| | | autocomplete="off" |
| | | ></el-input> |
| | | </el-form-item> |
| | |
| | | |
| | | res.data.data.records.forEach((item) => { |
| | | if ( |
| | | item.roleName == "处警员" && |
| | | that.form.securityArr.indexOf(item.id) != -1 && |
| | | item.id != that.form.securityId |
| | | ) { |
| | |
| | | status: "已通知", |
| | | tenantName: item.tenantName, |
| | | }); |
| | | } else if ( |
| | | item.roleName == "处警员" && |
| | | that.form.securityArr.indexOf(item.id) == -1 && |
| | | item.id != that.form.securityId |
| | | ) { |
| | | that.tableData.push({ |
| | | id: item.id, |
| | | ind: (i += 1), |
| | | name: item.name, |
| | | phone: item.phone, |
| | | online_status: item.online_status == 1 ? "在线" : "掉线", |
| | | status: "未通知", |
| | | tenantName: item.tenantName, |
| | | }); |
| | | } |
| | | }); |
| | | |
| | | that.tableData.forEach(item => { |
| | | if (item.id == that.form.oneId) { |
| | | item.status+='(负责人)' |
| | | } |
| | | }) |
| | | that.tableData.forEach((item) => { |
| | | if (item.id == that.form.oneId) { |
| | | item.status += "(负责人)"; |
| | | } |
| | | }); |
| | | } else { |
| | | res.data.data.records.forEach((item) => { |
| | | if (item.id == that.form.oneId) { |