瓶中沙 2024-10-24 11:52:17 +08:00
parent baad64b4d6
commit a2a3d22e2f
9 changed files with 33 additions and 26 deletions

BIN
dist.zip

Binary file not shown.

View File

@ -158,7 +158,8 @@ export default {
.popper-user-box .nickname { .popper-user-box .nickname {
position: relative; position: relative;
color: #ffffff; color: #000;
font-size: 20px;
} }
.popper-user-box .nickname .logout { .popper-user-box .nickname .logout {

View File

@ -58,30 +58,33 @@
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="数据位" prop="dataBits" clearable>
<el-select v-model="form2.dataBits">
<el-option v-for="item in dataBitsArr" :label="item.name" :value="item.value" :key="item.value"
clearable></el-option>
</el-select>
</el-form-item>
<el-form-item label="波特率" prop="baudRate" clearable> <el-form-item label="波特率" prop="baudRate" clearable>
<el-select v-model="form2.baudRate"> <el-select v-model="form2.baudRate">
<el-option v-for="item in baudRateArr" :label="item.name" :value="item.value" :key="item.value" <el-option v-for="item in baudRateArr" :label="item.name" :value="item.value" :key="item.value"
clearable></el-option> clearable></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="停止位" prop="stopBits" clearable>
<el-select v-model="form2.stopBits">
<el-option v-for="item in stopBitsArr" :label="item.name" :value="item.value" :key="item.value"
clearable></el-option>
</el-select>
</el-form-item>
<el-form-item label="校验类型" prop="parity" clearable> <el-form-item label="校验类型" prop="parity" clearable>
<el-select v-model="form2.parity"> <el-select v-model="form2.parity">
<el-option v-for="item in parityArr" :label="item.name" :value="item.value" :key="item.value" <el-option v-for="item in parityArr" :label="item.name" :value="item.value" :key="item.value"
clearable></el-option> clearable></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="数据位" prop="dataBits" clearable>
<el-select v-model="form2.dataBits">
<el-option v-for="item in dataBitsArr" :label="item.name" :value="item.value" :key="item.value"
clearable></el-option>
</el-select>
</el-form-item>
<el-form-item label="停止位" prop="stopBits" clearable>
<el-select v-model="form2.stopBits">
<el-option v-for="item in stopBitsArr" :label="item.name" :value="item.value" :key="item.value"
clearable></el-option>
</el-select>
</el-form-item>
</fieldset> </fieldset>
</el-form> </el-form>
<!-- 3: 'plc_s7' --> <!-- 3: 'plc_s7' -->

View File

@ -2,7 +2,7 @@
<el-aside class="aside"> <el-aside class="aside">
<div class="head"> <div class="head">
<div> <div>
<img src="../assets/logo2.png" alt="logo" /> <img src="/favicon.ico" alt="logo" />
<span>数据控制</span> <span>数据控制</span>
</div> </div>
</div> </div>
@ -63,13 +63,6 @@ export default {
iconName: 'Management', iconName: 'Management',
children: [], children: [],
}, },
{
id: 2,
name: "规则引擎",
index: "/rules",
iconName: 'Management',
children: [],
},
// { // {
// id: 4, // id: 4,
// name: "", // name: "",
@ -105,6 +98,13 @@ export default {
// }, // },
], ],
}, },
{
id: 2,
name: "规则引擎",
index: "/rules",
iconName: 'Management',
children: [],
}
], ],
}); });
return { return {

View File

@ -321,4 +321,7 @@ s {
} }
.el-drawer__header { .el-drawer__header {
margin-bottom: 0 !important; margin-bottom: 0 !important;
}
.el-popper {
background: rgb(209, 235, 188) !important;
} }

View File

@ -31,7 +31,7 @@ export const pathMap = {
login: '登录', login: '登录',
home: '设备信息', home: '设备信息',
level: '网络配置', level: '网络配置',
model: '模管理', model: '模管理',
page: '驱动管理', page: '驱动管理',
data: '实时数据', data: '实时数据',
report: '上报管理', report: '上报管理',

View File

@ -2,7 +2,7 @@
<div class="login-body"> <div class="login-body">
<div class="login-container"> <div class="login-container">
<div class="head"> <div class="head">
<img class="logo" src="../assets/logo2.png" /> <img class="logo" src="/favicon.ico" />
</div> </div>
<div class="bottom"> <div class="bottom">
<div class="left-bottom"></div> <div class="left-bottom"></div>

View File

@ -132,7 +132,7 @@ export default {
}; };
const delData = (item) => { const delData = (item) => {
ElMessageBox.confirm("确定删除该数据?", "提示", { ElMessageBox.confirm("确定删除该数据?", "删除模板", {
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
type: "warning", type: "warning",

View File

@ -195,7 +195,7 @@ export default {
return; return;
} }
ElMessageBox.confirm("确定删除该数据?", "提示", { ElMessageBox.confirm("确定删除该数据?", "删除驱动", {
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
type: "warning", type: "warning",
@ -209,7 +209,7 @@ export default {
ElMessage.success(res.message || "删除成功"); ElMessage.success(res.message || "删除成功");
getTableData(); getTableData();
} else { } else {
ElMessage.error(res.message | "删除失败"); ElMessage.error(res.message || "删除失败");
} }
}) })
.catch(() => { .catch(() => {