Browse Source

对照表界面提

develop
ljlong_2630 10 months ago
parent
commit
1d4599ecd7
  1. 53
      src/api/model/tbcodetransform.js
  2. 53
      src/api/model/tbserverinfo.js
  3. 13
      src/assets/styles/self-defined.scss
  4. 2
      src/views/bi/index.vue
  5. 4
      src/views/index1.vue
  6. 303
      src/views/model/tbcodetransform/index.vue
  7. 332
      src/views/model/tbserverinfo/index.vue
  8. 0
      src/views/model/viewdesgin/index.vue
  9. 2
      src/views/monitor/job/log.vue
  10. 2
      src/views/monitor/operlog/index.vue
  11. 2
      src/views/system/config/index.vue
  12. 2
      src/views/system/dict/data.vue
  13. 182
      src/views/transerver/kingcodetransform/index.vue

53
src/api/model/tbcodetransform.js

@ -0,0 +1,53 @@
import request from '@/utils/request'
// 查询TB变量转换列表
export function listTbcodetransform(query) {
return request({
url: '/model/dcBusiTbcodetransform/list',
method: 'get',
params: query
})
}
// 查询TB变量转换详细
export function getTbcodetransform(id) {
return request({
url: '/model/dcBusiTbcodetransform/' + id,
method: 'get'
})
}
// 新增TB变量转换
export function addTbcodetransform(data) {
return request({
url: '/model/dcBusiTbcodetransform',
method: 'post',
data: data
})
}
// 修改TB变量转换
export function updateTbcodetransform(data) {
return request({
url: '/model/dcBusiTbcodetransform',
method: 'put',
data: data
})
}
// 删除TB变量转换
export function delTbcodetransform(id) {
return request({
url: '/model/dcBusiTbcodetransform/' + id,
method: 'delete'
})
}
// 导出TB变量转换
export function exportTbcodetransform(query) {
return request({
url: '/${baseUrl}/export',
method: 'get',
params: query
})
}

53
src/api/model/tbserverinfo.js

@ -0,0 +1,53 @@
import request from '@/utils/request'
// 查询TB服务信息列表
export function listTbserverinfo(query) {
return request({
url: '/model/dcBusiServerinfo/list',
method: 'get',
params: query
})
}
// 查询TB服务信息详细
export function getTbserverinfo(id) {
return request({
url: '/model/dcBusiServerinfo/' + id,
method: 'get'
})
}
// 新增TB服务信息
export function addTbserverinfo(data) {
return request({
url: '/model/dcBusiServerinfo',
method: 'post',
data: data
})
}
// 修改TB服务信息
export function updateTbserverinfo(data) {
return request({
url: '/model/dcBusiServerinfo',
method: 'put',
data: data
})
}
// 删除TB服务信息
export function delTbserverinfo(id) {
return request({
url: '/model/dcBusiServerinfo/' + id,
method: 'delete'
})
}
// 导出TB服务信息
export function exportTbserverinfo(query) {
return request({
url: '/${baseUrl}/export',
method: 'get',
params: query
})
}

13
src/assets/styles/self-defined.scss

@ -219,18 +219,19 @@
margin-right: 5px; margin-right: 5px;
} }
} }
.paddingBothLeftRight{
>div{
padding: 0 20px;
}
}
.my-custom-form .el-form-item { .my-custom-form .el-form-item {
.el-select { .el-select {
width: 100%; width: 100%;
} }
margin-right: 0 !important; margin-right: 0 !important;
width: 96%; width: 96%;
} }
.paddingBothLeftRight{
>div{
padding: 0 20px;
}
}

2
src/views/bi/index.vue

@ -130,7 +130,7 @@
</div> </div>
</div> </div>
</div> </div>
<el-dialog v-model="show" title="显示项" draggable width="600" draggable> <el-dialog v-model="show" title="显示项" draggable width="600">
<div class="dialog-box"> <div class="dialog-box">
<el-tree :data="headerListDialog" ref="tree" show-checkbox node-key="id" draggable :props="defaultProps" <el-tree :data="headerListDialog" ref="tree" show-checkbox node-key="id" draggable :props="defaultProps"
@node-drop="nodeDrop" :allow-drag="allowDrag" :allow-drop="allowDrop" @check="check" :default-checked-keys="defaultCheckedKeys"> @node-drop="nodeDrop" :allow-drag="allowDrag" :allow-drop="allowDrop" @check="check" :default-checked-keys="defaultCheckedKeys">

4
src/views/index1.vue

@ -130,13 +130,13 @@
</div> </div>
</div> </div>
</div> </div>
<el-dialog v-model="show" title="显示项" draggable width="600" draggable> <el-dialog v-model="show" title="显示项" draggable width="600">
<div class="dialog-box"> <div class="dialog-box">
<el-tree :data="headerListDialog" ref="tree" show-checkbox node-key="id" draggable :props="defaultProps" <el-tree :data="headerListDialog" ref="tree" show-checkbox node-key="id" draggable :props="defaultProps"
@node-drop="nodeDrop" :allow-drag="allowDrag" :allow-drop="allowDrop" @check="check" :default-checked-keys="defaultCheckedKeys"> @node-drop="nodeDrop" :allow-drag="allowDrag" :allow-drop="allowDrop" @check="check" :default-checked-keys="defaultCheckedKeys">
<template #default="{ node, data }"> <template #default="{ node, data }">
<span class="custom-tree-node"> <span class="custom-tree-node">
<span style="width: 240px;">{{ data.name }}</span> <span style="width: 240px">{{ data.name }}</span>
</span> </span>
<div class="weight" v-if="!data.children"> <div class="weight" v-if="!data.children">
<span>宽度(px):</span> <span>宽度(px):</span>

303
src/views/model/tbcodetransform/index.vue

@ -0,0 +1,303 @@
<template>
<div class="app-container">
<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="TB设备UUID" prop="tbDeviceUuid" label-width="auto">
<el-input v-model="queryParams.tbDeviceUuid" placeholder="请输入TB设备UUID" clearable @keyup.enter="handleQuery" />
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="TB变量名称" prop="tbVarName" label-width="auto">
<el-input v-model="queryParams.tbVarName" placeholder="请输入TB变量名称" clearable @keyup.enter="handleQuery" />
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="TB服务id" prop="tbServiceId" label-width="auto">
<el-input v-model="queryParams.tbServiceId" placeholder="请输入TB服务id" clearable @keyup.enter="handleQuery" />
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="中台设备UUID" prop="centerDeviceuuid" label-width="auto">
<el-input v-model="queryParams.centerDeviceuuid" placeholder="请输入中台设备UUID" clearable
@keyup.enter="handleQuery" />
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="中台参数编码" prop="centerParamcode" label-width="auto">
<el-input v-model="queryParams.centerParamcode" placeholder="请输入中台参数编码" clearable
@keyup.enter="handleQuery" />
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="中台参数模版编码" prop="centerParamclass" label-width="auto">
<el-input v-model="queryParams.centerParamclass" placeholder="请输入中台参数模版编码" clearable
@keyup.enter="handleQuery" />
</el-form-item>
</el-col>
<el-col :span="4">
<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" :key="dict.value" :label="dict.label" :value="dict.value" />
</el-select>
</el-form-item>
</el-col>
<el-col :span="6">
<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">
<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 v-loading="loading" :data="tbcodetransformList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="TB设备UUID" align="center" prop="tbDeviceUuid" />
<el-table-column label="TB变量名称" align="center" prop="tbVarName" />
<el-table-column label="TB服务id" align="center" prop="tbServiceId" />
<el-table-column label="中台设备UUID" align="center" prop="centerDeviceuuid" />
<el-table-column label="中台参数编码" align="center" prop="centerParamcode" />
<el-table-column label="主键" align="center" prop="id" />
<el-table-column label="中台参数模版编码" align="center" prop="centerParamclass" />
<el-table-column label="分区" align="center" prop="partion">
<template #default="scope">
<dict-tag :options="dc_device_partion" :value="scope.row.partion" />
</template>
</el-table-column>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template #default="scope">
<el-button type="text" icon="Edit" @click="handleUpdate(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" />
<!-- 添加或修改TB变量转换对话框 -->
<el-dialog :title="title" v-model="open" width="800px" append-to-body>
<el-form ref="tbcodetransformRef" :model="form" :rules="rules" class="my-custom-form">
<el-row>
<el-col :span="12">
<el-form-item label="TB设备UUID" prop="tbDeviceUuid" label-width="auto">
<el-input v-model="form.tbDeviceUuid" placeholder="请输入TB设备UUID" />
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="TB变量名称" prop="tbVarName" label-width="auto">
<el-input v-model="form.tbVarName" placeholder="请输入TB变量名称" />
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="TB服务id" prop="tbServiceId" label-width="auto">
<el-input v-model="form.tbServiceId" placeholder="请输入TB服务id" />
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="中台设备UUID" prop="centerDeviceuuid" label-width="auto">
<el-input v-model="form.centerDeviceuuid" placeholder="请输入中台设备UUID" />
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="中台参数编码" prop="centerParamcode" label-width="auto">
<el-input v-model="form.centerParamcode" placeholder="请输入中台参数编码" />
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="中台参数模版编码" prop="centerParamclass" label-width="auto">
<el-input v-model="form.centerParamclass" placeholder="请输入中台参数模版编码" />
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="分区" prop="partion">
<el-select v-model="form.partion" placeholder="请选择分区" label-width="auto">
<el-option v-for="dict in dc_device_partion" :key="dict.value" :label="dict.label"
:value="dict.value"></el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
</el-form>
<template #footer>
<div class="dialog-footer">
<el-button type="primary" @click="submitForm"> </el-button>
<el-button @click="cancel"> </el-button>
</div>
</template>
</el-dialog>
</div>
</template>
<style lang="scss" >
@import "@/assets/styles/self-defined.scss";
</style>
<script setup name="Tbcodetransform">
import { listTbcodetransform, getTbcodetransform, delTbcodetransform, addTbcodetransform, updateTbcodetransform } from "@/api/model/tbcodetransform";
const { proxy } = getCurrentInstance();
const { dc_device_partion } = proxy.useDict('dc_device_partion');
const tbcodetransformList = ref([]);
const open = ref(false);
const loading = ref(true);
const showSearch = ref(true);
const ids = ref([]);
const single = ref(true);
const multiple = ref(true);
const total = ref(0);
const title = ref("");
const data = reactive({
form: {},
queryParams: {
pageNum: 1,
pageSize: 10,
tbDeviceUuid: null,
tbVarName: null,
tbServiceId: null,
centerDeviceuuid: null,
centerParamcode: null,
centerParamclass: null,
partion: null
},
rules: {
}
});
const { queryParams, form, rules } = toRefs(data);
/** 查询TB变量转换列表 */
function getList() {
loading.value = true;
listTbcodetransform(queryParams.value).then(response => {
tbcodetransformList.value = response.rows;
total.value = response.total;
loading.value = false;
});
}
//
function cancel() {
open.value = false;
reset();
}
//
function reset() {
form.value = {
tbDeviceUuid: null,
tbVarName: null,
tbServiceId: null,
centerDeviceuuid: null,
centerParamcode: null,
id: null,
centerParamclass: null,
partion: null
};
proxy.resetForm("tbcodetransformRef");
}
/** 搜索按钮操作 */
function handleQuery() {
queryParams.value.pageNum = 1;
getList();
}
/** 重置按钮操作 */
function resetQuery() {
proxy.resetForm("queryRef");
handleQuery();
}
//
function handleSelectionChange(selection) {
ids.value = selection.map(item => item.id);
single.value = selection.length != 1;
multiple.value = !selection.length;
}
/** 新增按钮操作 */
function handleAdd() {
reset();
open.value = true;
title.value = "添加TB变量转换";
}
/** 修改按钮操作 */
function handleUpdate(row) {
reset();
const _id = row.id || ids.value
getTbcodetransform(_id).then(response => {
form.value = response.data;
open.value = true;
title.value = "修改TB变量转换";
});
}
/** 提交按钮 */
function submitForm() {
proxy.$refs["tbcodetransformRef"].validate(valid => {
if (valid) {
if (form.value.id != null) {
updateTbcodetransform(form.value).then(response => {
proxy.$modal.msgSuccess("修改成功");
open.value = false;
getList();
});
} else {
addTbcodetransform(form.value).then(response => {
proxy.$modal.msgSuccess("新增成功");
open.value = false;
getList();
});
}
}
});
}
/** 删除按钮操作 */
function handleDelete(row) {
const _ids = row.id || ids.value;
proxy.$modal.confirm('是否确认删除TB变量转换编号为"' + _ids + '"的数据项?').then(function () {
return delTbcodetransform(_ids);
}).then(() => {
getList();
proxy.$modal.msgSuccess("删除成功");
}).catch(() => { });
}
/** 导出按钮操作 */
function handleExport() {
proxy.download('model/dcBusiTbcodetransform/export', {
...queryParams.value
}, `tbcodetransform_${new Date().getTime()}.xlsx`)
}
getList();
</script>

332
src/views/model/tbserverinfo/index.vue

@ -0,0 +1,332 @@
<template>
<div class="app-container">
<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="userName" label-width="auto">
<el-input v-model="queryParams.userName" placeholder="请输入用户名" clearable @keyup.enter="handleQuery" />
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="密码" prop="passWord" label-width="auto">
<el-input v-model="queryParams.passWord" placeholder="请输入密码" clearable @keyup.enter="handleQuery" />
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="IP地址" prop="restUrl" label-width="auto">
<el-input v-model="queryParams.restUrl" placeholder="请输入IP地址" clearable @keyup.enter="handleQuery" />
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="端口号" prop="restPort" label-width="auto">
<el-input v-model="queryParams.restPort" placeholder="请输入端口号" clearable @keyup.enter="handleQuery" />
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="是否可用" prop="enabled" label-width="auto">
<el-select v-model="queryParams.enabled" placeholder="请选择是否可用" clearable>
<el-option v-for="dict in enabled" :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="seviceName" label-width="auto">
<el-input v-model="queryParams.seviceName" placeholder="请输入服务名" clearable @keyup.enter="handleQuery" />
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="备注" prop="note" label-width="auto">
<el-input v-model="queryParams.note" placeholder="请输入备注" clearable @keyup.enter="handleQuery" />
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="服务类型" prop="seviceType" label-width="auto">
<el-select v-model="queryParams.seviceType" placeholder="请选择服务类型" clearable>
<el-option v-for="dict in dc_collectserver_type" :key="dict.value" :label="dict.label" :value="dict.value" />
</el-select>
</el-form-item>
</el-col>
<el-col :span="6">
<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">
<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 v-loading="loading" :data="tbserverinfoList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="用户名" align="center" prop="userName" />
<el-table-column label="密码" align="center" prop="passWord" />
<el-table-column label="IP地址" align="center" prop="restUrl" />
<el-table-column label="端口号" align="center" prop="restPort" />
<el-table-column label="是否可用" align="center" prop="enabled" >
<template #default="scope">
<dict-tag :options="enabledTable" :value="scope.row.enabled" />
</template>
</el-table-column>
<el-table-column label="服务名" align="center" prop="seviceName" />
<el-table-column label="备注" align="center" prop="note" />
<el-table-column label="主键" align="center" prop="id" />
<el-table-column label="服务类型" align="center" prop="seviceType" >
<template #default="scope">
<dict-tag :options="dc_collectserver_type" :value="scope.row.seviceType" />
</template>
</el-table-column>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template #default="scope">
<el-button type="text" icon="Edit" @click="handleUpdate(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" />
<!-- 添加或修改TB服务信息对话框 -->
<el-dialog :title="title" v-model="open" width="800px" append-to-body>
<el-form ref="tbserverinfoRef" :model="form" :rules="rules" class="my-custom-form">
<el-row>
<el-col :span="12">
<el-form-item label="用户名" prop="userName" label-width="auto">
<el-input v-model="form.userName" placeholder="请输入用户名" />
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="密码" prop="passWord" label-width="auto">
<el-input v-model="form.passWord" placeholder="请输入密码" />
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="IP地址" prop="restUrl" label-width="auto">
<el-input v-model="form.restUrl" placeholder="请输入IP地址" />
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="端口号" prop="restPort" label-width="auto">
<el-input v-model="form.restPort" placeholder="请输入端口号" />
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="是否可用" prop="enabled" label-width="auto">
<el-select v-model="form.enabled" placeholder="请选择是否可用">
<el-option v-for="dict in enabled" :key="dict.value" :label="dict.label" :value="dict.value" />
</el-select>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="服务名" prop="seviceName" label-width="auto">
<el-input v-model="form.seviceName" placeholder="请输入服务名" />
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="备注" prop="note" label-width="auto">
<el-input v-model="form.note" placeholder="请输入备注" />
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="服务类型" prop="seviceType" label-width="auto">
<el-select v-model="form.seviceType" placeholder="请选择服务类型">
<el-option v-for="dict in dc_collectserver_type" :key="dict.value" :label="dict.label" :value="dict.value" />
</el-select>
</el-form-item>
</el-col>
</el-row>
</el-form>
<template #footer>
<div class="dialog-footer">
<el-button type="primary" @click="submitForm"> </el-button>
<el-button @click="cancel"> </el-button>
</div>
</template>
</el-dialog>
</div>
</template>
<style lang="scss" >
@import "@/assets/styles/self-defined.scss";
</style>
<script setup name="Tbserverinfo">
import { listTbserverinfo, getTbserverinfo, delTbserverinfo, addTbserverinfo, updateTbserverinfo } from "@/api/model/tbserverinfo";
const { proxy } = getCurrentInstance();
const { dc_collectserver_type } = proxy.useDict('dc_collectserver_type');
const tbserverinfoList = ref([]);
const open = ref(false);
const loading = ref(true);
const showSearch = ref(true);
const ids = ref([]);
const single = ref(true);
const multiple = ref(true);
const total = ref(0);
const title = ref("");
const enabled = [
{
value: true,
label: '是'
},
{
value: false,
label: '否'
}
];
const enabledTable = [
{
value: 'true',
label: '是'
},
{
value: 'false',
label: '否'
}
];
const data = reactive({
form: {},
queryParams: {
pageNum: 1,
pageSize: 10,
userName: null,
passWord: null,
restUrl: null,
restPort: null,
enabled: true,
seviceName: null,
note: null,
seviceType: null
},
rules: {
}
});
const { queryParams, form, rules } = toRefs(data);
/** 查询TB服务信息列表 */
function getList() {
loading.value = true;
listTbserverinfo(queryParams.value).then(response => {
tbserverinfoList.value = response.rows;
total.value = response.total;
loading.value = false;
});
}
//
function cancel() {
open.value = false;
reset();
}
//
function reset() {
form.value = {
userName: null,
passWord: null,
restUrl: null,
restPort: null,
enabled: null,
seviceName: null,
note: null,
id: null,
seviceType: null
};
proxy.resetForm("tbserverinfoRef");
}
/** 搜索按钮操作 */
function handleQuery() {
queryParams.value.pageNum = 1;
getList();
}
/** 重置按钮操作 */
function resetQuery() {
proxy.resetForm("queryRef");
handleQuery();
}
//
function handleSelectionChange(selection) {
ids.value = selection.map(item => item.id);
single.value = selection.length != 1;
multiple.value = !selection.length;
}
/** 新增按钮操作 */
function handleAdd() {
reset();
open.value = true;
title.value = "添加TB服务信息";
}
/** 修改按钮操作 */
function handleUpdate(row) {
reset();
const _id = row.id || ids.value
getTbserverinfo(_id).then(response => {
form.value = response.data;
open.value = true;
title.value = "修改TB服务信息";
});
}
/** 提交按钮 */
function submitForm() {
proxy.$refs["tbserverinfoRef"].validate(valid => {
if (valid) {
if (form.value.id != null) {
updateTbserverinfo(form.value).then(response => {
proxy.$modal.msgSuccess("修改成功");
open.value = false;
getList();
});
} else {
addTbserverinfo(form.value).then(response => {
proxy.$modal.msgSuccess("新增成功");
open.value = false;
getList();
});
}
}
});
}
/** 删除按钮操作 */
function handleDelete(row) {
debugger
const _ids = row.id || ids.value;
proxy.$modal.confirm('是否确认删除TB服务信息编号为"' + _ids + '"的数据项?').then(function () {
return delTbserverinfo(_ids);
}).then(() => {
getList();
proxy.$modal.msgSuccess("删除成功");
}).catch(() => { });
}
/** 导出按钮操作 */
function handleExport() {
proxy.download('model/dcBusiServerinfo/export', {
...queryParams.value
}, `tbserverinfo_${new Date().getTime()}.xlsx`)
}
getList();
</script>

0
src/views/model/viewdesgin/index.vue

2
src/views/monitor/job/log.vue

@ -130,7 +130,7 @@
/> />
<!-- 调度日志详细 --> <!-- 调度日志详细 -->
<el-dialog title="调度日志详细" v-model="open" width="700px" append-to-body> <el-dialog title="调度日志详细" v-model="open" width="700px" append-to-body draggable>
<el-form :model="form" label-width="100px"> <el-form :model="form" label-width="100px">
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">

2
src/views/monitor/operlog/index.vue

@ -137,7 +137,7 @@
/> />
<!-- 操作日志详细 --> <!-- 操作日志详细 -->
<el-dialog title="操作日志详细" v-model="open" width="700px" append-to-body> <el-dialog title="操作日志详细" v-model="open" width="700px" append-to-body draggable>
<el-form :model="form" label-width="100px"> <el-form :model="form" label-width="100px">
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">

2
src/views/system/config/index.vue

@ -125,7 +125,7 @@
/> />
<!-- 添加或修改参数配置对话框 --> <!-- 添加或修改参数配置对话框 -->
<el-dialog :title="title" v-model="open" width="500px" append-to-body> <el-dialog :title="title" v-model="open" width="500px" append-to-body draggable>
<el-form ref="configRef" :model="form" :rules="rules" label-width="80px"> <el-form ref="configRef" :model="form" :rules="rules" label-width="80px">
<el-form-item label="参数名称" prop="configName"> <el-form-item label="参数名称" prop="configName">
<el-input v-model="form.configName" placeholder="请输入参数名称" /> <el-input v-model="form.configName" placeholder="请输入参数名称" />

2
src/views/system/dict/data.vue

@ -121,7 +121,7 @@
/> />
<!-- 添加或修改参数配置对话框 --> <!-- 添加或修改参数配置对话框 -->
<el-dialog :title="title" v-model="open" width="500px" append-to-body> <el-dialog :title="title" v-model="open" width="500px" append-to-body draggable>
<el-form ref="dataRef" :model="form" :rules="rules" label-width="80px"> <el-form ref="dataRef" :model="form" :rules="rules" label-width="80px">
<el-form-item label="字典类型"> <el-form-item label="字典类型">
<el-input v-model="form.dictType" :disabled="true" /> <el-input v-model="form.dictType" :disabled="true" />

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

@ -4,91 +4,85 @@
<el-row> <el-row>
<el-col :span="4"> <el-col :span="4">
<el-form-item label="变量名称" prop="issVarName" label-width="auto"> <el-form-item label="变量名称" prop="issVarName" label-width="auto">
<el-input <el-input v-model="queryParams.issVarName" placeholder="请输入变量名称" clearable @keyup.enter="handleQuery" />
v-model="queryParams.issVarName"
placeholder="请输入变量名称"
clearable
@keyup.enter="handleQuery"
/>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="4"> <el-col :span="4">
<el-form-item label="工程名称" prop="issPrjName" label-width="auto"> <el-form-item label="工程名称" prop="issPrjName" label-width="auto">
<el-input <el-input v-model="queryParams.issPrjName" placeholder="请输入工程名称" clearable @keyup.enter="handleQuery" />
v-model="queryParams.issPrjName"
placeholder="请输入工程名称"
clearable
@keyup.enter="handleQuery"
/>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="4"> <el-col :span="4">
<el-form-item label="中台设备号" prop="centerDeviceuuid" label-width="auto"> <el-form-item label="中台设备号" prop="centerDeviceuuid" label-width="auto">
<el-input <el-input v-model="queryParams.centerDeviceuuid" placeholder="请输入中台设备号" clearable
v-model="queryParams.centerDeviceuuid" @keyup.enter="handleQuery" />
placeholder="请输入中台设备号"
clearable
@keyup.enter="handleQuery"
/>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="4"> <el-col :span="4">
<el-form-item label="中台参数码" prop="centerParamcode" label-width="auto"> <el-form-item label="中台参数码" prop="centerParamcode" label-width="auto">
<el-input <el-input v-model="queryParams.centerParamcode" placeholder="请输入中台参数码" clearable @keyup.enter="handleQuery" />
v-model="queryParams.centerParamcode"
placeholder="请输入中台参数码"
clearable
@keyup.enter="handleQuery"
/>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="4"> <el-col :span="4">
<el-form-item label="ISSRest地址" prop="issResturl" label-width="auto">
<el-input v-model="queryParams.issResturl" placeholder="请输入ISSRest地址" clearable @keyup.enter="handleQuery" />
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="ISSRest端口号" prop="issRestport" label-width="auto">
<el-input v-model="queryParams.issRestport" placeholder="请输入ISSRest端口号" clearable
@keyup.enter="handleQuery" />
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="分区" prop="partion" label-width="auto">
<el-input v-model="queryParams.partion" placeholder="请输入分区" clearable @keyup.enter="handleQuery" />
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="temp" prop="temp">
<el-input v-model="queryParams.temp" placeholder="请输入temp" clearable @keyup.enter="handleQuery" />
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="参数模版编码" prop="centerParamclass" label-width="auto">
<el-input v-model="queryParams.centerParamclass" placeholder="请输入参数模版编码" clearable
@keyup.enter="handleQuery" />
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="服务配置ID" prop="issServerconfid" label-width="auto">
<el-input v-model="queryParams.issServerconfid" placeholder="请输入服务配置ID" clearable
@keyup.enter="handleQuery" />
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item class="childTextAlignLeft"> <el-form-item class="childTextAlignLeft">
<el-button type="primary" icon="Search" @click="handleQuery">搜索</el-button> <el-button type="primary" icon="Search" @click="handleQuery">搜索</el-button>
<el-button type="info" plain icon="Refresh" @click="resetQuery">重置</el-button> <el-button type="info" plain icon="Refresh" @click="resetQuery">重置</el-button>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
</el-form> </el-form>
<el-row :gutter="10" class="mb8"> <el-row :gutter="10" class="mb8">
<el-col :span="1.5"> <el-col :span="1.5">
<el-button <el-button type="success" icon="Plus" @click="handleAdd">新增</el-button>
type="success"
icon="Plus"
@click="handleAdd"
>新增</el-button>
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5">
<el-button <el-button type="success" icon="Edit" @click="handleUpdate">修改</el-button>
type="success"
icon="Edit"
@click="handleUpdate"
>修改</el-button>
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5">
<el-button <el-button type="success" icon="Delete" @click="handleDelete">删除</el-button>
type="success"
icon="Delete"
@click="handleDelete"
>删除</el-button>
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5">
<el-button <el-button type="warning" icon="Download" @click="handleExport">导出</el-button>
type="warning"
icon="Download"
@click="handleExport"
>导出</el-button>
</el-col> </el-col>
<right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar> <right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar>
</el-row> </el-row>
<el-table v-loading="loading" :data="kingcodetransformList" @selection-change="handleSelectionChange" :max-height="tableHeight" :border="true" :column-width-draggable="true"> <el-table v-loading="loading" :data="kingcodetransformList" @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 type="selection" width="55" align="center" fixed="left" />
<el-table-column label="主键" align="center" prop="id" /> <el-table-column label="主键" align="center" prop="id" />
<el-table-column label="工程名称" align="center" prop="issPrjName" /> <el-table-column label="工程名称" align="center" prop="issPrjName" />
@ -103,87 +97,110 @@
</el-table-column> </el-table-column>
<el-table-column label="中台设备" align="center" prop="centerDeviceuuid" /> <el-table-column label="中台设备" align="center" prop="centerDeviceuuid" />
<el-table-column label="中台参数" align="center" prop="centerParamcode" /> <el-table-column label="中台参数" align="center" prop="centerParamcode" />
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" :width="300" :fixed="fixedColumns?'right':false"> <el-table-column label="ISSRest地址" align="center" prop="issResturl" />
<el-table-column label="主键" align="center" prop="id" />
<el-table-column label="ISSRest端口号" align="center" prop="issRestport" />
<el-table-column label="分区" align="center" prop="partion" />
<el-table-column label="temp" align="center" prop="temp" />
<el-table-column label="参数模版编码" align="center" prop="centerParamclass" />
<el-table-column label="服务配置ID" align="center" prop="issServerconfid" />
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" :width="300"
:fixed="fixedColumns ? 'right' : false">
<template #header> <template #header>
<div class="fixed-column-header" style="text-align: center;display: block;" @dblclick="toggleFixedColumns"> <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> <span style="text-align: center;display: block;">操作<img style="width:10px;margin-left:5px"
v-show="fixedColumns" :src="lock" alt="Image" /></span>
</div> </div>
</template> </template>
<template #default="scope"> <template #default="scope">
<el-button <el-button type="text" icon="Edit" @click="handleUpdate(scope.row)">修改</el-button>
type="text" <el-button type="text" icon="Delete" @click="handleDelete(scope.row)">删除</el-button>
icon="Edit"
@click="handleUpdate(scope.row)"
>修改</el-button>
<el-button
type="text"
icon="Delete"
@click="handleDelete(scope.row)"
>删除</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<pagination <pagination v-show="total > 0" :total="total" v-model:page="queryParams.pageNum" v-model:limit="queryParams.pageSize"
v-show="total>0" @pagination="getList" class="paddingBothLeftRight" />
:total="total"
v-model:page="queryParams.pageNum"
v-model:limit="queryParams.pageSize"
@pagination="getList"
class="paddingBothLeftRight"
/>
<!-- 添加或修改IOServer变量转换对话框 --> <!-- 添加或修改IOServer变量转换对话框 -->
<el-dialog :title="title" v-model="open" width="800px" append-to-body draggable> <el-dialog :title="title" v-model="open" width="800px" append-to-body draggable>
<el-form ref="kingcodetransformRef" :model="form" :rules="rules" label-width="140px"> <el-form ref="kingcodetransformRef" :model="form" :rules="rules" label-width="140px">
<el-row> <el-row>
<el-col :span="24"> <el-col :span="12">
<el-form-item label="工程名称" width="150" prop="issPrjName"> <el-form-item label="工程名称" width="150" prop="issPrjName">
<el-input v-model="form.issPrjName" placeholder="请输入工程名称" required="true" /> <el-input v-model="form.issPrjName" placeholder="请输入工程名称" required="true" />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="24"> <el-col :span="12">
<el-form-item label="服务地址" prop="issResturl"> <el-form-item label="服务地址" prop="issResturl">
<el-input v-model="form.issResturl" placeholder="请输入服务地址" /> <el-input v-model="form.issResturl" placeholder="请输入服务地址" />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="24"> <el-col :span="12">
<el-form-item label="服务端口号" prop="issRestport"> <el-form-item label="服务端口号" prop="issRestport">
<el-input v-model="form.issRestport" placeholder="请输入服务端口号" /> <el-input v-model="form.issRestport" placeholder="请输入服务端口号" />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="24"> <el-col :span="12">
<el-form-item label="变量名称" prop="issVarName"> <el-form-item label="变量名称" prop="issVarName">
<el-input v-model="form.issVarName" placeholder="请输入变量名称" required="true" /> <el-input v-model="form.issVarName" placeholder="请输入变量名称" required="true" />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="24"> <el-col :span="12">
<el-form-item label="变量类型" prop="issVarType"> <el-form-item label="变量类型" prop="issVarType">
<el-select v-model="form.issVarType" placeholder="请选择变量类型"> <el-select v-model="form.issVarType" placeholder="请选择变量类型">
<el-option v-for="dict in dc_param_value_type" <el-option v-for="dict in dc_param_value_type" :key="dict.value" :label="dict.label"
:key="dict.value"
:label="dict.label"
:value="dict.value" /> :value="dict.value" />
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="24"> <el-col :span="12">
<el-form-item label="组名称" prop="issGroupName"> <el-form-item label="组名称" prop="issGroupName">
<el-input v-model="form.issGroupName" placeholder="请输入组名称" /> <el-input v-model="form.issGroupName" placeholder="请输入组名称" />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="24"> <el-col :span="12">
<el-form-item label="中台设备号" prop="centerDeviceuuid"> <el-form-item label="中台设备号" prop="centerDeviceuuid">
<el-input v-model="form.centerDeviceuuid" placeholder="请输入中台设备号" /> <el-input v-model="form.centerDeviceuuid" placeholder="请输入中台设备号" />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="24"> <el-col :span="12">
<el-form-item label="中台参数码" prop="centerParamcode"> <el-form-item label="中台参数码" prop="centerParamcode">
<el-input v-model="form.centerParamcode" placeholder="请输入中台参数码" /> <el-input v-model="form.centerParamcode" placeholder="请输入中台参数码" />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12">
<el-form-item label="ISSRest地址" prop="issResturl">
<el-input v-model="form.issResturl" placeholder="请输入ISSRest地址" />
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="ISSRest端口号" prop="issRestport">
<el-input v-model="form.issRestport" placeholder="请输入ISSRest端口号" />
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="分区" prop="partion">
<el-input v-model="form.partion" placeholder="请输入分区" />
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="temp" prop="temp">
<el-input v-model="form.temp" placeholder="请输入temp" />
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="参数模版编码" prop="centerParamclass">
<el-input v-model="form.centerParamclass" placeholder="请输入参数模版编码" />
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="服务配置ID" prop="issServerconfid">
<el-input v-model="form.issServerconfid" placeholder="请输入服务配置ID" />
</el-form-item>
</el-col>
</el-row> </el-row>
</el-form> </el-form>
<template #footer> <template #footer>
@ -195,8 +212,7 @@
</el-dialog> </el-dialog>
</div> </div>
</template> </template>
<style lang="scss" > <style lang="scss" > @import "@/assets/styles/self-defined.scss";
@import "@/assets/styles/self-defined.scss";
</style> </style>
<script setup name="Kingcodetransform"> <script setup name="Kingcodetransform">
import { listKingcodetransform, getKingcodetransform, delKingcodetransform, addKingcodetransform, updateKingcodetransform } from "@/api/transerver/kingcodetransform"; import { listKingcodetransform, getKingcodetransform, delKingcodetransform, addKingcodetransform, updateKingcodetransform } from "@/api/transerver/kingcodetransform";

Loading…
Cancel
Save