DIAMOND 2 years ago
parent
commit
a8158aa0c6
  1. 5
      src/views/page/VideoControl/VideoControlSimple.vue
  2. 14
      src/views/page/aside/rightMenuItem/userEdit.vue
  3. 10
      src/views/page/aside/rightMenuItem/userEditModal.vue

5
src/views/page/VideoControl/VideoControlSimple.vue

@ -307,13 +307,13 @@ function wheel(e: any) {
<style scoped lang="less"> <style scoped lang="less">
.camera-control { .camera-control {
/* color: #080000; */ /* color: #080000; */
position: absolute; // position: absolute;
width: 100vw; width: 100vw;
height: 100vh; height: 100vh;
left: 0; left: 0;
top: 0; top: 0;
// background: blue; // background: blue;
z-index: 0; // z-index: 0;
} }
.camera-control .camera-operate { .camera-control .camera-operate {
@ -458,6 +458,7 @@ input[type='range']::-webkit-slider-thumb:active {
transform: translateX(-50%); transform: translateX(-50%);
height: 5vh; height: 5vh;
width: 60vw; width: 60vw;
top: 0;
// background: red; // background: red;
} }

14
src/views/page/aside/rightMenuItem/userEdit.vue

@ -16,7 +16,7 @@
</div> </div>
<!-- 弹出框 --> <!-- 弹出框 -->
<a-modal v-model:visible="visible" title="设置表单" width="40%" @ok="handleOk" destroyOnClose> <a-modal v-model:visible="visible" title="设置表单" width="40%" @ok="handleOk" @cancel="handelCancel" destroyOnClose>
<userEditModal ref="childRef" :editData="editData"></userEditModal> <userEditModal ref="childRef" :editData="editData"></userEditModal>
</a-modal> </a-modal>
</template> </template>
@ -37,9 +37,9 @@ const columns = [
{ title: '相机IP', dataIndex: 'ip' }, { title: '相机IP', dataIndex: 'ip' },
{ title: '登录名', dataIndex: 'userName' }, { title: '登录名', dataIndex: 'userName' },
{ title: '密码', dataIndex: 'password' }, { title: '密码', dataIndex: 'password' },
{ title: '用户类型', dataIndex: 'userType' }, // { title: '', dataIndex: 'userType' },
{ title: '是否启用', dataIndex: 'flag' }, // { title: '', dataIndex: 'flag' },
{ title: '备注', dataIndex: 'remarks' }, // { title: '', dataIndex: 'remarks' },
{ {
title: "操作", title: "操作",
dataIndex: "", dataIndex: "",
@ -183,6 +183,12 @@ function edit_(item: any) {
editData.value = item editData.value = item
visible.value = true visible.value = true
} }
//
function handelCancel(){
editData.value = null;
visible.value = false
}
// //
let visible = ref(); let visible = ref();

10
src/views/page/aside/rightMenuItem/userEditModal.vue

@ -15,7 +15,7 @@
<a-form-item label="密码"> <a-form-item label="密码">
<a-input-password v-model:value="formState.password" /> <a-input-password v-model:value="formState.password" />
</a-form-item> </a-form-item>
<a-form-item label="用户类型"> <!-- <a-form-item label="用户类型">
<a-select v-model:value="formState.userType" placeholder="请选择用户类型"> <a-select v-model:value="formState.userType" placeholder="请选择用户类型">
<a-select-option value="shanghai">Zone one</a-select-option> <a-select-option value="shanghai">Zone one</a-select-option>
<a-select-option value="beijing">Zone two</a-select-option> <a-select-option value="beijing">Zone two</a-select-option>
@ -26,7 +26,7 @@
</a-form-item> </a-form-item>
<a-form-item label="备注"> <a-form-item label="备注">
<a-input v-model:value="formState.remark" type="textarea" /> <a-input v-model:value="formState.remark" type="textarea" />
</a-form-item> </a-form-item> -->
<!-- <a-form-item :wrapper-col="{ span: 14, offset: 4 }"> <!-- <a-form-item :wrapper-col="{ span: 14, offset: 4 }">
<a-button type="primary" @click="onSubmit">Create</a-button> <a-button type="primary" @click="onSubmit">Create</a-button>
<a-button style="margin-left: 10px">Cancel</a-button> <a-button style="margin-left: 10px">Cancel</a-button>
@ -102,7 +102,11 @@ defineExpose({
onMounted(() => { onMounted(() => {
console.log("收到了", props.editData); console.log("收到了", props.editData);
if (props.editData != null || props.editData != undefined){ if (props.editData != null || props.editData != undefined){
formState.name = props.editData.name;
formState.ip = props.editData.ip;
formState.CbCameraParamsId = props.editData.cbCameraParamsId;
formState.userName = props.editData.userName;
formState.password = props.editData.password;
} }
}) })

Loading…
Cancel
Save