修改测试bug
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="关键字筛选">
|
||||
<el-input maxlength="32" show-word-limit v-model.trim="tableStore.table.params.searchValue"
|
||||
<el-input maxlength="32" show-word-limit v-model.trim="tableStore.table.params.searchValue"
|
||||
placeholder="数据名称、别名、展示名称" clearable></el-input>
|
||||
</el-form-item>
|
||||
</template>
|
||||
|
||||
@@ -16,27 +16,27 @@
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="数据名称:" prop="name">
|
||||
<el-input
|
||||
maxlength="32"
|
||||
show-word-limit
|
||||
<el-input maxlength="32" show-word-limit
|
||||
|
||||
|
||||
v-model.trim="form.name"
|
||||
autocomplete="off"
|
||||
placeholder="请输入数据名称"
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="别名:" prop="otherName">
|
||||
<el-input
|
||||
maxlength="32"
|
||||
show-word-limit
|
||||
<el-input maxlength="32" show-word-limit
|
||||
|
||||
|
||||
v-model.trim="form.otherName"
|
||||
autocomplete="off"
|
||||
placeholder="请输入别名"
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="展示名称:" prop="showName">
|
||||
<el-input
|
||||
maxlength="32"
|
||||
show-word-limit
|
||||
<el-input maxlength="32" show-word-limit
|
||||
|
||||
|
||||
v-model.trim="form.showName"
|
||||
autocomplete="off"
|
||||
placeholder="请输入展示名称"
|
||||
@@ -53,18 +53,18 @@
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="单位:">
|
||||
<el-input
|
||||
maxlength="32"
|
||||
show-word-limit
|
||||
<el-input maxlength="32" show-word-limit
|
||||
|
||||
|
||||
v-model.trim="form.unit"
|
||||
autocomplete="off"
|
||||
placeholder="请输入单位"
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="基础数据类型:">
|
||||
<el-input
|
||||
maxlength="32"
|
||||
show-word-limit
|
||||
<el-input maxlength="32" show-word-limit
|
||||
|
||||
|
||||
v-model.trim="form.type"
|
||||
autocomplete="off"
|
||||
placeholder="请输入基础数据类型"
|
||||
@@ -112,9 +112,9 @@
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="序号:" prop="sort">
|
||||
<el-input
|
||||
maxlength="32"
|
||||
show-word-limit
|
||||
<el-input maxlength="32" show-word-limit
|
||||
|
||||
|
||||
type="number"
|
||||
v-model.trim="form.sort"
|
||||
autocomplete="off"
|
||||
@@ -122,9 +122,9 @@
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="限值名称:" prop="limitName">
|
||||
<el-input
|
||||
maxlength="32"
|
||||
show-word-limit
|
||||
<el-input maxlength="32" show-word-limit
|
||||
|
||||
|
||||
type="text"
|
||||
v-model.trim="form.limitName"
|
||||
autocomplete="off"
|
||||
@@ -132,9 +132,9 @@
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="限值表名:" prop="limitTable">
|
||||
<el-input
|
||||
maxlength="32"
|
||||
show-word-limit
|
||||
<el-input maxlength="32" show-word-limit
|
||||
|
||||
|
||||
type="text"
|
||||
v-model.trim="form.limitTable"
|
||||
autocomplete="off"
|
||||
@@ -157,18 +157,18 @@
|
||||
</div>
|
||||
<el-form class="form-two" :model="form" label-width="130px" ref="formRef2">
|
||||
<el-form-item label="告警码(缺省值):">
|
||||
<el-input
|
||||
maxlength="32"
|
||||
show-word-limit
|
||||
<el-input maxlength="32" show-word-limit
|
||||
|
||||
|
||||
v-model.trim="form.defaultValue"
|
||||
autocomplete="off"
|
||||
placeholder="请输入告警码(缺省值)"
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="事件类别:">
|
||||
<el-input
|
||||
maxlength="32"
|
||||
show-word-limit
|
||||
<el-input maxlength="32" show-word-limit
|
||||
|
||||
|
||||
v-model.trim="form.eventType"
|
||||
autocomplete="off"
|
||||
placeholder="请输入事件类别"
|
||||
@@ -176,9 +176,9 @@
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="设置最大值:">
|
||||
<el-input
|
||||
maxlength="32"
|
||||
show-word-limit
|
||||
<el-input maxlength="32" show-word-limit
|
||||
|
||||
|
||||
type="number"
|
||||
v-model.trim="form.maxNum"
|
||||
autocomplete="off"
|
||||
@@ -186,9 +186,9 @@
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="设置最小值:">
|
||||
<el-input
|
||||
maxlength="32"
|
||||
show-word-limit
|
||||
<el-input maxlength="32" show-word-limit
|
||||
|
||||
|
||||
type="number"
|
||||
v-model.trim="form.minNum"
|
||||
autocomplete="off"
|
||||
@@ -196,18 +196,18 @@
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="枚举序列:">
|
||||
<el-input
|
||||
maxlength="32"
|
||||
show-word-limit
|
||||
<el-input maxlength="32" show-word-limit
|
||||
|
||||
|
||||
v-model.trim="form.setValue"
|
||||
autocomplete="off"
|
||||
placeholder="请输入枚举序列"
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="字符串长度上限:">
|
||||
<el-input
|
||||
maxlength="32"
|
||||
show-word-limit
|
||||
<el-input maxlength="32" show-word-limit
|
||||
|
||||
|
||||
type="number"
|
||||
v-model.trim="form.strlen"
|
||||
autocomplete="off"
|
||||
@@ -215,9 +215,9 @@
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="上送规则:">
|
||||
<el-input
|
||||
maxlength="32"
|
||||
show-word-limit
|
||||
<el-input maxlength="32" show-word-limit
|
||||
|
||||
|
||||
v-model.trim="form.tranRule"
|
||||
autocomplete="off"
|
||||
placeholder="请输入上送规则"
|
||||
|
||||
@@ -21,15 +21,15 @@
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="版本号:" prop="versionNo">
|
||||
<el-input maxlength="32" show-word-limit v-model.trim="form.versionNo" autocomplete="off"
|
||||
<el-input maxlength="32" show-word-limit v-model.trim="form.versionNo" autocomplete="off"
|
||||
placeholder="请输入版本号"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="版本类型:" prop="versionType">
|
||||
<el-input maxlength="32" show-word-limit v-model.trim="form.versionType" autocomplete="off"
|
||||
<el-input maxlength="32" show-word-limit v-model.trim="form.versionType" autocomplete="off"
|
||||
placeholder="填写特殊类型(不填默认通用类型)"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="协议版本:" prop="versionAgreement">
|
||||
<el-input maxlength="32" show-word-limit v-model.trim="form.versionAgreement" autocomplete="off"
|
||||
<el-input maxlength="32" show-word-limit v-model.trim="form.versionAgreement" autocomplete="off"
|
||||
placeholder="请输入协议版本"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="版本日期:" prop="versionDate">
|
||||
@@ -38,13 +38,13 @@
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="CRC校验:" prop="crc">
|
||||
<el-input maxlength="32" show-word-limit v-model.trim="form.crc" autocomplete="off"
|
||||
<el-input maxlength="32" show-word-limit v-model.trim="form.crc" autocomplete="off"
|
||||
placeholder="请输入CRC校验"></el-input>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<el-form :model="form" label-width="100px" class="mt10 form-one">
|
||||
<el-form-item label="描述:" prop="description">
|
||||
<el-input maxlength="300" :autosize="{ minRows: 2, maxRows: 4 }" type="textarea" show-word-limit
|
||||
<el-input show-word-limit maxlength="300" :autosize="{ minRows: 2, maxRows: 4 }" type="textarea"
|
||||
v-model.trim="form.description" autocomplete="off" placeholder="请输入描述"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="升级文件:" prop="file">
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
<TableHeader ref="tableHeaderRef">
|
||||
<template #select>
|
||||
<el-form-item label="模版名称">
|
||||
<el-input
|
||||
maxlength="32"
|
||||
show-word-limit
|
||||
<el-input maxlength="32" show-word-limit
|
||||
|
||||
|
||||
v-model.trim="tableStore.table.params.name"
|
||||
clearable
|
||||
placeholder="请输入名称"
|
||||
@@ -140,6 +140,7 @@ const chooseFile = (e: any) => {
|
||||
}
|
||||
// 下载报告
|
||||
const downloadTheReport = (filePath: string,name:string) => {
|
||||
ElMessage.info('下载中......')
|
||||
downLoadFile(filePath).then(res => {
|
||||
let blob = new Blob([res], {
|
||||
type: ' application/json'
|
||||
|
||||
@@ -179,6 +179,7 @@ queryByCode('Device_Type').then(res => {
|
||||
})
|
||||
// 下载报告
|
||||
const downloadTheReport = (name: string) => {
|
||||
ElMessage.info('下载中......')
|
||||
getFileUrl(name).then((res: any) => {
|
||||
downLoadFile(res.data).then(res => {
|
||||
let blob = new Blob([res], {
|
||||
|
||||
Reference in New Issue
Block a user