Browse Source

优化和问题修复

develop
ljlong_2630 12 months ago
parent
commit
0aa202a012
  1. 1
      .gitignore
  2. 305
      src/views/model/alert/deviceparamalert.vue
  3. 10
      src/views/model/alert/logicconfig.vue
  4. 8
      src/views/model/alert/method.vue
  5. 4
      src/views/model/alert/model.vue
  6. 30
      src/views/model/alert/policy.vue
  7. 22
      src/views/model/device/index.vue
  8. 93
      src/views/model/heatapiconf/heatMainOperatorLog.vue
  9. 90
      src/views/model/heatapiconf/heatSendContent.vue
  10. 72
      src/views/model/heatapiconf/heatSendLog.vue
  11. 90
      src/views/model/heatapiconf/heatSubOperatorLog.vue
  12. 12
      src/views/model/heatapiconf/index.vue
  13. 6
      src/views/model/heatapiconf/paramModel.vue
  14. 12
      src/views/model/paramclass/index.vue
  15. 28
      src/views/model/params/index.vue
  16. 12
      src/views/transerver/kingcodetransform/index.vue
  17. 30
      src/views/transerver/viewConfig/index.vue

1
.gitignore

@ -22,3 +22,4 @@ node_modules/
package-lock.json
dist/
dist.tar.gz
.vscode/

305
src/views/model/alert/deviceparamalert.vue

@ -1,141 +1,154 @@
<template>
<div class="app-container">
<el-form :model="queryParams" ref="queryRef" :inline="true" v-show="showSearch" label-width="90px" class="my-custom-form">
<el-form :model="queryParams" ref="queryRef" :inline="true" v-show="showSearch" class="my-custom-form">
<el-row>
<el-col :span="4">
<el-form-item label="设备编号" prop="deviceUuid">
<el-input
v-model="queryParams.deviceUuid"
placeholder="请输入设备编号"
clearable
@keyup.enter="handleQuery"
/>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="设备名称" prop="deviceName">
<el-input
v-model="queryParams.deviceName"
placeholder="请输入设备名称"
clearable
@keyup.enter="handleQuery"
/>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="参数编码" prop="paramCode">
<el-input
v-model="queryParams.paramCode"
placeholder="请输入参数编码"
clearable
@keyup.enter="handleQuery"
/>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="参数名称" prop="paramName">
<el-input
v-model="queryParams.paramName"
placeholder="请输入参数名称"
clearable
@keyup.enter="handleQuery"
/>
</el-form-item>
<el-col :span="4" class="card-box">
<div class="head-container">
<el-input v-model="deptName" placeholder="请输入部门名称" clearable prefix-icon="Search" style="margin-bottom: 20px" />
</div>
<div class="head-container">
<el-tree :data="deptOptions" :props="{ label: 'label', children: 'children' }" :expand-on-click-node="false"
:filter-node-method="filterNode" ref="deptTreeRef" node-key="id" highlight-current default-expand-all
@node-click="handleNodeClick" />
</div>
</el-col>
<el-col :span="4">
<el-form-item class="childTextAlignCenter">
<el-button type="primary" icon="Search" @click="handleQuery">搜索</el-button>
<el-button type="info" plain icon="Refresh" @click="resetQuery">重置</el-button>
</el-form-item>
<el-col :span="20">
<el-row>
<el-col :span="4">
<el-form-item label="设备编号" prop="deviceUuid" label-width="auto">
<el-input
v-model="queryParams.deviceUuid"
placeholder="请输入设备编号"
clearable
@keyup.enter="handleQuery"
/>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="设备名称" prop="deviceName" label-width="auto">
<el-input
v-model="queryParams.deviceName"
placeholder="请输入设备名称"
clearable
@keyup.enter="handleQuery"
/>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="参数编码" prop="paramCode" label-width="auto">
<el-input
v-model="queryParams.paramCode"
placeholder="请输入参数编码"
clearable
@keyup.enter="handleQuery"
/>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="参数名称" prop="paramName" label-width="auto">
<el-input
v-model="queryParams.paramName"
placeholder="请输入参数名称"
clearable
@keyup.enter="handleQuery"
/>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item class="childTextAlignLeft">
<el-button type="primary" icon="Search" @click="handleQuery">搜索</el-button>
<el-button type="info" plain icon="Refresh" @click="resetQuery">重置</el-button>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button
type="success"
icon="Plus"
@click="handleAdd"
>新增</el-button>
</el-col>
<!-- <el-col :span="1.5">
<el-button
type="success"
icon="Edit"
@click="handleUpdate"
>修改</el-button>
</el-col> -->
<el-col :span="1.5">
<el-button
type="success"
icon="Delete"
@click="handleDelete"
>删除</el-button>
</el-col>
<!-- <el-col :span="1.5">
<el-button
type="warning"
icon="Download"
@click="handleExport"
>导出</el-button>
</el-col> -->
<right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar>
</el-row>
<el-table ref="deviceParamsTable" v-loading="loading" :data="alertList" @selection-change="handleSelectionChange" :max-height="tableHeight" :border="true" :column-width-draggable="true">
<el-table-column type="selection" width="55" align="center" fixed="left" />
<!-- <el-table-column label="主键" align="center" prop="id" /> -->
<el-table-column label="设备编号" align="center" prop="deviceUuid" :fixed="fixedColumns?'left':false">
<template #header>
<div class="fixed-column-header" style="text-align: center;display: block;" @dblclick="toggleFixedColumns">
<span style="text-align: center;display: block;">设备编号<img style="width:10px;margin-left:5px" v-show="fixedColumns" :src="lock" alt="Image"/></span>
</div>
</template>
</el-table-column>
<el-table-column label="设备名称" align="center" prop="deviceName" :width="120"/>
<el-table-column label="参数名称" align="center" prop="paramName" :width="120"/>
<el-table-column label="参数类型" align="center" prop="paramType" :width="120">
<template #default="scope">
<dict-tag :options="dc_param_value_type" :value="scope.row.paramType"/>
</template>
</el-table-column>
<el-table-column label="参数编码" align="center" prop="paramCode" />
<el-table-column label="是否告警" align="center" prop="enabled" :width="120">
<template #default="scope">
<el-switch v-model="scope.row.enabled" :active-value="1" :inactive-value="0" @change="changeEnabled(scope.row)"/>
</template>
</el-table-column>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" :width="300" :fixed="fixedColumns?'right':false">
<template #header>
<div class="fixed-column-header" style="text-align: center;display: block;" @dblclick="toggleFixedColumns">
<span style="text-align: center;display: block;">操作<img style="width:10px;margin-left:5px" v-show="fixedColumns" :src="lock" alt="Image"/></span>
</div>
</template>
<template #default="scope">
<el-button
type="text"
icon="Edit"
@click="handlePolicy(scope.row)"
>维护告警策略</el-button>
<el-button
type="text"
icon="Delete"
@click="handleDelete(scope.row)"
>删除</el-button>
</template>
</el-table-column>
</el-table>
<pagination
v-show="total>0"
:total="total"
v-model:page="queryParams.pageNum"
v-model:limit="queryParams.pageSize"
@pagination="getList"
class="paddingBothLeftRight"
/>
</el-col>
</el-row>
</el-form>
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button
type="success"
icon="Plus"
@click="handleAdd"
>新增</el-button>
</el-col>
<!-- <el-col :span="1.5">
<el-button
type="success"
icon="Edit"
@click="handleUpdate"
>修改</el-button>
</el-col> -->
<el-col :span="1.5">
<el-button
type="success"
icon="Delete"
@click="handleDelete"
>删除</el-button>
</el-col>
<!-- <el-col :span="1.5">
<el-button
type="warning"
icon="Download"
@click="handleExport"
>导出</el-button>
</el-col> -->
<right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar>
</el-row>
<el-table ref="deviceParamsTable" v-loading="loading" :data="alertList" @selection-change="handleSelectionChange" :max-height="tableHeight" :border="true" :column-width-draggable="true">
<el-table-column type="selection" width="55" align="center" fixed="left" />
<!-- <el-table-column label="主键" align="center" prop="id" /> -->
<el-table-column label="设备编号" align="center" prop="deviceUuid" :fixed="fixedColumns?'left':false">
<template #header>
<div class="fixed-column-header" style="text-align: center;display: block;" @dblclick="toggleFixedColumns">
<span style="text-align: center;display: block;">设备编号<img style="width:10px;margin-left:5px" v-show="fixedColumns" :src="lock" alt="Image"/></span>
</div>
</template>
</el-table-column>
<el-table-column label="设备名称" align="center" prop="deviceName" :width="120"/>
<el-table-column label="参数名称" align="center" prop="paramName" :width="120"/>
<el-table-column label="参数类型" align="center" prop="paramType" :width="120">
<template #default="scope">
<dict-tag :options="dc_param_value_type" :value="scope.row.paramType"/>
</template>
</el-table-column>
<el-table-column label="参数编码" align="center" prop="paramCode" />
<el-table-column label="是否告警" align="center" prop="enabled" :width="120">
<template #default="scope">
<el-switch v-model="scope.row.enabled" :active-value="1" :inactive-value="0" @change="changeEnabled(scope.row)"/>
</template>
</el-table-column>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" :width="300" :fixed="fixedColumns?'right':false">
<template #header>
<div class="fixed-column-header" style="text-align: center;display: block;" @dblclick="toggleFixedColumns">
<span style="text-align: center;display: block;">操作<img style="width:10px;margin-left:5px" v-show="fixedColumns" :src="lock" alt="Image"/></span>
</div>
</template>
<template #default="scope">
<el-button
type="text"
icon="Edit"
@click="handlePolicy(scope.row)"
>维护告警策略</el-button>
<el-button
type="text"
icon="Delete"
@click="handleDelete(scope.row)"
>删除</el-button>
</template>
</el-table-column>
</el-table>
<pagination
v-show="total>0"
:total="total"
v-model:page="queryParams.pageNum"
v-model:limit="queryParams.pageSize"
@pagination="getList"
class="paddingBothLeftRight"
/>
<!-- 添加或修改设备告警对话框 -->
<el-dialog :title="title" v-model="open" width="500px" append-to-body>
<el-form ref="alertRef" :model="form" :rules="rules" label-width="80px">
@ -330,6 +343,7 @@ import { listModelEnabledNoPage } from "@/api/model/alertmodel";
import { ElMessageBox } from 'element-plus';
import {listPolicyInfo,updatePolicy,updatePolicyBatch,addPolicy,addPolicyBatch,listAlertParamSelect } from "@/api/model/policy";
import lock from "@/assets/icons/svg/lock.svg";
import { deptTreeSelect } from "@/api/system/user";
const { proxy } = getCurrentInstance();
const router = useRouter();
const { dc_operator_sign,dc_param_value_type,dc_alert_level,dc_device_partion } = proxy.useDict('dc_operator_sign','dc_param_value_type','dc_alert_level','dc_device_partion');
@ -374,6 +388,8 @@ const paramTip = ref("请先选择设备");
const paramDisabled = ref(false);
const partionDisabled = ref(false);
const submitDisabled = ref(true);
const deptOptions = ref([]);
const deptName = ref(null);
const names = ref([]);
const alert_value = ref([
{label: '1', value: true, elTagType: 'default', elTagClass: null},
@ -522,6 +538,8 @@ function handleQuery() {
/** 重置按钮操作 */
function resetQuery() {
proxy.resetForm("queryRef");
queryParams.value.orgCode = null;
queryParamsDevice.value.orgCode = null;
handleQuery();
}
@ -1335,7 +1353,32 @@ const calculateTableHeight = () => {
});
};
function getDeptTree() {
deptTreeSelect().then(response => {
deptOptions.value = response.data;
});
};
/** 节点单击事件 */
function handleNodeClick(data) {
queryParams.value.orgCode = data.id;
queryParamsDevice.value.orgCode = data.id;
handleQuery();
};
/** 通过条件过滤节点 */
const filterNode = (value, data) => {
if (!value) return true;
return data.label.indexOf(value) !== -1;
};
/** 根据名称筛选部门树 */
watch(deptName, val => {
proxy.$refs["deptTreeRef"].filter(val);
});
getList();
getList();
getDeptTree();
</script>

10
src/views/model/alert/logicconfig.vue

@ -1,9 +1,9 @@
<template>
<div class="app-container">
<el-form :model="queryParams" ref="queryRef" :inline="true" v-show="showSearch" label-width="120px" class="my-custom-form">
<el-form :model="queryParams" ref="queryRef" :inline="true" v-show="showSearch" class="my-custom-form">
<el-row>
<el-col :span="4">
<el-form-item label="参数变量类型" prop="paramValueType">
<el-form-item label="参数变量类型" prop="paramValueType" label-width="auto">
<el-select v-model="queryParams.paramValueType" placeholder="请选择参数变量类型" clearable>
<el-option
v-for="dict in dc_param_value_type"
@ -15,7 +15,7 @@
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="逻辑编码" prop="logicCode">
<el-form-item label="逻辑编码" prop="logicCode" label-width="auto">
<el-select v-model="queryParams.logicCode" placeholder="请选择逻辑编码" clearable>
<el-option
v-for="dict in dc_alert_logic"
@ -27,7 +27,7 @@
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="备注" prop="note">
<el-form-item label="备注" prop="note" label-width="auto">
<el-input
v-model="queryParams.note"
placeholder="请输入备注"
@ -37,7 +37,7 @@
</el-form-item>
</el-col>
<el-col :span="6" >
<el-form-item class="childTextAlignRight">
<el-form-item class="childTextAlignLeft">
<el-button type="primary" icon="Search" @click="handleQuery">搜索</el-button>
<el-button type="info" plain icon="Refresh" @click="resetQuery">重置</el-button>
</el-form-item>

8
src/views/model/alert/method.vue

@ -1,9 +1,9 @@
<template>
<div class="app-container">
<el-form :model="queryParams" ref="queryRef" :inline="true" v-show="showSearch" label-width="100px" class="my-custom-form">
<el-form :model="queryParams" ref="queryRef" :inline="true" v-show="showSearch" class="my-custom-form">
<el-row>
<el-col :span="4">
<el-form-item label="策略名称" prop="methodName">
<el-form-item label="策略名称" prop="methodName" label-width="auto">
<el-input
v-model="queryParams.methodName"
placeholder="请输入策略名称"
@ -13,7 +13,7 @@
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="是否有效" prop="flagEnabled">
<el-form-item label="是否有效" prop="flagEnabled" label-width="auto">
<el-select v-model="queryParams.flagEnabled" placeholder="请选择是否有效" clearable>
<el-option
v-for="item in flagEnabled"
@ -25,7 +25,7 @@
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item class="childTextAlignCenter">
<el-form-item class="childTextAlignLeft">
<el-button type="primary" icon="Search" @click="handleQuery">搜索</el-button>
<el-button type="info" plain icon="Refresh" @click="resetQuery">重置</el-button>
</el-form-item>

4
src/views/model/alert/model.vue

@ -1,6 +1,6 @@
<template>
<div class="app-container">
<el-form :model="queryParams" ref="queryRef" :inline="true" v-show="showSearch" label-width="100px" class="my-custom-form">
<el-form :model="queryParams" ref="queryRef" :inline="true" v-show="showSearch" class="my-custom-form">
<el-row>
<el-col :span="4">
<el-form-item label="参数数据类型" prop="paramType">
@ -81,7 +81,7 @@
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item class="childTextAlignRight">
<el-form-item class="childTextAlignLeft">
<el-button type="primary" icon="Search" @click="handleQuery">搜索</el-button>
<el-button type="info" plain icon="Refresh" @click="resetQuery">重置</el-button>
<el-button @click="toggleCollapse">{{editName}}</el-button>

30
src/views/model/alert/policy.vue

@ -1,9 +1,9 @@
<template>
<div class="app-container">
<el-form :model="queryParams" ref="queryRef" :inline="true" v-show="showSearch" label-width="100px" class="my-custom-form" >
<el-form :model="queryParams" ref="queryRef" :inline="true" v-show="showSearch" class="my-custom-form" >
<el-row>
<el-col :span="4">
<el-form-item label="数据类型" prop="paramType">
<el-form-item label="数据类型" prop="paramType" label-width="auto">
<el-select v-model="queryParams.paramType" placeholder="请选择数据类型" clearable>
<el-option
v-for="dict in dc_param_value_type"
@ -15,7 +15,7 @@
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="设备名称" prop="deviceName">
<el-form-item label="设备名称" prop="deviceName" label-width="auto">
<el-input
v-model="queryParams.deviceName"
placeholder="请输入设备名称"
@ -25,7 +25,7 @@
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="参数名称" prop="paramName">
<el-form-item label="参数名称" prop="paramName" label-width="auto">
<el-input
v-model="queryParams.paramName"
placeholder="请输入参数名称"
@ -35,7 +35,7 @@
</el-form-item>
</el-col>
<el-col :span="4" v-show="collapseVisible">
<el-form-item label="设备编号" prop="deviceId">
<el-form-item label="设备编号" prop="deviceId" label-width="auto">
<el-input
v-model="queryParams.deviceId"
placeholder="请输入设备编号"
@ -45,7 +45,7 @@
</el-form-item>
</el-col>
<el-col :span="4" v-show="collapseVisible">
<el-form-item label="参数编码" prop="paramCode">
<el-form-item label="参数编码" prop="paramCode" label-width="auto">
<el-input
v-model="queryParams.paramCode"
placeholder="请输入参数编码"
@ -55,7 +55,7 @@
</el-form-item>
</el-col>
<el-col :span="4" v-show="collapseVisible">
<el-form-item label="告警方式" prop="methodIds">
<el-form-item label="告警方式" prop="methodIds" label-width="auto">
<el-select v-model="queryParams.methodIds" multiple placeholder="请选择告警方式ID" clearable>
<el-option
v-for="item in methodList"
@ -67,7 +67,7 @@
</el-form-item>
</el-col>
<el-col :span="4" v-show="collapseVisible">
<el-form-item label="是否告警" prop="enabled">
<el-form-item label="是否告警" prop="enabled" label-width="auto">
<el-select v-model="queryParams.enabled" placeholder="请选择是否告警" clearable>
<el-option
v-for="item in enabled"
@ -78,7 +78,7 @@
</el-select>
</el-form-item>
</el-col>
<el-col :span="4" v-show="collapseVisible">
<el-col :span="4" v-show="collapseVisible" label-width="auto">
<el-form-item label="浮点值" prop="floatValue">
<el-input
v-model="queryParams.floatValue"
@ -88,7 +88,7 @@
/>
</el-form-item>
</el-col>
<el-col :span="4" v-show="collapseVisible">
<el-col :span="4" v-show="collapseVisible" label-width="auto">
<el-form-item label="整数值" prop="intValue">
<el-input
v-model="queryParams.intValue"
@ -99,7 +99,7 @@
</el-form-item>
</el-col>
<el-col :span="4" v-show="collapseVisible">
<el-form-item label="开关值" prop="boolValue">
<el-form-item label="开关值" prop="boolValue" label-width="auto">
<el-select v-model="queryParams.boolValue" placeholder="请选择开关值">
<el-option
v-for="dict in dc_alert_value"
@ -111,7 +111,7 @@
</el-form-item>
</el-col>
<el-col :span="4" v-show="collapseVisible">
<el-form-item label="字符值" prop="stringValue">
<el-form-item label="字符值" prop="stringValue" label-width="auto">
<el-input
v-model="queryParams.stringValue"
placeholder="请输入字符值"
@ -121,7 +121,7 @@
</el-form-item>
</el-col>
<el-col :span="4" v-show="collapseVisible">
<el-form-item label="策略ID" prop="alertId">
<el-form-item label="策略ID" prop="alertId" label-width="auto">
<el-input
v-model="queryParams.alertId"
placeholder="请输入策略ID"
@ -158,12 +158,12 @@
</el-form-item>
</el-col> -->
<el-col :span="4" v-show="collapseVisible">
<el-form-item label="排序" prop="sortId">
<el-form-item label="排序" prop="sortId" label-width="auto">
<el-input-number v-model="queryParams.sortId" :min="1" :max="1000" />
</el-form-item>
</el-col>
<el-col :span="6" class="childTextAlignRight">
<el-col :span="6" class="childTextAlignLeft">
<el-form-item>
<el-button type="primary" icon="Search" @click="handleQuery">搜索</el-button>
<el-button type="info" plain icon="Refresh" @click="resetQuery">重置</el-button>

22
src/views/model/device/index.vue

@ -17,22 +17,22 @@
</el-form-item> -->
</el-col>
<el-col :span="20" class="card-box">
<el-form :model="queryParams" ref="queryRef" :inline="true" v-show="showSearch" label-width="100px"
<el-form :model="queryParams" ref="queryRef" :inline="true" v-show="showSearch"
class="my-custom-form">
<el-row>
<el-col :span="4">
<el-form-item label="中台设备编码" prop="centerDeviceCode">
<el-input v-model="queryParams.centerDeviceCode" placeholder="请输入中台设备编码" clearable
<el-form-item label="中台设备编码" prop="uuid" label-width="auto">
<el-input v-model="queryParams.uuid" placeholder="请输入中台设备编码" clearable
@keyup.enter="handleQuery" />
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="设备名称" prop="deviceName">
<el-form-item label="设备名称" prop="deviceName" label-width="auto">
<el-input v-model="queryParams.deviceName" placeholder="请输入设备名称" clearable @keyup.enter="handleQuery" />
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="通讯来源类型" prop="deviceSourceId">
<el-form-item label="通讯来源类型" prop="deviceSourceId" label-width="auto">
<el-select v-model="queryParams.deviceSourceId" placeholder="请选择通讯来源类型" clearable>
<el-option v-for="dict in dc_device_source" :key="dict.value" :label="dict.label" :value="dict.value"
@change="deviceSourceChange" />
@ -40,14 +40,14 @@
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="是否可用" prop="enabledFlag">
<el-form-item label="是否可用" prop="enabledFlag" label-width="auto">
<el-select v-model="queryParams.enabledFlag" placeholder="请选择是否可用" clearable>
<el-option v-for="dict in enabledFlag" :key="dict.value" :label="dict.label" :value="dict.value" />
</el-select>
</el-form-item>
</el-col>
<el-col :span="4" v-show="collapseVisible">
<el-form-item label="设备类型" prop="deviceType">
<el-form-item label="设备类型" prop="deviceType" label-width="auto">
<el-select v-model="queryParams.deviceType" placeholder="请选择设备类型" clearable>
<el-option v-for="dict in dc_device_type" :key="dict.value" :label="dict.label" :value="dict.value" />
</el-select>
@ -90,7 +90,7 @@
</el-form-item>
</el-col> -->
<el-col :span="4" v-show="collapseVisible">
<el-form-item label="是否告警" prop="alertEnabled">
<el-form-item label="是否告警" prop="alertEnabled"> label-width="auto"
<el-select v-model="queryParams.alertEnabled" placeholder="请选择设备类型" clearable>
<el-option v-for="dict in alertEnabled" :key="dict.value" :label="dict.label" :value="dict.value" />
</el-select>
@ -111,7 +111,7 @@
</el-form-item>
</el-col> -->
<el-col :span="4" v-show="collapseVisible">
<el-form-item label="组态图片名称" prop="imgConfiguration">
<el-form-item label="组态图片名称" prop="imgConfiguration" label-width="auto">
<el-select v-model="queryParams.imgConfiguration" placeholder="请选择组态图片名称" clearable>
<el-option v-for="dict in dc_img_configuration" :key="dict.value" :label="dict.label"
:value="dict.value" />
@ -121,7 +121,7 @@
<el-col :span="2">
</el-col>
<el-col :span="6">
<el-form-item class="childTextAlignRight">
<el-form-item class="childTextAlignLeft">
<el-button type="primary" icon="Search" @click="handleQuery">搜索</el-button>
<el-button type="info" plain icon="Refresh" @click="resetQuery">重置</el-button>
<el-button @click="toggleCollapse">{{ editName }}</el-button>
@ -153,7 +153,7 @@
@sort-change="sortChange" @filter-change="filterChange" :max-height="tableHeight" :border="true"
:column-width-draggable="true">
<el-table-column type="selection" width="55" align="center" fixed="left" />
<el-table-column label="中台设备编码" align="center" prop="centerDeviceCode" :width="150" sortable />
<el-table-column label="中台设备编码" align="center" prop="uuid" :width="150" sortable />
<el-table-column label="设备名称" align="center" prop="deviceName" :width="150" sortable />
<el-table-column label="通讯来源类型" align="center" prop="deviceSource" :width="150" column-key="deviceSource"
filter-placement="bottom-end" :filters="getfilterNameItem('deviceSource')" :filter-method="filterMethod"

93
src/views/model/heatapiconf/heatMainOperatorLog.vue

@ -1,44 +1,57 @@
<template>
<div class="app-container">
<el-form :model="queryParams" ref="queryRef" :inline="true" v-show="showSearch" label-width="100px">
<el-form-item label="操作类型" prop="operatorType">
<el-select v-model="form.operatorType" placeholder="请选择操作类型">
<el-option
v-for="dict in dc_operator_type"
:key="dict.value"
:label="dict.label"
:value="dict.value"
<el-form :model="queryParams" ref="queryRef" :inline="true" v-show="showSearch" class="my-custom-form">
<el-row>
<el-col :span="4">
<el-form-item label="操作类型" prop="operatorType" label-width="auto">
<el-select v-model="form.operatorType" placeholder="请选择操作类型">
<el-option
v-for="dict in dc_operator_type"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="机构名称" prop="orgName" label-width="auto">
<el-input
v-model="queryParams.orgName"
placeholder="请输入机构名称"
clearable
@keyup.enter="handleQuery"
/>
</el-select>
</el-form-item>
<el-form-item label="机构名称" prop="orgName">
<el-input
v-model="queryParams.orgName"
placeholder="请输入机构名称"
clearable
@keyup.enter="handleQuery"
/>
</el-form-item>
<el-form-item label="推送接口" prop="sendIp">
<el-input
v-model="queryParams.sendIp"
placeholder="请输入推送接口"
clearable
@keyup.enter="handleQuery"
/>
</el-form-item>
<el-form-item label="标准值" prop="standard">
<el-input
v-model="queryParams.standard"
placeholder="请输入标准值"
clearable
@keyup.enter="handleQuery"
/>
</el-form-item>
<el-form-item>
<el-button type="primary" icon="Search" @click="handleQuery">搜索</el-button>
<el-button type="info" plain icon="Refresh" @click="resetQuery">重置</el-button>
</el-form-item>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="推送接口" prop="sendIp" label-width="auto">
<el-input
v-model="queryParams.sendIp"
placeholder="请输入推送接口"
clearable
@keyup.enter="handleQuery"
/>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="标准值" prop="standard" label-width="auto">
<el-input
v-model="queryParams.standard"
placeholder="请输入标准值"
clearable
@keyup.enter="handleQuery"
/>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item>
<el-button type="primary" icon="Search" @click="handleQuery">搜索</el-button>
<el-button type="info" plain icon="Refresh" @click="resetQuery">重置</el-button>
</el-form-item>
</el-col>
</el-row>
</el-form>
<el-row :gutter="10" class="mb8">
@ -182,7 +195,9 @@
</el-dialog>
</div>
</template>
<style lang="scss" >
@import "@/assets/styles/self-defined.scss";
</style>
<script setup name="HeatMainOperatorLog">
import { listHeatapi, getHeatapi, delHeatapi, addHeatapi, updateHeatapi, listHeatapiNew } from "@/api/model/heatMainOperatorLog";
import { listDeviceNoPage } from "@/api/model/device";

90
src/views/model/heatapiconf/heatSendContent.vue

@ -1,6 +1,6 @@
<template>
<div class="app-container">
<el-form :model="queryParams" ref="queryRef" :inline="true" v-show="showSearch" label-width="100px">
<el-form :model="queryParams" ref="queryRef" :inline="true" v-show="showSearch">
<!-- <el-form-item label="设备编号" prop="deviceUuid">
<el-input
v-model="queryParams.deviceUuid"
@ -9,45 +9,57 @@
@keyup.enter="handleQuery"
/>
</el-form-item> -->
<el-form-item label="设备名称模糊" prop="deviceName">
<el-input
v-model="queryParams.deviceName"
placeholder="请输入设备名称"
clearable
@keyup.enter="handleQuery"
/>
</el-form-item>
<el-form-item label="设备名称多选" prop="deviceUuid">
<el-select v-model="queryParams.deviceUuid" placeholder="请选择设备" clearable multiple
class="custom-select">
<el-option
v-for="dict in listDeviceAll"
:key="dict.uuid"
:label="dict.deviceName"
:value="dict.uuid"
<el-row>
<el-col :span="4">
<el-form-item label="设备名称模糊" prop="deviceName" label-width="auto">
<el-input
v-model="queryParams.deviceName"
placeholder="请输入设备名称"
clearable
@keyup.enter="handleQuery"
/>
</el-select>
</el-form-item>
<el-form-item label="参数编号" prop="paramCode">
<el-input
v-model="queryParams.paramCode"
placeholder="请输入参数编号"
clearable
@keyup.enter="handleQuery"
/>
</el-form-item>
<el-form-item label="参数名称" prop="paramName">
<el-input
v-model="queryParams.paramName"
placeholder="请输入参数名称"
clearable
@keyup.enter="handleQuery"
/>
</el-form-item>
<el-form-item>
<el-button type="primary" icon="Search" @click="handleQuery">搜索</el-button>
<el-button type="info" plain icon="Refresh" @click="resetQuery">重置</el-button>
</el-form-item>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="设备名称多选" prop="deviceUuid" label-width="auto">
<el-select v-model="queryParams.deviceUuid" placeholder="请选择设备" clearable multiple
class="custom-select">
<el-option
v-for="dict in listDeviceAll"
:key="dict.uuid"
:label="dict.deviceName"
:value="dict.uuid"
/>
</el-select>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="参数编号" prop="paramCode" label-width="auto">
<el-input
v-model="queryParams.paramCode"
placeholder="请输入参数编号"
clearable
@keyup.enter="handleQuery"
/>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="参数名称" prop="paramName" label-width="auto">
<el-input
v-model="queryParams.paramName"
placeholder="请输入参数名称"
clearable
@keyup.enter="handleQuery"
/>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item class="childTextAlignLeft">
<el-button type="primary" icon="Search" @click="handleQuery">搜索</el-button>
<el-button type="info" plain icon="Refresh" @click="resetQuery">重置</el-button>
</el-form-item>
</el-col>
</el-row>
</el-form>
<el-table v-loading="loading" :data="currentPageData" class="table-container" :expand-row-keys="expandRowKeys" @expand-change="handleExpandChange" row-key="deviceId">
<el-table-column type="expand">

72
src/views/model/heatapiconf/heatSendLog.vue

@ -1,36 +1,46 @@
<template>
<div class="app-container">
<el-form :model="queryParams" ref="queryRef" :inline="true" v-show="showSearch" label-width="100px">
<el-form-item label="推送目标接口" prop="sendIp">
<el-input
v-model="queryParams.sendIp"
placeholder="请输入推送目标接口"
clearable
@keyup.enter="handleQuery"
/>
</el-form-item>
<el-form-item label="成功标志" prop="successFlag">
<el-select v-model="queryParams.successFlag" placeholder="请选择成功标志" clearable>
<el-option
v-for="dict in dc_yes_no"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
<el-form-item label="返回信息" prop="returnInfo">
<el-input
v-model="queryParams.returnInfo"
placeholder="请输入返回信息"
clearable
@keyup.enter="handleQuery"
/>
</el-form-item>
<el-form-item>
<el-button type="primary" icon="Search" @click="handleQuery">搜索</el-button>
<el-button type="info" plain icon="Refresh" @click="resetQuery">重置</el-button>
</el-form-item>
<el-form :model="queryParams" ref="queryRef" :inline="true" v-show="showSearch" class="my-custom-form">
<el-row>
<el-col :span="4">
<el-form-item label="推送目标接口" prop="sendIp" label-width="auto">
<el-input
v-model="queryParams.sendIp"
placeholder="请输入推送目标接口"
clearable
@keyup.enter="handleQuery"
/>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="成功标志" prop="successFlag" label-width="auto">
<el-select v-model="queryParams.successFlag" placeholder="请选择成功标志" clearable>
<el-option
v-for="dict in dc_yes_no"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="返回信息" prop="returnInfo" label-width="auto">
<el-input
v-model="queryParams.returnInfo"
placeholder="请输入返回信息"
clearable
@keyup.enter="handleQuery"
/>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item class="childTextAlignLeft">
<el-button type="primary" icon="Search" @click="handleQuery">搜索</el-button>
<el-button type="info" plain icon="Refresh" @click="resetQuery">重置</el-button>
</el-form-item>
</el-col>
</el-row>
</el-form>
<el-row :gutter="10" class="mb8">

90
src/views/model/heatapiconf/heatSubOperatorLog.vue

@ -1,44 +1,56 @@
<template>
<div class="app-container">
<el-form :model="queryParams" ref="queryRef" :inline="true" v-show="showSearch" label-width="100px">
<el-form-item label="操作类型" prop="operatorType">
<el-select v-model="queryParams.operatorType" placeholder="请选择操作类型" clearable>
<el-option
v-for="dict in dc_operator_type"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
<el-form-item label="主配置编号" prop="standardConfId">
<el-input
v-model="queryParams.standardConfId"
placeholder="请输入主配置编号"
clearable
@keyup.enter="handleQuery"
/>
</el-form-item>
<el-form-item label="参数模版编号" prop="paramClassId">
<el-input
v-model="queryParams.paramClassId"
placeholder="请输入参数模版编号"
clearable
@keyup.enter="handleQuery"
/>
</el-form-item>
<el-form-item label="参数模版名称" prop="paramClassName">
<el-input
v-model="queryParams.paramClassName"
placeholder="请输入参数模版名称"
clearable
@keyup.enter="handleQuery"
/>
</el-form-item>
<el-form-item>
<el-button type="primary" icon="Search" @click="handleQuery">搜索</el-button>
<el-button type="info" plain icon="Refresh" @click="resetQuery">重置</el-button>
</el-form-item>
<el-form :model="queryParams" ref="queryRef" :inline="true" v-show="showSearch" class="my-custom-form">
<el-row>
<el-col :span="4">
<el-form-item label="操作类型" prop="operatorType" label-width="auto">
<el-select v-model="queryParams.operatorType" placeholder="请选择操作类型" clearable>
<el-option
v-for="dict in dc_operator_type"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="主配置编号" prop="standardConfId" label-width="auto">
<el-input
v-model="queryParams.standardConfId"
placeholder="请输入主配置编号"
clearable
@keyup.enter="handleQuery"
/>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="参数模版编号" prop="paramClassId" label-width="auto">
<el-input
v-model="queryParams.paramClassId"
placeholder="请输入参数模版编号"
clearable
@keyup.enter="handleQuery"
/>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="参数模版名称" prop="paramClassName" label-width="auto">
<el-input
v-model="queryParams.paramClassName"
placeholder="请输入参数模版名称"
clearable
@keyup.enter="handleQuery"
/>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item>
<el-button type="primary" icon="Search" @click="handleQuery">搜索</el-button>
<el-button type="info" plain icon="Refresh" @click="resetQuery">重置</el-button>
</el-form-item>
</el-col>
</el-row>
</el-form>
<el-row :gutter="10" class="mb8">

12
src/views/model/heatapiconf/index.vue

@ -12,11 +12,11 @@
</div>
</el-col>
<el-col :span="20">
<el-form :model="queryParams" ref="queryRef" :inline="true" v-show="showSearch" label-width="90px"
<el-form :model="queryParams" ref="queryRef" :inline="true" v-show="showSearch"
class="my-custom-form">
<el-row>
<el-col :span="8">
<el-form-item label="排除设备" prop="excludeDevices">
<el-form-item label="排除设备" prop="excludeDevices" label-width="auto">
<el-select v-model="queryParams.excludeDevices" placeholder="请选择排除设备" clearable multiple>
<el-option
v-for="dict in listDeviceAll"
@ -28,17 +28,17 @@
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="标准值" prop="standard">
<el-form-item label="标准值" prop="standard" label-width="auto">
<el-input v-model="queryParams.standard" placeholder="请输入标准值" clearable @keyup.enter="handleQuery" />
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="发送地址" prop="sendIp">
<el-form-item label="发送地址" prop="sendIp" label-width="auto">
<el-input v-model="queryParams.sendIp" placeholder="请输入发送地址" clearable @keyup.enter="handleQuery" />
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item class="childTextAlignCenter">
<el-col :span="8">
<el-form-item class="childTextAlignLeft">
<el-button type="primary" icon="Search" @click="handleQuery">搜索</el-button>
<el-button type="info" plain icon="Refresh" @click="resetQuery">重置</el-button>
</el-form-item>

6
src/views/model/heatapiconf/paramModel.vue

@ -1,10 +1,10 @@
<template>
<div class="app-container">
<el-form :model="queryParams" ref="queryRef" :inline="true" v-show="showSearch" label-width="100px">
<el-form-item label="参数模版编号" prop="paramClassId">
<el-form :model="queryParams" ref="queryRef" :inline="true" v-show="showSearch">
<el-form-item label="参数模版编号" prop="paramClassId" label-width="auto">
<el-input v-model="queryParams.paramClassId" placeholder="请输入参数模版编号" clearable @keyup.enter="handleQuery" />
</el-form-item>
<el-form-item label="参数模板名称" prop="paramClassName">
<el-form-item label="参数模板名称" prop="paramClassName" label-width="auto">
<el-input v-model="queryParams.paramClassName" placeholder="请输入参数模板名称" clearable @keyup.enter="handleQuery" />
</el-form-item>
<el-form-item>

12
src/views/model/paramclass/index.vue

@ -1,9 +1,9 @@
<template>
<div class="app-container">
<el-form :model="queryParams" ref="queryRef" :inline="true" v-show="showSearch" label-width="80px" class="my-custom-form">
<el-form :model="queryParams" ref="queryRef" :inline="true" v-show="showSearch" class="my-custom-form">
<el-row>
<el-col :span="4">
<el-form-item label="参数名称" prop="paramClassName">
<el-form-item label="参数名称" prop="paramClassName" label-width="auto">
<el-input
v-model="queryParams.paramClassName"
placeholder="请输入参数名称"
@ -13,7 +13,7 @@
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="参数编码" prop="paramClassCode">
<el-form-item label="参数编码" prop="paramClassCode" label-width="auto">
<el-input
v-model="queryParams.paramClassCode"
placeholder="请输入参数编码"
@ -23,7 +23,7 @@
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="类别" prop="classType">
<el-form-item label="类别" prop="classType" label-width="auto">
<el-select v-model="queryParams.classType" placeholder="请选择类别" clearable>
<el-option
v-for="dict in dc_class_type"
@ -35,7 +35,7 @@
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="单位" prop="paramUnit">
<el-form-item label="单位" prop="paramUnit" label-width="auto">
<el-select v-model="queryParams.paramUnit" placeholder="请选择单位" clearable>
<el-option
v-for="dict in dc_param_uint_type"
@ -47,7 +47,7 @@
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item class="childTextAlignCenter">
<el-form-item class="childTextAlignLeft">
<el-button type="primary" icon="Search" @click="handleQuery">搜索</el-button>
<el-button type="info" plain icon="Refresh" @click="resetQuery">重置</el-button>
</el-form-item>

28
src/views/model/params/index.vue

@ -1,9 +1,9 @@
<template>
<div class="app-container">
<el-form :model="queryParams" ref="queryRef" :inline="true" v-show="showSearch" label-width="120px" class="my-custom-form">
<el-form :model="queryParams" ref="queryRef" :inline="true" v-show="showSearch" class="my-custom-form">
<el-row>
<el-col :span="4">
<el-form-item label="中台设备编码" prop="deviceUuid">
<el-form-item label="中台设备编码" prop="deviceUuid" label-width="auto">
<el-input
v-model="queryParams.deviceUuid"
placeholder="请输入中台设备编码"
@ -13,7 +13,7 @@
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="参数名称" prop="paramName">
<el-form-item label="参数名称" prop="paramName" label-width="auto">
<el-input
v-model="queryParams.paramName"
placeholder="请输入参数名称"
@ -23,7 +23,7 @@
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="参数编码" prop="paramCode">
<el-form-item label="参数编码" prop="paramCode" label-width="auto">
<el-input
v-model="queryParams.paramCode"
placeholder="请输入参数编码"
@ -33,7 +33,7 @@
</el-form-item>
</el-col>
<el-col :span="4" v-show="collapseVisible">
<el-form-item label="数据类型" prop="paramType">
<el-form-item label="数据类型" prop="paramType" label-width="auto">
<el-select v-model="queryParams.paramType" placeholder="请选择数据类型" clearable>
<el-option
v-for="dict in dc_param_value_type"
@ -45,7 +45,7 @@
</el-form-item>
</el-col>
<el-col :span="4" v-show="collapseVisible">
<el-form-item label="是否可控" prop="contrlFlag">
<el-form-item label="是否可控" prop="contrlFlag" label-width="auto">
<el-select v-model="queryParams.contrlFlag" placeholder="请选择是否可控" clearable>
<el-option
v-for="dict in contrlFlag"
@ -57,7 +57,7 @@
</el-form-item>
</el-col>
<el-col :span="4" v-show="collapseVisible">
<el-form-item label="参数单位" prop="contrlType">
<el-form-item label="参数单位" prop="contrlType" label-width="auto">
<el-select v-model="queryParams.contrlType" placeholder="请选择参数单位" clearable>
<el-option
v-for="dict in dc_param_uint_type"
@ -69,7 +69,7 @@
</el-form-item>
</el-col>
<el-col :span="4" v-show="collapseVisible">
<el-form-item label="是否有效" prop="enabled">
<el-form-item label="是否有效" prop="enabled" label-width="auto">
<el-select v-model="queryParams.enabled" placeholder="请选择是否有效" clearable>
<el-option
v-for="dict in enabled"
@ -80,7 +80,7 @@
</el-form-item>
</el-col>
<el-col :span="4" v-show="collapseVisible">
<el-form-item label="设置值" prop="setDefautvalue">
<el-form-item label="设置值" prop="setDefautvalue" label-width="auto">
<el-input
v-model="queryParams.setDefautvalue"
placeholder="请输入设置值"
@ -90,7 +90,7 @@
</el-form-item>
</el-col>
<el-col :span="4" v-show="collapseVisible">
<el-form-item label="偏移量" prop="setAdjustvalue">
<el-form-item label="偏移量" prop="setAdjustvalue" label-width="auto">
<el-input
v-model="queryParams.setAdjustvalue"
placeholder="请输入偏移量"
@ -100,7 +100,7 @@
</el-form-item>
</el-col>
<el-col :span="4" v-show="collapseVisible">
<el-form-item label="参数模版" prop="paramModelId">
<el-form-item label="参数模版" prop="paramModelId" label-width="auto">
<el-select v-model="queryParams.paramModelId" placeholder="请选择参数模版" clearable>
<el-option
v-for="dict in paramClassList"
@ -111,7 +111,7 @@
</el-form-item>
</el-col>
<el-col :span="4" v-show="collapseVisible">
<el-form-item label="分区(字典)" prop="partion">
<el-form-item label="分区(字典)" prop="partion" label-width="auto">
<el-select v-model="queryParams.partion" placeholder="请选择分区(字典)" clearable>
<el-option
v-for="dict in dc_device_partion"
@ -123,7 +123,7 @@
</el-form-item>
</el-col>
<el-col :span="4" v-show="collapseVisible">
<el-form-item label="plc地址" prop="plcAdr">
<el-form-item label="plc地址" prop="plcAdr" label-width="auto">
<el-input
v-model="queryParams.plcAdr"
placeholder="请输入plc地址"
@ -133,7 +133,7 @@
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item class="childTextAlignCenter">
<el-form-item class="childTextAlignLeft">
<el-button type="primary" icon="Search" @click="handleQuery">搜索</el-button>
<el-button type="info" plain icon="Refresh" @click="resetQuery">重置</el-button>
<el-button @click="toggleCollapse">{{editName}}</el-button>

12
src/views/transerver/kingcodetransform/index.vue

@ -1,9 +1,9 @@
<template>
<div class="app-container">
<el-form :model="queryParams" ref="queryRef" :inline="true" v-show="showSearch" label-width="auto" class="my-custom-form">
<el-form :model="queryParams" ref="queryRef" :inline="true" v-show="showSearch" class="my-custom-form">
<el-row>
<el-col :span="4">
<el-form-item label="变量名称" prop="issVarName">
<el-form-item label="变量名称" prop="issVarName" label-width="auto">
<el-input
v-model="queryParams.issVarName"
placeholder="请输入变量名称"
@ -13,7 +13,7 @@
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="工程名称" prop="issPrjName">
<el-form-item label="工程名称" prop="issPrjName" label-width="auto">
<el-input
v-model="queryParams.issPrjName"
placeholder="请输入工程名称"
@ -23,7 +23,7 @@
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="中台设备号" prop="centerDeviceuuid">
<el-form-item label="中台设备号" prop="centerDeviceuuid" label-width="auto">
<el-input
v-model="queryParams.centerDeviceuuid"
placeholder="请输入中台设备号"
@ -33,7 +33,7 @@
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="中台参数码" prop="centerParamcode">
<el-form-item label="中台参数码" prop="centerParamcode" label-width="auto">
<el-input
v-model="queryParams.centerParamcode"
placeholder="请输入中台参数码"
@ -43,7 +43,7 @@
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item>
<el-form-item class="childTextAlignLeft">
<el-button type="primary" icon="Search" @click="handleQuery">搜索</el-button>
<el-button type="info" plain icon="Refresh" @click="resetQuery">重置</el-button>
</el-form-item>

30
src/views/transerver/viewConfig/index.vue

@ -1,9 +1,9 @@
<template>
<div class="app-container">
<el-form :model="queryParams" ref="queryRef" :inline="true" v-show="showSearch" label-width="100px" class="my-custom-form">
<el-form :model="queryParams" ref="queryRef" :inline="true" v-show="showSearch" class="my-custom-form">
<el-row>
<el-col :span="4">
<el-form-item label="模型编码" prop="colCode">
<el-form-item label="模型编码" prop="colCode" label-width="auto">
<el-input
v-model="queryParams.colCode"
placeholder="请输入模型编码"
@ -13,7 +13,7 @@
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="显示名称" prop="colName">
<el-form-item label="显示名称" prop="colName" label-width="auto">
<el-input
v-model="queryParams.colName"
placeholder="请输入显示名称"
@ -23,7 +23,7 @@
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="字段类型" prop="colType">
<el-form-item label="字段类型" prop="colType" label-width="auto">
<el-select v-model="queryParams.colType" placeholder="请选择字段类型" clearable>
<el-option
v-for="dict in dc_param_value_type"
@ -35,7 +35,7 @@
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="字段宽度" prop="colWidth">
<el-form-item label="字段宽度" prop="colWidth" label-width="auto">
<el-input
v-model="queryParams.colWidth"
placeholder="请输入字段宽度"
@ -45,7 +45,7 @@
</el-form-item>
</el-col>
<el-col :span="4" v-show="collapseVisible">
<el-form-item label="字段顺序" prop="colSort">
<el-form-item label="字段顺序" prop="colSort" label-width="auto">
<el-input
v-model="queryParams.colSort"
placeholder="请输入字段顺序"
@ -55,7 +55,7 @@
</el-form-item>
</el-col>
<el-col :span="4" v-show="collapseVisible">
<el-form-item label="显示状态" prop="flagVisible">
<el-form-item label="显示状态" prop="flagVisible" label-width="auto">
<el-select v-model="queryParams.flagVisible" placeholder="请选择是否显示" clearable>
<el-option
v-for="dict in dc_yes_no"
@ -67,7 +67,7 @@
</el-form-item>
</el-col>
<el-col :span="4" v-show="collapseVisible">
<el-form-item label="固定位置" prop="flagLocked">
<el-form-item label="固定位置" prop="flagLocked" label-width="auto">
<el-select v-model="queryParams.flagLocked" placeholder="请选择是否固定位置" clearable>
<el-option
v-for="dict in dc_yes_no"
@ -79,7 +79,7 @@
</el-form-item>
</el-col>
<el-col :span="4" v-show="collapseVisible">
<el-form-item label="是否可控" prop="flagControl">
<el-form-item label="是否可控" prop="flagControl" label-width="auto">
<el-select v-model="queryParams.flagControl" placeholder="请选择是否可控" clearable>
<el-option
v-for="dict in dc_yes_no"
@ -91,7 +91,7 @@
</el-form-item>
</el-col>
<el-col :span="4" v-show="collapseVisible">
<el-form-item label="控制类型" prop="controlType">
<el-form-item label="控制类型" prop="controlType" label-width="auto">
<el-select v-model="queryParams.controlType" placeholder="请选择控制类型" clearable>
<el-option
v-for="dict in dc_param_control_type"
@ -103,7 +103,7 @@
</el-form-item>
</el-col>
<el-col :span="4" v-show="collapseVisible">
<el-form-item label="控制标签地址" prop="controlAddress">
<el-form-item label="控制标签地址" prop="controlAddress" label-width="auto">
<el-input
v-model="queryParams.controlAddress"
placeholder="请输入控制标签地址"
@ -113,7 +113,7 @@
</el-form-item>
</el-col>
<el-col :span="4" v-show="collapseVisible">
<el-form-item label="默认写入值" prop="controlValue">
<el-form-item label="默认写入值" prop="controlValue" label-width="auto">
<el-input
v-model="queryParams.controlValue"
placeholder="请输入默认写入值"
@ -123,7 +123,7 @@
</el-form-item>
</el-col>
<el-col :span="4" v-show="collapseVisible">
<el-form-item label="一级标题" prop="groupTittle">
<el-form-item label="一级标题" prop="groupTittle" label-width="auto">
<el-input
v-model="queryParams.groupTittle"
placeholder="请输入一级标题"
@ -133,7 +133,7 @@
</el-form-item>
</el-col>
<el-col :span="4" v-show="collapseVisible">
<el-form-item label="视图表类别" prop="viewType">
<el-form-item label="视图表类别" prop="viewType" label-width="auto">
<el-select v-model="queryParams.viewType" placeholder="请选择视图表类别" clearable>
<el-option
v-for="dict in dc_param_value_type"
@ -145,7 +145,7 @@
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item class="childTextAlignRight">
<el-form-item class="childTextAlignLeft">
<el-button type="primary" icon="Search" @click="handleQuery">搜索</el-button>
<el-button type="info" plain icon="Refresh" @click="resetQuery">重置</el-button>
<el-button @click="toggleCollapse">{{editName}}</el-button>

Loading…
Cancel
Save