3 Star 2 Fork 1

广州灵派科技有限公司/webFlex

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
ndireg.php 4.34 KB
一键复制 编辑 原始数据 按行查看 历史
wangc 提交于 2025-09-12 10:38 +08:00 . 20250912
<?php include ("./link/session.php") ?>
<!doctype html>
<html lang="uft-8">
<head>
<?php include ("./public/head.inc") ?>
</head>
<body>
<?php include ("./public/menu.inc") ?>
<div data-simplebar>
<main class="page-content ndireg" id="app" v-cloak>
<div class="row">
<div class="col-lg-8">
<div class="card">
<div class="card-header bg-transparent">
<div class="p-2 mb-0 d-flex align-items-end">
<cn>NDI Vendor Setting</cn>
<en>NDI Vendor Setting</en>
</div>
</div>
<div class="card-body pb-4" v-if="Object.keys(ndi).length > 0">
<div class="row mt-3">
<div class="col-lg-3 offset-lg-1 lp-align-center">
<label>
<cn>Serial number</cn>
<en>Serial number</en>
</label>
</div>
<div class="col-lg-6">
<input type="text" class="form-control" v-model.trim.lazy="sn" disabled readonly>
</div>
</div>
<div class="row mt-3">
<div class="col-lg-3 offset-lg-1 lp-align-center">
<label>
<cn>Vendor name</cn>
<en>Vendor name</en>
</label>
</div>
<div class="col-lg-6">
<input type="text" class="form-control" v-model.trim.lazy="ndi.ndi.vendor.name">
</div>
</div>
<div class="row mt-3">
<div class="col-lg-3 offset-lg-1 lp-align-center">
<label>
<cn>Vendor id (Encrypted)</cn>
<en>Vendor id (Encrypted)</en>
</label>
</div>
<div class="col-lg-6">
<input type="text" class="form-control" v-model.trim.lazy="ndi.ndi.vendor.id">
</div>
</div>
<div class="row mt-4">
<div class="col-lg-12 text-center">
<button type="button" class="btn border-3 btn-primary px-4 me-3" @click="saveNdiConf">
<cn>保存</cn>
<en>Save</en>
</button>
</div>
</div>
</div>
</div>
</div>
</div>
</main>
</div>
<?php include ("./public/foot.inc") ?>
<script type="module">
import { useNdiConf,useSnConf } from "./assets/js/vue.hooks.js?hash=89523e901";
import { ignoreCustomElementPlugin } from "./assets/js/vue.helper.js?hash=68eefc36f"
import vue from "./assets/js/vue.build.js?hash=879ea7dbc";
const {createApp,ref,reactive,watch,watchEffect,computed,onMounted} = vue;
const app = createApp({
setup(props,context) {
const { ndiConf,updateNdiConf } = useNdiConf();
const { sn } = useSnConf();
const ndi = reactive({});
const unwatch = watch(ndiConf,()=>{
Object.assign(ndi,JSON.parse(ndiConf.value));
unwatch();
})
const saveNdiConf = () =>{
ndiConf.value = JSON.stringify(ndi,null,2);
updateNdiConf();
}
return {ndiConf,updateNdiConf,ndi,sn,saveNdiConf}
}
});
app.use(ignoreCustomElementPlugin);
app.mount('#app');
</script>
</body>
</html>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/LinkPi/webflex.git
git@gitee.com:LinkPi/webflex.git
LinkPi
webflex
webFlex
master

搜索帮助