设备基础信息管理列表

dev
ccongli 2 years ago
parent a3bf46918a
commit 23efc65bad

@ -0,0 +1,245 @@
<template>
<a-card :bordered="false">
<!-- 查询区域 -->
<div class="table-page-search-wrapper">
<a-form layout="inline" @keyup.enter.native="searchQuery">
<a-row :gutter="24">
<a-col :xl="6" :lg="7" :md="8" :sm="24">
<a-form-item label="设备类型">
<j-dict-select-tag placeholder="请选择设备类型" v-model="queryParam.eqtType" dictCode="eqttype"/>
</a-form-item>
</a-col>
<a-col :xl="6" :lg="7" :md="8" :sm="24">
<a-form-item label="设备IP地址">
<a-input placeholder="IP地址" v-model="queryParam.eqtIp"></a-input>
</a-form-item>
</a-col>
<template v-if="toggleSearchStatus">
<a-col :xl="6" :lg="7" :md="8" :sm="24">
<a-form-item label="设备编号">
<a-input placeholder="请输入设备编号" v-model="queryParam.eqtNo"></a-input>
</a-form-item>
</a-col>
<a-col :xl="6" :lg="7" :md="8" :sm="24">
<a-form-item label="设备状态">
<j-dict-select-tag placeholder="请选择设备状态" v-model="queryParam.eqtStatus" dictCode="eqtstatus"/>
</a-form-item>
</a-col>
</template>
<a-col :xl="6" :lg="7" :md="8" :sm="24">
<span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
<a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
<a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
<a @click="handleToggleSearch" style="margin-left: 8px">
{{ toggleSearchStatus ? '收起' : '展开' }}
<a-icon :type="toggleSearchStatus ? 'up' : 'down'"/>
</a>
</span>
</a-col>
</a-row>
</a-form>
</div>
<!-- 查询区域-END -->
<!-- 操作按钮区域 -->
<div class="table-operator">
<a-button @click="handleAdd" type="primary" icon="plus">新增</a-button>
<a-button type="primary" icon="download" @click="handleExportXls('tt_eqt_base')"></a-button>
<a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
<a-button type="primary" icon="import">导入</a-button>
</a-upload>
<!-- 高级查询区域 -->
<j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query>
<a-dropdown v-if="selectedRowKeys.length > 0">
<a-menu slot="overlay">
<a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
</a-menu>
<a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button>
</a-dropdown>
</div>
<!-- table区域-begin -->
<div>
<div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">
<i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a style="font-weight: 600">{{ selectedRowKeys.length }}</a>
<a style="margin-left: 24px" @click="onClearSelected"></a>
</div>
<a-table
ref="table"
size="middle"
:scroll="{x:true}"
bordered
rowKey="id"
:columns="columns"
:dataSource="dataSource"
:pagination="ipagination"
:loading="loading"
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
class="j-table-force-nowrap"
@change="handleTableChange">
<template slot="htmlSlot" slot-scope="text">
<div v-html="text"></div>
</template>
<template slot="imgSlot" slot-scope="text,record">
<span v-if="!text" style="font-size: 12px;font-style: italic;"></span>
<img v-else :src="getImgView(text)" :preview="record.id" height="25px" alt="" style="max-width:80px;font-size: 12px;font-style: italic;"/>
</template>
<template slot="fileSlot" slot-scope="text">
<span v-if="!text" style="font-size: 12px;font-style: italic;"></span>
<a-button
v-else
:ghost="true"
type="primary"
icon="download"
size="small"
@click="downloadFile(text)">
下载
</a-button>
</template>
<span slot="action" slot-scope="text, record">
<a @click="handleEdit(record)"></a>
<a-divider type="vertical" />
<a-dropdown>
<a class="ant-dropdown-link">更多 <a-icon type="down" /></a>
<a-menu slot="overlay">
<a-menu-item>
<a @click="handleDetail(record)"></a>
</a-menu-item>
<a-menu-item>
<a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
<a>删除</a>
</a-popconfirm>
</a-menu-item>
</a-menu>
</a-dropdown>
</span>
</a-table>
</div>
<tt-eqt-base-modal ref="modalForm" @ok="modalFormOk"></tt-eqt-base-modal>
</a-card>
</template>
<script>
import '@/assets/less/TableExpand.less'
import { mixinDevice } from '@/utils/mixin'
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
import TtEqtBaseModal from './modules/TtEqtBaseModal'
import {filterMultiDictText} from '@/components/dict/JDictSelectUtil'
export default {
name: 'TtEqtBaseList',
mixins:[JeecgListMixin, mixinDevice],
components: {
TtEqtBaseModal
},
data () {
return {
description: '设备基础信息管理页面',
//
columns: [
{
title: '#',
dataIndex: '',
key:'rowIndex',
width:60,
align:"center",
customRender:function (t,r,index) {
return parseInt(index)+1;
}
},
{
title:'设备编号',
align:"center",
dataIndex: 'eqtNo'
},
{
title:'设备IP',
align:"center",
dataIndex: 'eqtIp'
},
{
title:'设备供应商名称',
align:"center",
dataIndex: 'eqtSupplier'
},
{
title:'设备类型',
align:"center",
dataIndex: 'eqtType_dictText'
},
{
title:'设备位置',
align:"center",
dataIndex: 'location'
},
{
title:'设备名称',
align:"center",
dataIndex: 'descr'
},
{
title:'设备状态',
align:"center",
dataIndex: 'eqtStatus_dictText'
},
{
title:'设备最近7天利用率',
align:"center",
dataIndex: 'utilizeRate'
},
{
title: '操作',
dataIndex: 'action',
align:"center",
fixed:"right",
width:147,
scopedSlots: { customRender: 'action' }
}
],
url: {
list: "/shebei/ttEqtBase/list",
delete: "/shebei/ttEqtBase/delete",
deleteBatch: "/shebei/ttEqtBase/deleteBatch",
exportXlsUrl: "/shebei/ttEqtBase/exportXls",
importExcelUrl: "shebei/ttEqtBase/importExcel",
},
dictOptions:{},
superFieldList:[],
}
},
created() {
this.getSuperFieldList();
},
computed: {
importExcelUrl: function(){
return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
},
},
methods: {
initDictConfig(){
},
getSuperFieldList(){
let fieldList=[];
fieldList.push({type:'string',value:'eqtNo',text:'设备编号',dictCode:''})
fieldList.push({type:'string',value:'eqtIp',text:'设备IP',dictCode:''})
fieldList.push({type:'string',value:'eqtSupplier',text:'设备供应商名称',dictCode:''})
fieldList.push({type:'int',value:'eqtType',text:'设备类型',dictCode:'eqttype'})
fieldList.push({type:'string',value:'location',text:'设备位置',dictCode:''})
fieldList.push({type:'string',value:'descr',text:'设备名称',dictCode:''})
fieldList.push({type:'int',value:'eqtStatus',text:'设备状态',dictCode:'eqtstatus'})
fieldList.push({type:'BigDecimal',value:'utilizeRate',text:'设备最近7天利用率',dictCode:''})
this.superFieldList = fieldList
}
}
}
</script>
<style scoped>
@import '~@assets/less/common.less';
</style>

@ -0,0 +1,26 @@
-- 注意该页面对应的前台目录为views/shebei文件夹下
-- 如果你想更改到其他目录请修改sql中component字段对应的值
INSERT INTO sys_permission(id, parent_id, name, url, component, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_route, is_leaf, keep_alive, hidden, hide_tab, description, status, del_flag, rule_flag, create_by, create_time, update_by, update_time, internal_or_external)
VALUES ('2023041702522830060', NULL, 'tt_eqt_base', '/shebei/ttEqtBaseList', 'shebei/TtEqtBaseList', NULL, NULL, 0, NULL, '1', 0.00, 0, NULL, 1, 0, 0, 0, 0, NULL, '1', 0, 0, 'admin', '2023-04-17 14:52:06', NULL, NULL, 0);
-- 权限控制sql
-- 新增
INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external)
VALUES ('2023041702522830061', '2023041702522830060', '添加tt_eqt_base', NULL, NULL, 0, NULL, NULL, 2, 'shebei:tt_eqt_base:add', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-04-17 14:52:06', NULL, NULL, 0, 0, '1', 0);
-- 编辑
INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external)
VALUES ('2023041702522830062', '2023041702522830060', '编辑tt_eqt_base', NULL, NULL, 0, NULL, NULL, 2, 'shebei:tt_eqt_base:edit', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-04-17 14:52:06', NULL, NULL, 0, 0, '1', 0);
-- 删除
INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external)
VALUES ('2023041702522830063', '2023041702522830060', '删除tt_eqt_base', NULL, NULL, 0, NULL, NULL, 2, 'shebei:tt_eqt_base:delete', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-04-17 14:52:06', NULL, NULL, 0, 0, '1', 0);
-- 批量删除
INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external)
VALUES ('2023041702522830064', '2023041702522830060', '批量删除tt_eqt_base', NULL, NULL, 0, NULL, NULL, 2, 'shebei:tt_eqt_base:deleteBatch', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-04-17 14:52:06', NULL, NULL, 0, 0, '1', 0);
-- 导出excel
INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external)
VALUES ('2023041702522830065', '2023041702522830060', '导出excel_tt_eqt_base', NULL, NULL, 0, NULL, NULL, 2, 'shebei:tt_eqt_base:exportXls', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-04-17 14:52:06', NULL, NULL, 0, 0, '1', 0);
-- 导入excel
INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external)
VALUES ('2023041702522830066', '2023041702522830060', '导入excel_tt_eqt_base', NULL, NULL, 0, NULL, NULL, 2, 'shebei:tt_eqt_base:importExcel', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-04-17 14:52:06', NULL, NULL, 0, 0, '1', 0);

@ -0,0 +1,148 @@
<template>
<a-spin :spinning="confirmLoading">
<j-form-container :disabled="formDisabled">
<a-form-model ref="form" :model="model" :rules="validatorRules" slot="detail">
<a-row>
<a-col :span="24">
<a-form-model-item label="设备名称" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="descr">
<a-input v-model="model.descr" placeholder="请输入设备名称" ></a-input>
</a-form-model-item>
</a-col>
<a-col :span="24">
<a-form-model-item label="设备编号" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="eqtNo">
<a-input v-model="model.eqtNo" placeholder="请输入设备编号" ></a-input>
</a-form-model-item>
</a-col>
<a-col :span="24">
<a-form-model-item label="IP地址" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="eqtIp">
<a-input v-model="model.eqtIp" placeholder="请输入用于采集设备的IP地址" ></a-input>
</a-form-model-item>
</a-col>
<a-col :span="24">
<a-form-model-item label="设备供应商名称" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="eqtSupplier">
<a-input v-model="model.eqtSupplier" placeholder="请输入设备供应商名称" ></a-input>
</a-form-model-item>
</a-col>
<a-col :span="24">
<a-form-model-item label="设备类型" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="eqtType">
<j-dict-select-tag type="list" v-model="model.eqtType" dictCode="eqttype" placeholder="请选择设备类型" />
</a-form-model-item>
</a-col>
<a-col :span="24">
<a-form-model-item label="设备位置" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="location">
<a-input v-model="model.location" placeholder="请输入设备位置"></a-input>
</a-form-model-item>
</a-col>
<a-col :span="24">
<a-form-model-item label="设备状态" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="eqtStatus">
<j-dict-select-tag type="list" v-model="model.eqtStatus" dictCode="eqtstatus" placeholder="请选择设备状态" />
</a-form-model-item>
</a-col>
<a-col :span="24">
<a-form-model-item label="利用率" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="utilizeRate">
<a-input-number v-model="model.utilizeRate" placeholder="请输入设备最近7天利用率" style="width: 100%" />
</a-form-model-item>
</a-col>
</a-row>
</a-form-model>
</j-form-container>
</a-spin>
</template>
<script>
import { httpAction, getAction } from '@/api/manage'
import { validateDuplicateValue } from '@/utils/util'
export default {
name: 'TtEqtBaseForm',
components: {
},
props: {
//
disabled: {
type: Boolean,
default: false,
required: false
}
},
data () {
return {
model:{
},
labelCol: {
xs: { span: 24 },
sm: { span: 5 },
},
wrapperCol: {
xs: { span: 24 },
sm: { span: 16 },
},
confirmLoading: false,
validatorRules: {
eqtNo: [
{ required: true, message: '请输入设备编号!'},
],
eqtType: [
{ required: true, message: '请输入设备类型'},
],
eqtStatus: [
{ required: true, message: '请输入设备状态'},
],
},
url: {
add: "/shebei/ttEqtBase/add",
edit: "/shebei/ttEqtBase/edit",
queryById: "/shebei/ttEqtBase/queryById"
}
}
},
computed: {
formDisabled(){
return this.disabled
},
},
created () {
//model
this.modelDefault = JSON.parse(JSON.stringify(this.model));
},
methods: {
add () {
this.edit(this.modelDefault);
},
edit (record) {
this.model = Object.assign({}, record);
this.visible = true;
},
submitForm () {
const that = this;
//
this.$refs.form.validate(valid => {
if (valid) {
that.confirmLoading = true;
let httpurl = '';
let method = '';
if(!this.model.id){
httpurl+=this.url.add;
method = 'post';
}else{
httpurl+=this.url.edit;
method = 'put';
}
httpAction(httpurl,this.model,method).then((res)=>{
if(res.success){
that.$message.success(res.message);
that.$emit('ok');
}else{
that.$message.warning(res.message);
}
}).finally(() => {
that.confirmLoading = false;
})
}
})
},
}
}
</script>

@ -0,0 +1,84 @@
<template>
<a-drawer
:title="title"
:width="width"
placement="right"
:closable="false"
@close="close"
destroyOnClose
:visible="visible">
<tt-eqt-base-form ref="realForm" @ok="submitCallback" :disabled="disableSubmit" normal></tt-eqt-base-form>
<div class="drawer-footer">
<a-button @click="handleCancel" style="margin-bottom: 0;">关闭</a-button>
<a-button v-if="!disableSubmit" @click="handleOk" type="primary" style="margin-bottom: 0;"></a-button>
</div>
</a-drawer>
</template>
<script>
import TtEqtBaseForm from './TtEqtBaseForm'
export default {
name: 'TtEqtBaseModal',
components: {
TtEqtBaseForm
},
data () {
return {
title:"操作",
width:800,
visible: false,
disableSubmit: false
}
},
methods: {
add () {
this.visible=true
this.$nextTick(()=>{
this.$refs.realForm.add();
})
},
edit (record) {
this.visible=true
this.$nextTick(()=>{
this.$refs.realForm.edit(record);
});
},
close () {
this.$emit('close');
this.visible = false;
},
submitCallback(){
this.$emit('ok');
this.visible = false;
},
handleOk () {
this.$refs.realForm.submitForm();
},
handleCancel () {
this.close()
}
}
}
</script>
<style lang="less" scoped>
/** Button按钮间距 */
.ant-btn {
margin-left: 30px;
margin-bottom: 30px;
float: right;
}
.drawer-footer{
position: absolute;
bottom: -8px;
width: 100%;
border-top: 1px solid #e8e8e8;
padding: 10px 16px;
text-align: right;
left: 0;
background: #fff;
border-radius: 0 0 2px 2px;
}
</style>

@ -0,0 +1,60 @@
<template>
<j-modal
:title="title"
:width="width"
:visible="visible"
switchFullscreen
@ok="handleOk"
:okButtonProps="{ class:{'jee-hidden': disableSubmit} }"
@cancel="handleCancel"
cancelText="关闭">
<tt-eqt-base-form ref="realForm" @ok="submitCallback" :disabled="disableSubmit"></tt-eqt-base-form>
</j-modal>
</template>
<script>
import TtEqtBaseForm from './TtEqtBaseForm'
export default {
name: 'TtEqtBaseModal',
components: {
TtEqtBaseForm
},
data () {
return {
title:'',
width:800,
visible: false,
disableSubmit: false
}
},
methods: {
add () {
this.visible=true
this.$nextTick(()=>{
this.$refs.realForm.add();
})
},
edit (record) {
this.visible=true
this.$nextTick(()=>{
this.$refs.realForm.edit(record);
})
},
close () {
this.$emit('close');
this.visible = false;
},
handleOk () {
this.$refs.realForm.submitForm();
},
submitCallback(){
this.$emit('ok');
this.visible = false;
},
handleCancel () {
this.close()
}
}
}
</script>

@ -40,12 +40,12 @@ import org.apache.shiro.authz.annotation.RequiresPermissions;
/** /**
* @Description: tt_eqt_base * @Description: tt_eqt_base
* @Author: jeecg-boot * @Author: jeecg-boot
* @Date: 2023-02-14 * @Date: 2023-04-17
* @Version: V1.0 * @Version: V1.0
*/ */
@Api(tags="tt_eqt_base") @Api(tags="tt_eqt_base")
@RestController @RestController
@RequestMapping("/tteqtbase/ttEqtBase") @RequestMapping("/shebei/ttEqtBase")
@Slf4j @Slf4j
public class TtEqtBaseController extends JeecgController<TtEqtBase, ITtEqtBaseService> { public class TtEqtBaseController extends JeecgController<TtEqtBase, ITtEqtBaseService> {
@Autowired @Autowired
@ -64,9 +64,9 @@ public class TtEqtBaseController extends JeecgController<TtEqtBase, ITtEqtBaseSe
@ApiOperation(value="tt_eqt_base-分页列表查询", notes="tt_eqt_base-分页列表查询") @ApiOperation(value="tt_eqt_base-分页列表查询", notes="tt_eqt_base-分页列表查询")
@GetMapping(value = "/list") @GetMapping(value = "/list")
public Result<IPage<TtEqtBase>> queryPageList(TtEqtBase ttEqtBase, public Result<IPage<TtEqtBase>> queryPageList(TtEqtBase ttEqtBase,
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo, @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize, @RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
HttpServletRequest req) { HttpServletRequest req) {
QueryWrapper<TtEqtBase> queryWrapper = QueryGenerator.initQueryWrapper(ttEqtBase, req.getParameterMap()); QueryWrapper<TtEqtBase> queryWrapper = QueryGenerator.initQueryWrapper(ttEqtBase, req.getParameterMap());
Page<TtEqtBase> page = new Page<TtEqtBase>(pageNo, pageSize); Page<TtEqtBase> page = new Page<TtEqtBase>(pageNo, pageSize);
IPage<TtEqtBase> pageList = ttEqtBaseService.page(page, queryWrapper); IPage<TtEqtBase> pageList = ttEqtBaseService.page(page, queryWrapper);

@ -21,7 +21,7 @@ import lombok.experimental.Accessors;
/** /**
* @Description: tt_eqt_base * @Description: tt_eqt_base
* @Author: jeecg-boot * @Author: jeecg-boot
* @Date: 2023-02-14 * @Date: 2023-04-17
* @Version: V1.0 * @Version: V1.0
*/ */
@Data @Data
@ -33,62 +33,66 @@ public class TtEqtBase implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/**id*/ /**id*/
@TableId(type = IdType.ASSIGN_ID) @TableId(type = IdType.AUTO)
@ApiModelProperty(value = "id") @ApiModelProperty(value = "id")
private Integer id; private java.lang.Integer id;
/**设备(机台)编号*/ /**设备(机台)编号*/
@Excel(name = "设备(机台)编号", width = 15) @Excel(name = "设备(机台)编号", width = 15)
@ApiModelProperty(value = "设备(机台)编号") @ApiModelProperty(value = "设备(机台)编号")
private String eqtNo; private java.lang.String eqtNo;
/**用于采集设备数据的协议转换器 IP地址*/ /**用于采集设备数据的协议转换器 IP地址*/
@Excel(name = "用于采集设备数据的协议转换器 IP地址", width = 15) @Excel(name = "用于采集设备数据的协议转换器 IP地址", width = 15)
@ApiModelProperty(value = "用于采集设备数据的协议转换器 IP地址") @ApiModelProperty(value = "用于采集设备数据的协议转换器 IP地址")
private String eqtIp; private java.lang.String eqtIp;
/**设备供应商名称*/ /**设备供应商名称*/
@Excel(name = "设备供应商名称", width = 15) @Excel(name = "设备供应商名称", width = 15)
@ApiModelProperty(value = "设备供应商名称") @ApiModelProperty(value = "设备供应商名称")
private String eqtSupplier; private java.lang.String eqtSupplier;
/**id
1
2
3
4
5
6:
7 : */
@Excel(name = "设备类型id 1注塑机 2浇筑机 3硫化机 4水道系统 5集中供料系统 6: 数字电表 7 : 模温机", width = 15) @Excel(name = "设备类型id 1注塑机 2浇筑机 3硫化机 4水道系统 5集中供料系统 6: 数字电表 7 : 模温机", width = 15)
@ApiModelProperty(value = "设备类型id 1注塑机 2浇筑机 3硫化机 4水道系统 5集中供料系统 6: 数字电表 7 : 模温机") @ApiModelProperty(value = "1注塑机 2浇筑机 3硫化机 4水道系统 5集中供料系统 6: 数字电表 7 : 模温机")
@Dict(dicCode = "eqttype")
private java.lang.Integer eqtType; private java.lang.Integer eqtType;
/**设备位置*/ /**设备位置*/
@Excel(name = "设备位置", width = 15) @Excel(name = "设备位置", width = 15)
@ApiModelProperty(value = "设备位置") @ApiModelProperty(value = "设备位置")
private java.lang.String location; private java.lang.String location;
/**描述*/ /**描述*/
@Excel(name = "描述", width = 15) @Excel(name = "设备名称", width = 15)
@ApiModelProperty(value = "描述") @ApiModelProperty(value = "设备名称")
private java.lang.String descr; private java.lang.String descr;
/**设备状态, 1运行 2 待机 3故障 4关机*/ /**设备状态, 1运行 2 待机 3故障 4关机*/
@Excel(name = "设备状态, 1运行 2 待机 3故障 4关机", width = 15) @Excel(name = "设备状态, 1运行 2 待机 3故障 4关机", width = 15)
@ApiModelProperty(value = "设备状态, 1运行 2 待机 3故障 4关机") @ApiModelProperty(value = "设备状态, 1运行 2 待机 3故障 4关机")
@Dict(dicCode = "eqtstatus")
private java.lang.Integer eqtStatus; private java.lang.Integer eqtStatus;
/**设备最近7天利用率*/ /**设备最近7天利用率*/
@Excel(name = "设备最近7天利用率", width = 15) @Excel(name = "设备最近7天利用率", width = 15)
@ApiModelProperty(value = "设备最近7天利用率") @ApiModelProperty(value = "设备最近7天利用率")
private java.math.BigDecimal utilizeRate; private java.math.BigDecimal utilizeRate;
/**记录的创建时间*/ /**记录的创建时间*/
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern="yyyy-MM-dd") @DateTimeFormat(pattern="yyyy-MM-dd")
@ApiModelProperty(value = "记录的创建时间") @ApiModelProperty(value = "记录的创建时间")
private java.util.Date createTime; private java.util.Date createTime;
/**记录的创建人*/ /**记录的创建人*/
@ApiModelProperty(value = "记录的创建人") @ApiModelProperty(value = "记录的创建人")
private java.lang.String createBy; private java.lang.String createBy;
/**记录的修改时间*/ /**记录的修改时间*/
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern="yyyy-MM-dd") @DateTimeFormat(pattern="yyyy-MM-dd")
@ApiModelProperty(value = "记录的修改时间") @ApiModelProperty(value = "记录的修改时间")
private java.util.Date updateTime; private java.util.Date updateTime;
/**记录的修改人*/ /**记录的修改人*/
@ApiModelProperty(value = "记录的修改人") @ApiModelProperty(value = "记录的修改人")
private java.lang.String updateBy; private java.lang.String updateBy;

@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/** /**
* @Description: tt_eqt_base * @Description: tt_eqt_base
* @Author: jeecg-boot * @Author: jeecg-boot
* @Date: 2023-02-14 * @Date: 2023-04-17
* @Version: V1.0 * @Version: V1.0
*/ */
public interface TtEqtBaseMapper extends BaseMapper<TtEqtBase> { public interface TtEqtBaseMapper extends BaseMapper<TtEqtBase> {

@ -6,7 +6,7 @@ import com.baomidou.mybatisplus.extension.service.IService;
/** /**
* @Description: tt_eqt_base * @Description: tt_eqt_base
* @Author: jeecg-boot * @Author: jeecg-boot
* @Date: 2023-02-14 * @Date: 2023-04-17
* @Version: V1.0 * @Version: V1.0
*/ */
public interface ITtEqtBaseService extends IService<TtEqtBase> { public interface ITtEqtBaseService extends IService<TtEqtBase> {

@ -10,7 +10,7 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
/** /**
* @Description: tt_eqt_base * @Description: tt_eqt_base
* @Author: jeecg-boot * @Author: jeecg-boot
* @Date: 2023-02-14 * @Date: 2023-04-17
* @Version: V1.0 * @Version: V1.0
*/ */
@Service @Service

@ -99,6 +99,7 @@
import { mixinDevice } from '@/utils/mixin' import { mixinDevice } from '@/utils/mixin'
import { JeecgListMixin } from '@/mixins/JeecgListMixin' import { JeecgListMixin } from '@/mixins/JeecgListMixin'
import TtEqtBaseModal from './modules/TtEqtBaseModal' import TtEqtBaseModal from './modules/TtEqtBaseModal'
import {filterMultiDictText} from '@/components/dict/JDictSelectUtil'
export default { export default {
name: 'TtEqtBaseList', name: 'TtEqtBaseList',
@ -203,9 +204,9 @@
}, },
getSuperFieldList(){ getSuperFieldList(){
let fieldList=[]; let fieldList=[];
fieldList.push({type:'string',value:'eqtNo',text:''}) fieldList.push({type:'string',value:'eqtNo',text:'',dictCode:''})
fieldList.push({type:'string',value:'eqtIp',text:' IP'}) fieldList.push({type:'string',value:'eqtIp',text:' IP',dictCode:''})
fieldList.push({type:'string',value:'eqtSupplier',text:''}) fieldList.push({type:'string',value:'eqtSupplier',text:'',dictCode:''})
fieldList.push({type:'int',value:'eqtType',text:'id fieldList.push({type:'int',value:'eqtType',text:'id
1 1
@ -214,11 +215,11 @@
4 4
5 5
6: 6:
7 : '}) 7 : ',dictCode:'eqttype'})
fieldList.push({type:'string',value:'location',text:''}) fieldList.push({type:'string',value:'location',text:'',dictCode:''})
fieldList.push({type:'string',value:'descr',text:''}) fieldList.push({type:'string',value:'descr',text:'',dictCode:''})
fieldList.push({type:'int',value:'eqtStatus',text:' 1 2 3 4'}) fieldList.push({type:'int',value:'eqtStatus',text:' 1 2 3 4',dictCode:'eqtstatus'})
fieldList.push({type:'number',value:'utilizeRate',text:'7'}) fieldList.push({type:'BigDecimal',value:'utilizeRate',text:'7',dictCode:''})
this.superFieldList = fieldList this.superFieldList = fieldList
} }
} }

@ -3,24 +3,24 @@
INSERT INTO sys_permission(id, parent_id, name, url, component, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_route, is_leaf, keep_alive, hidden, hide_tab, description, status, del_flag, rule_flag, create_by, create_time, update_by, update_time, internal_or_external) INSERT INTO sys_permission(id, parent_id, name, url, component, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_route, is_leaf, keep_alive, hidden, hide_tab, description, status, del_flag, rule_flag, create_by, create_time, update_by, update_time, internal_or_external)
VALUES ('2023021403388670040', NULL, 'tt_eqt_base', '/tteqtbase/ttEqtBaseList', 'tteqtbase/TtEqtBaseList', NULL, NULL, 0, NULL, '1', 0.00, 0, NULL, 1, 0, 0, 0, 0, NULL, '1', 0, 0, 'admin', '2023-02-14 15:38:04', NULL, NULL, 0); VALUES ('2023041702426510160', NULL, 'tt_eqt_base', '/tteqtbase/ttEqtBaseList', 'tteqtbase/TtEqtBaseList', NULL, NULL, 0, NULL, '1', 0.00, 0, NULL, 1, 0, 0, 0, 0, NULL, '1', 0, 0, 'admin', '2023-04-17 14:42:16', NULL, NULL, 0);
-- sql -- sql
-- --
INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external) INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external)
VALUES ('2023021403388670041', '2023021403388670040', 'tt_eqt_base', NULL, NULL, 0, NULL, NULL, 2, 'tteqtbase:tt_eqt_base:add', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-02-14 15:38:04', NULL, NULL, 0, 0, '1', 0); VALUES ('2023041702426510161', '2023041702426510160', 'tt_eqt_base', NULL, NULL, 0, NULL, NULL, 2, 'tteqtbase:tt_eqt_base:add', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-04-17 14:42:16', NULL, NULL, 0, 0, '1', 0);
-- --
INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external) INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external)
VALUES ('2023021403388670042', '2023021403388670040', 'tt_eqt_base', NULL, NULL, 0, NULL, NULL, 2, 'tteqtbase:tt_eqt_base:edit', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-02-14 15:38:04', NULL, NULL, 0, 0, '1', 0); VALUES ('2023041702426510162', '2023041702426510160', 'tt_eqt_base', NULL, NULL, 0, NULL, NULL, 2, 'tteqtbase:tt_eqt_base:edit', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-04-17 14:42:16', NULL, NULL, 0, 0, '1', 0);
-- --
INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external) INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external)
VALUES ('2023021403388670043', '2023021403388670040', 'tt_eqt_base', NULL, NULL, 0, NULL, NULL, 2, 'tteqtbase:tt_eqt_base:delete', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-02-14 15:38:04', NULL, NULL, 0, 0, '1', 0); VALUES ('2023041702426510163', '2023041702426510160', 'tt_eqt_base', NULL, NULL, 0, NULL, NULL, 2, 'tteqtbase:tt_eqt_base:delete', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-04-17 14:42:16', NULL, NULL, 0, 0, '1', 0);
-- --
INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external) INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external)
VALUES ('2023021403388670044', '2023021403388670040', 'tt_eqt_base', NULL, NULL, 0, NULL, NULL, 2, 'tteqtbase:tt_eqt_base:deleteBatch', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-02-14 15:38:04', NULL, NULL, 0, 0, '1', 0); VALUES ('2023041702426510164', '2023041702426510160', 'tt_eqt_base', NULL, NULL, 0, NULL, NULL, 2, 'tteqtbase:tt_eqt_base:deleteBatch', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-04-17 14:42:16', NULL, NULL, 0, 0, '1', 0);
-- excel -- excel
INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external) INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external)
VALUES ('2023021403388670045', '2023021403388670040', 'excel_tt_eqt_base', NULL, NULL, 0, NULL, NULL, 2, 'tteqtbase:tt_eqt_base:exportXls', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-02-14 15:38:04', NULL, NULL, 0, 0, '1', 0); VALUES ('2023041702426510165', '2023041702426510160', 'excel_tt_eqt_base', NULL, NULL, 0, NULL, NULL, 2, 'tteqtbase:tt_eqt_base:exportXls', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-04-17 14:42:16', NULL, NULL, 0, 0, '1', 0);
-- excel -- excel
INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external) INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external)
VALUES ('2023021403388670046', '2023021403388670040', 'excel_tt_eqt_base', NULL, NULL, 0, NULL, NULL, 2, 'tteqtbase:tt_eqt_base:importExcel', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-02-14 15:38:04', NULL, NULL, 0, 0, '1', 0); VALUES ('2023041702426510166', '2023041702426510160', 'excel_tt_eqt_base', NULL, NULL, 0, NULL, NULL, 2, 'tteqtbase:tt_eqt_base:importExcel', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-04-17 14:42:16', NULL, NULL, 0, 0, '1', 0);
Loading…
Cancel
Save