增加预设点,接入萤石摄像
This commit is contained in:
@ -159,23 +159,17 @@
|
||||
@pagination="ys7DevicesList"
|
||||
/>
|
||||
</el-card>
|
||||
<!-- <apiV1SystemYs7DevicesAdd ref="addRef" @ys7DevicesList="ys7DevicesList"></apiV1SystemYs7DevicesAdd>
|
||||
<apiV1SystemYs7DevicesEdit ref="editRef" @ys7DevicesList="ys7DevicesList"></apiV1SystemYs7DevicesEdit>
|
||||
<apiV1SystemYs7DevicesDetail ref="detailRef" @ys7DevicesList="ys7DevicesList"></apiV1SystemYs7DevicesDetail> -->
|
||||
<bindPro ref="bindProRef" :projectList="projectList" @ys7DevicesList="ys7DevicesList"></bindPro>
|
||||
<!-- <presetAdd ref="presetAddRef" @busPresettingBitList="busPresettingBitList"></presetAdd> -->
|
||||
<presetAdd ref="presetAddRef"></presetAdd>
|
||||
</div>
|
||||
</template>
|
||||
<script setup lang="ts">
|
||||
// import { ref, reactive, onMounted, computed, toRefs, getCurrentInstance, toRaw } from 'vue';
|
||||
import { ElMessageBox, ElMessage, FormInstance } from 'element-plus';
|
||||
import { listYs7Device, delYs7Device, toggleEncrypt } from '@/api/other/ys7Device';
|
||||
// import { Ys7DeviceVO, Ys7DevicesInfoData, Ys7DevicesTableDataState } from './component/model';
|
||||
import { Ys7DeviceVO, Ys7DeviceForm, Ys7DeviceQuery } from '@/api/other/ys7Device/types';
|
||||
import { useUserStoreHook } from '@/store/modules/user';
|
||||
// import apiV1SystemYs7DevicesAdd from './component/add.vue';
|
||||
// import apiV1SystemYs7DevicesEdit from './component/edit.vue';
|
||||
// import apiV1SystemYs7DevicesDetail from './component/detail.vue';
|
||||
import apiV1SystemYs7DevicesEdit from './component/edit.vue';
|
||||
import bindPro from './component/bindPro.vue';
|
||||
import presetAdd from './component/presetAdd.vue';
|
||||
|
||||
@ -308,14 +302,10 @@ const handleDelete = (row?: Ys7DeviceVO) => {
|
||||
.catch(() => {});
|
||||
};
|
||||
|
||||
// 查看详情
|
||||
const handleView = (row: Ys7DeviceVO) => {
|
||||
detailRef.value.openDialog(toRaw(row));
|
||||
};
|
||||
|
||||
// 绑定项目
|
||||
const onLinkProject = (row?: Ys7DeviceVO) => {
|
||||
let serials = row ? [row.deviceSerial] : state.serials;
|
||||
let serials = row ? [row.deviceSerial] : state.ids;
|
||||
|
||||
if (serials.length === 0) {
|
||||
ElMessage.error('请选择要绑定项目的设备');
|
||||
return;
|
||||
|
Reference in New Issue
Block a user