table 优化

hwork-master
zhangkaiios 2025-11-06 14:25:31 +08:00
parent d1c6668f59
commit d92a44e67f
60 changed files with 1698 additions and 1984 deletions

8
package-lock.json generated
View File

@ -10,7 +10,7 @@
"dependencies": {
"@ant-design/icons-vue": "^6.0.1",
"@antv/g2": "^4.1.20",
"@hwork/ant-design-vue": "^4.1.24",
"@hwork/ant-design-vue": "4.1.24",
"@hwork/icon": "^1.0.0",
"@tinymce/tinymce-vue": "^4.0.4",
"axios": "^0.21.1",
@ -915,9 +915,9 @@
"license": "BSD-3-Clause"
},
"node_modules/@hwork/ant-design-vue": {
"version": "4.1.25",
"resolved": "http://x-repo.haier.net/repository/npm-public/@hwork/ant-design-vue/-/ant-design-vue-4.1.25.tgz",
"integrity": "sha512-fgpwWpxVuAlCtpYspVVKS2JLily7Mq90Q9aQj8dr5gIlz56DHW8Tq2j+dIFN2wS5jcRugP5hbC7Wo9LNf23ElA==",
"version": "4.1.24",
"resolved": "http://x-repo.haier.net/repository/npm-public/@hwork/ant-design-vue/-/ant-design-vue-4.1.24.tgz",
"integrity": "sha512-A2jil/lqCdcsDY49XR0GMKRX5MQcnqDsjCEkOAbKBK1V96dLi7M4PJ6Xx8BrREQtmGjpfSy3/hRMhsjyk904iQ==",
"license": "MIT",
"dependencies": {
"@ant-design/icons-vue": "^7.0.0",

View File

@ -13,7 +13,7 @@
"dependencies": {
"@ant-design/icons-vue": "^6.0.1",
"@antv/g2": "^4.1.20",
"@hwork/ant-design-vue": "^4.1.24",
"@hwork/ant-design-vue": "4.1.24",
"@hwork/icon": "^1.0.0",
"@tinymce/tinymce-vue": "^4.0.4",
"axios": "^0.21.1",

View File

@ -423,6 +423,9 @@ html {
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.15);
line-height: 30px;
}
.ant-list-layout {
height: 100% !important;
}
.ant-list-layout-content {
height: 100%;
display: flex;

View File

@ -1,43 +1,23 @@
<template>
<page-layout>
<a-row :gutter="[10, 10]">
<!-- 查询表单 -->
<a-col :span="24">
<a-card>
<pro-query
:searchParam="searchParam"
@on-search ="search"
></pro-query>
</a-card>
</a-col>
<!-- 岗位列表 -->
<a-col :span="24">
<a-card>
<pro-table
ref="tableRef"
:fetch="fetch"
:columns="columns"
:toolbar="toolbar"
:operate="operate"
:param="state.param"
:pagination="pagination"
:row-selection="{ selectedRowKeys: state.selectedRowKeys, onChange: onSelectChange }"
>
<a-list-layout ref="pageRef">
<template #search>
<pro-query :searchParam="searchParam" @on-search="search"></pro-query>
</template>
<pro-table ref="tableRef" :fetch="fetch" :columns="columns" :toolbar="toolbar" :operate="operate"
:param="state.param" :pagination="pagination"
:row-selection="{ selectedRowKeys: state.selectedRowKeys, onChange: onSelectChange }">
</pro-table>
</a-card>
</a-col>
</a-row>
<save :visible="state.visibleSave" @close="closeSave"></save>
<edit :visible="state.visibleEdit" @close="closeEdit" :record="state.recordEdit"></edit>
<info :visible="state.visibleInfo" @close="closeInfo" :record="state.recordInfo"></info>
</page-layout>
</a-list-layout>
</template>
<script>
import save from './modal/save.vue';
import edit from './modal/edit.vue';
import info from './modal/info.vue';
import { message , Modal} from '@hwork/ant-design-vue';
import { message, Modal as modal } from '@hwork/ant-design-vue';
import { ExclamationCircleOutlined } from '@ant-design/icons-vue';
import { page, remove, removeBatch } from "@/api/module/announce";
import { reactive, createVNode, ref } from 'vue';
@ -56,7 +36,7 @@ export default {
const tableRef = ref();
///
const converFormat = [{label:"已发布",value:true},{label:"未发布",value:false}];
const converFormat = [{ label: "已发布", value: true }, { label: "未发布", value: false }];
///
const columns = [
@ -91,19 +71,19 @@ export default {
///
const removeBatchMethod = (ids) => {
Modal.confirm({
modal.confirm({
title: '您是否确定要删除选择公告?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',
cancelText: '取消',
onOk() {
message.loading({ content: "提交中...", key: removeBatchKey });
removeBatch({"ids":ids}).then((response) => {
if(response.success){
message.success({content: "删除成功", key: removeBatchKey, duration: 1})
removeBatch({ "ids": ids }).then((response) => {
if (response.success) {
message.success({ content: "删除成功", key: removeBatchKey, duration: 1 })
tableRef.value.reload()
}else{
message.error({content: "删除失败", key: removeBatchKey, duration: 1})
} else {
message.error({ content: "删除失败", key: removeBatchKey, duration: 1 })
}
})
}
@ -112,15 +92,15 @@ export default {
///
const toolbar = [
{ label: "新增", event: function () { state.visibleSave = true }},
{ label: "删除", event: function () { removeBatchMethod(state.selectedRowKeys) }},
{ label: "新增", event: function () { state.visibleSave = true } },
{ label: "删除", event: function () { removeBatchMethod(state.selectedRowKeys) } },
];
///
const operate = [
{ label: "查看", event: function (record) { state.visibleInfo = true, state.recordInfo = record }},
{ label: "修改", event: function (record) { state.visibleEdit = true, state.recordEdit = record }},
{ label: "删除",isDel: true, delEvent: function (record) { removeMethod(record) },cancelEvent:(record)=>{}},
{ label: "查看", event: function (record) { state.visibleInfo = true, state.recordInfo = record } },
{ label: "修改", event: function (record) { state.visibleEdit = true, state.recordEdit = record } },
{ label: "删除", isDel: true, delEvent: function (record) { removeMethod(record) }, cancelEvent: (record) => { } },
];
///
@ -141,24 +121,24 @@ export default {
})
const searchParam = [
{ key: "title", type: "input", label: "公告标题"},
{ key: "title", type: "input", label: "公告标题" },
]
const search = function(value) {
const search = function (value) {
state.param = value
}
const closeSave = function(){
const closeSave = function () {
tableRef.value.reload()
state.visibleSave = false
}
const closeEdit = function(){
const closeEdit = function () {
tableRef.value.reload()
state.visibleEdit = false
}
const closeInfo = function(){
const closeInfo = function () {
state.visibleInfo = false
}

View File

@ -151,7 +151,7 @@
///
const removeMethod = (record) => {
Modal.confirm({
modal.confirm({
title: '您是否确定要删除此配置?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',
@ -185,7 +185,7 @@
}
const removeBatchMethod = (ids) => {
Modal.confirm({
modal.confirm({
title: '您是否确定要删除选择配置?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',

View File

@ -1,43 +1,24 @@
<template>
<page-layout>
<a-row :gutter="[10, 10]">
<!-- 查询表单 -->
<a-col :span="24">
<a-card>
<pro-query
:searchParam="searchParam"
@on-search ="search"
></pro-query>
</a-card>
</a-col>
<a-list-layout ref="pageRef">
<template #search>
<pro-query :searchParam="searchParam" @on-search="search"></pro-query>
</template>
<!-- 多库列表 -->
<a-col :span="24">
<a-card>
<pro-table
ref="tableRef"
:fetch="fetch"
:columns="columns"
:toolbar="toolbar"
:operate="operate"
:param="state.param"
:pagination="pagination"
:row-selection="{ selectedRowKeys: state.selectedRowKeys, onChange: onSelectChange }"
>
<pro-table ref="tableRef" :fetch="fetch" :columns="columns" :toolbar="toolbar" :operate="operate"
:param="state.param" :pagination="pagination"
:row-selection="{ selectedRowKeys: state.selectedRowKeys, onChange: onSelectChange }">
</pro-table>
</a-card>
</a-col>
</a-row>
<!-- 新增页面 -->
<save :visible="state.visibleSave" @close="closeSave"></save>
<!-- 修改页面 -->
<edit :visible="state.visibleEdit" @close="closeEdit" :record="state.recordEdit"></edit>
</page-layout>
</a-list-layout>
</template>
<script>
import save from './modal/save.vue';
import edit from './modal/edit.vue';
import { message , Modal} from '@hwork/ant-design-vue';
import { message, Modal as modal } from '@hwork/ant-design-vue';
import { ExclamationCircleOutlined } from '@ant-design/icons-vue';
import { page, remove, removeBatch } from "@/api/module/dataSource";
import { reactive, createVNode, ref } from 'vue';
@ -58,10 +39,10 @@ export default {
const columns = [
{ dataIndex: "name", key: "name", title: "名称" },
{ dataIndex: "username", key: "username", title: "账户" },
{ dataIndex: "password", key: "password", title: "密码"},
{ dataIndex: "url", key: "url", title: "链接"},
{ dataIndex: "driver", key: "driver", title: "驱动"},
{ dataIndex: "remark", key: "remark", title: "备注"},
{ dataIndex: "password", key: "password", title: "密码" },
{ dataIndex: "url", key: "url", title: "链接" },
{ dataIndex: "driver", key: "driver", title: "驱动" },
{ dataIndex: "remark", key: "remark", title: "备注" },
{ dataIndex: "createTime", key: "createTime", title: "创建日期" },
];
@ -76,20 +57,20 @@ export default {
///
const removeMethod = (record) => {
Modal.confirm({
modal.confirm({
title: '您是否确定要删除此配置?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',
cancelText: '取消',
onOk() {
message.loading({ content: "提交中...", key: removeKey });
remove({"id":record.id}).then((response) => {
if(response.success){
message.success({content: "删除成功", key: removeKey, duration: 1}).then(()=>{
remove({ "id": record.id }).then((response) => {
if (response.success) {
message.success({ content: "删除成功", key: removeKey, duration: 1 }).then(() => {
tableRef.value.reload()
})
}else{
message.error({content: "删除失败", key: removeKey, duration: 1})
} else {
message.error({ content: "删除失败", key: removeKey, duration: 1 })
}
})
}
@ -97,20 +78,20 @@ export default {
}
const removeBatchMethod = (ids) => {
Modal.confirm({
modal.confirm({
title: '您是否确定要删除选择配置?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',
cancelText: '取消',
onOk() {
message.loading({ content: "提交中...", key: removeBatchKey });
removeBatch({"ids":ids}).then((response) => {
if(response.success){
message.success({content: "删除成功", key: removeBatchKey, duration: 1}).then(()=>{
removeBatch({ "ids": ids }).then((response) => {
if (response.success) {
message.success({ content: "删除成功", key: removeBatchKey, duration: 1 }).then(() => {
tableRef.value.reload()
})
}else{
message.error({content: "删除失败", key: removeBatchKey, duration: 1})
} else {
message.error({ content: "删除失败", key: removeBatchKey, duration: 1 })
}
})
}
@ -119,15 +100,15 @@ export default {
///
const toolbar = [
{ label: "新增", event: function () { state.visibleSave = true }},
{ label: "删除", event: function () { removeBatchMethod(state.selectedRowKeys) }},
{ label: "新增", event: function () { state.visibleSave = true } },
{ label: "删除", event: function () { removeBatchMethod(state.selectedRowKeys) } },
];
///
const operate = [
{ label: "查看", event: function (record) { alert("查看详情:" + JSON.stringify(record))}},
{ label: "修改", event: function (record) { state.recordEdit = record, state.visibleEdit = true }},
{ label: "删除", event: function (record) { removeMethod(record) }},
{ label: "查看", event: function (record) { alert("查看详情:" + JSON.stringify(record)) } },
{ label: "修改", event: function (record) { state.recordEdit = record, state.visibleEdit = true } },
{ label: "删除", event: function (record) { removeMethod(record) } },
];
///
@ -147,12 +128,12 @@ export default {
///
const searchParam = [
{ key: "name", type: "input", label: "名称"},
{ key: "code", type: "input", label: "描述"},
{ key: "name", type: "input", label: "名称" },
{ key: "code", type: "input", label: "描述" },
]
///
const search = function(value) {
const search = function (value) {
state.param = value
tableRef.value.reload
}
@ -161,12 +142,12 @@ export default {
state.selectedRowKeys = selectedRowKeys;
};
const closeSave = function(){
const closeSave = function () {
state.visibleSave = false
tableRef.value.reload
}
const closeEdit = function(){
const closeEdit = function () {
state.visibleEdit = false
tableRef.value.reload
}

View File

@ -1,45 +1,25 @@
<template>
<page-layout>
<a-row :gutter="[10, 10]">
<!-- 顶部区域 -->
<a-col :span="24">
<a-card>
<a-list-layout ref="pageRef">
<template #search>
<!-- 查询参数 -->
<pro-query
:searchParam="searchParam"
@on-search ="search"
></pro-query>
</a-card>
</a-col>
<pro-query :searchParam="searchParam" @on-search="search"></pro-query>
</template>
<!-- 中心区域 -->
<a-col :span="24">
<a-card>
<!-- 列表 -->
<pro-table
ref="tableRef"
:fetch="fetch"
:columns="columns"
:toolbar="toolbar"
:operate="operate"
:param="state.param"
:pagination="pagination"
:row-selection="{ selectedRowKeys: state.selectedRowKeys, onChange: onSelectChange }"
>
<pro-table ref="tableRef" :fetch="fetch" :columns="columns" :toolbar="toolbar" :operate="operate"
:param="state.param" :pagination="pagination"
:row-selection="{ selectedRowKeys: state.selectedRowKeys, onChange: onSelectChange }">
</pro-table>
</a-card>
</a-col>
</a-row>
<save :visible="state.visibleSave" @close="closeSave"></save>
<edit :visible="state.visibleEdit" @close="closeEdit" :record="state.recordEdit"></edit>
<info :visible="state.visibleInfo" @close="closeInfo" :record="state.recordInfo"></info>
</page-layout>
</a-list-layout>
</template>
<script>
import save from './modal/save.vue';
import edit from './modal/edit.vue';
import info from './modal/info.vue';
import { message , Modal} from '@hwork/ant-design-vue';
import { message, Modal as modal } from '@hwork/ant-design-vue';
import { ExclamationCircleOutlined } from '@ant-design/icons-vue';
import { tree, remove, removeBatch } from "@/api/module/dept";
import { reactive, createVNode, ref } from 'vue';
@ -56,15 +36,17 @@ export default {
const tableRef = ref()
const switchFormat = { yes: true, no: false, event: function(value,record){
const switchFormat = {
yes: true, no: false, event: function (value, record) {
record.enable = !record.enable;
return value;
}}
}
}
const columns = [
{ dataIndex: "name", key: "name", title: "部门" },
{ dataIndex: "address", key: "address", title: "地址" },
{ dataIndex: "enable", key: "enable", title: "状态", switch: switchFormat},
{ dataIndex: "enable", key: "enable", title: "状态", switch: switchFormat },
{ dataIndex: "sort", key: "sort", title: "排序" },
{ dataIndex: "remark", key: "remark", title: "仓库编号" },
];
@ -79,20 +61,20 @@ export default {
///
const removeMethod = (record) => {
Modal.confirm({
modal.confirm({
title: '您是否确定要删除此配置?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',
cancelText: '取消',
onOk() {
message.loading({ content: "提交中...", key: removeKey });
remove({"id":record.id}).then((response) => {
if(response.success){
message.success({content: "删除成功", key: removeKey, duration: 1}).then(()=>{
remove({ "id": record.id }).then((response) => {
if (response.success) {
message.success({ content: "删除成功", key: removeKey, duration: 1 }).then(() => {
tableRef.value.reload()
})
}else{
message.error({content: "删除失败", key: removeKey, duration: 1})
} else {
message.error({ content: "删除失败", key: removeKey, duration: 1 })
}
})
}
@ -101,14 +83,14 @@ export default {
///
const toolbar = [
{ label: "新增", event: function () { state.visibleSave = true }},
{ label: "新增", event: function () { state.visibleSave = true } },
];
///
const operate = [
{ label: "查看", event: function (record) { state.visibleInfo = true, state.recordInfo = record }},
{ label: "修改", event: function (record) { state.visibleEdit = true, state.recordEdit = record }},
{ label: "删除", event: function (record) { removeMethod(record) }},
{ label: "查看", event: function (record) { state.visibleInfo = true, state.recordInfo = record } },
{ label: "修改", event: function (record) { state.visibleEdit = true, state.recordEdit = record } },
{ label: "删除", event: function (record) { removeMethod(record) } },
];
const pagination = false;
@ -124,11 +106,11 @@ export default {
})
const searchParam = [
{ key: "name", type: "input", label: "名称"},
{ key: "code", type: "input", label: "描述"},
{ key: "name", type: "input", label: "名称" },
{ key: "code", type: "input", label: "描述" },
]
const search = function(value) {
const search = function (value) {
state.param = value
tableRef.value.reload()
}
@ -137,17 +119,17 @@ export default {
state.selectedRowKeys = selectedRowKeys;
};
const closeSave = function() {
const closeSave = function () {
state.visibleSave = false
tableRef.value.reload()
}
const closeEdit = function() {
const closeEdit = function () {
state.visibleEdit = false
tableRef.value.reload()
}
const closeInfo = function() {
const closeInfo = function () {
state.visibleInfo = false
}

View File

@ -107,7 +107,7 @@
///
const removeMethod = (record) => {
Modal.confirm({
modal.confirm({
title: '您是否确定要删除此字典?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',
@ -142,7 +142,7 @@
///
const removeBatchMethod = (ids) => {
Modal.confirm({
modal.confirm({
title: '您是否确定要删除选择字典?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',

View File

@ -109,7 +109,7 @@
///
const removeMethod = (record) => {
Modal.confirm({
modal.confirm({
title: '您是否确定要删除此字典?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',
@ -144,7 +144,7 @@
///
const removeBatchMethod = (ids) => {
Modal.confirm({
modal.confirm({
title: '您是否确定要删除选择字典?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',

View File

@ -1,26 +1,19 @@
<template>
<page-layout>
<a-row :gutter="[10, 10]">
<!-- 查询表单 -->
<a-col :span="24">
<a-card>
<a-list-layout
ref="pageRef"
>
<template #search>
<pro-query :searchParam="searchParam" @on-search="search"></pro-query>
</a-card>
</a-col>
</template>
<!-- 岗位列表 -->
<a-col :span="24">
<a-card>
<pro-table ref="tableRef" :fetch="fetch" :columns="columns" :toolbar="toolbar" :operate="operate"
:param="state.param" :pagination="pagination"
:row-selection="{ selectedRowKeys: state.selectedRowKeys, onChange: onSelectChange }">
</pro-table>
</a-card>
</a-col>
</a-row>
<save :visible="state.visibleSave" @close="closeSave"></save>
<edit :visible="state.visibleEdit" @close="closeEdit" :record="state.recordEdit"></edit>
<info :visible="state.visibleInfo" @close="closeInfo" :record="state.recordInfo"></info>
</page-layout>
</a-list-layout>
</template>
<script>
@ -165,7 +158,7 @@
}
const removeBatchMethod = (ids) => {
Modal.confirm({
modal.confirm({
title: '您是否确定要删除选择私信?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',

View File

@ -1,26 +1,19 @@
<template>
<page-layout>
<a-row :gutter="[10, 10]">
<!-- 查询表单 -->
<a-col :span="24">
<a-card>
<a-list-layout
ref="pageRef"
>
<template #search>
<pro-query :searchParam="searchParam" @on-search="search"></pro-query>
</a-card>
</a-col>
</template>
<!-- 岗位列表 -->
<a-col :span="24">
<a-card>
<pro-table ref="tableRef" :fetch="fetch" :columns="columns" :toolbar="toolbar" :operate="operate"
:param="state.param" :pagination="pagination"
:row-selection="{ selectedRowKeys: state.selectedRowKeys, onChange: onSelectChange }">
</pro-table>
</a-card>
</a-col>
</a-row>
<save :visible="state.visibleSave" @close="closeSave"></save>
<edit :visible="state.visibleEdit" @close="closeEdit" :record="state.recordEdit"></edit>
<info :visible="state.visibleInfo" @close="closeInfo" :record="state.recordInfo"></info>
</page-layout>
</a-list-layout>
</template>
<script>
@ -151,7 +144,7 @@
}
const removeBatchMethod = (ids) => {
Modal.confirm({
modal.confirm({
title: '您是否确定要删除选择任务?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',

View File

@ -1,19 +1,14 @@
<template>
<page-layout>
<a-row :gutter="[10, 10]">
<!-- 顶部区域 -->
<a-col :span="24">
<a-card>
<a-list-layout
ref="pageRef"
>
<template #search>
<!-- 查询参数 -->
<pro-query
:searchParam="searchParam"
@on-search ="search"
></pro-query>
</a-card>
</a-col>
<!-- 中心区域 -->
<a-col :span="24">
<a-card>
</template>
<!-- 列表 -->
<pro-table
:fetch="fetch"
@ -26,11 +21,8 @@
>
<!-- 继承至 a-table 的默认插槽 -->
</pro-table>
</a-card>
</a-col>
</a-row>
<info :visible="state.visibleInfo" @close="closeInfo" :record="state.recordInfo"></info>
</page-layout>
</a-list-layout>
</template>
<script>

View File

@ -1,19 +1,14 @@
<template>
<page-layout>
<a-row :gutter="[10, 10]">
<!-- 顶部区域 -->
<a-col :span="24">
<a-card>
<a-list-layout
ref="pageRef"
>
<template #search>
<!-- 查询参数 -->
<pro-query
:searchParam="searchParam"
@on-search ="search"
></pro-query>
</a-card>
</a-col>
<!-- 中心区域 -->
<a-col :span="24">
<a-card>
</template>
<!-- 列表 -->
<pro-table
:fetch="fetch"
@ -26,14 +21,11 @@
>
<!-- 继承至 a-table 的默认插槽 -->
</pro-table>
</a-card>
</a-col>
</a-row>
</page-layout>
</a-list-layout>
</template>
<script>
import { message , Modal} from '@hwork/ant-design-vue';
import { message , Modal as modal} from '@hwork/ant-design-vue';
import { ExclamationCircleOutlined } from '@ant-design/icons-vue';
import { page, clean } from "@/api/module/log";
import { reactive, createVNode } from 'vue';
@ -79,7 +71,7 @@ export default {
///
const cleanMethod = (record) => {
Modal.confirm({
modal.confirm({
title: '您是否确定要清空日志?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',

View File

@ -1,40 +1,20 @@
<template>
<page-layout>
<a-row :gutter="[10, 10]">
<!-- 顶部区域 -->
<a-col :span="24">
<a-card>
<a-list-layout ref="pageRef">
<template #search>
<!-- 查询参数 -->
<pro-query
:searchParam="searchParam"
@on-search ="search"
></pro-query>
</a-card>
</a-col>
<!-- 中心区域 -->
<a-col :span="24">
<a-card>
<pro-query :searchParam="searchParam" @on-search="search"></pro-query>
</template>
<!-- 列表 -->
<pro-table
ref="tableRef"
:fetch="fetch"
:columns="columns"
:operate="operater"
:toolbar="toolbar"
:param="state.param"
:pagination="pagination"
:row-selection="{ selectedRowKeys: state.selectedRowKeys, onChange: onSelectChange }"
>
<pro-table ref="tableRef" :fetch="fetch" :columns="columns" :operate="operater" :toolbar="toolbar"
:param="state.param" :pagination="pagination"
:row-selection="{ selectedRowKeys: state.selectedRowKeys, onChange: onSelectChange }">
<!-- 继承至 a-table 的默认插槽 -->
</pro-table>
</a-card>
</a-col>
</a-row>
</page-layout>
</a-list-layout>
</template>
<script>
import { message , Modal} from '@hwork/ant-design-vue';
import { message, Modal as modal } from '@hwork/ant-design-vue';
import { ExclamationCircleOutlined } from '@ant-design/icons-vue';
import { page, clean, exportExcel } from "@/api/module/log";
import { reactive, createVNode, ref } from 'vue';
@ -47,29 +27,29 @@ export default {
const tableRef = ref()
///
const converFormat = [{label:"成功", value:true},{label:"失败", value:false}];
const converFormat = [{ label: "成功", value: true }, { label: "失败", value: false }];
///
const columns = [
{ dataIndex: "title", key: "title", title: "标题" ,width:120,showSearch: true},
{ dataIndex: "describe", key: "describe", title: "描述" ,width:120,showSearch: true},
{ dataIndex: "action", key: "action", title: "动作",width:100},
{ dataIndex: "type", key: "type", title: "方式",width:120},
{ dataIndex: "browser", key: "browser", title: "浏览器" ,width:120,ellipsis: true},
{ dataIndex: "system", key: "system", title: "系统" ,width:120,ellipsis: true},
{ dataIndex: "address", key: "address", title: "操作地" ,width:120,showSearch: true,ellipsis: true},
{ dataIndex: "operator", key: "operator", title: "操作人" ,width:100},
{ dataIndex: "createBy", key: "createBy", title: "创建人" ,width:120,ellipsis: true,showSearch: true},
{ dataIndex: "createUsername", key: "createUsername", title: "创建人" ,width:120,ellipsis: true,showSearch: true},
{ dataIndex: "createNickname", key: "createNickname", title: "创建人昵称" ,width:120,ellipsis: true},
{ dataIndex: "createTime", key: "createTime", title: "操作时间" ,width:180,ellipsis: true},
{ dataIndex: "state", key: "state", title: "状态", conver: converFormat ,width:120,ellipsis: true},
{ dataIndex: "params", key: "params", title: "参数",showSearch: true ,width:300,ellipsis: true},
{ dataIndex: "result", key: "result", title: "返回结果", showSearch: true ,width:300,ellipsis: true},
{ dataIndex: "title", key: "title", title: "标题", width: 120, showSearch: true },
{ dataIndex: "describe", key: "describe", title: "描述", width: 120, showSearch: true },
{ dataIndex: "action", key: "action", title: "动作", width: 100 },
{ dataIndex: "type", key: "type", title: "方式", width: 120 },
{ dataIndex: "browser", key: "browser", title: "浏览器", width: 120, ellipsis: true },
{ dataIndex: "system", key: "system", title: "系统", width: 120, ellipsis: true },
{ dataIndex: "address", key: "address", title: "操作地", width: 120, showSearch: true, ellipsis: true },
{ dataIndex: "operator", key: "operator", title: "操作人", width: 100 },
{ dataIndex: "createBy", key: "createBy", title: "创建人", width: 120, ellipsis: true, showSearch: true },
{ dataIndex: "createUsername", key: "createUsername", title: "创建人", width: 120, ellipsis: true, showSearch: true },
{ dataIndex: "createNickname", key: "createNickname", title: "创建人昵称", width: 120, ellipsis: true },
{ dataIndex: "createTime", key: "createTime", title: "操作时间", width: 180, ellipsis: true },
{ dataIndex: "state", key: "state", title: "状态", conver: converFormat, width: 120, ellipsis: true },
{ dataIndex: "params", key: "params", title: "参数", showSearch: true, width: 300, ellipsis: true },
{ dataIndex: "result", key: "result", title: "返回结果", showSearch: true, width: 300, ellipsis: true },
];
const operater = [
{ label: "查看", event: function (record) { alert("查看详情:" + JSON.stringify(record))}},
{ label: "查看", event: function (record) { alert("查看详情:" + JSON.stringify(record)) } },
];
/// []
@ -83,19 +63,19 @@ export default {
///
const cleanMethod = (record) => {
Modal.confirm({
modal.confirm({
title: '您是否确定要清空日志?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',
cancelText: '取消',
onOk() {
message.loading({ content: "提交中...", key: cleanKey });
clean({"isAuth":false}).then((response) => {
if(response.success){
message.success({content: "清空成功", key: cleanKey, duration: 1})
clean({ "isAuth": false }).then((response) => {
if (response.success) {
message.success({ content: "清空成功", key: cleanKey, duration: 1 })
tableRef.value.reload()
}else{
message.error({content: "清空失败", key: cleanKey, duration: 1})
} else {
message.error({ content: "清空失败", key: cleanKey, duration: 1 })
}
})
}
@ -104,8 +84,8 @@ export default {
///
const toolbar = [
{ label: "备份", event: function () { exportExcel(); }},
{ label: "清空", event: function () { cleanMethod(); }},
{ label: "备份", event: function () { exportExcel(); } },
{ label: "清空", event: function () { cleanMethod(); } },
];
///
@ -122,18 +102,19 @@ export default {
///
const searchParam = [
{ key: "title", type: "input", label: "标题"},
{ key: "state", type: "select", label: "状态", value: "",
{ key: "title", type: "input", label: "标题" },
{
key: "state", type: "select", label: "状态", value: "",
options: [
{ text: "全部", value: ""},
{ text: "成功", value: true},
{ text: "失败", value: false}
{ text: "全部", value: "" },
{ text: "成功", value: true },
{ text: "失败", value: false }
]
}
]
///
const search = function(value) {
const search = function (value) {
state.param.title = value.title
state.param.state = value.state
}

View File

@ -1,43 +1,23 @@
<template>
<page-layout>
<a-row :gutter="[10, 10]">
<!-- 查询表单 -->
<a-col :span="24">
<a-card>
<pro-query
:searchParam="searchParam"
@on-search ="search"
></pro-query>
</a-card>
</a-col>
<!-- 岗位列表 -->
<a-col :span="24">
<a-card>
<pro-table
ref="tableRef"
:fetch="fetch"
:columns="columns"
:toolbar="toolbar"
:operate="operate"
:param="state.param"
:pagination="pagination"
:row-selection="{ selectedRowKeys: state.selectedRowKeys, onChange: onSelectChange }"
>
<a-list-layout ref="pageRef">
<template #search>
<pro-query :searchParam="searchParam" @on-search="search"></pro-query>
</template>
<pro-table ref="tableRef" :fetch="fetch" :columns="columns" :toolbar="toolbar" :operate="operate"
:param="state.param" :pagination="pagination"
:row-selection="{ selectedRowKeys: state.selectedRowKeys, onChange: onSelectChange }">
</pro-table>
</a-card>
</a-col>
</a-row>
<save :visible="state.visibleSave" @close="closeSave"></save>
<edit :visible="state.visibleEdit" @close="closeEdit" :record="state.recordEdit"></edit>
<info :visible="state.visibleInfo" @close="closeInfo" :record="state.recordInfo"></info>
</page-layout>
</a-list-layout>
</template>
<script>
import save from './modal/save.vue';
import edit from './modal/edit.vue';
import info from './modal/info.vue';
import { message , Modal} from '@hwork/ant-design-vue';
import { message, Modal as modal } from '@hwork/ant-design-vue';
import { ExclamationCircleOutlined } from '@ant-design/icons-vue';
import { page, remove, removeBatch } from "@/api/module/post";
import { reactive, createVNode, ref } from 'vue';
@ -63,7 +43,7 @@ export default {
{ dataIndex: "name", key: "name", title: "名称" },
{ dataIndex: "code", key: "code", title: "标识" },
{ dataIndex: "remark", key: "remark", title: "备注" },
{ dataIndex: "enable", key: "enable", title: "状态", switch: switchFormat},
{ dataIndex: "enable", key: "enable", title: "状态", switch: switchFormat },
{ dataIndex: "sort", key: "sort", title: "排序" },
];
@ -78,20 +58,20 @@ export default {
///
const removeMethod = (record) => {
Modal.confirm({
modal.confirm({
title: '您是否确定要删除此配置?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',
cancelText: '取消',
onOk() {
message.loading({ content: "提交中...", key: removeKey });
remove({"id":record.id}).then((response) => {
if(response.success){
message.success({content: "删除成功", key: removeKey, duration: 1}).then(()=>{
remove({ "id": record.id }).then((response) => {
if (response.success) {
message.success({ content: "删除成功", key: removeKey, duration: 1 }).then(() => {
tableRef.value.reload()
})
}else{
message.error({content: "删除失败", key: removeKey, duration: 1})
} else {
message.error({ content: "删除失败", key: removeKey, duration: 1 })
}
})
}
@ -99,20 +79,20 @@ export default {
}
const removeBatchMethod = (ids) => {
Modal.confirm({
modal.confirm({
title: '您是否确定要删除选择配置?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',
cancelText: '取消',
onOk() {
message.loading({ content: "提交中...", key: removeBatchKey });
removeBatch({"ids":ids}).then((response) => {
if(response.success){
message.success({content: "删除成功", key: removeBatchKey, duration: 1}).then(()=>{
removeBatch({ "ids": ids }).then((response) => {
if (response.success) {
message.success({ content: "删除成功", key: removeBatchKey, duration: 1 }).then(() => {
tableRef.value.reload()
})
}else{
message.error({content: "删除失败", key: removeBatchKey, duration: 1})
} else {
message.error({ content: "删除失败", key: removeBatchKey, duration: 1 })
}
})
}
@ -121,15 +101,15 @@ export default {
///
const toolbar = [
{ label: "新增", event: function () { state.visibleSave = true }},
{ label: "删除", event: function () { removeBatchMethod(state.selectedRowKeys) }},
{ label: "新增", event: function () { state.visibleSave = true } },
{ label: "删除", event: function () { removeBatchMethod(state.selectedRowKeys) } },
];
///
const operate = [
{ label: "查看", event: function (record) { state.visibleInfo = true, state.recordInfo = record }},
{ label: "修改", event: function (record) { state.visibleEdit = true, state.recordEdit = record }},
{ label: "删除", event: function (record) { removeMethod(record) }},
{ label: "查看", event: function (record) { state.visibleInfo = true, state.recordInfo = record } },
{ label: "修改", event: function (record) { state.visibleEdit = true, state.recordEdit = record } },
{ label: "删除", event: function (record) { removeMethod(record) } },
];
///
@ -150,26 +130,26 @@ export default {
})
const searchParam = [
{ key: "name", type: "input", label: "岗位名称"},
{ key: "code", type: "input", label: "岗位编码"},
{ key: "name", type: "input", label: "岗位名称" },
{ key: "code", type: "input", label: "岗位编码" },
]
const search = function(value) {
const search = function (value) {
state.param = value
tableRef.value.reload()
}
const closeSave = function(){
const closeSave = function () {
state.visibleSave = false
tableRef.value.reload()
}
const closeEdit = function(){
const closeEdit = function () {
state.visibleEdit = false
tableRef.value.reload()
}
const closeInfo = function(){
const closeInfo = function () {
state.visibleInfo = false
}

View File

@ -119,7 +119,7 @@
///
const removeMethod = (record) => {
Modal.confirm({
modal.confirm({
title: '您是否确定要删除此角色?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',
@ -154,7 +154,7 @@
///
const removeBatchMethod = (ids) => {
Modal.confirm({
modal.confirm({
title: '您是否确定要删除选择角色?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',

View File

@ -1,40 +1,20 @@
<template>
<page-layout>
<a-row :gutter="[10, 10]">
<!-- 顶部区域 -->
<a-col :span="24">
<a-card>
<a-list-layout ref="pageRef">
<template #search>
<!-- 查询参数 -->
<pro-query
:searchParam="searchParam"
@on-search ="search"
></pro-query>
</a-card>
</a-col>
<!-- 中心区域 -->
<a-col :span="24">
<a-card>
<pro-query :searchParam="searchParam" @on-search="search"></pro-query>
</template>
<!-- 列表 -->
<pro-table
ref="tableRef"
:fetch="fetch"
:columns="columns"
:toolbar="toolbar"
:operate="operate"
:param="state.param"
:pagination="pagination"
:row-selection="{ selectedRowKeys: state.selectedRowKeys, onChange: onSelectChange }"
>
<pro-table ref="tableRef" :fetch="fetch" :columns="columns" :toolbar="toolbar" :operate="operate"
:param="state.param" :pagination="pagination"
:row-selection="{ selectedRowKeys: state.selectedRowKeys, onChange: onSelectChange }">
<!-- 继承至 a-table 的默认插槽 -->
</pro-table>
</a-card>
</a-col>
</a-row>
<save :visible="state.visibleSave" @close="closeSave"></save>
<edit :visible="state.visibleEdit" @close="closeEdit" :record="state.recordEdit"></edit>
<info :visible="state.visibleInfo" @close="closeInfo" :record="state.recordInfo"></info>
<give :visible="state.visibleGive" @close="closeGive" :record="state.recordGive"></give>
</page-layout>
</a-list-layout>
</template>
<script>
@ -42,7 +22,7 @@ import save from './modal/save.vue';
import edit from './modal/edit.vue';
import info from './modal/info.vue';
import give from './modal/give.vue';
import { message , Modal} from '@hwork/ant-design-vue';
import { message, Modal as modal } from '@hwork/ant-design-vue';
import { ExclamationCircleOutlined } from '@ant-design/icons-vue';
import { page, remove, removeBatch } from "@/api/module/tenant";
import { reactive, createVNode, ref } from 'vue';
@ -63,7 +43,7 @@ export default {
const columns = [
{ dataIndex: "name", key: "name", title: "名称" },
{ dataIndex: "describe", key: "describe", title: "描述"},
{ dataIndex: "describe", key: "describe", title: "描述" },
{ dataIndex: "createTime", key: "createTime", title: "创建时间" },
];
@ -91,20 +71,20 @@ export default {
}
const removeBatchMethod = (ids) => {
Modal.confirm({
modal.confirm({
title: '您是否确定要删除选择租户?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',
cancelText: '取消',
onOk() {
message.loading({ content: "提交中...", key: removeBatchKey });
removeBatch({"ids":ids}).then((response) => {
if(response.success){
message.success({content: "删除成功", key: removeBatchKey, duration: 1}).then(()=>{
removeBatch({ "ids": ids }).then((response) => {
if (response.success) {
message.success({ content: "删除成功", key: removeBatchKey, duration: 1 }).then(() => {
tableRef.value.reload()
})
}else{
message.error({content: "删除失败", key: removeBatchKey, duration: 1})
} else {
message.error({ content: "删除失败", key: removeBatchKey, duration: 1 })
}
})
}
@ -113,16 +93,16 @@ export default {
///
const toolbar = [
{ label: "新增", event: function () { state.visibleSave = true }},
{ label: "删除", event: function () { removeBatchMethod(state.selectedRowKeys) }},
{ label: "新增", event: function () { state.visibleSave = true } },
{ label: "删除", event: function () { removeBatchMethod(state.selectedRowKeys) } },
];
///
const operate = [
{ label: "查看", event: function (record) { state.visibleInfo = true, state.recordInfo = record }},
{ label: "修改", event: function (record) { state.visibleEdit = true, state.recordEdit = record }},
{ label: "分配", event: function (record) { state.visibleGive = true, state.recordGive = record }},
{ label: "删除",isDel:true, delEvent: function (record) { removeMethod(record) }},
{ label: "查看", event: function (record) { state.visibleInfo = true, state.recordInfo = record } },
{ label: "修改", event: function (record) { state.visibleEdit = true, state.recordEdit = record } },
{ label: "分配", event: function (record) { state.visibleGive = true, state.recordGive = record } },
{ label: "删除", isDel: true, delEvent: function (record) { removeMethod(record) } },
];
///
@ -150,31 +130,31 @@ export default {
///
const searchParam = [
{ key: "name", type: "input", label: "名称"},
{ key: "key", type: "input", label: "Key"},
{ key: "name", type: "input", label: "名称" },
{ key: "key", type: "input", label: "Key" },
]
///
const search = function(value) {
const search = function (value) {
state.param = value
tableRef.value.reload()
}
const closeSave = function(){
const closeSave = function () {
state.visibleSave = false;
tableRef.value.reload()
}
const closeEdit = function(){
const closeEdit = function () {
state.visibleEdit = false;
tableRef.value.reload()
}
const closeInfo = function(){
const closeInfo = function () {
state.visibleInfo = false;
}
const closeGive = function(){
const closeGive = function () {
state.visibleGive = false;
}

View File

@ -1,45 +1,25 @@
<template>
<page-layout>
<!-- 列表页面 -->
<a-row :gutter="[10, 10]">
<!-- 查询条件 -->
<a-col :span="24">
<a-card>
<pro-query
:searchParam="searchParam"
@on-search ="search"
>
<a-list-layout ref="pageRef">
<template #search>
<pro-query :searchParam="searchParam" @on-search="search">
<template #test="{ data }">
<a-input v-model:value="data.test" type="text" />
</template>
</pro-query>
</a-card>
</a-col>
<!-- 用户列表 -->
<a-col :span="24">
<a-card>
<pro-table
ref="tableRef"
:fetch="fetch"
:columns="columns"
:toolbar="toolbar"
:operate="operate"
:param="state.param"
:pagination="pagination"
</template>
<pro-table ref="tableRef" :fetch="fetch" :columns="columns" :toolbar="toolbar" :operate="operate"
:param="state.param" :pagination="pagination"
:row-selection="{ selectedRowKeys: state.selectedRowKeys, onChange: onSelectChange }">
</pro-table>
</a-card>
</a-col>
</a-row>
<!-- 新增页面 -->
<save :visible="state.visibleSave" @close="closeSave" :record="state.record"></save>
<!-- 修改页面 -->
<edit :visible="state.visibleEdit" @close="closeEdit" :record="state.recordEdit" ></edit>
<edit :visible="state.visibleEdit" @close="closeEdit" :record="state.recordEdit"></edit>
<!-- 分配页面 -->
<give :visible="state.visibleGive" @close="closeGive" :record="state.recordGive"></give>
<!-- 详情页面 -->
<info :visible="state.visibleInfo" @close="closeInfo" :record="state.recordInfo"></info>
</page-layout>
</a-list-layout>
</template>
<script>
@ -47,7 +27,7 @@ import save from './modal/save.vue';
import edit from './modal/edit.vue';
import give from './modal/give.vue';
import info from './modal/info.vue';
import { message , Modal} from '@hwork/ant-design-vue';
import { message, Modal as modal } from '@hwork/ant-design-vue';
import { ExclamationCircleOutlined } from '@ant-design/icons-vue';
import { page, remove, removeBatch, resetPassword } from "@/api/module/user";
import { reactive, createVNode, ref } from 'vue';
@ -76,31 +56,31 @@ export default {
};
const resetPasswordMethod = (record) => {
resetPassword({"id":record.id}).then((response) => {
if(response.success){
message.success({content: "重置成功", key: removeKey, duration: 1})
}else{
message.error({content: "重置失败", key: removeKey, duration: 1})
resetPassword({ "id": record.id }).then((response) => {
if (response.success) {
message.success({ content: "重置成功", key: removeKey, duration: 1 })
} else {
message.error({ content: "重置失败", key: removeKey, duration: 1 })
}
})
}
///
const removeMethod = (record) => {
Modal.confirm({
modal.confirm({
title: '您是否确定要删除此用户?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',
cancelText: '取消',
onOk() {
message.loading({ content: "提交中...", key: removeKey });
remove({"id":record.id}).then((response) => {
if(response.success){
message.success({content: "删除成功", key: removeKey, duration: 1}).then(() =>
remove({ "id": record.id }).then((response) => {
if (response.success) {
message.success({ content: "删除成功", key: removeKey, duration: 1 }).then(() =>
tableRef.value.reload()
)
}else{
message.error({content: "删除失败", key: removeKey, duration: 1})
} else {
message.error({ content: "删除失败", key: removeKey, duration: 1 })
}
})
}
@ -109,20 +89,20 @@ export default {
///
const removeBatchMethod = (ids) => {
Modal.confirm({
modal.confirm({
title: '您是否确定要删除选择用户?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',
cancelText: '取消',
onOk() {
message.loading({ content: "提交中...", key: removeBatchKey });
removeBatch({"ids":ids}).then((response) => {
if(response.success){
message.success({content: "删除成功", key: removeBatchKey, duration: 1}).then(() =>
removeBatch({ "ids": ids }).then((response) => {
if (response.success) {
message.success({ content: "删除成功", key: removeBatchKey, duration: 1 }).then(() =>
tableRef.value.reload()
)
}else{
message.error({content: "删除失败", key: removeBatchKey, duration: 1})
} else {
message.error({ content: "删除失败", key: removeBatchKey, duration: 1 })
}
})
}
@ -131,27 +111,29 @@ export default {
///
const toolbar = [
{ label: "新增", event: function () { state.visibleSave = true }},
{ label: "删除", event: function () { removeBatchMethod(state.selectedRowKeys) }}
{ label: "新增", event: function () { state.visibleSave = true } },
{ label: "删除", event: function () { removeBatchMethod(state.selectedRowKeys) } }
];
///
const operate = [
{ label: "查看", event: function (record) { state.visibleInfo = true , state.recordInfo = record }},
{ label: "修改", event: function (record) { state.visibleEdit = true , state.recordEdit = record }},
{ label: "分配", event: function (record) { state.visibleGive = true , state.recordGive = record }},
{ label: "删除", event: function (record) { removeMethod(record) }},
{ label: '重置', event: function (record) { resetPasswordMethod(record) }}
{ label: "查看", event: function (record) { state.visibleInfo = true, state.recordInfo = record } },
{ label: "修改", event: function (record) { state.visibleEdit = true, state.recordEdit = record } },
{ label: "分配", event: function (record) { state.visibleGive = true, state.recordGive = record } },
{ label: "删除", event: function (record) { removeMethod(record) } },
{ label: '重置', event: function (record) { resetPasswordMethod(record) } }
];
///
const converFormat = [{label:"男", value:"0"},{label:"女", value:"1"}];
const converFormat = [{ label: "男", value: "0" }, { label: "女", value: "1" }];
///
const switchFormat = { yes: true, no: false, event: function(value,record){
const switchFormat = {
yes: true, no: false, event: function (value, record) {
record.enable = !record.enable;
return value;
} };
}
};
///
const avatarFormat = { size: 36, shape: "square" };
@ -162,15 +144,15 @@ export default {
{ dataIndex: "avatar", key: "avatar", title: "头像", avatar: avatarFormat },
{ dataIndex: "nickname", key: "nickname", title: "名称" },
{ dataIndex: "username", key: "username", title: "账号" },
{ dataIndex: "gender", key: "gender", title: "性别", conver: converFormat},
{ dataIndex: "enable", key: "enable", title: "状态", switch: switchFormat},
{ dataIndex: "gender", key: "gender", title: "性别", conver: converFormat },
{ dataIndex: "enable", key: "enable", title: "状态", switch: switchFormat },
{ dataIndex: "email", key: "email", title: "邮箱" },
{ dataIndex: "phone", key: "phone", title: "电话" },
{ dataIndex: "createTime", key: "createTime", title: "注册时间" }
];
///
const pagination = { pageNum: 1, pageSize: 10}
const pagination = { pageNum: 1, pageSize: 10 }
///
const state = reactive({
@ -188,8 +170,8 @@ export default {
///
const searchParam = [
{ key: "name", type: "input", label: "名称"},
{ key: "code", type: "input", label: "描述"},
{ key: "name", type: "input", label: "名称" },
{ key: "code", type: "input", label: "描述" },
{ key: "test", type: "custom", label: "插槽", customRender: "test" }
]
@ -199,31 +181,31 @@ export default {
};
///
const search = function(value) {
const search = function (value) {
state.param = value;
tableRef.value.reload();
}
///
const closeSave = function(){
const closeSave = function () {
state.visibleSave = false;
tableRef.value.reload();
}
///
const closeEdit = function(){
const closeEdit = function () {
state.visibleEdit = false;
tableRef.value.reload();
}
///
const closeGive = function(){
const closeGive = function () {
state.visibleGive = false;
tableRef.value.reload();
}
///
const closeInfo = function(){
const closeInfo = function () {
state.visibleInfo = false;
}

View File

@ -1,26 +1,19 @@
<template>
<page-layout>
<a-row :gutter="[10, 10]">
<!-- 查询表单 -->
<a-col :span="24">
<a-card>
<a-list-layout
ref="pageRef"
>
<template #search>
<pro-query :searchParam="searchParam" @on-search="search"></pro-query>
</a-card>
</a-col>
</template>
<!-- 客户信息列表 -->
<a-col :span="24">
<a-card>
<pro-table ref="tableRef" :fetch="fetch" :columns="columns" :toolbar="toolbar" :operate="operate"
:param="state.param" :pagination="pagination"
:row-selection="{ selectedRowKeys: state.selectedRowKeys, onChange: onSelectChange }">
</pro-table>
</a-card>
</a-col>
</a-row>
<save :visible="state.visibleSave" @close="closeSave"></save>
<edit :visible="state.visibleEdit" @close="closeEdit" :record="state.recordEdit"></edit>
<info :visible="state.visibleInfo" @close="closeInfo" :record="state.recordInfo"></info>
</page-layout>
</a-list-layout>
</template>
<script>
@ -183,7 +176,7 @@
}
const removeBatchMethod = (ids) => {
Modal.confirm({
modal.confirm({
title: '您是否确定要删除选择客户信息?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',

View File

@ -1,26 +1,19 @@
<template>
<page-layout>
<a-row :gutter="[10, 10]">
<!-- 查询表单 -->
<a-col :span="24">
<a-card>
<a-list-layout
ref="pageRef"
>
<template #search>
<pro-query :searchParam="searchParam" @on-search="search"></pro-query>
</a-card>
</a-col>
</template>
<!-- 搬运类型列表 -->
<a-col :span="24">
<a-card>
<pro-table ref="tableRef" :fetch="fetch" :columns="columns" :toolbar="toolbar" :operate="operate"
:param="state.param" :pagination="pagination"
:row-selection="{ selectedRowKeys: state.selectedRowKeys, onChange: onSelectChange }">
</pro-table>
</a-card>
</a-col>
</a-row>
<save :visible="state.visibleSave" @close="closeSave"></save>
<edit :visible="state.visibleEdit" @close="closeEdit" :record="state.recordEdit"></edit>
<info :visible="state.visibleInfo" @close="closeInfo" :record="state.recordInfo"></info>
</page-layout>
</a-list-layout>
</template>
<script>
@ -218,7 +211,7 @@
}
const removeBatchMethod = (ids) => {
Modal.confirm({
modal.confirm({
title: '您是否确定要删除选择任务?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',

View File

@ -1,51 +1,41 @@
<template>
<div>
<page-layout>
<a-row :gutter="[0,2]">
<a-col :span="24">
<a-card>
<a-list-layout ref="pageRef">
<template #search>
<pro-query :searchParam="searchParam" @on-search="search"></pro-query>
</a-card>
</a-col>
<a-col :span="24">
<a-card>
<pro-table style="margin-top: 10px" rowKey="id" ref="tableRef" :fetch="fetch" :columns="columns"
:toolbar="toolbar" :operate="operate" :param="state.param" :pagination="pagination"
</template>
<pro-table style="margin-top: 10px" rowKey="id" ref="tableRef" :fetch="fetch" :columns="columns" :toolbar="toolbar"
:operate="operate" :param="state.param" :pagination="pagination"
:row-selection="{ selectedRowKeys: state.selectedRowKeys, onChange: onSelectChange }">
</pro-table>
</a-card>
</a-col>
</a-row>
</page-layout>
</div>
</a-list-layout>
</template>
<script>
import {
import {
message,
notification,
modal
} from '@hwork/ant-design-vue';
import {
Modal as modal
} from '@hwork/ant-design-vue';
import {
ExclamationCircleOutlined
} from '@ant-design/icons-vue';
import {
} from '@ant-design/icons-vue';
import {
reActivate,
page,
remove,
cancel,
removeBatch
} from "@/api/wms/request";
import {
} from "@/api/wms/request";
import {
reactive,
createVNode,
ref,
} from 'vue';
const reActivateKey = "reActivate";
const removeKey = "remove";
const cancelKey = "cancel";
const removeBatchKey = "removeBatch";
} from 'vue';
const reActivateKey = "reActivate";
const removeKey = "remove";
const cancelKey = "cancel";
const removeBatchKey = "removeBatch";
export default {
export default {
name: 'WmsRequestIndex',
components: {},
setup() {
@ -171,7 +161,7 @@
//
const reActivateMethod = (record) => {
Modal.confirm({
modal.confirm({
title: '您是否确认重置该请求?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',
@ -196,7 +186,7 @@
tableRef.value.reload()
} else {
message.error({
content: "重置失败:" +response.msg,
content: "重置失败:" + response.msg,
key: reActivateKey,
duration: 3
})
@ -208,7 +198,7 @@
//
const cancelMethod = (record) => {
const confirmMsg = Modal.confirm({
const confirmMsg = modal.confirm({
title: '您是否确认取消该请求?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',
@ -220,7 +210,7 @@
});
cancel({
'id': record.id,
'status':record.status,
'status': record.status,
}).then((response) => {
if (response.success) {
message.success({
@ -231,7 +221,7 @@
tableRef.value.reload()
} else {
message.destroy()
notification.error({
message.error({
message: '请求取消失败',
description: response.msg
})
@ -244,7 +234,7 @@
}
//
const removeMethod = (record) => {
Modal.confirm({
modal.confirm({
title: '您是否确定要删除?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',
@ -279,7 +269,7 @@
//
const removeBatchMethod = (ids) => {
Modal.confirm({
modal.confirm({
title: '您是否确定要删除?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',
@ -315,18 +305,18 @@
///
const toolbar = [{
label: "删除",
code: remove,
event: function() {
code: 'wms:request:delete',
event: function () {
removeBatchMethod(state.selectedRowKeys)
},
type: 'danger'
}, ];
},];
///
const operate = [{
label: "删除",
code: 'wms:request:delete',
event: function(record) {
event: function (record) {
removeMethod(record)
}
},
@ -334,7 +324,7 @@
label: "重置",
code: 'wms:request:reactivate',
isRes: true,
event: function(record) {
event: function (record) {
reActivateMethod(record)
}
},
@ -342,13 +332,13 @@
label: "取消",
code: 'wms:request:cancel',
isRes: true,
event: function(record) {
event: function (record) {
cancelMethod(record)
}
},
{
label: "查看",
event: function(record) {
event: function (record) {
alert("查看详情:" + JSON.stringify(record))
}
},
@ -389,7 +379,7 @@
}
]
const search = function(value) {
const search = function (value) {
console.log("search", value)
state.param = value
}
@ -412,5 +402,5 @@
};
}
}
}
</script>

View File

@ -1,52 +1,44 @@
<template>
<page-layout>
<a-row :gutter="[10, 10]">
<!-- 查询表单 -->
<a-col :span="24">
<a-card>
<a-list-layout ref="pageRef">
<template #search>
<pro-query :searchParam="searchParam" @on-search="search"></pro-query>
</a-card>
</a-col>
</template>
<!-- 岗位列表 -->
<a-col :span="24">
<a-card>
<pro-table ref="tableRef" :fetch="fetch" :columns="columns" :toolbar="toolbar" :operate="operate"
:param="state.param" :pagination="pagination"
:row-selection="{ selectedRowKeys: state.selectedRowKeys, onChange: onSelectChange }">
</pro-table>
</a-card>
</a-col>
</a-row>
<save :visible="state.visibleSave" @close="closeSave"></save>
<edit :visible="state.visibleEdit" @close="closeEdit" :record="state.recordEdit"></edit>
</page-layout>
</a-list-layout>
</template>
<script>
import save from './modal/save.vue';
import edit from './modal/edit.vue';
import {
import save from './modal/save.vue';
import edit from './modal/edit.vue';
import {
message,
Modal as modal
} from '@hwork/ant-design-vue';
import {
} from '@hwork/ant-design-vue';
import {
ExclamationCircleOutlined
} from '@ant-design/icons-vue';
import {
} from '@ant-design/icons-vue';
import {
page,
remove,
removeBatch
} from "@/api/wms/skuCategory";
import {
} from "@/api/wms/skuCategory";
import {
reactive,
createVNode,
ref
} from 'vue';
} from 'vue';
const removeKey = "remove";
const removeBatchKey = "removeBatch";
const removeKey = "remove";
const removeBatchKey = "removeBatch";
export default {
export default {
name: "SkuCategory",
components: {
save,
edit,
@ -148,7 +140,7 @@
///
const removeMethod = (record) => {
Modal.confirm({
modal.confirm({
title: '您是否确定要删除此数据?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',
@ -182,7 +174,7 @@
}
const removeBatchMethod = (ids) => {
Modal.confirm({
modal.confirm({
title: '您是否确定要删除选择数据?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',
@ -219,14 +211,14 @@
const toolbar = [{
label: "新增",
code: 'wms:skuCategory:add',
event: function() {
event: function () {
state.visibleSave = true
}
},
{
label: "删除",
code: 'wms:skuCategory:remove',
event: function() {
event: function () {
removeBatchMethod(state.selectedRowKeys)
},
type: 'danger'
@ -239,14 +231,14 @@
{
label: "修改",
code: 'wms:skuCategory:edit',
event: function(record) {
event: function (record) {
state.visibleEdit = true, state.recordEdit = record
}
},
{
label: "删除",
code: 'wms:skuCategory:delete',
event: function(record) {
event: function (record) {
removeMethod(record)
}
},
@ -283,17 +275,17 @@
},
]
const search = function(value) {
const search = function (value) {
state.param = value
tableRef.value.reload()
}
const closeSave = function() {
const closeSave = function () {
state.visibleSave = false
tableRef.value.reload()
}
const closeEdit = function() {
const closeEdit = function () {
state.visibleEdit = false
tableRef.value.reload()
}
@ -320,5 +312,5 @@
tableRef
};
},
};
};
</script>

View File

@ -62,7 +62,7 @@
import save from './model/save.vue';
import {
message,
Modal,
Modal as modal,
} from '@hwork/ant-design-vue';
import {
CheckOutlined,
@ -312,7 +312,7 @@
//
const removeMethod = (id) => {
Modal.confirm({
modal.confirm({
title: '您是否确定要删除此条数据?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',
@ -349,7 +349,7 @@
//
const removeactQtyMethod = (ids) => {
Modal.confirm({
modal.confirm({
title: '您是否确定要删除选择数据?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',

View File

@ -20,7 +20,7 @@
<script>
import {
message,
Modal,
Modal as modal,
} from '@hwork/ant-design-vue';
import {
@ -228,7 +228,7 @@
//
const removeMethod = (record) => {
Modal.confirm({
modal.confirm({
title: '您是否确定要删除此条数据?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',
@ -263,7 +263,7 @@
//
const removeBatchMethod = (ids) => {
Modal.confirm({
modal.confirm({
title: '您是否确定要删除选择数据?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',

View File

@ -25,7 +25,7 @@
import edit from './model/edit.vue';
import {
message,
Modal,
Modal as modal,
} from '@hwork/ant-design-vue';
import {
@ -187,7 +187,7 @@
//
const removeMethod = (record) => {
Modal.confirm({
modal.confirm({
title: '您是否确定要删除此条数据?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',
@ -222,7 +222,7 @@
//
const removeBatchMethod = (ids) => {
Modal.confirm({
modal.confirm({
title: '您是否确定要删除选择数据?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',

View File

@ -135,7 +135,7 @@
//
const removeMethod = (record) => {
Modal.confirm({
modal.confirm({
title: '您是否确定要删除?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',
@ -171,7 +171,7 @@
//
const removeBatchMethod = (ids) => {
Modal.confirm({
modal.confirm({
title: '您是否确定要删除?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',

View File

@ -188,7 +188,7 @@
///
const removeMethod = (record) => {
Modal.confirm({
modal.confirm({
title: '您是否确定要删除此数据?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',
@ -223,7 +223,7 @@
///
const removeBatchMethod = (ids) => {
Modal.confirm({
modal.confirm({
title: '您是否确定要删除选择数据?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',

View File

@ -151,7 +151,7 @@
import {
message,
Modal,
Modal as modal,
} from '@hwork/ant-design-vue';
import {
CheckOutlined,
@ -768,7 +768,7 @@
}
//
const removeMethod = (id) => {
Modal.confirm({
modal.confirm({
title: '您是否确定要删除此条数据?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',
@ -805,7 +805,7 @@
//
const removeBatchMethod = (ids) => {
Modal.confirm({
modal.confirm({
title: '您是否确定要删除选择数据?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',

View File

@ -20,7 +20,7 @@
<script>
import {
message,
Modal,
Modal as modal,
} from '@hwork/ant-design-vue';
import {
@ -190,7 +190,7 @@
//
const removeMethod = (record) => {
Modal.confirm({
modal.confirm({
title: '您是否确定要删除此条数据?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',
@ -225,7 +225,7 @@
//
const removeBatchMethod = (ids) => {
Modal.confirm({
modal.confirm({
title: '您是否确定要删除选择数据?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',

View File

@ -193,7 +193,7 @@
//
const removeMethod = (record) => {
Modal.confirm({
modal.confirm({
title: '您是否确定要删除?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',
@ -229,7 +229,7 @@
//
const removeBatchMethod = (ids) => {
Modal.confirm({
modal.confirm({
title: '您是否确定要删除?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',

View File

@ -307,7 +307,7 @@
///
const removeMethod = (record) => {
Modal.confirm({
modal.confirm({
title: '您是否确定要删除此数据?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',
@ -342,7 +342,7 @@
///
const removeBatchMethod = (ids) => {
Modal.confirm({
modal.confirm({
title: '您是否确定要删除选择数据?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',

View File

@ -159,7 +159,7 @@
import {
message,
Modal,
Modal as modal,
} from '@hwork/ant-design-vue';
import {
CheckOutlined,
@ -777,7 +777,7 @@
}
//
const removeMethod = (id) => {
Modal.confirm({
modal.confirm({
title: '您是否确定要删除此条数据?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',
@ -814,7 +814,7 @@
//
const removeBatchMethod = (ids) => {
Modal.confirm({
modal.confirm({
title: '您是否确定要删除选择数据?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',

View File

@ -20,7 +20,7 @@
<script>
import {
message,
Modal,
Modal as modal,
} from '@hwork/ant-design-vue';
import {
@ -188,7 +188,7 @@
//
const removeMethod = (record) => {
Modal.confirm({
modal.confirm({
title: '您是否确定要删除此条数据?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',
@ -223,7 +223,7 @@
//
const removeBatchMethod = (ids) => {
Modal.confirm({
modal.confirm({
title: '您是否确定要删除选择数据?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',

View File

@ -211,7 +211,7 @@
//
const removeMethod = (record) => {
Modal.confirm({
modal.confirm({
title: '您是否确定要删除?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',
@ -247,7 +247,7 @@
//
const removeBatchMethod = (ids) => {
Modal.confirm({
modal.confirm({
title: '您是否确定要删除?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',
@ -290,7 +290,7 @@
})
return;
}
Modal.confirm({
modal.confirm({
title: '您是否确定要分配选择的数据?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',
@ -330,7 +330,7 @@
})
return;
}
Modal.confirm({
modal.confirm({
title: '您是否确定要确认选择的数据?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',
@ -370,7 +370,7 @@
})
return;
}
Modal.confirm({
modal.confirm({
title: '您是否确定要执行选择的数据?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',
@ -410,7 +410,7 @@
})
return;
}
Modal.confirm({
modal.confirm({
title: '您是否确定要取消分配选择的数据?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',

View File

@ -290,7 +290,7 @@
///
const removeMethod = (record) => {
Modal.confirm({
modal.confirm({
title: '您是否确定要删除此数据?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',
@ -325,7 +325,7 @@
///
const removeBatchMethod = (ids) => {
Modal.confirm({
modal.confirm({
title: '您是否确定要删除选择数据?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',
@ -368,7 +368,7 @@
})
return;
}
Modal.confirm({
modal.confirm({
title: '您是否确认分配?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',

View File

@ -25,7 +25,7 @@
import edit from './model/edit.vue';
import {
message,
Modal,
Modal as modal,
} from '@hwork/ant-design-vue';
import {
@ -223,7 +223,7 @@
//
const removeMethod = (record) => {
Modal.confirm({
modal.confirm({
title: '您是否确定要删除此条数据?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',
@ -258,7 +258,7 @@
//
const removeBatchMethod = (ids) => {
Modal.confirm({
modal.confirm({
title: '您是否确定要删除选择数据?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',

View File

@ -47,6 +47,7 @@
const taskCancelKey = "taskCancel";
export default {
name: 'WmsRealTimeMonitorTaskIndex',
components: {
save,
edit,
@ -337,7 +338,7 @@
}
const removeBatchMethod = (ids) => {
Modal.confirm({
modal.confirm({
title: '您是否确定要删除选择任务?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',
@ -385,7 +386,7 @@
})
return;
}
Modal.confirm({
modal.confirm({
title: '您是否确定下发?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',
@ -432,7 +433,7 @@
})
return;
}
Modal.confirm({
modal.confirm({
title: '您是否确定完成?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',
@ -479,7 +480,7 @@
})
return;
}
Modal.confirm({
modal.confirm({
title: '您是否确定取消?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',

View File

@ -1,21 +1,16 @@
<template>
<page-layout>
<a-row :gutter="[10, 10]">
<!-- 任务备份列表 -->
<a-col :span="24">
<a-card>
<a-list-layout ref="pageRef">
<template #search>
<pro-query :searchParam="searchParam" @on-search="search"></pro-query>
</template>
<!-- 列表 -->
<pro-table ref="tableRef" :fetch="fetch" :columns="columns" :toolbar="toolbar" :operate="operate"
:param="state.param" :pagination="pagination"
:row-selection="{ selectedRowKeys: state.selectedRowKeys, onChange: onSelectChange }">
</pro-table>
</a-card>
</a-col>
</a-row>
<save :visible="state.visibleSave" @close="closeSave"></save>
<edit :visible="state.visibleEdit" @close="closeEdit" :record="state.recordEdit"></edit>
</page-layout>
</a-list-layout>
</template>
@ -328,7 +323,7 @@
}
const removeBatchMethod = (ids) => {
Modal.confirm({
modal.confirm({
title: '您是否确定要删除选择任务?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',

View File

@ -226,7 +226,7 @@
//
const removeMethod = (record) => {
Modal.confirm({
modal.confirm({
title: '您是否确定要删除?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',
@ -261,7 +261,7 @@
//
const removeBatchMethod = (ids) => {
Modal.confirm({
modal.confirm({
title: '您是否确定要删除?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',

View File

@ -261,7 +261,7 @@ export default defineComponent({
//
const removeMethod = (record) => {
Modal.confirm({
modal.confirm({
title: '您是否确定要删除?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',
@ -296,7 +296,7 @@ export default defineComponent({
//
const removeBatchMethod = (ids) => {
Modal.confirm({
modal.confirm({
title: '您是否确定要删除?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',

View File

@ -242,7 +242,7 @@
///
const removeMethod = (record) => {
Modal.confirm({
modal.confirm({
title: '您是否确定要删除此数据?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',
@ -277,7 +277,7 @@
///
const removeBatchMethod = (ids) => {
Modal.confirm({
modal.confirm({
title: '您是否确定要删除?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',
@ -312,7 +312,7 @@
///
const createTallyTaskMethod = (ids) => {
Modal.confirm({
modal.confirm({
title: '您是否确定要创建理货任务?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',

View File

@ -271,7 +271,7 @@
//
const removeMethod = (record) => {
Modal.confirm({
modal.confirm({
title: '您是否确定要删除?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',
@ -306,7 +306,7 @@
//
const removeBatchMethod = (ids) => {
Modal.confirm({
modal.confirm({
title: '您是否确定要删除?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',

View File

@ -167,7 +167,7 @@
//
const removeMethod = (record) => {
Modal.confirm({
modal.confirm({
title: '您是否确定要删除?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',
@ -202,7 +202,7 @@
//
const removeBatchMethod = (ids) => {
Modal.confirm({
modal.confirm({
title: '您是否确定要删除?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',

View File

@ -258,7 +258,7 @@
///
const removeMethod = (record) => {
Modal.confirm({
modal.confirm({
title: '您是否确定要删除此数据?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',
@ -293,7 +293,7 @@
///
const removeBatchMethod = (ids) => {
Modal.confirm({
modal.confirm({
title: '您是否确定要删除?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',

View File

@ -1,47 +1,36 @@
<template>
<div>
<page-layout>
<a-row :gutter="[0,2]">
<!-- 查询表单 -->
<a-col :span="24">
<a-card>
<a-list-layout ref="pageRef">
<template #search>
<pro-query :searchParam="searchParam" @on-search="search"></pro-query>
</a-card>
</a-col>
<a-col :span="24" style="height: 100%;">
<a-card style="width: 100%;">
</template>
<!-- 托盘出入库记录列表 -->
<pro-table style="margin-top: 10px" rowKey="id" ref="tableRef" :fetch="fetch" :columns="columns"
:toolbar="toolbar" :operate="operate" :param="state.param" :pagination="pagination">
<pro-table style="margin-top: 10px" rowKey="id" ref="tableRef" :fetch="fetch" :columns="columns" :toolbar="toolbar"
:operate="operate" :param="state.param" :pagination="pagination">
</pro-table>
</a-card>
</a-col>
</a-row>
</page-layout>
</div>
</a-list-layout>
</template>
<script>
import {
import {
message,
Modal as modal
} from '@hwork/ant-design-vue';
import {
} from '@hwork/ant-design-vue';
import {
ExclamationCircleOutlined
} from '@ant-design/icons-vue';
import {
} from '@ant-design/icons-vue';
import {
page,
remove,
removeBatch
} from "@/api/wms/palletLog";
import {
} from "@/api/wms/palletLog";
import {
reactive,
createVNode,
ref,
} from 'vue';
const removeKey = "remove";
const removeBatchKey = "removeBatch";
} from 'vue';
const removeKey = "remove";
const removeBatchKey = "removeBatch";
export default {
export default {
components: {},
setup() {
@ -286,7 +275,7 @@
//
const removeMethod = (record) => {
Modal.confirm({
modal.confirm({
title: '您是否确定要删除?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',
@ -321,7 +310,7 @@
//
const removeBatchMethod = (ids) => {
Modal.confirm({
modal.confirm({
title: '您是否确定要删除?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',
@ -359,7 +348,7 @@
{
label: "删除",
code: remove,
event: function() {
event: function () {
removeBatchMethod(state.selectedRowKeys)
},
type: 'danger'
@ -411,16 +400,16 @@
}, {
value: '前板',
text: '前板',
},{
}, {
value: '内衬',
text: '内衬',
}, {
value: 'KTP001',
text: '空托盘',
}]
}, ]
},]
const search = function(value) {
const search = function (value) {
console.log("主表查询" + JSON.stringify(value))
console.log(value)
state.param = value
@ -446,6 +435,6 @@
};
}
}
// }
}
// }
</script>

View File

@ -1,25 +1,18 @@
<template>
<page-layout>
<a-row :gutter="[10, 10]">
<!-- 查询表单 -->
<a-col :span="24">
<a-card>
<a-list-layout
ref="pageRef"
>
<template #search>
<pro-query :searchParam="searchParam" @on-search="search"></pro-query>
</a-card>
</a-col>
</template>
<!-- 码垛通道表列表 -->
<a-col :span="24">
<a-card>
<pro-table ref="tableRef" :fetch="fetch" :columns="columns" :toolbar="toolbar" :operate="operate"
:param="state.param" :pagination="pagination"
:row-selection="{ selectedRowKeys: state.selectedRowKeys, onChange: onSelectChange }">
</pro-table>
</a-card>
</a-col>
</a-row>
<save :visible="state.visibleSave" @close="closeSave"></save>
<edit :visible="state.visibleEdit" @close="closeEdit" :record="state.recordEdit"></edit>
</page-layout>
</a-list-layout>
</template>
<script>
@ -173,7 +166,7 @@
}
const removeBatchMethod = (ids) => {
Modal.confirm({
modal.confirm({
title: '您是否确定删除该数据?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',

View File

@ -192,7 +192,7 @@
}
const removeBatchMethod = (ids) => {
Modal.confirm({
modal.confirm({
title: '您是否确定删除该数据?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',

View File

@ -309,7 +309,7 @@
}
const removeBatchMethod = (ids) => {
Modal.confirm({
modal.confirm({
title: '您是否确定要删除选择任务?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',

View File

@ -1,25 +1,18 @@
<template>
<page-layout>
<a-row :gutter="[10, 10]">
<!-- 查询表单 -->
<a-col :span="24">
<a-card>
<a-list-layout
ref="pageRef"
>
<template #search>
<pro-query :searchParam="searchParam" @on-search="search"></pro-query>
</a-card>
</a-col>
</template>
<!-- 区域出入口列表 -->
<a-col :span="24">
<a-card>
<pro-table ref="tableRef" :fetch="fetch" :columns="columns" :toolbar="toolbar" :operate="operate"
:param="state.param" :pagination="pagination"
:row-selection="{ selectedRowKeys: state.selectedRowKeys, onChange: onSelectChange }">
</pro-table>
</a-card>
</a-col>
</a-row>
<save :visible="state.visibleSave" @close="closeSave"></save>
<edit :visible="state.visibleEdit" @close="closeEdit" :record="state.recordEdit"></edit>
</page-layout>
</a-list-layout>
</template>
<script>
@ -225,7 +218,7 @@
}
const removeBatchMethod = (ids) => {
Modal.confirm({
modal.confirm({
title: '您是否确定删除该数据?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',

View File

@ -251,7 +251,7 @@
}
const removeBatchMethod = (ids) => {
Modal.confirm({
modal.confirm({
title: '您是否确定要删除选择任务?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',

View File

@ -1,23 +1,16 @@
<template>
<page-layout>
<a-row :gutter="[10, 10]">
<a-col :span="24">
<a-card>
<a-list-layout ref="pageRef">
<pro-table ref="tableRef" :fetch="fetch" :columns="columns" :toolbar="toolbar" :operate="operate"
:param="state.param" :pagination="pagination"
:row-selection="{ selectedRowKeys: state.selectedRowKeys, onChange: onSelectChange }">
</pro-table>
</a-card>
</a-col>
</a-row>
</page-layout>
</a-list-layout>
</template>
<script>
import {
message,
notification,
modal
Modal as modal
} from '@hwork/ant-design-vue';
import {
ExclamationCircleOutlined
@ -234,7 +227,7 @@
//
const cancelMethod = (record) => {
Modal.confirm({
modal.confirm({
title: '您是否确认取消该出库需求?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',
@ -256,7 +249,7 @@
tableRef.value.reload()
} else {
message.destroy()
notification.error({
message.error({
message: '需求取消失败',
description: response.msg
})
@ -268,7 +261,7 @@
const removeBatchMethod = (ids) => {
Modal.confirm({
modal.confirm({
title: '您是否确定删除该数据?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',

View File

@ -1,25 +1,18 @@
<template>
<page-layout>
<a-row :gutter="[10, 10]">
<!-- 查询表单 -->
<a-col :span="24">
<a-card>
<a-list-layout
ref="pageRef"
>
<template #search>
<pro-query :searchParam="searchParam" @on-search="search"></pro-query>
</a-card>
</a-col>
</template>
<!-- 自增值定义列表 -->
<a-col :span="24">
<a-card>
<pro-table ref="tableRef" :fetch="fetch" :columns="columns" :toolbar="toolbar" :operate="operate"
:param="state.param" :pagination="pagination"
:row-selection="{ selectedRowKeys: state.selectedRowKeys, onChange: onSelectChange }">
</pro-table>
</a-card>
</a-col>
</a-row>
<save :visible="state.visibleSave" @close="closeSave"></save>
<edit :visible="state.visibleEdit" @close="closeEdit" :record="state.recordEdit"></edit>
</page-layout>
</a-list-layout>
</template>
<script>
@ -173,7 +166,7 @@
}
const removeBatchMethod = (ids) => {
Modal.confirm({
modal.confirm({
title: '您是否确定删除该数据?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',

View File

@ -1,25 +1,18 @@
<template>
<page-layout>
<a-row :gutter="[10, 10]">
<!-- 查询表单 -->
<a-col :span="24">
<a-card>
<a-list-layout
ref="pageRef"
>
<template #search>
<pro-query :searchParam="searchParam" @on-search="search"></pro-query>
</a-card>
</a-col>
</template>
<!-- 自增值定义列表 -->
<a-col :span="24">
<a-card>
<pro-table ref="tableRef" :fetch="fetch" :columns="columns" :toolbar="toolbar" :operate="operate"
:param="state.param" :pagination="pagination"
:row-selection="{ selectedRowKeys: state.selectedRowKeys, onChange: onSelectChange }">
</pro-table>
</a-card>
</a-col>
</a-row>
<save :visible="state.visibleSave" @close="closeSave"></save>
<edit :visible="state.visibleEdit" @close="closeEdit" :record="state.recordEdit"></edit>
</page-layout>
</a-list-layout>
</template>
<script>
@ -200,7 +193,7 @@
}
const removeBatchMethod = (ids) => {
Modal.confirm({
modal.confirm({
title: '您是否确定删除该数据?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',

View File

@ -1,25 +1,18 @@
<template>
<page-layout>
<a-row :gutter="[10, 10]">
<!-- 查询表单 -->
<a-col :span="24">
<a-card>
<a-list-layout
ref="pageRef"
>
<template #search>
<pro-query :searchParam="searchParam" @on-search="search"></pro-query>
</a-card>
</a-col>
</template>
<!-- 当前码垛SN列表 -->
<a-col :span="24">
<a-card>
<pro-table ref="tableRef" :fetch="fetch" :columns="columns" :toolbar="toolbar" :operate="operate"
:param="state.param" :pagination="pagination"
:row-selection="{ selectedRowKeys: state.selectedRowKeys, onChange: onSelectChange }">
</pro-table>
</a-card>
</a-col>
</a-row>
<save :visible="state.visibleSave" @close="closeSave"></save>
<edit :visible="state.visibleEdit" @close="closeEdit" :record="state.recordEdit"></edit>
</page-layout>
</a-list-layout>
</template>
<script>
@ -173,7 +166,7 @@
}
const removeBatchMethod = (ids) => {
Modal.confirm({
modal.confirm({
title: '您是否确定删除该数据?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',

View File

@ -1,25 +1,18 @@
<template>
<page-layout>
<a-row :gutter="[10, 10]">
<!-- 查询表单 -->
<a-col :span="24">
<a-card>
<a-list-layout
ref="pageRef"
>
<template #search>
<pro-query :searchParam="searchParam" @on-search="search"></pro-query>
</a-card>
</a-col>
</template>
<!-- SN历史列表 -->
<a-col :span="24">
<a-card>
<pro-table ref="tableRef" :fetch="fetch" :columns="columns" :toolbar="toolbar" :operate="operate"
:param="state.param" :pagination="pagination"
:row-selection="{ selectedRowKeys: state.selectedRowKeys, onChange: onSelectChange }">
</pro-table>
</a-card>
</a-col>
</a-row>
<save :visible="state.visibleSave" @close="closeSave"></save>
<edit :visible="state.visibleEdit" @close="closeEdit" :record="state.recordEdit"></edit>
</page-layout>
</a-list-layout>
</template>
<script>
@ -180,7 +173,7 @@
}
const removeBatchMethod = (ids) => {
Modal.confirm({
modal.confirm({
title: '您是否确定删除该数据?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',

View File

@ -1,25 +1,18 @@
<template>
<page-layout>
<a-row :gutter="[10, 10]">
<!-- 查询表单 -->
<a-col :span="24">
<a-card>
<a-list-layout
ref="pageRef"
>
<template #search>
<pro-query :searchParam="searchParam" @on-search="search"></pro-query>
</a-card>
</a-col>
</template>
<!-- SN历史列表 -->
<a-col :span="24">
<a-card>
<pro-table ref="tableRef" :fetch="fetch" :columns="columns" :toolbar="toolbar" :operate="operate"
:param="state.param" :pagination="pagination"
:row-selection="{ selectedRowKeys: state.selectedRowKeys, onChange: onSelectChange }">
</pro-table>
</a-card>
</a-col>
</a-row>
<save :visible="state.visibleSave" @close="closeSave"></save>
<edit :visible="state.visibleEdit" @close="closeEdit" :record="state.recordEdit"></edit>
</page-layout>
</a-list-layout>
</template>
<script>
@ -180,7 +173,7 @@
}
const removeBatchMethod = (ids) => {
Modal.confirm({
modal.confirm({
title: '您是否确定删除该数据?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',

View File

@ -1,24 +1,17 @@
<template>
<page-layout>
<a-row :gutter="[10, 10]">
<!-- 查询表单 -->
<a-col :span="24">
<a-card>
<a-list-layout
ref="pageRef"
>
<template #search>
<pro-query :searchParam="searchParam" @on-search="search"></pro-query>
</a-card>
</a-col>
</template>
<!-- 区域出入口列表 -->
<a-col :span="24">
<a-card>
<pro-table ref="tableRef" :fetch="fetch" :columns="columns" :toolbar="toolbar" :operate="operate"
:param="state.param" :pagination="pagination">
</pro-table>
</a-card>
</a-col>
</a-row>
<save :visible="state.visibleSave" @close="closeSave"></save>
<edit :visible="state.visibleEdit" @close="closeEdit" :record="state.recordEdit"></edit>
</page-layout>
</a-list-layout>
</template>
<script>

View File

@ -1,24 +1,16 @@
<template>
<page-layout>
<a-row :gutter="[10, 10]">
<!-- 查询表单 -->
<a-col :span="24">
<a-card>
<a-list-layout
ref="pageRef"
>
<template #search>
<pro-query :searchParam="searchParam" @on-search="search"></pro-query>
</a-card>
</a-col>
<!-- 区域出入口列表 -->
<a-col :span="24">
<a-card>
</template>
<pro-table ref="tableRef" :fetch="fetch" :columns="columns" :toolbar="toolbar" :operate="operate"
:param="state.param" :pagination="pagination">
</pro-table>
</a-card>
</a-col>
</a-row>
<save :visible="state.visibleSave" @close="closeSave"></save>
<edit :visible="state.visibleEdit" @close="closeEdit" :record="state.recordEdit"></edit>
</page-layout>
</a-list-layout>
</template>
<script>

View File

@ -1,27 +1,20 @@
<template>
<page-layout>
<a-row :gutter="[10, 10]">
<!-- 查询表单 -->
<a-col :span="24">
<a-card>
<a-list-layout
ref="pageRef"
>
<template #search>
<pro-query :searchParam="searchParam" @on-search="search"></pro-query>
</a-card>
</a-col>
</template>
<!-- 通道列表 -->
<a-col :span="24">
<a-card>
<pro-table ref="tableRef" :fetch="fetch" :columns="columns" :toolbar="toolbar" :operate="operate"
:param="state.param" :pagination="pagination"
:row-selection="{ selectedRowKeys: state.selectedRowKeys, onChange: onSelectChange }">
</pro-table>
</a-card>
</a-col>
</a-row>
<save :visible="state.visibleSave" @close="closeSave"></save>
<edit :visible="state.visibleEdit" @close="closeEdit" :record="state.recordEdit"></edit>
<addConfig :visible="state.visibleSave" @close="closeSave"></addConfig>
<info :visible="state.visibleInfo" @close="closeInfo" :record="state.recordInfo"></info>
</page-layout>
</a-list-layout>
</template>
<script>
@ -171,7 +164,7 @@
}
const removeBatchMethod = (ids) => {
Modal.confirm({
modal.confirm({
title: '您是否确定要删除选择通道?',
icon: createVNode(ExclamationCircleOutlined),
okText: '确定',