forked from integrated_whb/integrated_whb_vue
部门新加外来人员部门属性,摄像头定位接口
parent
10eb0933dd
commit
d977e8e4cb
|
@ -4,7 +4,7 @@
|
||||||
:title="type === 'add' ? '新增' : '修改'"
|
:title="type === 'add' ? '新增' : '修改'"
|
||||||
:before-close="fnClose"
|
: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-form-item label="上级部门">
|
||||||
<el-tag>{{ parentName }}</el-tag>
|
<el-tag>{{ parentName }}</el-tag>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
@ -49,6 +49,14 @@
|
||||||
<el-radio label="0">否</el-radio>
|
<el-radio label="0">否</el-radio>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
</el-form-item>
|
</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
|
<el-form-item
|
||||||
v-if="form.ISSUPERVISE === '1'"
|
v-if="form.ISSUPERVISE === '1'"
|
||||||
label="监管部门"
|
label="监管部门"
|
||||||
|
@ -131,6 +139,9 @@ const rules = {
|
||||||
ISSUPERVISE: [
|
ISSUPERVISE: [
|
||||||
{ required: true, message: "是否监管部门不能为空", trigger: "blur" },
|
{ required: true, message: "是否监管部门不能为空", trigger: "blur" },
|
||||||
],
|
],
|
||||||
|
FOREIGNPERSONNEL: [
|
||||||
|
{ required: true, message: "是否外来人员部门不能为空", trigger: "blur" },
|
||||||
|
],
|
||||||
checkedIds: [
|
checkedIds: [
|
||||||
{ required: true, message: "是否监管部门不能为空", trigger: "change" },
|
{ required: true, message: "是否监管部门不能为空", trigger: "change" },
|
||||||
],
|
],
|
||||||
|
|
|
@ -160,6 +160,7 @@ const data = reactive({
|
||||||
HEADMAN: "",
|
HEADMAN: "",
|
||||||
TEL: "",
|
TEL: "",
|
||||||
FUNCTIONS: "",
|
FUNCTIONS: "",
|
||||||
|
FOREIGNPERSONNEL: "0",
|
||||||
BZ: "",
|
BZ: "",
|
||||||
ISSUPERVISE: "0",
|
ISSUPERVISE: "0",
|
||||||
checkedIds: [],
|
checkedIds: [],
|
||||||
|
|
|
@ -529,7 +529,7 @@ const rules = {
|
||||||
{ required: true, message: "请选择入职日期", trigger: "change" },
|
{ required: true, message: "请选择入职日期", trigger: "change" },
|
||||||
],
|
],
|
||||||
CARDNO: [
|
CARDNO: [
|
||||||
{ required: true, message: "请输入定位卡号(4位纯数字)", trigger: "blur" },
|
{ required: false, message: "请输入定位卡号(4位纯数字)", trigger: "blur" },
|
||||||
{
|
{
|
||||||
pattern: /^-?[0-9]\d*$/,
|
pattern: /^-?[0-9]\d*$/,
|
||||||
message: "请输入正确的定位卡号(4位纯数字)",
|
message: "请输入正确的定位卡号(4位纯数字)",
|
||||||
|
|
|
@ -58,6 +58,9 @@
|
||||||
>
|
>
|
||||||
修改
|
修改
|
||||||
</el-button>
|
</el-button>
|
||||||
|
<el-button type="primary" text link @click="fnSetPositioning(row)">
|
||||||
|
定位
|
||||||
|
</el-button>
|
||||||
<el-button type="primary" text link @click="fnDeleteVideo(row)">
|
<el-button type="primary" text link @click="fnDeleteVideo(row)">
|
||||||
删除
|
删除
|
||||||
</el-button>
|
</el-button>
|
||||||
|
@ -149,6 +152,10 @@ const fnAddOrEdit = async (VIDEOMANAGER_ID, type) => {
|
||||||
data.addDialog.form = resData.pd;
|
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) => {
|
const fnUpToBi = async (VIDEOMANAGER_ID) => {
|
||||||
await ElMessageBox.confirm("确定要置顶吗?置顶后将会默认展示在Bi页", {
|
await ElMessageBox.confirm("确定要置顶吗?置顶后将会默认展示在Bi页", {
|
||||||
type: "warning",
|
type: "warning",
|
||||||
|
|
Loading…
Reference in New Issue