diff --git a/ant-design-vue/src/views/tteqtbase/TtEqtBaseList.vue b/ant-design-vue/src/views/tteqtbase/TtEqtBaseList.vue index e6dc81b..5218e6c 100644 --- a/ant-design-vue/src/views/tteqtbase/TtEqtBaseList.vue +++ b/ant-design-vue/src/views/tteqtbase/TtEqtBaseList.vue @@ -45,11 +45,11 @@
新增 导出 - + - + 删除 @@ -144,16 +144,16 @@ description: '设备基础信息管理页面', // 表头 columns: [ - { - title: '#', - dataIndex: '', - key:'rowIndex', - width:60, - align:"center", - customRender:function (t,r,index) { - return parseInt(index)+1; - } - }, + // { + // title: '#', + // dataIndex: '', + // key:'rowIndex', + // width:60, + // align:"center", + // customRender:function (t,r,index) { + // return parseInt(index)+1; + // } + // }, { title:'设备编号', align:"center", @@ -212,6 +212,13 @@ }, dictOptions:{}, superFieldList:[], + isorter:{ + column: 'createTime,eqtType,eqtNo', + order: 'desc,asc,asc', + }, + ipagination:{ + pageSize: 20 + } } }, created() { diff --git a/ant-design-vue/src/views/ttmoldtemperatureequip/TtMoldTemperatureEquipList.vue b/ant-design-vue/src/views/ttmoldingequip/TtMoldingEquipList.vue similarity index 75% rename from ant-design-vue/src/views/ttmoldtemperatureequip/TtMoldTemperatureEquipList.vue rename to ant-design-vue/src/views/ttmoldingequip/TtMoldingEquipList.vue index daef60f..649d1fb 100644 --- a/ant-design-vue/src/views/ttmoldtemperatureequip/TtMoldTemperatureEquipList.vue +++ b/ant-design-vue/src/views/ttmoldingequip/TtMoldingEquipList.vue @@ -5,8 +5,8 @@ - - + + @@ -33,19 +33,19 @@
- 新增 - 导出 - + + 导出 + - +
@@ -111,7 +111,7 @@
- + @@ -120,17 +120,17 @@ import '@/assets/less/TableExpand.less' import { mixinDevice } from '@/utils/mixin' import { JeecgListMixin } from '@/mixins/JeecgListMixin' - import TtMoldTemperatureEquipModal from './modules/TtMoldTemperatureEquipModal' + import TtMoldingEquipModal from './modules/TtMoldingEquipModal' export default { - name: 'TtMoldTemperatureEquipList', + name: 'TtMoldingEquipList', mixins:[JeecgListMixin, mixinDevice], components: { - TtMoldTemperatureEquipModal + TtMoldingEquipModal }, data () { return { - description: 'tt_mold_temperature_equip管理页面', + description: '模温机设备管理管理页面', // 表头 columns: [ { @@ -144,27 +144,29 @@ } }, { - title:'模温机设备编号', + title:'设备编号', align:"center", dataIndex: 'eqtNo' }, { - title:'描述', + title:'设备名称', align:"center", dataIndex: 'descr' }, { - title:'温度(℃)', + title:'设备Ip', align:"center", - dataIndex: 'moldTemperature' + dataIndex: 'eqtIp' }, { - title:'采集时间', + title:'温度', align:"center", - dataIndex: 'createTime', - // customRender:function (text) { - // return !text?"":(text.length>10?text.substr(0,10):text) - // } + dataIndex: 'temperature' + }, + { + title:'记录的创建时间', + align:"center", + dataIndex: 'createTime' }, { title: '操作', @@ -176,12 +178,12 @@ } ], url: { - list: "/ttmoldtemperatureequip/ttMoldTemperatureEquip/list", - delete: "/ttmoldtemperatureequip/ttMoldTemperatureEquip/delete", - deleteBatch: "/ttmoldtemperatureequip/ttMoldTemperatureEquip/deleteBatch", - exportXlsUrl: "/ttmoldtemperatureequip/ttMoldTemperatureEquip/exportXls", - importExcelUrl: "ttmoldtemperatureequip/ttMoldTemperatureEquip/importExcel", - + list: "/ttmoldingequip/ttMoldingEquip/list", + delete: "/ttmoldingequip/ttMoldingEquip/delete", + deleteBatch: "/ttmoldingequip/ttMoldingEquip/deleteBatch", + exportXlsUrl: "/ttmoldingequip/ttMoldingEquip/exportXls", + importExcelUrl: "ttmoldingequip/ttMoldingEquip/importExcel", + }, dictOptions:{}, superFieldList:[], @@ -200,8 +202,9 @@ }, getSuperFieldList(){ let fieldList=[]; - fieldList.push({type:'BigDecimal',value:'moldTemperature',text:'温度',dictCode:''}) - fieldList.push({type:'string',value:'eqtNo',text:'模温机设备编号,只有1和2两种值',dictCode:''}) + fieldList.push({type:'string',value:'eqtNo',text:'设备编号',dictCode:''}) + fieldList.push({type:'string',value:'eqtIp',text:'设备Ip',dictCode:''}) + fieldList.push({type:'BigDecimal',value:'temperature',text:'温度',dictCode:''}) fieldList.push({type:'date',value:'createTime',text:'记录的创建时间'}) this.superFieldList = fieldList } diff --git a/ant-design-vue/src/views/vue/TestShoptypeTree_menu_insert.sql b/ant-design-vue/src/views/ttmoldingequip/TtMoldingEquip_menu_insert.sql similarity index 55% rename from ant-design-vue/src/views/vue/TestShoptypeTree_menu_insert.sql rename to ant-design-vue/src/views/ttmoldingequip/TtMoldingEquip_menu_insert.sql index 1177f40..9901d67 100644 --- a/ant-design-vue/src/views/vue/TestShoptypeTree_menu_insert.sql +++ b/ant-design-vue/src/views/ttmoldingequip/TtMoldingEquip_menu_insert.sql @@ -1,26 +1,26 @@ --- 注意:该页面对应的前台目录为views/demo888文件夹下 +-- 注意:该页面对应的前台目录为views/ttmoldingequip文件夹下 -- 如果你想更改到其他目录,请修改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 ('2023041302342260040', NULL, '商品分类', '/demo888/testShoptypeTreeList', 'demo888/TestShoptypeTreeList', NULL, NULL, 0, NULL, '1', 0.00, 0, NULL, 1, 0, 0, 0, 0, NULL, '1', 0, 0, 'admin', '2023-04-13 14:34:04', NULL, NULL, 0); +VALUES ('2023041703392350320', NULL, '模温机设备管理', '/ttmoldingequip/ttMoldingEquipList', 'ttmoldingequip/TtMoldingEquipList', NULL, NULL, 0, NULL, '1', 0.00, 0, NULL, 1, 0, 0, 0, 0, NULL, '1', 0, 0, 'admin', '2023-04-17 15:39:32', 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 ('2023041302342260041', '2023041302342260040', '添加商品分类', NULL, NULL, 0, NULL, NULL, 2, 'demo888:test_shoptype_tree:add', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-04-13 14:34:04', NULL, NULL, 0, 0, '1', 0); +VALUES ('2023041703392350321', '2023041703392350320', '添加模温机设备管理', NULL, NULL, 0, NULL, NULL, 2, 'ttmoldingequip:tt_molding_equip:add', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-04-17 15:39:32', 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 ('2023041302342260042', '2023041302342260040', '编辑商品分类', NULL, NULL, 0, NULL, NULL, 2, 'demo888:test_shoptype_tree:edit', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-04-13 14:34:04', NULL, NULL, 0, 0, '1', 0); +VALUES ('2023041703392350322', '2023041703392350320', '编辑模温机设备管理', NULL, NULL, 0, NULL, NULL, 2, 'ttmoldingequip:tt_molding_equip:edit', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-04-17 15:39:32', 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 ('2023041302342260043', '2023041302342260040', '删除商品分类', NULL, NULL, 0, NULL, NULL, 2, 'demo888:test_shoptype_tree:delete', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-04-13 14:34:04', NULL, NULL, 0, 0, '1', 0); +VALUES ('2023041703392350323', '2023041703392350320', '删除模温机设备管理', NULL, NULL, 0, NULL, NULL, 2, 'ttmoldingequip:tt_molding_equip:delete', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-04-17 15:39:32', 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 ('2023041302342260044', '2023041302342260040', '批量删除商品分类', NULL, NULL, 0, NULL, NULL, 2, 'demo888:test_shoptype_tree:deleteBatch', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-04-13 14:34:04', NULL, NULL, 0, 0, '1', 0); +VALUES ('2023041703392350324', '2023041703392350320', '批量删除模温机设备管理', NULL, NULL, 0, NULL, NULL, 2, 'ttmoldingequip:tt_molding_equip:deleteBatch', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-04-17 15:39:32', 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 ('2023041302342260045', '2023041302342260040', '导出excel_商品分类', NULL, NULL, 0, NULL, NULL, 2, 'demo888:test_shoptype_tree:exportXls', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-04-13 14:34:04', NULL, NULL, 0, 0, '1', 0); +VALUES ('2023041703392350325', '2023041703392350320', '导出excel_模温机设备管理', NULL, NULL, 0, NULL, NULL, 2, 'ttmoldingequip:tt_molding_equip:exportXls', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-04-17 15:39:32', 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 ('2023041302342260046', '2023041302342260040', '导入excel_商品分类', NULL, NULL, 0, NULL, NULL, 2, 'demo888:test_shoptype_tree:importExcel', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-04-13 14:34:04', NULL, NULL, 0, 0, '1', 0); \ No newline at end of file +VALUES ('2023041703392350326', '2023041703392350320', '导入excel_模温机设备管理', NULL, NULL, 0, NULL, NULL, 2, 'ttmoldingequip:tt_molding_equip:importExcel', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-04-17 15:39:32', NULL, NULL, 0, 0, '1', 0); \ No newline at end of file diff --git a/linkage-boot/linkage-module-demo/src/main/java/org/jeecg/modules/demo/ttmoldtemperatureequip/vue/modules/TtMoldTemperatureEquipForm.vue b/ant-design-vue/src/views/ttmoldingequip/modules/TtMoldingEquipForm.vue similarity index 65% rename from linkage-boot/linkage-module-demo/src/main/java/org/jeecg/modules/demo/ttmoldtemperatureequip/vue/modules/TtMoldTemperatureEquipForm.vue rename to ant-design-vue/src/views/ttmoldingequip/modules/TtMoldingEquipForm.vue index 6ee18f1..e4da59e 100644 --- a/linkage-boot/linkage-module-demo/src/main/java/org/jeecg/modules/demo/ttmoldtemperatureequip/vue/modules/TtMoldTemperatureEquipForm.vue +++ b/ant-design-vue/src/views/ttmoldingequip/modules/TtMoldingEquipForm.vue @@ -4,13 +4,23 @@ - - + + - - + + + + + + + + + + + + @@ -25,7 +35,7 @@ import { validateDuplicateValue } from '@/utils/util' export default { - name: 'TtMoldTemperatureEquipForm', + name: 'TtMoldingEquipForm', components: { }, props: { @@ -50,17 +60,20 @@ }, confirmLoading: false, validatorRules: { - moldTemperature: [ + eqtNo: [ + { required: true, message: '请输入设备编号!'}, + ], + temperature: [ { required: true, message: '请输入温度!'}, ], - eqtNo: [ - { required: true, message: '请输入模温机设备编号,只有1和2两种值!'}, + createTime: [ + { required: true, message: '请输入记录的创建时间!'}, ], }, url: { - add: "/ttmoldtemperatureequip/ttMoldTemperatureEquip/add", - edit: "/ttmoldtemperatureequip/ttMoldTemperatureEquip/edit", - queryById: "/ttmoldtemperatureequip/ttMoldTemperatureEquip/queryById" + add: "/ttmoldingequip/ttMoldingEquip/add", + edit: "/ttmoldingequip/ttMoldingEquip/edit", + queryById: "/ttmoldingequip/ttMoldingEquip/queryById" } } }, diff --git a/linkage-boot/linkage-module-demo/src/main/java/org/jeecg/modules/demo/ttmoldtemperatureequip/vue/modules/TtMoldTemperatureEquipModal.Style#Drawer.vue b/ant-design-vue/src/views/ttmoldingequip/modules/TtMoldingEquipModal.Style#Drawer.vue similarity index 84% rename from linkage-boot/linkage-module-demo/src/main/java/org/jeecg/modules/demo/ttmoldtemperatureequip/vue/modules/TtMoldTemperatureEquipModal.Style#Drawer.vue rename to ant-design-vue/src/views/ttmoldingequip/modules/TtMoldingEquipModal.Style#Drawer.vue index 08dc124..876888a 100644 --- a/linkage-boot/linkage-module-demo/src/main/java/org/jeecg/modules/demo/ttmoldtemperatureequip/vue/modules/TtMoldTemperatureEquipModal.Style#Drawer.vue +++ b/ant-design-vue/src/views/ttmoldingequip/modules/TtMoldingEquipModal.Style#Drawer.vue @@ -7,7 +7,7 @@ @close="close" destroyOnClose :visible="visible"> - +