部门新加外来人员部门属性,摄像头定位接口

pull/1/head
dearlin 2024-02-22 17:31:14 +08:00
parent 10eb0933dd
commit d977e8e4cb
4 changed files with 21 additions and 2 deletions

View File

@ -4,7 +4,7 @@
:title="type === 'add' ? '新增' : '修改'"
:before-close="fnClose"
>
<el-form ref="formRef" :model="form" :rules="rules" label-width="120px">
<el-form ref="formRef" :model="form" :rules="rules" label-width="180px">
<el-form-item label="上级部门">
<el-tag>{{ parentName }}</el-tag>
</el-form-item>
@ -49,6 +49,14 @@
<el-radio label="0"></el-radio>
</el-radio-group>
</el-form-item>
<el-form-item label="是否外来人员部门" prop="FOREIGNPERSONNEL">
<el-radio-group
v-model="form.FOREIGNPERSONNEL"
>
<el-radio label="1"></el-radio>
<el-radio label="0"></el-radio>
</el-radio-group>
</el-form-item>
<el-form-item
v-if="form.ISSUPERVISE === '1'"
label="监管部门"
@ -131,6 +139,9 @@ const rules = {
ISSUPERVISE: [
{ required: true, message: "是否监管部门不能为空", trigger: "blur" },
],
FOREIGNPERSONNEL: [
{ required: true, message: "是否外来人员部门不能为空", trigger: "blur" },
],
checkedIds: [
{ required: true, message: "是否监管部门不能为空", trigger: "change" },
],

View File

@ -160,6 +160,7 @@ const data = reactive({
HEADMAN: "",
TEL: "",
FUNCTIONS: "",
FOREIGNPERSONNEL: "0",
BZ: "",
ISSUPERVISE: "0",
checkedIds: [],

View File

@ -529,7 +529,7 @@ const rules = {
{ required: true, message: "请选择入职日期", trigger: "change" },
],
CARDNO: [
{ required: true, message: "请输入定位卡号(4位纯数字)", trigger: "blur" },
{ required: false, message: "请输入定位卡号(4位纯数字)", trigger: "blur" },
{
pattern: /^-?[0-9]\d*$/,
message: "请输入正确的定位卡号(4位纯数字)",

View File

@ -58,6 +58,9 @@
>
修改
</el-button>
<el-button type="primary" text link @click="fnSetPositioning(row)">
定位
</el-button>
<el-button type="primary" text link @click="fnDeleteVideo(row)">
删除
</el-button>
@ -149,6 +152,10 @@ const fnAddOrEdit = async (VIDEOMANAGER_ID, type) => {
data.addDialog.form = resData.pd;
}
};
const fnSetPositioning = async () => {
// /videomanager/setPositioning
// {"camId":1,"lon":119.44794324054146,"lat":39.91841473114172,"alt":12.189401230148036}
};
const fnUpToBi = async (VIDEOMANAGER_ID) => {
await ElMessageBox.confirm("确定要置顶吗置顶后将会默认展示在Bi页", {
type: "warning",