table 优化
parent
d1c6668f59
commit
d92a44e67f
|
|
@ -10,7 +10,7 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@ant-design/icons-vue": "^6.0.1",
|
"@ant-design/icons-vue": "^6.0.1",
|
||||||
"@antv/g2": "^4.1.20",
|
"@antv/g2": "^4.1.20",
|
||||||
"@hwork/ant-design-vue": "^4.1.24",
|
"@hwork/ant-design-vue": "4.1.24",
|
||||||
"@hwork/icon": "^1.0.0",
|
"@hwork/icon": "^1.0.0",
|
||||||
"@tinymce/tinymce-vue": "^4.0.4",
|
"@tinymce/tinymce-vue": "^4.0.4",
|
||||||
"axios": "^0.21.1",
|
"axios": "^0.21.1",
|
||||||
|
|
@ -915,9 +915,9 @@
|
||||||
"license": "BSD-3-Clause"
|
"license": "BSD-3-Clause"
|
||||||
},
|
},
|
||||||
"node_modules/@hwork/ant-design-vue": {
|
"node_modules/@hwork/ant-design-vue": {
|
||||||
"version": "4.1.25",
|
"version": "4.1.24",
|
||||||
"resolved": "http://x-repo.haier.net/repository/npm-public/@hwork/ant-design-vue/-/ant-design-vue-4.1.25.tgz",
|
"resolved": "http://x-repo.haier.net/repository/npm-public/@hwork/ant-design-vue/-/ant-design-vue-4.1.24.tgz",
|
||||||
"integrity": "sha512-fgpwWpxVuAlCtpYspVVKS2JLily7Mq90Q9aQj8dr5gIlz56DHW8Tq2j+dIFN2wS5jcRugP5hbC7Wo9LNf23ElA==",
|
"integrity": "sha512-A2jil/lqCdcsDY49XR0GMKRX5MQcnqDsjCEkOAbKBK1V96dLi7M4PJ6Xx8BrREQtmGjpfSy3/hRMhsjyk904iQ==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@ant-design/icons-vue": "^7.0.0",
|
"@ant-design/icons-vue": "^7.0.0",
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@ant-design/icons-vue": "^6.0.1",
|
"@ant-design/icons-vue": "^6.0.1",
|
||||||
"@antv/g2": "^4.1.20",
|
"@antv/g2": "^4.1.20",
|
||||||
"@hwork/ant-design-vue": "^4.1.24",
|
"@hwork/ant-design-vue": "4.1.24",
|
||||||
"@hwork/icon": "^1.0.0",
|
"@hwork/icon": "^1.0.0",
|
||||||
"@tinymce/tinymce-vue": "^4.0.4",
|
"@tinymce/tinymce-vue": "^4.0.4",
|
||||||
"axios": "^0.21.1",
|
"axios": "^0.21.1",
|
||||||
|
|
|
||||||
|
|
@ -423,6 +423,9 @@ html {
|
||||||
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.15);
|
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.15);
|
||||||
line-height: 30px;
|
line-height: 30px;
|
||||||
}
|
}
|
||||||
|
.ant-list-layout {
|
||||||
|
height: 100% !important;
|
||||||
|
}
|
||||||
.ant-list-layout-content {
|
.ant-list-layout-content {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
|
||||||
|
|
@ -1,43 +1,23 @@
|
||||||
<template>
|
<template>
|
||||||
<page-layout>
|
<a-list-layout ref="pageRef">
|
||||||
<a-row :gutter="[10, 10]">
|
<template #search>
|
||||||
<!-- 查询表单 -->
|
<pro-query :searchParam="searchParam" @on-search="search"></pro-query>
|
||||||
<a-col :span="24">
|
</template>
|
||||||
<a-card>
|
<pro-table ref="tableRef" :fetch="fetch" :columns="columns" :toolbar="toolbar" :operate="operate"
|
||||||
<pro-query
|
:param="state.param" :pagination="pagination"
|
||||||
:searchParam="searchParam"
|
:row-selection="{ selectedRowKeys: state.selectedRowKeys, onChange: onSelectChange }">
|
||||||
@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 }"
|
|
||||||
>
|
|
||||||
</pro-table>
|
</pro-table>
|
||||||
</a-card>
|
|
||||||
</a-col>
|
|
||||||
</a-row>
|
|
||||||
<save :visible="state.visibleSave" @close="closeSave"></save>
|
<save :visible="state.visibleSave" @close="closeSave"></save>
|
||||||
<edit :visible="state.visibleEdit" @close="closeEdit" :record="state.recordEdit"></edit>
|
<edit :visible="state.visibleEdit" @close="closeEdit" :record="state.recordEdit"></edit>
|
||||||
<info :visible="state.visibleInfo" @close="closeInfo" :record="state.recordInfo"></info>
|
<info :visible="state.visibleInfo" @close="closeInfo" :record="state.recordInfo"></info>
|
||||||
</page-layout>
|
</a-list-layout>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import save from './modal/save.vue';
|
import save from './modal/save.vue';
|
||||||
import edit from './modal/edit.vue';
|
import edit from './modal/edit.vue';
|
||||||
import info from './modal/info.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 { ExclamationCircleOutlined } from '@ant-design/icons-vue';
|
||||||
import { page, remove, removeBatch } from "@/api/module/announce";
|
import { page, remove, removeBatch } from "@/api/module/announce";
|
||||||
import { reactive, createVNode, ref } from 'vue';
|
import { reactive, createVNode, ref } from 'vue';
|
||||||
|
|
@ -56,7 +36,7 @@ export default {
|
||||||
const tableRef = ref();
|
const tableRef = ref();
|
||||||
|
|
||||||
/// 开关
|
/// 开关
|
||||||
const converFormat = [{label:"已发布",value:true},{label:"未发布",value:false}];
|
const converFormat = [{ label: "已发布", value: true }, { label: "未发布", value: false }];
|
||||||
|
|
||||||
/// 列配置
|
/// 列配置
|
||||||
const columns = [
|
const columns = [
|
||||||
|
|
@ -91,19 +71,19 @@ export default {
|
||||||
|
|
||||||
/// 批量删除
|
/// 批量删除
|
||||||
const removeBatchMethod = (ids) => {
|
const removeBatchMethod = (ids) => {
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确定要删除选择公告?',
|
title: '您是否确定要删除选择公告?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
cancelText: '取消',
|
cancelText: '取消',
|
||||||
onOk() {
|
onOk() {
|
||||||
message.loading({ content: "提交中...", key: removeBatchKey });
|
message.loading({ content: "提交中...", key: removeBatchKey });
|
||||||
removeBatch({"ids":ids}).then((response) => {
|
removeBatch({ "ids": ids }).then((response) => {
|
||||||
if(response.success){
|
if (response.success) {
|
||||||
message.success({content: "删除成功", key: removeBatchKey, duration: 1})
|
message.success({ content: "删除成功", key: removeBatchKey, duration: 1 })
|
||||||
tableRef.value.reload()
|
tableRef.value.reload()
|
||||||
}else{
|
} else {
|
||||||
message.error({content: "删除失败", key: removeBatchKey, duration: 1})
|
message.error({ content: "删除失败", key: removeBatchKey, duration: 1 })
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
@ -112,15 +92,15 @@ export default {
|
||||||
|
|
||||||
/// 工具栏
|
/// 工具栏
|
||||||
const toolbar = [
|
const toolbar = [
|
||||||
{ label: "新增", event: function () { state.visibleSave = true }},
|
{ label: "新增", event: function () { state.visibleSave = true } },
|
||||||
{ label: "删除", event: function () { removeBatchMethod(state.selectedRowKeys) }},
|
{ label: "删除", event: function () { removeBatchMethod(state.selectedRowKeys) } },
|
||||||
];
|
];
|
||||||
|
|
||||||
/// 行操作
|
/// 行操作
|
||||||
const operate = [
|
const operate = [
|
||||||
{ label: "查看", event: function (record) { state.visibleInfo = true, state.recordInfo = 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.visibleEdit = true, state.recordEdit = record } },
|
||||||
{ label: "删除",isDel: true, delEvent: function (record) { removeMethod(record) },cancelEvent:(record)=>{}},
|
{ label: "删除", isDel: true, delEvent: function (record) { removeMethod(record) }, cancelEvent: (record) => { } },
|
||||||
];
|
];
|
||||||
|
|
||||||
/// 分页参数
|
/// 分页参数
|
||||||
|
|
@ -141,24 +121,24 @@ export default {
|
||||||
})
|
})
|
||||||
|
|
||||||
const searchParam = [
|
const searchParam = [
|
||||||
{ key: "title", type: "input", label: "公告标题"},
|
{ key: "title", type: "input", label: "公告标题" },
|
||||||
]
|
]
|
||||||
|
|
||||||
const search = function(value) {
|
const search = function (value) {
|
||||||
state.param = value
|
state.param = value
|
||||||
}
|
}
|
||||||
|
|
||||||
const closeSave = function(){
|
const closeSave = function () {
|
||||||
tableRef.value.reload()
|
tableRef.value.reload()
|
||||||
state.visibleSave = false
|
state.visibleSave = false
|
||||||
}
|
}
|
||||||
|
|
||||||
const closeEdit = function(){
|
const closeEdit = function () {
|
||||||
tableRef.value.reload()
|
tableRef.value.reload()
|
||||||
state.visibleEdit = false
|
state.visibleEdit = false
|
||||||
}
|
}
|
||||||
|
|
||||||
const closeInfo = function(){
|
const closeInfo = function () {
|
||||||
state.visibleInfo = false
|
state.visibleInfo = false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -151,7 +151,7 @@
|
||||||
|
|
||||||
/// 删除配置
|
/// 删除配置
|
||||||
const removeMethod = (record) => {
|
const removeMethod = (record) => {
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确定要删除此配置?',
|
title: '您是否确定要删除此配置?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
|
|
@ -185,7 +185,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
const removeBatchMethod = (ids) => {
|
const removeBatchMethod = (ids) => {
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确定要删除选择配置?',
|
title: '您是否确定要删除选择配置?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
|
|
|
||||||
|
|
@ -1,43 +1,24 @@
|
||||||
<template>
|
<template>
|
||||||
<page-layout>
|
<a-list-layout ref="pageRef">
|
||||||
<a-row :gutter="[10, 10]">
|
<template #search>
|
||||||
<!-- 查询表单 -->
|
<pro-query :searchParam="searchParam" @on-search="search"></pro-query>
|
||||||
<a-col :span="24">
|
</template>
|
||||||
<a-card>
|
|
||||||
<pro-query
|
|
||||||
:searchParam="searchParam"
|
|
||||||
@on-search ="search"
|
|
||||||
></pro-query>
|
|
||||||
</a-card>
|
|
||||||
</a-col>
|
|
||||||
<!-- 多库列表 -->
|
<!-- 多库列表 -->
|
||||||
<a-col :span="24">
|
<pro-table ref="tableRef" :fetch="fetch" :columns="columns" :toolbar="toolbar" :operate="operate"
|
||||||
<a-card>
|
:param="state.param" :pagination="pagination"
|
||||||
<pro-table
|
:row-selection="{ selectedRowKeys: state.selectedRowKeys, onChange: onSelectChange }">
|
||||||
ref="tableRef"
|
|
||||||
:fetch="fetch"
|
|
||||||
:columns="columns"
|
|
||||||
:toolbar="toolbar"
|
|
||||||
:operate="operate"
|
|
||||||
:param="state.param"
|
|
||||||
:pagination="pagination"
|
|
||||||
:row-selection="{ selectedRowKeys: state.selectedRowKeys, onChange: onSelectChange }"
|
|
||||||
>
|
|
||||||
</pro-table>
|
</pro-table>
|
||||||
</a-card>
|
|
||||||
</a-col>
|
|
||||||
</a-row>
|
|
||||||
<!-- 新增页面 -->
|
<!-- 新增页面 -->
|
||||||
<save :visible="state.visibleSave" @close="closeSave"></save>
|
<save :visible="state.visibleSave" @close="closeSave"></save>
|
||||||
<!-- 修改页面 -->
|
<!-- 修改页面 -->
|
||||||
<edit :visible="state.visibleEdit" @close="closeEdit" :record="state.recordEdit"></edit>
|
<edit :visible="state.visibleEdit" @close="closeEdit" :record="state.recordEdit"></edit>
|
||||||
</page-layout>
|
</a-list-layout>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import save from './modal/save.vue';
|
import save from './modal/save.vue';
|
||||||
import edit from './modal/edit.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 { ExclamationCircleOutlined } from '@ant-design/icons-vue';
|
||||||
import { page, remove, removeBatch } from "@/api/module/dataSource";
|
import { page, remove, removeBatch } from "@/api/module/dataSource";
|
||||||
import { reactive, createVNode, ref } from 'vue';
|
import { reactive, createVNode, ref } from 'vue';
|
||||||
|
|
@ -58,10 +39,10 @@ export default {
|
||||||
const columns = [
|
const columns = [
|
||||||
{ dataIndex: "name", key: "name", title: "名称" },
|
{ dataIndex: "name", key: "name", title: "名称" },
|
||||||
{ dataIndex: "username", key: "username", title: "账户" },
|
{ dataIndex: "username", key: "username", title: "账户" },
|
||||||
{ dataIndex: "password", key: "password", title: "密码"},
|
{ dataIndex: "password", key: "password", title: "密码" },
|
||||||
{ dataIndex: "url", key: "url", title: "链接"},
|
{ dataIndex: "url", key: "url", title: "链接" },
|
||||||
{ dataIndex: "driver", key: "driver", title: "驱动"},
|
{ dataIndex: "driver", key: "driver", title: "驱动" },
|
||||||
{ dataIndex: "remark", key: "remark", title: "备注"},
|
{ dataIndex: "remark", key: "remark", title: "备注" },
|
||||||
{ dataIndex: "createTime", key: "createTime", title: "创建日期" },
|
{ dataIndex: "createTime", key: "createTime", title: "创建日期" },
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
@ -76,20 +57,20 @@ export default {
|
||||||
|
|
||||||
/// 删除配置
|
/// 删除配置
|
||||||
const removeMethod = (record) => {
|
const removeMethod = (record) => {
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确定要删除此配置?',
|
title: '您是否确定要删除此配置?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
cancelText: '取消',
|
cancelText: '取消',
|
||||||
onOk() {
|
onOk() {
|
||||||
message.loading({ content: "提交中...", key: removeKey });
|
message.loading({ content: "提交中...", key: removeKey });
|
||||||
remove({"id":record.id}).then((response) => {
|
remove({ "id": record.id }).then((response) => {
|
||||||
if(response.success){
|
if (response.success) {
|
||||||
message.success({content: "删除成功", key: removeKey, duration: 1}).then(()=>{
|
message.success({ content: "删除成功", key: removeKey, duration: 1 }).then(() => {
|
||||||
tableRef.value.reload()
|
tableRef.value.reload()
|
||||||
})
|
})
|
||||||
}else{
|
} else {
|
||||||
message.error({content: "删除失败", key: removeKey, duration: 1})
|
message.error({ content: "删除失败", key: removeKey, duration: 1 })
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
@ -97,20 +78,20 @@ export default {
|
||||||
}
|
}
|
||||||
|
|
||||||
const removeBatchMethod = (ids) => {
|
const removeBatchMethod = (ids) => {
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确定要删除选择配置?',
|
title: '您是否确定要删除选择配置?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
cancelText: '取消',
|
cancelText: '取消',
|
||||||
onOk() {
|
onOk() {
|
||||||
message.loading({ content: "提交中...", key: removeBatchKey });
|
message.loading({ content: "提交中...", key: removeBatchKey });
|
||||||
removeBatch({"ids":ids}).then((response) => {
|
removeBatch({ "ids": ids }).then((response) => {
|
||||||
if(response.success){
|
if (response.success) {
|
||||||
message.success({content: "删除成功", key: removeBatchKey, duration: 1}).then(()=>{
|
message.success({ content: "删除成功", key: removeBatchKey, duration: 1 }).then(() => {
|
||||||
tableRef.value.reload()
|
tableRef.value.reload()
|
||||||
})
|
})
|
||||||
}else{
|
} else {
|
||||||
message.error({content: "删除失败", key: removeBatchKey, duration: 1})
|
message.error({ content: "删除失败", key: removeBatchKey, duration: 1 })
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
@ -119,15 +100,15 @@ export default {
|
||||||
|
|
||||||
/// 工具栏
|
/// 工具栏
|
||||||
const toolbar = [
|
const toolbar = [
|
||||||
{ label: "新增", event: function () { state.visibleSave = true }},
|
{ label: "新增", event: function () { state.visibleSave = true } },
|
||||||
{ label: "删除", event: function () { removeBatchMethod(state.selectedRowKeys) }},
|
{ label: "删除", event: function () { removeBatchMethod(state.selectedRowKeys) } },
|
||||||
];
|
];
|
||||||
|
|
||||||
/// 行操作
|
/// 行操作
|
||||||
const operate = [
|
const operate = [
|
||||||
{ label: "查看", event: function (record) { alert("查看详情:" + JSON.stringify(record))}},
|
{ label: "查看", event: function (record) { alert("查看详情:" + JSON.stringify(record)) } },
|
||||||
{ label: "修改", event: function (record) { state.recordEdit = record, state.visibleEdit = true }},
|
{ label: "修改", event: function (record) { state.recordEdit = record, state.visibleEdit = true } },
|
||||||
{ label: "删除", event: function (record) { removeMethod(record) }},
|
{ label: "删除", event: function (record) { removeMethod(record) } },
|
||||||
];
|
];
|
||||||
|
|
||||||
/// 分页参数
|
/// 分页参数
|
||||||
|
|
@ -147,12 +128,12 @@ export default {
|
||||||
|
|
||||||
/// 查询参数
|
/// 查询参数
|
||||||
const searchParam = [
|
const searchParam = [
|
||||||
{ key: "name", type: "input", label: "名称"},
|
{ key: "name", type: "input", label: "名称" },
|
||||||
{ key: "code", type: "input", label: "描述"},
|
{ key: "code", type: "input", label: "描述" },
|
||||||
]
|
]
|
||||||
|
|
||||||
/// 查询操作
|
/// 查询操作
|
||||||
const search = function(value) {
|
const search = function (value) {
|
||||||
state.param = value
|
state.param = value
|
||||||
tableRef.value.reload
|
tableRef.value.reload
|
||||||
}
|
}
|
||||||
|
|
@ -161,12 +142,12 @@ export default {
|
||||||
state.selectedRowKeys = selectedRowKeys;
|
state.selectedRowKeys = selectedRowKeys;
|
||||||
};
|
};
|
||||||
|
|
||||||
const closeSave = function(){
|
const closeSave = function () {
|
||||||
state.visibleSave = false
|
state.visibleSave = false
|
||||||
tableRef.value.reload
|
tableRef.value.reload
|
||||||
}
|
}
|
||||||
|
|
||||||
const closeEdit = function(){
|
const closeEdit = function () {
|
||||||
state.visibleEdit = false
|
state.visibleEdit = false
|
||||||
tableRef.value.reload
|
tableRef.value.reload
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,45 +1,25 @@
|
||||||
<template>
|
<template>
|
||||||
<page-layout>
|
<a-list-layout ref="pageRef">
|
||||||
<a-row :gutter="[10, 10]">
|
<template #search>
|
||||||
<!-- 顶部区域 -->
|
|
||||||
<a-col :span="24">
|
|
||||||
<a-card>
|
|
||||||
<!-- 查询参数 -->
|
<!-- 查询参数 -->
|
||||||
<pro-query
|
<pro-query :searchParam="searchParam" @on-search="search"></pro-query>
|
||||||
:searchParam="searchParam"
|
</template>
|
||||||
@on-search ="search"
|
|
||||||
></pro-query>
|
|
||||||
</a-card>
|
|
||||||
</a-col>
|
|
||||||
<!-- 中心区域 -->
|
<!-- 中心区域 -->
|
||||||
<a-col :span="24">
|
<pro-table ref="tableRef" :fetch="fetch" :columns="columns" :toolbar="toolbar" :operate="operate"
|
||||||
<a-card>
|
: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>
|
</pro-table>
|
||||||
</a-card>
|
|
||||||
</a-col>
|
|
||||||
</a-row>
|
|
||||||
<save :visible="state.visibleSave" @close="closeSave"></save>
|
<save :visible="state.visibleSave" @close="closeSave"></save>
|
||||||
<edit :visible="state.visibleEdit" @close="closeEdit" :record="state.recordEdit"></edit>
|
<edit :visible="state.visibleEdit" @close="closeEdit" :record="state.recordEdit"></edit>
|
||||||
<info :visible="state.visibleInfo" @close="closeInfo" :record="state.recordInfo"></info>
|
<info :visible="state.visibleInfo" @close="closeInfo" :record="state.recordInfo"></info>
|
||||||
</page-layout>
|
</a-list-layout>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import save from './modal/save.vue';
|
import save from './modal/save.vue';
|
||||||
import edit from './modal/edit.vue';
|
import edit from './modal/edit.vue';
|
||||||
import info from './modal/info.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 { ExclamationCircleOutlined } from '@ant-design/icons-vue';
|
||||||
import { tree, remove, removeBatch } from "@/api/module/dept";
|
import { tree, remove, removeBatch } from "@/api/module/dept";
|
||||||
import { reactive, createVNode, ref } from 'vue';
|
import { reactive, createVNode, ref } from 'vue';
|
||||||
|
|
@ -56,15 +36,17 @@ export default {
|
||||||
|
|
||||||
const tableRef = ref()
|
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;
|
record.enable = !record.enable;
|
||||||
return value;
|
return value;
|
||||||
}}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
const columns = [
|
const columns = [
|
||||||
{ dataIndex: "name", key: "name", title: "部门" },
|
{ dataIndex: "name", key: "name", title: "部门" },
|
||||||
{ dataIndex: "address", key: "address", 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: "sort", key: "sort", title: "排序" },
|
||||||
{ dataIndex: "remark", key: "remark", title: "仓库编号" },
|
{ dataIndex: "remark", key: "remark", title: "仓库编号" },
|
||||||
];
|
];
|
||||||
|
|
@ -79,20 +61,20 @@ export default {
|
||||||
|
|
||||||
/// 删除配置
|
/// 删除配置
|
||||||
const removeMethod = (record) => {
|
const removeMethod = (record) => {
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确定要删除此配置?',
|
title: '您是否确定要删除此配置?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
cancelText: '取消',
|
cancelText: '取消',
|
||||||
onOk() {
|
onOk() {
|
||||||
message.loading({ content: "提交中...", key: removeKey });
|
message.loading({ content: "提交中...", key: removeKey });
|
||||||
remove({"id":record.id}).then((response) => {
|
remove({ "id": record.id }).then((response) => {
|
||||||
if(response.success){
|
if (response.success) {
|
||||||
message.success({content: "删除成功", key: removeKey, duration: 1}).then(()=>{
|
message.success({ content: "删除成功", key: removeKey, duration: 1 }).then(() => {
|
||||||
tableRef.value.reload()
|
tableRef.value.reload()
|
||||||
})
|
})
|
||||||
}else{
|
} else {
|
||||||
message.error({content: "删除失败", key: removeKey, duration: 1})
|
message.error({ content: "删除失败", key: removeKey, duration: 1 })
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
@ -101,14 +83,14 @@ export default {
|
||||||
|
|
||||||
/// 工具栏
|
/// 工具栏
|
||||||
const toolbar = [
|
const toolbar = [
|
||||||
{ label: "新增", event: function () { state.visibleSave = true }},
|
{ label: "新增", event: function () { state.visibleSave = true } },
|
||||||
];
|
];
|
||||||
|
|
||||||
/// 行操作
|
/// 行操作
|
||||||
const operate = [
|
const operate = [
|
||||||
{ label: "查看", event: function (record) { state.visibleInfo = true, state.recordInfo = 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.visibleEdit = true, state.recordEdit = record } },
|
||||||
{ label: "删除", event: function (record) { removeMethod(record) }},
|
{ label: "删除", event: function (record) { removeMethod(record) } },
|
||||||
];
|
];
|
||||||
|
|
||||||
const pagination = false;
|
const pagination = false;
|
||||||
|
|
@ -124,11 +106,11 @@ export default {
|
||||||
})
|
})
|
||||||
|
|
||||||
const searchParam = [
|
const searchParam = [
|
||||||
{ key: "name", type: "input", label: "名称"},
|
{ key: "name", type: "input", label: "名称" },
|
||||||
{ key: "code", type: "input", label: "描述"},
|
{ key: "code", type: "input", label: "描述" },
|
||||||
]
|
]
|
||||||
|
|
||||||
const search = function(value) {
|
const search = function (value) {
|
||||||
state.param = value
|
state.param = value
|
||||||
tableRef.value.reload()
|
tableRef.value.reload()
|
||||||
}
|
}
|
||||||
|
|
@ -137,17 +119,17 @@ export default {
|
||||||
state.selectedRowKeys = selectedRowKeys;
|
state.selectedRowKeys = selectedRowKeys;
|
||||||
};
|
};
|
||||||
|
|
||||||
const closeSave = function() {
|
const closeSave = function () {
|
||||||
state.visibleSave = false
|
state.visibleSave = false
|
||||||
tableRef.value.reload()
|
tableRef.value.reload()
|
||||||
}
|
}
|
||||||
|
|
||||||
const closeEdit = function() {
|
const closeEdit = function () {
|
||||||
state.visibleEdit = false
|
state.visibleEdit = false
|
||||||
tableRef.value.reload()
|
tableRef.value.reload()
|
||||||
}
|
}
|
||||||
|
|
||||||
const closeInfo = function() {
|
const closeInfo = function () {
|
||||||
state.visibleInfo = false
|
state.visibleInfo = false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -107,7 +107,7 @@
|
||||||
|
|
||||||
/// 删除角色
|
/// 删除角色
|
||||||
const removeMethod = (record) => {
|
const removeMethod = (record) => {
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确定要删除此字典?',
|
title: '您是否确定要删除此字典?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
|
|
@ -142,7 +142,7 @@
|
||||||
|
|
||||||
/// 批量删除
|
/// 批量删除
|
||||||
const removeBatchMethod = (ids) => {
|
const removeBatchMethod = (ids) => {
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确定要删除选择字典?',
|
title: '您是否确定要删除选择字典?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
|
|
|
||||||
|
|
@ -109,7 +109,7 @@
|
||||||
|
|
||||||
/// 删除角色
|
/// 删除角色
|
||||||
const removeMethod = (record) => {
|
const removeMethod = (record) => {
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确定要删除此字典?',
|
title: '您是否确定要删除此字典?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
|
|
@ -144,7 +144,7 @@
|
||||||
|
|
||||||
/// 批量删除
|
/// 批量删除
|
||||||
const removeBatchMethod = (ids) => {
|
const removeBatchMethod = (ids) => {
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确定要删除选择字典?',
|
title: '您是否确定要删除选择字典?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
|
|
|
||||||
|
|
@ -1,26 +1,19 @@
|
||||||
<template>
|
<template>
|
||||||
<page-layout>
|
<a-list-layout
|
||||||
<a-row :gutter="[10, 10]">
|
ref="pageRef"
|
||||||
<!-- 查询表单 -->
|
>
|
||||||
<a-col :span="24">
|
<template #search>
|
||||||
<a-card>
|
|
||||||
<pro-query :searchParam="searchParam" @on-search="search"></pro-query>
|
<pro-query :searchParam="searchParam" @on-search="search"></pro-query>
|
||||||
</a-card>
|
</template>
|
||||||
</a-col>
|
|
||||||
<!-- 岗位列表 -->
|
<!-- 岗位列表 -->
|
||||||
<a-col :span="24">
|
|
||||||
<a-card>
|
|
||||||
<pro-table ref="tableRef" :fetch="fetch" :columns="columns" :toolbar="toolbar" :operate="operate"
|
<pro-table ref="tableRef" :fetch="fetch" :columns="columns" :toolbar="toolbar" :operate="operate"
|
||||||
:param="state.param" :pagination="pagination"
|
:param="state.param" :pagination="pagination"
|
||||||
:row-selection="{ selectedRowKeys: state.selectedRowKeys, onChange: onSelectChange }">
|
:row-selection="{ selectedRowKeys: state.selectedRowKeys, onChange: onSelectChange }">
|
||||||
</pro-table>
|
</pro-table>
|
||||||
</a-card>
|
|
||||||
</a-col>
|
|
||||||
</a-row>
|
|
||||||
<save :visible="state.visibleSave" @close="closeSave"></save>
|
<save :visible="state.visibleSave" @close="closeSave"></save>
|
||||||
<edit :visible="state.visibleEdit" @close="closeEdit" :record="state.recordEdit"></edit>
|
<edit :visible="state.visibleEdit" @close="closeEdit" :record="state.recordEdit"></edit>
|
||||||
<info :visible="state.visibleInfo" @close="closeInfo" :record="state.recordInfo"></info>
|
<info :visible="state.visibleInfo" @close="closeInfo" :record="state.recordInfo"></info>
|
||||||
</page-layout>
|
</a-list-layout>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
@ -165,7 +158,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
const removeBatchMethod = (ids) => {
|
const removeBatchMethod = (ids) => {
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确定要删除选择私信?',
|
title: '您是否确定要删除选择私信?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
|
|
|
||||||
|
|
@ -1,26 +1,19 @@
|
||||||
<template>
|
<template>
|
||||||
<page-layout>
|
<a-list-layout
|
||||||
<a-row :gutter="[10, 10]">
|
ref="pageRef"
|
||||||
<!-- 查询表单 -->
|
>
|
||||||
<a-col :span="24">
|
<template #search>
|
||||||
<a-card>
|
|
||||||
<pro-query :searchParam="searchParam" @on-search="search"></pro-query>
|
<pro-query :searchParam="searchParam" @on-search="search"></pro-query>
|
||||||
</a-card>
|
</template>
|
||||||
</a-col>
|
|
||||||
<!-- 岗位列表 -->
|
<!-- 岗位列表 -->
|
||||||
<a-col :span="24">
|
|
||||||
<a-card>
|
|
||||||
<pro-table ref="tableRef" :fetch="fetch" :columns="columns" :toolbar="toolbar" :operate="operate"
|
<pro-table ref="tableRef" :fetch="fetch" :columns="columns" :toolbar="toolbar" :operate="operate"
|
||||||
:param="state.param" :pagination="pagination"
|
:param="state.param" :pagination="pagination"
|
||||||
:row-selection="{ selectedRowKeys: state.selectedRowKeys, onChange: onSelectChange }">
|
:row-selection="{ selectedRowKeys: state.selectedRowKeys, onChange: onSelectChange }">
|
||||||
</pro-table>
|
</pro-table>
|
||||||
</a-card>
|
|
||||||
</a-col>
|
|
||||||
</a-row>
|
|
||||||
<save :visible="state.visibleSave" @close="closeSave"></save>
|
<save :visible="state.visibleSave" @close="closeSave"></save>
|
||||||
<edit :visible="state.visibleEdit" @close="closeEdit" :record="state.recordEdit"></edit>
|
<edit :visible="state.visibleEdit" @close="closeEdit" :record="state.recordEdit"></edit>
|
||||||
<info :visible="state.visibleInfo" @close="closeInfo" :record="state.recordInfo"></info>
|
<info :visible="state.visibleInfo" @close="closeInfo" :record="state.recordInfo"></info>
|
||||||
</page-layout>
|
</a-list-layout>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
@ -151,7 +144,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
const removeBatchMethod = (ids) => {
|
const removeBatchMethod = (ids) => {
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确定要删除选择任务?',
|
title: '您是否确定要删除选择任务?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
|
|
|
||||||
|
|
@ -1,19 +1,14 @@
|
||||||
<template>
|
<template>
|
||||||
<page-layout>
|
<a-list-layout
|
||||||
<a-row :gutter="[10, 10]">
|
ref="pageRef"
|
||||||
<!-- 顶部区域 -->
|
>
|
||||||
<a-col :span="24">
|
<template #search>
|
||||||
<a-card>
|
|
||||||
<!-- 查询参数 -->
|
<!-- 查询参数 -->
|
||||||
<pro-query
|
<pro-query
|
||||||
:searchParam="searchParam"
|
:searchParam="searchParam"
|
||||||
@on-search ="search"
|
@on-search ="search"
|
||||||
></pro-query>
|
></pro-query>
|
||||||
</a-card>
|
</template>
|
||||||
</a-col>
|
|
||||||
<!-- 中心区域 -->
|
|
||||||
<a-col :span="24">
|
|
||||||
<a-card>
|
|
||||||
<!-- 列表 -->
|
<!-- 列表 -->
|
||||||
<pro-table
|
<pro-table
|
||||||
:fetch="fetch"
|
:fetch="fetch"
|
||||||
|
|
@ -26,11 +21,8 @@
|
||||||
>
|
>
|
||||||
<!-- 继承至 a-table 的默认插槽 -->
|
<!-- 继承至 a-table 的默认插槽 -->
|
||||||
</pro-table>
|
</pro-table>
|
||||||
</a-card>
|
|
||||||
</a-col>
|
|
||||||
</a-row>
|
|
||||||
<info :visible="state.visibleInfo" @close="closeInfo" :record="state.recordInfo"></info>
|
<info :visible="state.visibleInfo" @close="closeInfo" :record="state.recordInfo"></info>
|
||||||
</page-layout>
|
</a-list-layout>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
|
||||||
|
|
@ -1,19 +1,14 @@
|
||||||
<template>
|
<template>
|
||||||
<page-layout>
|
<a-list-layout
|
||||||
<a-row :gutter="[10, 10]">
|
ref="pageRef"
|
||||||
<!-- 顶部区域 -->
|
>
|
||||||
<a-col :span="24">
|
<template #search>
|
||||||
<a-card>
|
|
||||||
<!-- 查询参数 -->
|
<!-- 查询参数 -->
|
||||||
<pro-query
|
<pro-query
|
||||||
:searchParam="searchParam"
|
:searchParam="searchParam"
|
||||||
@on-search ="search"
|
@on-search ="search"
|
||||||
></pro-query>
|
></pro-query>
|
||||||
</a-card>
|
</template>
|
||||||
</a-col>
|
|
||||||
<!-- 中心区域 -->
|
|
||||||
<a-col :span="24">
|
|
||||||
<a-card>
|
|
||||||
<!-- 列表 -->
|
<!-- 列表 -->
|
||||||
<pro-table
|
<pro-table
|
||||||
:fetch="fetch"
|
:fetch="fetch"
|
||||||
|
|
@ -26,14 +21,11 @@
|
||||||
>
|
>
|
||||||
<!-- 继承至 a-table 的默认插槽 -->
|
<!-- 继承至 a-table 的默认插槽 -->
|
||||||
</pro-table>
|
</pro-table>
|
||||||
</a-card>
|
</a-list-layout>
|
||||||
</a-col>
|
|
||||||
</a-row>
|
|
||||||
</page-layout>
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<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 { ExclamationCircleOutlined } from '@ant-design/icons-vue';
|
||||||
import { page, clean } from "@/api/module/log";
|
import { page, clean } from "@/api/module/log";
|
||||||
import { reactive, createVNode } from 'vue';
|
import { reactive, createVNode } from 'vue';
|
||||||
|
|
@ -79,7 +71,7 @@ export default {
|
||||||
|
|
||||||
/// 删除配置
|
/// 删除配置
|
||||||
const cleanMethod = (record) => {
|
const cleanMethod = (record) => {
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确定要清空日志?',
|
title: '您是否确定要清空日志?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
|
|
|
||||||
|
|
@ -1,40 +1,20 @@
|
||||||
<template>
|
<template>
|
||||||
<page-layout>
|
<a-list-layout ref="pageRef">
|
||||||
<a-row :gutter="[10, 10]">
|
<template #search>
|
||||||
<!-- 顶部区域 -->
|
|
||||||
<a-col :span="24">
|
|
||||||
<a-card>
|
|
||||||
<!-- 查询参数 -->
|
<!-- 查询参数 -->
|
||||||
<pro-query
|
<pro-query :searchParam="searchParam" @on-search="search"></pro-query>
|
||||||
:searchParam="searchParam"
|
</template>
|
||||||
@on-search ="search"
|
|
||||||
></pro-query>
|
|
||||||
</a-card>
|
|
||||||
</a-col>
|
|
||||||
<!-- 中心区域 -->
|
|
||||||
<a-col :span="24">
|
|
||||||
<a-card>
|
|
||||||
<!-- 列表 -->
|
<!-- 列表 -->
|
||||||
<pro-table
|
<pro-table ref="tableRef" :fetch="fetch" :columns="columns" :operate="operater" :toolbar="toolbar"
|
||||||
ref="tableRef"
|
:param="state.param" :pagination="pagination"
|
||||||
:fetch="fetch"
|
:row-selection="{ selectedRowKeys: state.selectedRowKeys, onChange: onSelectChange }">
|
||||||
:columns="columns"
|
|
||||||
:operate="operater"
|
|
||||||
:toolbar="toolbar"
|
|
||||||
:param="state.param"
|
|
||||||
:pagination="pagination"
|
|
||||||
:row-selection="{ selectedRowKeys: state.selectedRowKeys, onChange: onSelectChange }"
|
|
||||||
>
|
|
||||||
<!-- 继承至 a-table 的默认插槽 -->
|
<!-- 继承至 a-table 的默认插槽 -->
|
||||||
</pro-table>
|
</pro-table>
|
||||||
</a-card>
|
</a-list-layout>
|
||||||
</a-col>
|
|
||||||
</a-row>
|
|
||||||
</page-layout>
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<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 { ExclamationCircleOutlined } from '@ant-design/icons-vue';
|
||||||
import { page, clean, exportExcel } from "@/api/module/log";
|
import { page, clean, exportExcel } from "@/api/module/log";
|
||||||
import { reactive, createVNode, ref } from 'vue';
|
import { reactive, createVNode, ref } from 'vue';
|
||||||
|
|
@ -47,29 +27,29 @@ export default {
|
||||||
const tableRef = ref()
|
const tableRef = ref()
|
||||||
|
|
||||||
/// 文本
|
/// 文本
|
||||||
const converFormat = [{label:"成功", value:true},{label:"失败", value:false}];
|
const converFormat = [{ label: "成功", value: true }, { label: "失败", value: false }];
|
||||||
|
|
||||||
/// 列配置
|
/// 列配置
|
||||||
const columns = [
|
const columns = [
|
||||||
{ dataIndex: "title", key: "title", title: "标题" ,width:120,showSearch: true},
|
{ dataIndex: "title", key: "title", title: "标题", width: 120, showSearch: true },
|
||||||
{ dataIndex: "describe", key: "describe", title: "描述" ,width:120,showSearch: true},
|
{ dataIndex: "describe", key: "describe", title: "描述", width: 120, showSearch: true },
|
||||||
{ dataIndex: "action", key: "action", title: "动作",width:100},
|
{ dataIndex: "action", key: "action", title: "动作", width: 100 },
|
||||||
{ dataIndex: "type", key: "type", title: "方式",width:120},
|
{ dataIndex: "type", key: "type", title: "方式", width: 120 },
|
||||||
{ dataIndex: "browser", key: "browser", title: "浏览器" ,width:120,ellipsis: true},
|
{ dataIndex: "browser", key: "browser", title: "浏览器", width: 120, ellipsis: true },
|
||||||
{ dataIndex: "system", key: "system", 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: "address", key: "address", title: "操作地", width: 120, showSearch: true, ellipsis: true },
|
||||||
{ dataIndex: "operator", key: "operator", title: "操作人" ,width:100},
|
{ dataIndex: "operator", key: "operator", title: "操作人", width: 100 },
|
||||||
{ dataIndex: "createBy", key: "createBy", title: "创建人" ,width:120,ellipsis: true,showSearch: true},
|
{ dataIndex: "createBy", key: "createBy", title: "创建人", width: 120, ellipsis: true, showSearch: true },
|
||||||
{ dataIndex: "createUsername", key: "createUsername", 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: "createNickname", key: "createNickname", title: "创建人昵称", width: 120, ellipsis: true },
|
||||||
{ dataIndex: "createTime", key: "createTime", title: "操作时间" ,width:180,ellipsis: true},
|
{ dataIndex: "createTime", key: "createTime", title: "操作时间", width: 180, ellipsis: true },
|
||||||
{ dataIndex: "state", key: "state", title: "状态", conver: converFormat ,width:120,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: "params", key: "params", title: "参数", showSearch: true, width: 300, ellipsis: true },
|
||||||
{ dataIndex: "result", key: "result", title: "返回结果", showSearch: true ,width:300,ellipsis: true},
|
{ dataIndex: "result", key: "result", title: "返回结果", showSearch: true, width: 300, ellipsis: true },
|
||||||
];
|
];
|
||||||
|
|
||||||
const operater = [
|
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) => {
|
const cleanMethod = (record) => {
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确定要清空日志?',
|
title: '您是否确定要清空日志?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
cancelText: '取消',
|
cancelText: '取消',
|
||||||
onOk() {
|
onOk() {
|
||||||
message.loading({ content: "提交中...", key: cleanKey });
|
message.loading({ content: "提交中...", key: cleanKey });
|
||||||
clean({"isAuth":false}).then((response) => {
|
clean({ "isAuth": false }).then((response) => {
|
||||||
if(response.success){
|
if (response.success) {
|
||||||
message.success({content: "清空成功", key: cleanKey, duration: 1})
|
message.success({ content: "清空成功", key: cleanKey, duration: 1 })
|
||||||
tableRef.value.reload()
|
tableRef.value.reload()
|
||||||
}else{
|
} else {
|
||||||
message.error({content: "清空失败", key: cleanKey, duration: 1})
|
message.error({ content: "清空失败", key: cleanKey, duration: 1 })
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
@ -104,8 +84,8 @@ export default {
|
||||||
|
|
||||||
/// 工具栏
|
/// 工具栏
|
||||||
const toolbar = [
|
const toolbar = [
|
||||||
{ label: "备份", event: function () { exportExcel(); }},
|
{ label: "备份", event: function () { exportExcel(); } },
|
||||||
{ label: "清空", event: function () { cleanMethod(); }},
|
{ label: "清空", event: function () { cleanMethod(); } },
|
||||||
];
|
];
|
||||||
|
|
||||||
/// 分页参数
|
/// 分页参数
|
||||||
|
|
@ -122,18 +102,19 @@ export default {
|
||||||
|
|
||||||
/// 查询参数
|
/// 查询参数
|
||||||
const searchParam = [
|
const searchParam = [
|
||||||
{ key: "title", type: "input", label: "标题"},
|
{ key: "title", type: "input", label: "标题" },
|
||||||
{ key: "state", type: "select", label: "状态", value: "",
|
{
|
||||||
|
key: "state", type: "select", label: "状态", value: "",
|
||||||
options: [
|
options: [
|
||||||
{ text: "全部", value: ""},
|
{ text: "全部", value: "" },
|
||||||
{ text: "成功", value: true},
|
{ text: "成功", value: true },
|
||||||
{ text: "失败", value: false}
|
{ text: "失败", value: false }
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
/// 查询操作
|
/// 查询操作
|
||||||
const search = function(value) {
|
const search = function (value) {
|
||||||
state.param.title = value.title
|
state.param.title = value.title
|
||||||
state.param.state = value.state
|
state.param.state = value.state
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,43 +1,23 @@
|
||||||
<template>
|
<template>
|
||||||
<page-layout>
|
<a-list-layout ref="pageRef">
|
||||||
<a-row :gutter="[10, 10]">
|
<template #search>
|
||||||
<!-- 查询表单 -->
|
<pro-query :searchParam="searchParam" @on-search="search"></pro-query>
|
||||||
<a-col :span="24">
|
</template>
|
||||||
<a-card>
|
<pro-table ref="tableRef" :fetch="fetch" :columns="columns" :toolbar="toolbar" :operate="operate"
|
||||||
<pro-query
|
:param="state.param" :pagination="pagination"
|
||||||
:searchParam="searchParam"
|
:row-selection="{ selectedRowKeys: state.selectedRowKeys, onChange: onSelectChange }">
|
||||||
@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 }"
|
|
||||||
>
|
|
||||||
</pro-table>
|
</pro-table>
|
||||||
</a-card>
|
|
||||||
</a-col>
|
|
||||||
</a-row>
|
|
||||||
<save :visible="state.visibleSave" @close="closeSave"></save>
|
<save :visible="state.visibleSave" @close="closeSave"></save>
|
||||||
<edit :visible="state.visibleEdit" @close="closeEdit" :record="state.recordEdit"></edit>
|
<edit :visible="state.visibleEdit" @close="closeEdit" :record="state.recordEdit"></edit>
|
||||||
<info :visible="state.visibleInfo" @close="closeInfo" :record="state.recordInfo"></info>
|
<info :visible="state.visibleInfo" @close="closeInfo" :record="state.recordInfo"></info>
|
||||||
</page-layout>
|
</a-list-layout>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import save from './modal/save.vue';
|
import save from './modal/save.vue';
|
||||||
import edit from './modal/edit.vue';
|
import edit from './modal/edit.vue';
|
||||||
import info from './modal/info.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 { ExclamationCircleOutlined } from '@ant-design/icons-vue';
|
||||||
import { page, remove, removeBatch } from "@/api/module/post";
|
import { page, remove, removeBatch } from "@/api/module/post";
|
||||||
import { reactive, createVNode, ref } from 'vue';
|
import { reactive, createVNode, ref } from 'vue';
|
||||||
|
|
@ -63,7 +43,7 @@ export default {
|
||||||
{ dataIndex: "name", key: "name", title: "名称" },
|
{ dataIndex: "name", key: "name", title: "名称" },
|
||||||
{ dataIndex: "code", key: "code", title: "标识" },
|
{ dataIndex: "code", key: "code", title: "标识" },
|
||||||
{ dataIndex: "remark", key: "remark", 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: "排序" },
|
{ dataIndex: "sort", key: "sort", title: "排序" },
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
@ -78,20 +58,20 @@ export default {
|
||||||
|
|
||||||
/// 删除配置
|
/// 删除配置
|
||||||
const removeMethod = (record) => {
|
const removeMethod = (record) => {
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确定要删除此配置?',
|
title: '您是否确定要删除此配置?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
cancelText: '取消',
|
cancelText: '取消',
|
||||||
onOk() {
|
onOk() {
|
||||||
message.loading({ content: "提交中...", key: removeKey });
|
message.loading({ content: "提交中...", key: removeKey });
|
||||||
remove({"id":record.id}).then((response) => {
|
remove({ "id": record.id }).then((response) => {
|
||||||
if(response.success){
|
if (response.success) {
|
||||||
message.success({content: "删除成功", key: removeKey, duration: 1}).then(()=>{
|
message.success({ content: "删除成功", key: removeKey, duration: 1 }).then(() => {
|
||||||
tableRef.value.reload()
|
tableRef.value.reload()
|
||||||
})
|
})
|
||||||
}else{
|
} else {
|
||||||
message.error({content: "删除失败", key: removeKey, duration: 1})
|
message.error({ content: "删除失败", key: removeKey, duration: 1 })
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
@ -99,20 +79,20 @@ export default {
|
||||||
}
|
}
|
||||||
|
|
||||||
const removeBatchMethod = (ids) => {
|
const removeBatchMethod = (ids) => {
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确定要删除选择配置?',
|
title: '您是否确定要删除选择配置?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
cancelText: '取消',
|
cancelText: '取消',
|
||||||
onOk() {
|
onOk() {
|
||||||
message.loading({ content: "提交中...", key: removeBatchKey });
|
message.loading({ content: "提交中...", key: removeBatchKey });
|
||||||
removeBatch({"ids":ids}).then((response) => {
|
removeBatch({ "ids": ids }).then((response) => {
|
||||||
if(response.success){
|
if (response.success) {
|
||||||
message.success({content: "删除成功", key: removeBatchKey, duration: 1}).then(()=>{
|
message.success({ content: "删除成功", key: removeBatchKey, duration: 1 }).then(() => {
|
||||||
tableRef.value.reload()
|
tableRef.value.reload()
|
||||||
})
|
})
|
||||||
}else{
|
} else {
|
||||||
message.error({content: "删除失败", key: removeBatchKey, duration: 1})
|
message.error({ content: "删除失败", key: removeBatchKey, duration: 1 })
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
@ -121,15 +101,15 @@ export default {
|
||||||
|
|
||||||
/// 工具栏
|
/// 工具栏
|
||||||
const toolbar = [
|
const toolbar = [
|
||||||
{ label: "新增", event: function () { state.visibleSave = true }},
|
{ label: "新增", event: function () { state.visibleSave = true } },
|
||||||
{ label: "删除", event: function () { removeBatchMethod(state.selectedRowKeys) }},
|
{ label: "删除", event: function () { removeBatchMethod(state.selectedRowKeys) } },
|
||||||
];
|
];
|
||||||
|
|
||||||
/// 行操作
|
/// 行操作
|
||||||
const operate = [
|
const operate = [
|
||||||
{ label: "查看", event: function (record) { state.visibleInfo = true, state.recordInfo = 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.visibleEdit = true, state.recordEdit = record } },
|
||||||
{ label: "删除", event: function (record) { removeMethod(record) }},
|
{ label: "删除", event: function (record) { removeMethod(record) } },
|
||||||
];
|
];
|
||||||
|
|
||||||
/// 分页参数
|
/// 分页参数
|
||||||
|
|
@ -150,26 +130,26 @@ export default {
|
||||||
})
|
})
|
||||||
|
|
||||||
const searchParam = [
|
const searchParam = [
|
||||||
{ key: "name", type: "input", label: "岗位名称"},
|
{ key: "name", type: "input", label: "岗位名称" },
|
||||||
{ key: "code", type: "input", label: "岗位编码"},
|
{ key: "code", type: "input", label: "岗位编码" },
|
||||||
]
|
]
|
||||||
|
|
||||||
const search = function(value) {
|
const search = function (value) {
|
||||||
state.param = value
|
state.param = value
|
||||||
tableRef.value.reload()
|
tableRef.value.reload()
|
||||||
}
|
}
|
||||||
|
|
||||||
const closeSave = function(){
|
const closeSave = function () {
|
||||||
state.visibleSave = false
|
state.visibleSave = false
|
||||||
tableRef.value.reload()
|
tableRef.value.reload()
|
||||||
}
|
}
|
||||||
|
|
||||||
const closeEdit = function(){
|
const closeEdit = function () {
|
||||||
state.visibleEdit = false
|
state.visibleEdit = false
|
||||||
tableRef.value.reload()
|
tableRef.value.reload()
|
||||||
}
|
}
|
||||||
|
|
||||||
const closeInfo = function(){
|
const closeInfo = function () {
|
||||||
state.visibleInfo = false
|
state.visibleInfo = false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -119,7 +119,7 @@
|
||||||
|
|
||||||
/// 删除角色
|
/// 删除角色
|
||||||
const removeMethod = (record) => {
|
const removeMethod = (record) => {
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确定要删除此角色?',
|
title: '您是否确定要删除此角色?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
|
|
@ -154,7 +154,7 @@
|
||||||
|
|
||||||
/// 批量删除
|
/// 批量删除
|
||||||
const removeBatchMethod = (ids) => {
|
const removeBatchMethod = (ids) => {
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确定要删除选择角色?',
|
title: '您是否确定要删除选择角色?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
|
|
|
||||||
|
|
@ -1,40 +1,20 @@
|
||||||
<template>
|
<template>
|
||||||
<page-layout>
|
<a-list-layout ref="pageRef">
|
||||||
<a-row :gutter="[10, 10]">
|
<template #search>
|
||||||
<!-- 顶部区域 -->
|
|
||||||
<a-col :span="24">
|
|
||||||
<a-card>
|
|
||||||
<!-- 查询参数 -->
|
<!-- 查询参数 -->
|
||||||
<pro-query
|
<pro-query :searchParam="searchParam" @on-search="search"></pro-query>
|
||||||
:searchParam="searchParam"
|
</template>
|
||||||
@on-search ="search"
|
|
||||||
></pro-query>
|
|
||||||
</a-card>
|
|
||||||
</a-col>
|
|
||||||
<!-- 中心区域 -->
|
|
||||||
<a-col :span="24">
|
|
||||||
<a-card>
|
|
||||||
<!-- 列表 -->
|
<!-- 列表 -->
|
||||||
<pro-table
|
<pro-table ref="tableRef" :fetch="fetch" :columns="columns" :toolbar="toolbar" :operate="operate"
|
||||||
ref="tableRef"
|
:param="state.param" :pagination="pagination"
|
||||||
:fetch="fetch"
|
:row-selection="{ selectedRowKeys: state.selectedRowKeys, onChange: onSelectChange }">
|
||||||
:columns="columns"
|
|
||||||
:toolbar="toolbar"
|
|
||||||
:operate="operate"
|
|
||||||
:param="state.param"
|
|
||||||
:pagination="pagination"
|
|
||||||
:row-selection="{ selectedRowKeys: state.selectedRowKeys, onChange: onSelectChange }"
|
|
||||||
>
|
|
||||||
<!-- 继承至 a-table 的默认插槽 -->
|
<!-- 继承至 a-table 的默认插槽 -->
|
||||||
</pro-table>
|
</pro-table>
|
||||||
</a-card>
|
|
||||||
</a-col>
|
|
||||||
</a-row>
|
|
||||||
<save :visible="state.visibleSave" @close="closeSave"></save>
|
<save :visible="state.visibleSave" @close="closeSave"></save>
|
||||||
<edit :visible="state.visibleEdit" @close="closeEdit" :record="state.recordEdit"></edit>
|
<edit :visible="state.visibleEdit" @close="closeEdit" :record="state.recordEdit"></edit>
|
||||||
<info :visible="state.visibleInfo" @close="closeInfo" :record="state.recordInfo"></info>
|
<info :visible="state.visibleInfo" @close="closeInfo" :record="state.recordInfo"></info>
|
||||||
<give :visible="state.visibleGive" @close="closeGive" :record="state.recordGive"></give>
|
<give :visible="state.visibleGive" @close="closeGive" :record="state.recordGive"></give>
|
||||||
</page-layout>
|
</a-list-layout>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
@ -42,7 +22,7 @@ import save from './modal/save.vue';
|
||||||
import edit from './modal/edit.vue';
|
import edit from './modal/edit.vue';
|
||||||
import info from './modal/info.vue';
|
import info from './modal/info.vue';
|
||||||
import give from './modal/give.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 { ExclamationCircleOutlined } from '@ant-design/icons-vue';
|
||||||
import { page, remove, removeBatch } from "@/api/module/tenant";
|
import { page, remove, removeBatch } from "@/api/module/tenant";
|
||||||
import { reactive, createVNode, ref } from 'vue';
|
import { reactive, createVNode, ref } from 'vue';
|
||||||
|
|
@ -63,7 +43,7 @@ export default {
|
||||||
|
|
||||||
const columns = [
|
const columns = [
|
||||||
{ dataIndex: "name", key: "name", title: "名称" },
|
{ dataIndex: "name", key: "name", title: "名称" },
|
||||||
{ dataIndex: "describe", key: "describe", title: "描述"},
|
{ dataIndex: "describe", key: "describe", title: "描述" },
|
||||||
{ dataIndex: "createTime", key: "createTime", title: "创建时间" },
|
{ dataIndex: "createTime", key: "createTime", title: "创建时间" },
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
@ -91,20 +71,20 @@ export default {
|
||||||
}
|
}
|
||||||
|
|
||||||
const removeBatchMethod = (ids) => {
|
const removeBatchMethod = (ids) => {
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确定要删除选择租户?',
|
title: '您是否确定要删除选择租户?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
cancelText: '取消',
|
cancelText: '取消',
|
||||||
onOk() {
|
onOk() {
|
||||||
message.loading({ content: "提交中...", key: removeBatchKey });
|
message.loading({ content: "提交中...", key: removeBatchKey });
|
||||||
removeBatch({"ids":ids}).then((response) => {
|
removeBatch({ "ids": ids }).then((response) => {
|
||||||
if(response.success){
|
if (response.success) {
|
||||||
message.success({content: "删除成功", key: removeBatchKey, duration: 1}).then(()=>{
|
message.success({ content: "删除成功", key: removeBatchKey, duration: 1 }).then(() => {
|
||||||
tableRef.value.reload()
|
tableRef.value.reload()
|
||||||
})
|
})
|
||||||
}else{
|
} else {
|
||||||
message.error({content: "删除失败", key: removeBatchKey, duration: 1})
|
message.error({ content: "删除失败", key: removeBatchKey, duration: 1 })
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
@ -113,16 +93,16 @@ export default {
|
||||||
|
|
||||||
/// 工具栏
|
/// 工具栏
|
||||||
const toolbar = [
|
const toolbar = [
|
||||||
{ label: "新增", event: function () { state.visibleSave = true }},
|
{ label: "新增", event: function () { state.visibleSave = true } },
|
||||||
{ label: "删除", event: function () { removeBatchMethod(state.selectedRowKeys) }},
|
{ label: "删除", event: function () { removeBatchMethod(state.selectedRowKeys) } },
|
||||||
];
|
];
|
||||||
|
|
||||||
/// 行操作
|
/// 行操作
|
||||||
const operate = [
|
const operate = [
|
||||||
{ label: "查看", event: function (record) { state.visibleInfo = true, state.recordInfo = 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.visibleEdit = true, state.recordEdit = record } },
|
||||||
{ label: "分配", event: function (record) { state.visibleGive = true, state.recordGive = record }},
|
{ label: "分配", event: function (record) { state.visibleGive = true, state.recordGive = record } },
|
||||||
{ label: "删除",isDel:true, delEvent: function (record) { removeMethod(record) }},
|
{ label: "删除", isDel: true, delEvent: function (record) { removeMethod(record) } },
|
||||||
];
|
];
|
||||||
|
|
||||||
/// 分页参数
|
/// 分页参数
|
||||||
|
|
@ -150,31 +130,31 @@ export default {
|
||||||
|
|
||||||
/// 查询参数
|
/// 查询参数
|
||||||
const searchParam = [
|
const searchParam = [
|
||||||
{ key: "name", type: "input", label: "名称"},
|
{ key: "name", type: "input", label: "名称" },
|
||||||
{ key: "key", type: "input", label: "Key"},
|
{ key: "key", type: "input", label: "Key" },
|
||||||
]
|
]
|
||||||
|
|
||||||
/// 查询操作
|
/// 查询操作
|
||||||
const search = function(value) {
|
const search = function (value) {
|
||||||
state.param = value
|
state.param = value
|
||||||
tableRef.value.reload()
|
tableRef.value.reload()
|
||||||
}
|
}
|
||||||
|
|
||||||
const closeSave = function(){
|
const closeSave = function () {
|
||||||
state.visibleSave = false;
|
state.visibleSave = false;
|
||||||
tableRef.value.reload()
|
tableRef.value.reload()
|
||||||
}
|
}
|
||||||
|
|
||||||
const closeEdit = function(){
|
const closeEdit = function () {
|
||||||
state.visibleEdit = false;
|
state.visibleEdit = false;
|
||||||
tableRef.value.reload()
|
tableRef.value.reload()
|
||||||
}
|
}
|
||||||
|
|
||||||
const closeInfo = function(){
|
const closeInfo = function () {
|
||||||
state.visibleInfo = false;
|
state.visibleInfo = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
const closeGive = function(){
|
const closeGive = function () {
|
||||||
state.visibleGive = false;
|
state.visibleGive = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,45 +1,25 @@
|
||||||
<template>
|
<template>
|
||||||
<page-layout>
|
<a-list-layout ref="pageRef">
|
||||||
<!-- 列表页面 -->
|
<template #search>
|
||||||
<a-row :gutter="[10, 10]">
|
<pro-query :searchParam="searchParam" @on-search="search">
|
||||||
<!-- 查询条件 -->
|
|
||||||
<a-col :span="24">
|
|
||||||
<a-card>
|
|
||||||
<pro-query
|
|
||||||
:searchParam="searchParam"
|
|
||||||
@on-search ="search"
|
|
||||||
>
|
|
||||||
<template #test="{ data }">
|
<template #test="{ data }">
|
||||||
<a-input v-model:value="data.test" type="text" />
|
<a-input v-model:value="data.test" type="text" />
|
||||||
</template>
|
</template>
|
||||||
</pro-query>
|
</pro-query>
|
||||||
</a-card>
|
</template>
|
||||||
</a-col>
|
<pro-table ref="tableRef" :fetch="fetch" :columns="columns" :toolbar="toolbar" :operate="operate"
|
||||||
<!-- 用户列表 -->
|
:param="state.param" :pagination="pagination"
|
||||||
<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 }">
|
:row-selection="{ selectedRowKeys: state.selectedRowKeys, onChange: onSelectChange }">
|
||||||
</pro-table>
|
</pro-table>
|
||||||
</a-card>
|
|
||||||
</a-col>
|
|
||||||
</a-row>
|
|
||||||
<!-- 新增页面 -->
|
<!-- 新增页面 -->
|
||||||
<save :visible="state.visibleSave" @close="closeSave" :record="state.record"></save>
|
<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>
|
<give :visible="state.visibleGive" @close="closeGive" :record="state.recordGive"></give>
|
||||||
<!-- 详情页面 -->
|
<!-- 详情页面 -->
|
||||||
<info :visible="state.visibleInfo" @close="closeInfo" :record="state.recordInfo"></info>
|
<info :visible="state.visibleInfo" @close="closeInfo" :record="state.recordInfo"></info>
|
||||||
</page-layout>
|
</a-list-layout>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
@ -47,7 +27,7 @@ import save from './modal/save.vue';
|
||||||
import edit from './modal/edit.vue';
|
import edit from './modal/edit.vue';
|
||||||
import give from './modal/give.vue';
|
import give from './modal/give.vue';
|
||||||
import info from './modal/info.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 { ExclamationCircleOutlined } from '@ant-design/icons-vue';
|
||||||
import { page, remove, removeBatch, resetPassword } from "@/api/module/user";
|
import { page, remove, removeBatch, resetPassword } from "@/api/module/user";
|
||||||
import { reactive, createVNode, ref } from 'vue';
|
import { reactive, createVNode, ref } from 'vue';
|
||||||
|
|
@ -76,31 +56,31 @@ export default {
|
||||||
};
|
};
|
||||||
|
|
||||||
const resetPasswordMethod = (record) => {
|
const resetPasswordMethod = (record) => {
|
||||||
resetPassword({"id":record.id}).then((response) => {
|
resetPassword({ "id": record.id }).then((response) => {
|
||||||
if(response.success){
|
if (response.success) {
|
||||||
message.success({content: "重置成功", key: removeKey, duration: 1})
|
message.success({ content: "重置成功", key: removeKey, duration: 1 })
|
||||||
}else{
|
} else {
|
||||||
message.error({content: "重置失败", key: removeKey, duration: 1})
|
message.error({ content: "重置失败", key: removeKey, duration: 1 })
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
/// 删除用户
|
/// 删除用户
|
||||||
const removeMethod = (record) => {
|
const removeMethod = (record) => {
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确定要删除此用户?',
|
title: '您是否确定要删除此用户?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
cancelText: '取消',
|
cancelText: '取消',
|
||||||
onOk() {
|
onOk() {
|
||||||
message.loading({ content: "提交中...", key: removeKey });
|
message.loading({ content: "提交中...", key: removeKey });
|
||||||
remove({"id":record.id}).then((response) => {
|
remove({ "id": record.id }).then((response) => {
|
||||||
if(response.success){
|
if (response.success) {
|
||||||
message.success({content: "删除成功", key: removeKey, duration: 1}).then(() =>
|
message.success({ content: "删除成功", key: removeKey, duration: 1 }).then(() =>
|
||||||
tableRef.value.reload()
|
tableRef.value.reload()
|
||||||
)
|
)
|
||||||
}else{
|
} else {
|
||||||
message.error({content: "删除失败", key: removeKey, duration: 1})
|
message.error({ content: "删除失败", key: removeKey, duration: 1 })
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
@ -109,20 +89,20 @@ export default {
|
||||||
|
|
||||||
/// 批量删除
|
/// 批量删除
|
||||||
const removeBatchMethod = (ids) => {
|
const removeBatchMethod = (ids) => {
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确定要删除选择用户?',
|
title: '您是否确定要删除选择用户?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
cancelText: '取消',
|
cancelText: '取消',
|
||||||
onOk() {
|
onOk() {
|
||||||
message.loading({ content: "提交中...", key: removeBatchKey });
|
message.loading({ content: "提交中...", key: removeBatchKey });
|
||||||
removeBatch({"ids":ids}).then((response) => {
|
removeBatch({ "ids": ids }).then((response) => {
|
||||||
if(response.success){
|
if (response.success) {
|
||||||
message.success({content: "删除成功", key: removeBatchKey, duration: 1}).then(() =>
|
message.success({ content: "删除成功", key: removeBatchKey, duration: 1 }).then(() =>
|
||||||
tableRef.value.reload()
|
tableRef.value.reload()
|
||||||
)
|
)
|
||||||
}else{
|
} else {
|
||||||
message.error({content: "删除失败", key: removeBatchKey, duration: 1})
|
message.error({ content: "删除失败", key: removeBatchKey, duration: 1 })
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
@ -131,27 +111,29 @@ export default {
|
||||||
|
|
||||||
/// 工具栏
|
/// 工具栏
|
||||||
const toolbar = [
|
const toolbar = [
|
||||||
{ label: "新增", event: function () { state.visibleSave = true }},
|
{ label: "新增", event: function () { state.visibleSave = true } },
|
||||||
{ label: "删除", event: function () { removeBatchMethod(state.selectedRowKeys) }}
|
{ label: "删除", event: function () { removeBatchMethod(state.selectedRowKeys) } }
|
||||||
];
|
];
|
||||||
|
|
||||||
/// 行操作
|
/// 行操作
|
||||||
const operate = [
|
const operate = [
|
||||||
{ label: "查看", event: function (record) { state.visibleInfo = true , state.recordInfo = 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.visibleEdit = true, state.recordEdit = record } },
|
||||||
{ label: "分配", event: function (record) { state.visibleGive = true , state.recordGive = record }},
|
{ label: "分配", event: function (record) { state.visibleGive = true, state.recordGive = record } },
|
||||||
{ label: "删除", event: function (record) { removeMethod(record) }},
|
{ label: "删除", event: function (record) { removeMethod(record) } },
|
||||||
{ label: '重置', event: function (record) { resetPasswordMethod(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;
|
record.enable = !record.enable;
|
||||||
return value;
|
return value;
|
||||||
} };
|
}
|
||||||
|
};
|
||||||
|
|
||||||
/// 头像
|
/// 头像
|
||||||
const avatarFormat = { size: 36, shape: "square" };
|
const avatarFormat = { size: 36, shape: "square" };
|
||||||
|
|
@ -162,15 +144,15 @@ export default {
|
||||||
{ dataIndex: "avatar", key: "avatar", title: "头像", avatar: avatarFormat },
|
{ dataIndex: "avatar", key: "avatar", title: "头像", avatar: avatarFormat },
|
||||||
{ dataIndex: "nickname", key: "nickname", title: "名称" },
|
{ dataIndex: "nickname", key: "nickname", title: "名称" },
|
||||||
{ dataIndex: "username", key: "username", title: "账号" },
|
{ dataIndex: "username", key: "username", title: "账号" },
|
||||||
{ dataIndex: "gender", key: "gender", title: "性别", conver: converFormat},
|
{ dataIndex: "gender", key: "gender", title: "性别", conver: converFormat },
|
||||||
{ dataIndex: "enable", key: "enable", title: "状态", switch: switchFormat},
|
{ dataIndex: "enable", key: "enable", title: "状态", switch: switchFormat },
|
||||||
{ dataIndex: "email", key: "email", title: "邮箱" },
|
{ dataIndex: "email", key: "email", title: "邮箱" },
|
||||||
{ dataIndex: "phone", key: "phone", title: "电话" },
|
{ dataIndex: "phone", key: "phone", title: "电话" },
|
||||||
{ dataIndex: "createTime", key: "createTime", title: "注册时间" }
|
{ dataIndex: "createTime", key: "createTime", title: "注册时间" }
|
||||||
];
|
];
|
||||||
|
|
||||||
/// 分页参数
|
/// 分页参数
|
||||||
const pagination = { pageNum: 1, pageSize: 10}
|
const pagination = { pageNum: 1, pageSize: 10 }
|
||||||
|
|
||||||
/// 外置参数
|
/// 外置参数
|
||||||
const state = reactive({
|
const state = reactive({
|
||||||
|
|
@ -188,8 +170,8 @@ export default {
|
||||||
|
|
||||||
/// 查询参数
|
/// 查询参数
|
||||||
const searchParam = [
|
const searchParam = [
|
||||||
{ key: "name", type: "input", label: "名称"},
|
{ key: "name", type: "input", label: "名称" },
|
||||||
{ key: "code", type: "input", label: "描述"},
|
{ key: "code", type: "input", label: "描述" },
|
||||||
{ key: "test", type: "custom", label: "插槽", customRender: "test" }
|
{ key: "test", type: "custom", label: "插槽", customRender: "test" }
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
@ -199,31 +181,31 @@ export default {
|
||||||
};
|
};
|
||||||
|
|
||||||
/// 查询操作
|
/// 查询操作
|
||||||
const search = function(value) {
|
const search = function (value) {
|
||||||
state.param = value;
|
state.param = value;
|
||||||
tableRef.value.reload();
|
tableRef.value.reload();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// 关闭新增
|
/// 关闭新增
|
||||||
const closeSave = function(){
|
const closeSave = function () {
|
||||||
state.visibleSave = false;
|
state.visibleSave = false;
|
||||||
tableRef.value.reload();
|
tableRef.value.reload();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// 关闭修改
|
/// 关闭修改
|
||||||
const closeEdit = function(){
|
const closeEdit = function () {
|
||||||
state.visibleEdit = false;
|
state.visibleEdit = false;
|
||||||
tableRef.value.reload();
|
tableRef.value.reload();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// 关闭分配
|
/// 关闭分配
|
||||||
const closeGive = function(){
|
const closeGive = function () {
|
||||||
state.visibleGive = false;
|
state.visibleGive = false;
|
||||||
tableRef.value.reload();
|
tableRef.value.reload();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// 关闭详情
|
/// 关闭详情
|
||||||
const closeInfo = function(){
|
const closeInfo = function () {
|
||||||
state.visibleInfo = false;
|
state.visibleInfo = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,26 +1,19 @@
|
||||||
<template>
|
<template>
|
||||||
<page-layout>
|
<a-list-layout
|
||||||
<a-row :gutter="[10, 10]">
|
ref="pageRef"
|
||||||
<!-- 查询表单 -->
|
>
|
||||||
<a-col :span="24">
|
<template #search>
|
||||||
<a-card>
|
|
||||||
<pro-query :searchParam="searchParam" @on-search="search"></pro-query>
|
<pro-query :searchParam="searchParam" @on-search="search"></pro-query>
|
||||||
</a-card>
|
</template>
|
||||||
</a-col>
|
|
||||||
<!-- 客户信息列表 -->
|
<!-- 客户信息列表 -->
|
||||||
<a-col :span="24">
|
|
||||||
<a-card>
|
|
||||||
<pro-table ref="tableRef" :fetch="fetch" :columns="columns" :toolbar="toolbar" :operate="operate"
|
<pro-table ref="tableRef" :fetch="fetch" :columns="columns" :toolbar="toolbar" :operate="operate"
|
||||||
:param="state.param" :pagination="pagination"
|
:param="state.param" :pagination="pagination"
|
||||||
:row-selection="{ selectedRowKeys: state.selectedRowKeys, onChange: onSelectChange }">
|
:row-selection="{ selectedRowKeys: state.selectedRowKeys, onChange: onSelectChange }">
|
||||||
</pro-table>
|
</pro-table>
|
||||||
</a-card>
|
|
||||||
</a-col>
|
|
||||||
</a-row>
|
|
||||||
<save :visible="state.visibleSave" @close="closeSave"></save>
|
<save :visible="state.visibleSave" @close="closeSave"></save>
|
||||||
<edit :visible="state.visibleEdit" @close="closeEdit" :record="state.recordEdit"></edit>
|
<edit :visible="state.visibleEdit" @close="closeEdit" :record="state.recordEdit"></edit>
|
||||||
<info :visible="state.visibleInfo" @close="closeInfo" :record="state.recordInfo"></info>
|
<info :visible="state.visibleInfo" @close="closeInfo" :record="state.recordInfo"></info>
|
||||||
</page-layout>
|
</a-list-layout>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
@ -183,7 +176,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
const removeBatchMethod = (ids) => {
|
const removeBatchMethod = (ids) => {
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确定要删除选择客户信息?',
|
title: '您是否确定要删除选择客户信息?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
|
|
|
||||||
|
|
@ -1,26 +1,19 @@
|
||||||
<template>
|
<template>
|
||||||
<page-layout>
|
<a-list-layout
|
||||||
<a-row :gutter="[10, 10]">
|
ref="pageRef"
|
||||||
<!-- 查询表单 -->
|
>
|
||||||
<a-col :span="24">
|
<template #search>
|
||||||
<a-card>
|
|
||||||
<pro-query :searchParam="searchParam" @on-search="search"></pro-query>
|
<pro-query :searchParam="searchParam" @on-search="search"></pro-query>
|
||||||
</a-card>
|
</template>
|
||||||
</a-col>
|
|
||||||
<!-- 搬运类型列表 -->
|
<!-- 搬运类型列表 -->
|
||||||
<a-col :span="24">
|
|
||||||
<a-card>
|
|
||||||
<pro-table ref="tableRef" :fetch="fetch" :columns="columns" :toolbar="toolbar" :operate="operate"
|
<pro-table ref="tableRef" :fetch="fetch" :columns="columns" :toolbar="toolbar" :operate="operate"
|
||||||
:param="state.param" :pagination="pagination"
|
:param="state.param" :pagination="pagination"
|
||||||
:row-selection="{ selectedRowKeys: state.selectedRowKeys, onChange: onSelectChange }">
|
:row-selection="{ selectedRowKeys: state.selectedRowKeys, onChange: onSelectChange }">
|
||||||
</pro-table>
|
</pro-table>
|
||||||
</a-card>
|
|
||||||
</a-col>
|
|
||||||
</a-row>
|
|
||||||
<save :visible="state.visibleSave" @close="closeSave"></save>
|
<save :visible="state.visibleSave" @close="closeSave"></save>
|
||||||
<edit :visible="state.visibleEdit" @close="closeEdit" :record="state.recordEdit"></edit>
|
<edit :visible="state.visibleEdit" @close="closeEdit" :record="state.recordEdit"></edit>
|
||||||
<info :visible="state.visibleInfo" @close="closeInfo" :record="state.recordInfo"></info>
|
<info :visible="state.visibleInfo" @close="closeInfo" :record="state.recordInfo"></info>
|
||||||
</page-layout>
|
</a-list-layout>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
@ -218,7 +211,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
const removeBatchMethod = (ids) => {
|
const removeBatchMethod = (ids) => {
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确定要删除选择任务?',
|
title: '您是否确定要删除选择任务?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
|
|
|
||||||
|
|
@ -1,51 +1,41 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<a-list-layout ref="pageRef">
|
||||||
<page-layout>
|
<template #search>
|
||||||
<a-row :gutter="[0,2]">
|
|
||||||
<a-col :span="24">
|
|
||||||
<a-card>
|
|
||||||
<pro-query :searchParam="searchParam" @on-search="search"></pro-query>
|
<pro-query :searchParam="searchParam" @on-search="search"></pro-query>
|
||||||
</a-card>
|
</template>
|
||||||
</a-col>
|
<pro-table style="margin-top: 10px" rowKey="id" ref="tableRef" :fetch="fetch" :columns="columns" :toolbar="toolbar"
|
||||||
<a-col :span="24">
|
:operate="operate" :param="state.param" :pagination="pagination"
|
||||||
<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"
|
|
||||||
:row-selection="{ selectedRowKeys: state.selectedRowKeys, onChange: onSelectChange }">
|
:row-selection="{ selectedRowKeys: state.selectedRowKeys, onChange: onSelectChange }">
|
||||||
</pro-table>
|
</pro-table>
|
||||||
</a-card>
|
</a-list-layout>
|
||||||
</a-col>
|
|
||||||
</a-row>
|
|
||||||
</page-layout>
|
|
||||||
</div>
|
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import {
|
import {
|
||||||
message,
|
message,
|
||||||
notification,
|
Modal as modal
|
||||||
modal
|
} from '@hwork/ant-design-vue';
|
||||||
} from '@hwork/ant-design-vue';
|
import {
|
||||||
import {
|
|
||||||
ExclamationCircleOutlined
|
ExclamationCircleOutlined
|
||||||
} from '@ant-design/icons-vue';
|
} from '@ant-design/icons-vue';
|
||||||
import {
|
import {
|
||||||
reActivate,
|
reActivate,
|
||||||
page,
|
page,
|
||||||
remove,
|
remove,
|
||||||
cancel,
|
cancel,
|
||||||
removeBatch
|
removeBatch
|
||||||
} from "@/api/wms/request";
|
} from "@/api/wms/request";
|
||||||
import {
|
import {
|
||||||
reactive,
|
reactive,
|
||||||
createVNode,
|
createVNode,
|
||||||
ref,
|
ref,
|
||||||
} from 'vue';
|
} from 'vue';
|
||||||
const reActivateKey = "reActivate";
|
const reActivateKey = "reActivate";
|
||||||
const removeKey = "remove";
|
const removeKey = "remove";
|
||||||
const cancelKey = "cancel";
|
const cancelKey = "cancel";
|
||||||
const removeBatchKey = "removeBatch";
|
const removeBatchKey = "removeBatch";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
name: 'WmsRequestIndex',
|
||||||
components: {},
|
components: {},
|
||||||
|
|
||||||
setup() {
|
setup() {
|
||||||
|
|
@ -171,7 +161,7 @@
|
||||||
|
|
||||||
//重置配置
|
//重置配置
|
||||||
const reActivateMethod = (record) => {
|
const reActivateMethod = (record) => {
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确认重置该请求?',
|
title: '您是否确认重置该请求?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
|
|
@ -196,7 +186,7 @@
|
||||||
tableRef.value.reload()
|
tableRef.value.reload()
|
||||||
} else {
|
} else {
|
||||||
message.error({
|
message.error({
|
||||||
content: "重置失败:" +response.msg,
|
content: "重置失败:" + response.msg,
|
||||||
key: reActivateKey,
|
key: reActivateKey,
|
||||||
duration: 3
|
duration: 3
|
||||||
})
|
})
|
||||||
|
|
@ -208,7 +198,7 @@
|
||||||
|
|
||||||
//取消配置
|
//取消配置
|
||||||
const cancelMethod = (record) => {
|
const cancelMethod = (record) => {
|
||||||
const confirmMsg = Modal.confirm({
|
const confirmMsg = modal.confirm({
|
||||||
title: '您是否确认取消该请求?',
|
title: '您是否确认取消该请求?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
|
|
@ -220,7 +210,7 @@
|
||||||
});
|
});
|
||||||
cancel({
|
cancel({
|
||||||
'id': record.id,
|
'id': record.id,
|
||||||
'status':record.status,
|
'status': record.status,
|
||||||
}).then((response) => {
|
}).then((response) => {
|
||||||
if (response.success) {
|
if (response.success) {
|
||||||
message.success({
|
message.success({
|
||||||
|
|
@ -231,7 +221,7 @@
|
||||||
tableRef.value.reload()
|
tableRef.value.reload()
|
||||||
} else {
|
} else {
|
||||||
message.destroy()
|
message.destroy()
|
||||||
notification.error({
|
message.error({
|
||||||
message: '请求取消失败',
|
message: '请求取消失败',
|
||||||
description: response.msg
|
description: response.msg
|
||||||
})
|
})
|
||||||
|
|
@ -244,7 +234,7 @@
|
||||||
}
|
}
|
||||||
// 删除数据
|
// 删除数据
|
||||||
const removeMethod = (record) => {
|
const removeMethod = (record) => {
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确定要删除?',
|
title: '您是否确定要删除?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
|
|
@ -279,7 +269,7 @@
|
||||||
|
|
||||||
// 批量删除
|
// 批量删除
|
||||||
const removeBatchMethod = (ids) => {
|
const removeBatchMethod = (ids) => {
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确定要删除?',
|
title: '您是否确定要删除?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
|
|
@ -315,18 +305,18 @@
|
||||||
/// 工具栏
|
/// 工具栏
|
||||||
const toolbar = [{
|
const toolbar = [{
|
||||||
label: "删除",
|
label: "删除",
|
||||||
code: remove,
|
code: 'wms:request:delete',
|
||||||
event: function() {
|
event: function () {
|
||||||
removeBatchMethod(state.selectedRowKeys)
|
removeBatchMethod(state.selectedRowKeys)
|
||||||
},
|
},
|
||||||
type: 'danger'
|
type: 'danger'
|
||||||
}, ];
|
},];
|
||||||
|
|
||||||
/// 行操作
|
/// 行操作
|
||||||
const operate = [{
|
const operate = [{
|
||||||
label: "删除",
|
label: "删除",
|
||||||
code: 'wms:request:delete',
|
code: 'wms:request:delete',
|
||||||
event: function(record) {
|
event: function (record) {
|
||||||
removeMethod(record)
|
removeMethod(record)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
@ -334,7 +324,7 @@
|
||||||
label: "重置",
|
label: "重置",
|
||||||
code: 'wms:request:reactivate',
|
code: 'wms:request:reactivate',
|
||||||
isRes: true,
|
isRes: true,
|
||||||
event: function(record) {
|
event: function (record) {
|
||||||
reActivateMethod(record)
|
reActivateMethod(record)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
@ -342,13 +332,13 @@
|
||||||
label: "取消",
|
label: "取消",
|
||||||
code: 'wms:request:cancel',
|
code: 'wms:request:cancel',
|
||||||
isRes: true,
|
isRes: true,
|
||||||
event: function(record) {
|
event: function (record) {
|
||||||
cancelMethod(record)
|
cancelMethod(record)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "查看",
|
label: "查看",
|
||||||
event: function(record) {
|
event: function (record) {
|
||||||
alert("查看详情:" + JSON.stringify(record))
|
alert("查看详情:" + JSON.stringify(record))
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
@ -389,7 +379,7 @@
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
const search = function(value) {
|
const search = function (value) {
|
||||||
console.log("search", value)
|
console.log("search", value)
|
||||||
state.param = value
|
state.param = value
|
||||||
}
|
}
|
||||||
|
|
@ -412,5 +402,5 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -1,52 +1,44 @@
|
||||||
<template>
|
<template>
|
||||||
<page-layout>
|
<a-list-layout ref="pageRef">
|
||||||
<a-row :gutter="[10, 10]">
|
<template #search>
|
||||||
<!-- 查询表单 -->
|
|
||||||
<a-col :span="24">
|
|
||||||
<a-card>
|
|
||||||
<pro-query :searchParam="searchParam" @on-search="search"></pro-query>
|
<pro-query :searchParam="searchParam" @on-search="search"></pro-query>
|
||||||
</a-card>
|
</template>
|
||||||
</a-col>
|
|
||||||
<!-- 岗位列表 -->
|
<!-- 岗位列表 -->
|
||||||
<a-col :span="24">
|
|
||||||
<a-card>
|
|
||||||
<pro-table ref="tableRef" :fetch="fetch" :columns="columns" :toolbar="toolbar" :operate="operate"
|
<pro-table ref="tableRef" :fetch="fetch" :columns="columns" :toolbar="toolbar" :operate="operate"
|
||||||
:param="state.param" :pagination="pagination"
|
:param="state.param" :pagination="pagination"
|
||||||
:row-selection="{ selectedRowKeys: state.selectedRowKeys, onChange: onSelectChange }">
|
:row-selection="{ selectedRowKeys: state.selectedRowKeys, onChange: onSelectChange }">
|
||||||
</pro-table>
|
</pro-table>
|
||||||
</a-card>
|
|
||||||
</a-col>
|
|
||||||
</a-row>
|
|
||||||
<save :visible="state.visibleSave" @close="closeSave"></save>
|
<save :visible="state.visibleSave" @close="closeSave"></save>
|
||||||
<edit :visible="state.visibleEdit" @close="closeEdit" :record="state.recordEdit"></edit>
|
<edit :visible="state.visibleEdit" @close="closeEdit" :record="state.recordEdit"></edit>
|
||||||
</page-layout>
|
</a-list-layout>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import save from './modal/save.vue';
|
import save from './modal/save.vue';
|
||||||
import edit from './modal/edit.vue';
|
import edit from './modal/edit.vue';
|
||||||
import {
|
import {
|
||||||
message,
|
message,
|
||||||
Modal as modal
|
Modal as modal
|
||||||
} from '@hwork/ant-design-vue';
|
} from '@hwork/ant-design-vue';
|
||||||
import {
|
import {
|
||||||
ExclamationCircleOutlined
|
ExclamationCircleOutlined
|
||||||
} from '@ant-design/icons-vue';
|
} from '@ant-design/icons-vue';
|
||||||
import {
|
import {
|
||||||
page,
|
page,
|
||||||
remove,
|
remove,
|
||||||
removeBatch
|
removeBatch
|
||||||
} from "@/api/wms/skuCategory";
|
} from "@/api/wms/skuCategory";
|
||||||
import {
|
import {
|
||||||
reactive,
|
reactive,
|
||||||
createVNode,
|
createVNode,
|
||||||
ref
|
ref
|
||||||
} from 'vue';
|
} from 'vue';
|
||||||
|
|
||||||
const removeKey = "remove";
|
const removeKey = "remove";
|
||||||
const removeBatchKey = "removeBatch";
|
const removeBatchKey = "removeBatch";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
name: "SkuCategory",
|
||||||
components: {
|
components: {
|
||||||
save,
|
save,
|
||||||
edit,
|
edit,
|
||||||
|
|
@ -148,7 +140,7 @@
|
||||||
|
|
||||||
/// 删除配置
|
/// 删除配置
|
||||||
const removeMethod = (record) => {
|
const removeMethod = (record) => {
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确定要删除此数据?',
|
title: '您是否确定要删除此数据?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
|
|
@ -182,7 +174,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
const removeBatchMethod = (ids) => {
|
const removeBatchMethod = (ids) => {
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确定要删除选择数据?',
|
title: '您是否确定要删除选择数据?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
|
|
@ -219,14 +211,14 @@
|
||||||
const toolbar = [{
|
const toolbar = [{
|
||||||
label: "新增",
|
label: "新增",
|
||||||
code: 'wms:skuCategory:add',
|
code: 'wms:skuCategory:add',
|
||||||
event: function() {
|
event: function () {
|
||||||
state.visibleSave = true
|
state.visibleSave = true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "删除",
|
label: "删除",
|
||||||
code: 'wms:skuCategory:remove',
|
code: 'wms:skuCategory:remove',
|
||||||
event: function() {
|
event: function () {
|
||||||
removeBatchMethod(state.selectedRowKeys)
|
removeBatchMethod(state.selectedRowKeys)
|
||||||
},
|
},
|
||||||
type: 'danger'
|
type: 'danger'
|
||||||
|
|
@ -239,14 +231,14 @@
|
||||||
{
|
{
|
||||||
label: "修改",
|
label: "修改",
|
||||||
code: 'wms:skuCategory:edit',
|
code: 'wms:skuCategory:edit',
|
||||||
event: function(record) {
|
event: function (record) {
|
||||||
state.visibleEdit = true, state.recordEdit = record
|
state.visibleEdit = true, state.recordEdit = record
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "删除",
|
label: "删除",
|
||||||
code: 'wms:skuCategory:delete',
|
code: 'wms:skuCategory:delete',
|
||||||
event: function(record) {
|
event: function (record) {
|
||||||
removeMethod(record)
|
removeMethod(record)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
@ -283,17 +275,17 @@
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
const search = function(value) {
|
const search = function (value) {
|
||||||
state.param = value
|
state.param = value
|
||||||
tableRef.value.reload()
|
tableRef.value.reload()
|
||||||
}
|
}
|
||||||
|
|
||||||
const closeSave = function() {
|
const closeSave = function () {
|
||||||
state.visibleSave = false
|
state.visibleSave = false
|
||||||
tableRef.value.reload()
|
tableRef.value.reload()
|
||||||
}
|
}
|
||||||
|
|
||||||
const closeEdit = function() {
|
const closeEdit = function () {
|
||||||
state.visibleEdit = false
|
state.visibleEdit = false
|
||||||
tableRef.value.reload()
|
tableRef.value.reload()
|
||||||
}
|
}
|
||||||
|
|
@ -320,5 +312,5 @@
|
||||||
tableRef
|
tableRef
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -62,7 +62,7 @@
|
||||||
import save from './model/save.vue';
|
import save from './model/save.vue';
|
||||||
import {
|
import {
|
||||||
message,
|
message,
|
||||||
Modal,
|
Modal as modal,
|
||||||
} from '@hwork/ant-design-vue';
|
} from '@hwork/ant-design-vue';
|
||||||
import {
|
import {
|
||||||
CheckOutlined,
|
CheckOutlined,
|
||||||
|
|
@ -312,7 +312,7 @@
|
||||||
|
|
||||||
//删除
|
//删除
|
||||||
const removeMethod = (id) => {
|
const removeMethod = (id) => {
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确定要删除此条数据?',
|
title: '您是否确定要删除此条数据?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
|
|
@ -349,7 +349,7 @@
|
||||||
|
|
||||||
//批量删除
|
//批量删除
|
||||||
const removeactQtyMethod = (ids) => {
|
const removeactQtyMethod = (ids) => {
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确定要删除选择数据?',
|
title: '您是否确定要删除选择数据?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@
|
||||||
<script>
|
<script>
|
||||||
import {
|
import {
|
||||||
message,
|
message,
|
||||||
Modal,
|
Modal as modal,
|
||||||
} from '@hwork/ant-design-vue';
|
} from '@hwork/ant-design-vue';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
|
|
@ -228,7 +228,7 @@
|
||||||
|
|
||||||
//删除
|
//删除
|
||||||
const removeMethod = (record) => {
|
const removeMethod = (record) => {
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确定要删除此条数据?',
|
title: '您是否确定要删除此条数据?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
|
|
@ -263,7 +263,7 @@
|
||||||
|
|
||||||
//批量删除
|
//批量删除
|
||||||
const removeBatchMethod = (ids) => {
|
const removeBatchMethod = (ids) => {
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确定要删除选择数据?',
|
title: '您是否确定要删除选择数据?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@
|
||||||
import edit from './model/edit.vue';
|
import edit from './model/edit.vue';
|
||||||
import {
|
import {
|
||||||
message,
|
message,
|
||||||
Modal,
|
Modal as modal,
|
||||||
} from '@hwork/ant-design-vue';
|
} from '@hwork/ant-design-vue';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
|
|
@ -187,7 +187,7 @@
|
||||||
|
|
||||||
//删除
|
//删除
|
||||||
const removeMethod = (record) => {
|
const removeMethod = (record) => {
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确定要删除此条数据?',
|
title: '您是否确定要删除此条数据?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
|
|
@ -222,7 +222,7 @@
|
||||||
|
|
||||||
//批量删除
|
//批量删除
|
||||||
const removeBatchMethod = (ids) => {
|
const removeBatchMethod = (ids) => {
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确定要删除选择数据?',
|
title: '您是否确定要删除选择数据?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
|
|
|
||||||
|
|
@ -135,7 +135,7 @@
|
||||||
|
|
||||||
// 删除数据
|
// 删除数据
|
||||||
const removeMethod = (record) => {
|
const removeMethod = (record) => {
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确定要删除?',
|
title: '您是否确定要删除?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
|
|
@ -171,7 +171,7 @@
|
||||||
|
|
||||||
// 批量删除
|
// 批量删除
|
||||||
const removeBatchMethod = (ids) => {
|
const removeBatchMethod = (ids) => {
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确定要删除?',
|
title: '您是否确定要删除?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
|
|
|
||||||
|
|
@ -188,7 +188,7 @@
|
||||||
|
|
||||||
/// 删除角色
|
/// 删除角色
|
||||||
const removeMethod = (record) => {
|
const removeMethod = (record) => {
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确定要删除此数据?',
|
title: '您是否确定要删除此数据?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
|
|
@ -223,7 +223,7 @@
|
||||||
|
|
||||||
/// 批量删除
|
/// 批量删除
|
||||||
const removeBatchMethod = (ids) => {
|
const removeBatchMethod = (ids) => {
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确定要删除选择数据?',
|
title: '您是否确定要删除选择数据?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
|
|
|
||||||
|
|
@ -151,7 +151,7 @@
|
||||||
|
|
||||||
import {
|
import {
|
||||||
message,
|
message,
|
||||||
Modal,
|
Modal as modal,
|
||||||
} from '@hwork/ant-design-vue';
|
} from '@hwork/ant-design-vue';
|
||||||
import {
|
import {
|
||||||
CheckOutlined,
|
CheckOutlined,
|
||||||
|
|
@ -768,7 +768,7 @@
|
||||||
}
|
}
|
||||||
//删除
|
//删除
|
||||||
const removeMethod = (id) => {
|
const removeMethod = (id) => {
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确定要删除此条数据?',
|
title: '您是否确定要删除此条数据?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
|
|
@ -805,7 +805,7 @@
|
||||||
|
|
||||||
//批量删除
|
//批量删除
|
||||||
const removeBatchMethod = (ids) => {
|
const removeBatchMethod = (ids) => {
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确定要删除选择数据?',
|
title: '您是否确定要删除选择数据?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@
|
||||||
<script>
|
<script>
|
||||||
import {
|
import {
|
||||||
message,
|
message,
|
||||||
Modal,
|
Modal as modal,
|
||||||
} from '@hwork/ant-design-vue';
|
} from '@hwork/ant-design-vue';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
|
|
@ -190,7 +190,7 @@
|
||||||
|
|
||||||
//删除
|
//删除
|
||||||
const removeMethod = (record) => {
|
const removeMethod = (record) => {
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确定要删除此条数据?',
|
title: '您是否确定要删除此条数据?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
|
|
@ -225,7 +225,7 @@
|
||||||
|
|
||||||
//批量删除
|
//批量删除
|
||||||
const removeBatchMethod = (ids) => {
|
const removeBatchMethod = (ids) => {
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确定要删除选择数据?',
|
title: '您是否确定要删除选择数据?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
|
|
|
||||||
|
|
@ -193,7 +193,7 @@
|
||||||
|
|
||||||
// 删除数据
|
// 删除数据
|
||||||
const removeMethod = (record) => {
|
const removeMethod = (record) => {
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确定要删除?',
|
title: '您是否确定要删除?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
|
|
@ -229,7 +229,7 @@
|
||||||
|
|
||||||
// 批量删除
|
// 批量删除
|
||||||
const removeBatchMethod = (ids) => {
|
const removeBatchMethod = (ids) => {
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确定要删除?',
|
title: '您是否确定要删除?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
|
|
|
||||||
|
|
@ -307,7 +307,7 @@
|
||||||
|
|
||||||
/// 删除角色
|
/// 删除角色
|
||||||
const removeMethod = (record) => {
|
const removeMethod = (record) => {
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确定要删除此数据?',
|
title: '您是否确定要删除此数据?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
|
|
@ -342,7 +342,7 @@
|
||||||
|
|
||||||
/// 批量删除
|
/// 批量删除
|
||||||
const removeBatchMethod = (ids) => {
|
const removeBatchMethod = (ids) => {
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确定要删除选择数据?',
|
title: '您是否确定要删除选择数据?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
|
|
|
||||||
|
|
@ -159,7 +159,7 @@
|
||||||
|
|
||||||
import {
|
import {
|
||||||
message,
|
message,
|
||||||
Modal,
|
Modal as modal,
|
||||||
} from '@hwork/ant-design-vue';
|
} from '@hwork/ant-design-vue';
|
||||||
import {
|
import {
|
||||||
CheckOutlined,
|
CheckOutlined,
|
||||||
|
|
@ -777,7 +777,7 @@
|
||||||
}
|
}
|
||||||
//删除
|
//删除
|
||||||
const removeMethod = (id) => {
|
const removeMethod = (id) => {
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确定要删除此条数据?',
|
title: '您是否确定要删除此条数据?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
|
|
@ -814,7 +814,7 @@
|
||||||
|
|
||||||
//批量删除
|
//批量删除
|
||||||
const removeBatchMethod = (ids) => {
|
const removeBatchMethod = (ids) => {
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确定要删除选择数据?',
|
title: '您是否确定要删除选择数据?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@
|
||||||
<script>
|
<script>
|
||||||
import {
|
import {
|
||||||
message,
|
message,
|
||||||
Modal,
|
Modal as modal,
|
||||||
} from '@hwork/ant-design-vue';
|
} from '@hwork/ant-design-vue';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
|
|
@ -188,7 +188,7 @@
|
||||||
|
|
||||||
//删除
|
//删除
|
||||||
const removeMethod = (record) => {
|
const removeMethod = (record) => {
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确定要删除此条数据?',
|
title: '您是否确定要删除此条数据?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
|
|
@ -223,7 +223,7 @@
|
||||||
|
|
||||||
//批量删除
|
//批量删除
|
||||||
const removeBatchMethod = (ids) => {
|
const removeBatchMethod = (ids) => {
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确定要删除选择数据?',
|
title: '您是否确定要删除选择数据?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
|
|
|
||||||
|
|
@ -211,7 +211,7 @@
|
||||||
|
|
||||||
// 删除数据
|
// 删除数据
|
||||||
const removeMethod = (record) => {
|
const removeMethod = (record) => {
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确定要删除?',
|
title: '您是否确定要删除?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
|
|
@ -247,7 +247,7 @@
|
||||||
|
|
||||||
// 批量删除
|
// 批量删除
|
||||||
const removeBatchMethod = (ids) => {
|
const removeBatchMethod = (ids) => {
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确定要删除?',
|
title: '您是否确定要删除?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
|
|
@ -290,7 +290,7 @@
|
||||||
})
|
})
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确定要分配选择的数据?',
|
title: '您是否确定要分配选择的数据?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
|
|
@ -330,7 +330,7 @@
|
||||||
})
|
})
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确定要确认选择的数据?',
|
title: '您是否确定要确认选择的数据?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
|
|
@ -370,7 +370,7 @@
|
||||||
})
|
})
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确定要执行选择的数据?',
|
title: '您是否确定要执行选择的数据?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
|
|
@ -410,7 +410,7 @@
|
||||||
})
|
})
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确定要取消分配选择的数据?',
|
title: '您是否确定要取消分配选择的数据?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
|
|
|
||||||
|
|
@ -290,7 +290,7 @@
|
||||||
|
|
||||||
/// 删除角色
|
/// 删除角色
|
||||||
const removeMethod = (record) => {
|
const removeMethod = (record) => {
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确定要删除此数据?',
|
title: '您是否确定要删除此数据?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
|
|
@ -325,7 +325,7 @@
|
||||||
|
|
||||||
/// 批量删除
|
/// 批量删除
|
||||||
const removeBatchMethod = (ids) => {
|
const removeBatchMethod = (ids) => {
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确定要删除选择数据?',
|
title: '您是否确定要删除选择数据?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
|
|
@ -368,7 +368,7 @@
|
||||||
})
|
})
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确认分配?',
|
title: '您是否确认分配?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@
|
||||||
import edit from './model/edit.vue';
|
import edit from './model/edit.vue';
|
||||||
import {
|
import {
|
||||||
message,
|
message,
|
||||||
Modal,
|
Modal as modal,
|
||||||
} from '@hwork/ant-design-vue';
|
} from '@hwork/ant-design-vue';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
|
|
@ -223,7 +223,7 @@
|
||||||
|
|
||||||
//删除
|
//删除
|
||||||
const removeMethod = (record) => {
|
const removeMethod = (record) => {
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确定要删除此条数据?',
|
title: '您是否确定要删除此条数据?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
|
|
@ -258,7 +258,7 @@
|
||||||
|
|
||||||
//批量删除
|
//批量删除
|
||||||
const removeBatchMethod = (ids) => {
|
const removeBatchMethod = (ids) => {
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确定要删除选择数据?',
|
title: '您是否确定要删除选择数据?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
|
|
|
||||||
|
|
@ -47,6 +47,7 @@
|
||||||
const taskCancelKey = "taskCancel";
|
const taskCancelKey = "taskCancel";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
name: 'WmsRealTimeMonitorTaskIndex',
|
||||||
components: {
|
components: {
|
||||||
save,
|
save,
|
||||||
edit,
|
edit,
|
||||||
|
|
@ -337,7 +338,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
const removeBatchMethod = (ids) => {
|
const removeBatchMethod = (ids) => {
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确定要删除选择任务?',
|
title: '您是否确定要删除选择任务?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
|
|
@ -385,7 +386,7 @@
|
||||||
})
|
})
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确定下发?',
|
title: '您是否确定下发?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
|
|
@ -432,7 +433,7 @@
|
||||||
})
|
})
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确定完成?',
|
title: '您是否确定完成?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
|
|
@ -479,7 +480,7 @@
|
||||||
})
|
})
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确定取消?',
|
title: '您是否确定取消?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
|
|
|
||||||
|
|
@ -1,21 +1,16 @@
|
||||||
<template>
|
<template>
|
||||||
<page-layout>
|
<a-list-layout ref="pageRef">
|
||||||
<a-row :gutter="[10, 10]">
|
<template #search>
|
||||||
<!-- 任务备份列表 -->
|
|
||||||
<a-col :span="24">
|
|
||||||
<a-card>
|
|
||||||
<pro-query :searchParam="searchParam" @on-search="search"></pro-query>
|
<pro-query :searchParam="searchParam" @on-search="search"></pro-query>
|
||||||
|
</template>
|
||||||
<!-- 列表 -->
|
<!-- 列表 -->
|
||||||
<pro-table ref="tableRef" :fetch="fetch" :columns="columns" :toolbar="toolbar" :operate="operate"
|
<pro-table ref="tableRef" :fetch="fetch" :columns="columns" :toolbar="toolbar" :operate="operate"
|
||||||
:param="state.param" :pagination="pagination"
|
:param="state.param" :pagination="pagination"
|
||||||
:row-selection="{ selectedRowKeys: state.selectedRowKeys, onChange: onSelectChange }">
|
:row-selection="{ selectedRowKeys: state.selectedRowKeys, onChange: onSelectChange }">
|
||||||
</pro-table>
|
</pro-table>
|
||||||
</a-card>
|
|
||||||
</a-col>
|
|
||||||
</a-row>
|
|
||||||
<save :visible="state.visibleSave" @close="closeSave"></save>
|
<save :visible="state.visibleSave" @close="closeSave"></save>
|
||||||
<edit :visible="state.visibleEdit" @close="closeEdit" :record="state.recordEdit"></edit>
|
<edit :visible="state.visibleEdit" @close="closeEdit" :record="state.recordEdit"></edit>
|
||||||
</page-layout>
|
</a-list-layout>
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
@ -328,7 +323,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
const removeBatchMethod = (ids) => {
|
const removeBatchMethod = (ids) => {
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确定要删除选择任务?',
|
title: '您是否确定要删除选择任务?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
|
|
|
||||||
|
|
@ -226,7 +226,7 @@
|
||||||
|
|
||||||
// 删除数据
|
// 删除数据
|
||||||
const removeMethod = (record) => {
|
const removeMethod = (record) => {
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确定要删除?',
|
title: '您是否确定要删除?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
|
|
@ -261,7 +261,7 @@
|
||||||
|
|
||||||
// 批量删除
|
// 批量删除
|
||||||
const removeBatchMethod = (ids) => {
|
const removeBatchMethod = (ids) => {
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确定要删除?',
|
title: '您是否确定要删除?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
|
|
|
||||||
|
|
@ -261,7 +261,7 @@ export default defineComponent({
|
||||||
|
|
||||||
// 删除数据
|
// 删除数据
|
||||||
const removeMethod = (record) => {
|
const removeMethod = (record) => {
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确定要删除?',
|
title: '您是否确定要删除?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
|
|
@ -296,7 +296,7 @@ export default defineComponent({
|
||||||
|
|
||||||
// 批量删除
|
// 批量删除
|
||||||
const removeBatchMethod = (ids) => {
|
const removeBatchMethod = (ids) => {
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确定要删除?',
|
title: '您是否确定要删除?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
|
|
|
||||||
|
|
@ -242,7 +242,7 @@
|
||||||
|
|
||||||
/// 删除数据
|
/// 删除数据
|
||||||
const removeMethod = (record) => {
|
const removeMethod = (record) => {
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确定要删除此数据?',
|
title: '您是否确定要删除此数据?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
|
|
@ -277,7 +277,7 @@
|
||||||
|
|
||||||
/// 批量删除
|
/// 批量删除
|
||||||
const removeBatchMethod = (ids) => {
|
const removeBatchMethod = (ids) => {
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确定要删除?',
|
title: '您是否确定要删除?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
|
|
@ -312,7 +312,7 @@
|
||||||
|
|
||||||
///创建理货
|
///创建理货
|
||||||
const createTallyTaskMethod = (ids) => {
|
const createTallyTaskMethod = (ids) => {
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确定要创建理货任务?',
|
title: '您是否确定要创建理货任务?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
|
|
|
||||||
|
|
@ -271,7 +271,7 @@
|
||||||
|
|
||||||
// 删除数据
|
// 删除数据
|
||||||
const removeMethod = (record) => {
|
const removeMethod = (record) => {
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确定要删除?',
|
title: '您是否确定要删除?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
|
|
@ -306,7 +306,7 @@
|
||||||
|
|
||||||
// 批量删除
|
// 批量删除
|
||||||
const removeBatchMethod = (ids) => {
|
const removeBatchMethod = (ids) => {
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确定要删除?',
|
title: '您是否确定要删除?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
|
|
|
||||||
|
|
@ -167,7 +167,7 @@
|
||||||
|
|
||||||
// 删除数据
|
// 删除数据
|
||||||
const removeMethod = (record) => {
|
const removeMethod = (record) => {
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确定要删除?',
|
title: '您是否确定要删除?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
|
|
@ -202,7 +202,7 @@
|
||||||
|
|
||||||
// 批量删除
|
// 批量删除
|
||||||
const removeBatchMethod = (ids) => {
|
const removeBatchMethod = (ids) => {
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确定要删除?',
|
title: '您是否确定要删除?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
|
|
|
||||||
|
|
@ -258,7 +258,7 @@
|
||||||
|
|
||||||
/// 删除数据
|
/// 删除数据
|
||||||
const removeMethod = (record) => {
|
const removeMethod = (record) => {
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确定要删除此数据?',
|
title: '您是否确定要删除此数据?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
|
|
@ -293,7 +293,7 @@
|
||||||
|
|
||||||
/// 批量删除
|
/// 批量删除
|
||||||
const removeBatchMethod = (ids) => {
|
const removeBatchMethod = (ids) => {
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确定要删除?',
|
title: '您是否确定要删除?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
|
|
|
||||||
|
|
@ -1,47 +1,36 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<a-list-layout ref="pageRef">
|
||||||
<page-layout>
|
<template #search>
|
||||||
<a-row :gutter="[0,2]">
|
|
||||||
<!-- 查询表单 -->
|
|
||||||
<a-col :span="24">
|
|
||||||
<a-card>
|
|
||||||
<pro-query :searchParam="searchParam" @on-search="search"></pro-query>
|
<pro-query :searchParam="searchParam" @on-search="search"></pro-query>
|
||||||
</a-card>
|
</template>
|
||||||
</a-col>
|
|
||||||
<a-col :span="24" style="height: 100%;">
|
|
||||||
<a-card style="width: 100%;">
|
|
||||||
<!-- 托盘出入库记录列表 -->
|
<!-- 托盘出入库记录列表 -->
|
||||||
<pro-table style="margin-top: 10px" rowKey="id" ref="tableRef" :fetch="fetch" :columns="columns"
|
<pro-table style="margin-top: 10px" rowKey="id" ref="tableRef" :fetch="fetch" :columns="columns" :toolbar="toolbar"
|
||||||
:toolbar="toolbar" :operate="operate" :param="state.param" :pagination="pagination">
|
:operate="operate" :param="state.param" :pagination="pagination">
|
||||||
</pro-table>
|
</pro-table>
|
||||||
</a-card>
|
</a-list-layout>
|
||||||
</a-col>
|
|
||||||
</a-row>
|
|
||||||
</page-layout>
|
|
||||||
</div>
|
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import {
|
import {
|
||||||
message,
|
message,
|
||||||
Modal as modal
|
Modal as modal
|
||||||
} from '@hwork/ant-design-vue';
|
} from '@hwork/ant-design-vue';
|
||||||
import {
|
import {
|
||||||
ExclamationCircleOutlined
|
ExclamationCircleOutlined
|
||||||
} from '@ant-design/icons-vue';
|
} from '@ant-design/icons-vue';
|
||||||
import {
|
import {
|
||||||
page,
|
page,
|
||||||
remove,
|
remove,
|
||||||
removeBatch
|
removeBatch
|
||||||
} from "@/api/wms/palletLog";
|
} from "@/api/wms/palletLog";
|
||||||
import {
|
import {
|
||||||
reactive,
|
reactive,
|
||||||
createVNode,
|
createVNode,
|
||||||
ref,
|
ref,
|
||||||
} from 'vue';
|
} from 'vue';
|
||||||
const removeKey = "remove";
|
const removeKey = "remove";
|
||||||
const removeBatchKey = "removeBatch";
|
const removeBatchKey = "removeBatch";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {},
|
components: {},
|
||||||
|
|
||||||
setup() {
|
setup() {
|
||||||
|
|
@ -286,7 +275,7 @@
|
||||||
|
|
||||||
// 删除数据
|
// 删除数据
|
||||||
const removeMethod = (record) => {
|
const removeMethod = (record) => {
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确定要删除?',
|
title: '您是否确定要删除?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
|
|
@ -321,7 +310,7 @@
|
||||||
|
|
||||||
// 批量删除
|
// 批量删除
|
||||||
const removeBatchMethod = (ids) => {
|
const removeBatchMethod = (ids) => {
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确定要删除?',
|
title: '您是否确定要删除?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
|
|
@ -359,7 +348,7 @@
|
||||||
{
|
{
|
||||||
label: "删除",
|
label: "删除",
|
||||||
code: remove,
|
code: remove,
|
||||||
event: function() {
|
event: function () {
|
||||||
removeBatchMethod(state.selectedRowKeys)
|
removeBatchMethod(state.selectedRowKeys)
|
||||||
},
|
},
|
||||||
type: 'danger'
|
type: 'danger'
|
||||||
|
|
@ -411,16 +400,16 @@
|
||||||
}, {
|
}, {
|
||||||
value: '前板',
|
value: '前板',
|
||||||
text: '前板',
|
text: '前板',
|
||||||
},{
|
}, {
|
||||||
value: '内衬',
|
value: '内衬',
|
||||||
text: '内衬',
|
text: '内衬',
|
||||||
}, {
|
}, {
|
||||||
value: 'KTP001',
|
value: 'KTP001',
|
||||||
text: '空托盘',
|
text: '空托盘',
|
||||||
}]
|
}]
|
||||||
}, ]
|
},]
|
||||||
|
|
||||||
const search = function(value) {
|
const search = function (value) {
|
||||||
console.log("主表查询" + JSON.stringify(value))
|
console.log("主表查询" + JSON.stringify(value))
|
||||||
console.log(value)
|
console.log(value)
|
||||||
state.param = value
|
state.param = value
|
||||||
|
|
@ -446,6 +435,6 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// }
|
// }
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -1,25 +1,18 @@
|
||||||
<template>
|
<template>
|
||||||
<page-layout>
|
<a-list-layout
|
||||||
<a-row :gutter="[10, 10]">
|
ref="pageRef"
|
||||||
<!-- 查询表单 -->
|
>
|
||||||
<a-col :span="24">
|
<template #search>
|
||||||
<a-card>
|
|
||||||
<pro-query :searchParam="searchParam" @on-search="search"></pro-query>
|
<pro-query :searchParam="searchParam" @on-search="search"></pro-query>
|
||||||
</a-card>
|
</template>
|
||||||
</a-col>
|
|
||||||
<!-- 码垛通道表列表 -->
|
<!-- 码垛通道表列表 -->
|
||||||
<a-col :span="24">
|
|
||||||
<a-card>
|
|
||||||
<pro-table ref="tableRef" :fetch="fetch" :columns="columns" :toolbar="toolbar" :operate="operate"
|
<pro-table ref="tableRef" :fetch="fetch" :columns="columns" :toolbar="toolbar" :operate="operate"
|
||||||
:param="state.param" :pagination="pagination"
|
:param="state.param" :pagination="pagination"
|
||||||
:row-selection="{ selectedRowKeys: state.selectedRowKeys, onChange: onSelectChange }">
|
:row-selection="{ selectedRowKeys: state.selectedRowKeys, onChange: onSelectChange }">
|
||||||
</pro-table>
|
</pro-table>
|
||||||
</a-card>
|
|
||||||
</a-col>
|
|
||||||
</a-row>
|
|
||||||
<save :visible="state.visibleSave" @close="closeSave"></save>
|
<save :visible="state.visibleSave" @close="closeSave"></save>
|
||||||
<edit :visible="state.visibleEdit" @close="closeEdit" :record="state.recordEdit"></edit>
|
<edit :visible="state.visibleEdit" @close="closeEdit" :record="state.recordEdit"></edit>
|
||||||
</page-layout>
|
</a-list-layout>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
@ -173,7 +166,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
const removeBatchMethod = (ids) => {
|
const removeBatchMethod = (ids) => {
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确定删除该数据?',
|
title: '您是否确定删除该数据?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
|
|
|
||||||
|
|
@ -192,7 +192,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
const removeBatchMethod = (ids) => {
|
const removeBatchMethod = (ids) => {
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确定删除该数据?',
|
title: '您是否确定删除该数据?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
|
|
|
||||||
|
|
@ -309,7 +309,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
const removeBatchMethod = (ids) => {
|
const removeBatchMethod = (ids) => {
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确定要删除选择任务?',
|
title: '您是否确定要删除选择任务?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
|
|
|
||||||
|
|
@ -1,25 +1,18 @@
|
||||||
<template>
|
<template>
|
||||||
<page-layout>
|
<a-list-layout
|
||||||
<a-row :gutter="[10, 10]">
|
ref="pageRef"
|
||||||
<!-- 查询表单 -->
|
>
|
||||||
<a-col :span="24">
|
<template #search>
|
||||||
<a-card>
|
|
||||||
<pro-query :searchParam="searchParam" @on-search="search"></pro-query>
|
<pro-query :searchParam="searchParam" @on-search="search"></pro-query>
|
||||||
</a-card>
|
</template>
|
||||||
</a-col>
|
|
||||||
<!-- 区域出入口列表 -->
|
<!-- 区域出入口列表 -->
|
||||||
<a-col :span="24">
|
|
||||||
<a-card>
|
|
||||||
<pro-table ref="tableRef" :fetch="fetch" :columns="columns" :toolbar="toolbar" :operate="operate"
|
<pro-table ref="tableRef" :fetch="fetch" :columns="columns" :toolbar="toolbar" :operate="operate"
|
||||||
:param="state.param" :pagination="pagination"
|
:param="state.param" :pagination="pagination"
|
||||||
:row-selection="{ selectedRowKeys: state.selectedRowKeys, onChange: onSelectChange }">
|
:row-selection="{ selectedRowKeys: state.selectedRowKeys, onChange: onSelectChange }">
|
||||||
</pro-table>
|
</pro-table>
|
||||||
</a-card>
|
|
||||||
</a-col>
|
|
||||||
</a-row>
|
|
||||||
<save :visible="state.visibleSave" @close="closeSave"></save>
|
<save :visible="state.visibleSave" @close="closeSave"></save>
|
||||||
<edit :visible="state.visibleEdit" @close="closeEdit" :record="state.recordEdit"></edit>
|
<edit :visible="state.visibleEdit" @close="closeEdit" :record="state.recordEdit"></edit>
|
||||||
</page-layout>
|
</a-list-layout>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
@ -225,7 +218,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
const removeBatchMethod = (ids) => {
|
const removeBatchMethod = (ids) => {
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确定删除该数据?',
|
title: '您是否确定删除该数据?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
|
|
|
||||||
|
|
@ -251,7 +251,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
const removeBatchMethod = (ids) => {
|
const removeBatchMethod = (ids) => {
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确定要删除选择任务?',
|
title: '您是否确定要删除选择任务?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
|
|
|
||||||
|
|
@ -1,23 +1,16 @@
|
||||||
<template>
|
<template>
|
||||||
<page-layout>
|
<a-list-layout ref="pageRef">
|
||||||
<a-row :gutter="[10, 10]">
|
|
||||||
<a-col :span="24">
|
|
||||||
<a-card>
|
|
||||||
<pro-table ref="tableRef" :fetch="fetch" :columns="columns" :toolbar="toolbar" :operate="operate"
|
<pro-table ref="tableRef" :fetch="fetch" :columns="columns" :toolbar="toolbar" :operate="operate"
|
||||||
:param="state.param" :pagination="pagination"
|
:param="state.param" :pagination="pagination"
|
||||||
:row-selection="{ selectedRowKeys: state.selectedRowKeys, onChange: onSelectChange }">
|
:row-selection="{ selectedRowKeys: state.selectedRowKeys, onChange: onSelectChange }">
|
||||||
</pro-table>
|
</pro-table>
|
||||||
</a-card>
|
</a-list-layout>
|
||||||
</a-col>
|
|
||||||
</a-row>
|
|
||||||
</page-layout>
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {
|
import {
|
||||||
message,
|
message,
|
||||||
notification,
|
Modal as modal
|
||||||
modal
|
|
||||||
} from '@hwork/ant-design-vue';
|
} from '@hwork/ant-design-vue';
|
||||||
import {
|
import {
|
||||||
ExclamationCircleOutlined
|
ExclamationCircleOutlined
|
||||||
|
|
@ -234,7 +227,7 @@
|
||||||
|
|
||||||
// 取消
|
// 取消
|
||||||
const cancelMethod = (record) => {
|
const cancelMethod = (record) => {
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确认取消该出库需求?',
|
title: '您是否确认取消该出库需求?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
|
|
@ -256,7 +249,7 @@
|
||||||
tableRef.value.reload()
|
tableRef.value.reload()
|
||||||
} else {
|
} else {
|
||||||
message.destroy()
|
message.destroy()
|
||||||
notification.error({
|
message.error({
|
||||||
message: '需求取消失败',
|
message: '需求取消失败',
|
||||||
description: response.msg
|
description: response.msg
|
||||||
})
|
})
|
||||||
|
|
@ -268,7 +261,7 @@
|
||||||
|
|
||||||
|
|
||||||
const removeBatchMethod = (ids) => {
|
const removeBatchMethod = (ids) => {
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确定删除该数据?',
|
title: '您是否确定删除该数据?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
|
|
|
||||||
|
|
@ -1,25 +1,18 @@
|
||||||
<template>
|
<template>
|
||||||
<page-layout>
|
<a-list-layout
|
||||||
<a-row :gutter="[10, 10]">
|
ref="pageRef"
|
||||||
<!-- 查询表单 -->
|
>
|
||||||
<a-col :span="24">
|
<template #search>
|
||||||
<a-card>
|
|
||||||
<pro-query :searchParam="searchParam" @on-search="search"></pro-query>
|
<pro-query :searchParam="searchParam" @on-search="search"></pro-query>
|
||||||
</a-card>
|
</template>
|
||||||
</a-col>
|
|
||||||
<!-- 自增值定义列表 -->
|
<!-- 自增值定义列表 -->
|
||||||
<a-col :span="24">
|
|
||||||
<a-card>
|
|
||||||
<pro-table ref="tableRef" :fetch="fetch" :columns="columns" :toolbar="toolbar" :operate="operate"
|
<pro-table ref="tableRef" :fetch="fetch" :columns="columns" :toolbar="toolbar" :operate="operate"
|
||||||
:param="state.param" :pagination="pagination"
|
:param="state.param" :pagination="pagination"
|
||||||
:row-selection="{ selectedRowKeys: state.selectedRowKeys, onChange: onSelectChange }">
|
:row-selection="{ selectedRowKeys: state.selectedRowKeys, onChange: onSelectChange }">
|
||||||
</pro-table>
|
</pro-table>
|
||||||
</a-card>
|
|
||||||
</a-col>
|
|
||||||
</a-row>
|
|
||||||
<save :visible="state.visibleSave" @close="closeSave"></save>
|
<save :visible="state.visibleSave" @close="closeSave"></save>
|
||||||
<edit :visible="state.visibleEdit" @close="closeEdit" :record="state.recordEdit"></edit>
|
<edit :visible="state.visibleEdit" @close="closeEdit" :record="state.recordEdit"></edit>
|
||||||
</page-layout>
|
</a-list-layout>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
@ -173,7 +166,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
const removeBatchMethod = (ids) => {
|
const removeBatchMethod = (ids) => {
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确定删除该数据?',
|
title: '您是否确定删除该数据?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
|
|
|
||||||
|
|
@ -1,25 +1,18 @@
|
||||||
<template>
|
<template>
|
||||||
<page-layout>
|
<a-list-layout
|
||||||
<a-row :gutter="[10, 10]">
|
ref="pageRef"
|
||||||
<!-- 查询表单 -->
|
>
|
||||||
<a-col :span="24">
|
<template #search>
|
||||||
<a-card>
|
|
||||||
<pro-query :searchParam="searchParam" @on-search="search"></pro-query>
|
<pro-query :searchParam="searchParam" @on-search="search"></pro-query>
|
||||||
</a-card>
|
</template>
|
||||||
</a-col>
|
|
||||||
<!-- 自增值定义列表 -->
|
<!-- 自增值定义列表 -->
|
||||||
<a-col :span="24">
|
|
||||||
<a-card>
|
|
||||||
<pro-table ref="tableRef" :fetch="fetch" :columns="columns" :toolbar="toolbar" :operate="operate"
|
<pro-table ref="tableRef" :fetch="fetch" :columns="columns" :toolbar="toolbar" :operate="operate"
|
||||||
:param="state.param" :pagination="pagination"
|
:param="state.param" :pagination="pagination"
|
||||||
:row-selection="{ selectedRowKeys: state.selectedRowKeys, onChange: onSelectChange }">
|
:row-selection="{ selectedRowKeys: state.selectedRowKeys, onChange: onSelectChange }">
|
||||||
</pro-table>
|
</pro-table>
|
||||||
</a-card>
|
|
||||||
</a-col>
|
|
||||||
</a-row>
|
|
||||||
<save :visible="state.visibleSave" @close="closeSave"></save>
|
<save :visible="state.visibleSave" @close="closeSave"></save>
|
||||||
<edit :visible="state.visibleEdit" @close="closeEdit" :record="state.recordEdit"></edit>
|
<edit :visible="state.visibleEdit" @close="closeEdit" :record="state.recordEdit"></edit>
|
||||||
</page-layout>
|
</a-list-layout>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
@ -200,7 +193,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
const removeBatchMethod = (ids) => {
|
const removeBatchMethod = (ids) => {
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确定删除该数据?',
|
title: '您是否确定删除该数据?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
|
|
|
||||||
|
|
@ -1,25 +1,18 @@
|
||||||
<template>
|
<template>
|
||||||
<page-layout>
|
<a-list-layout
|
||||||
<a-row :gutter="[10, 10]">
|
ref="pageRef"
|
||||||
<!-- 查询表单 -->
|
>
|
||||||
<a-col :span="24">
|
<template #search>
|
||||||
<a-card>
|
|
||||||
<pro-query :searchParam="searchParam" @on-search="search"></pro-query>
|
<pro-query :searchParam="searchParam" @on-search="search"></pro-query>
|
||||||
</a-card>
|
</template>
|
||||||
</a-col>
|
|
||||||
<!-- 当前码垛SN列表 -->
|
<!-- 当前码垛SN列表 -->
|
||||||
<a-col :span="24">
|
|
||||||
<a-card>
|
|
||||||
<pro-table ref="tableRef" :fetch="fetch" :columns="columns" :toolbar="toolbar" :operate="operate"
|
<pro-table ref="tableRef" :fetch="fetch" :columns="columns" :toolbar="toolbar" :operate="operate"
|
||||||
:param="state.param" :pagination="pagination"
|
:param="state.param" :pagination="pagination"
|
||||||
:row-selection="{ selectedRowKeys: state.selectedRowKeys, onChange: onSelectChange }">
|
:row-selection="{ selectedRowKeys: state.selectedRowKeys, onChange: onSelectChange }">
|
||||||
</pro-table>
|
</pro-table>
|
||||||
</a-card>
|
|
||||||
</a-col>
|
|
||||||
</a-row>
|
|
||||||
<save :visible="state.visibleSave" @close="closeSave"></save>
|
<save :visible="state.visibleSave" @close="closeSave"></save>
|
||||||
<edit :visible="state.visibleEdit" @close="closeEdit" :record="state.recordEdit"></edit>
|
<edit :visible="state.visibleEdit" @close="closeEdit" :record="state.recordEdit"></edit>
|
||||||
</page-layout>
|
</a-list-layout>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
@ -173,7 +166,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
const removeBatchMethod = (ids) => {
|
const removeBatchMethod = (ids) => {
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确定删除该数据?',
|
title: '您是否确定删除该数据?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
|
|
|
||||||
|
|
@ -1,25 +1,18 @@
|
||||||
<template>
|
<template>
|
||||||
<page-layout>
|
<a-list-layout
|
||||||
<a-row :gutter="[10, 10]">
|
ref="pageRef"
|
||||||
<!-- 查询表单 -->
|
>
|
||||||
<a-col :span="24">
|
<template #search>
|
||||||
<a-card>
|
|
||||||
<pro-query :searchParam="searchParam" @on-search="search"></pro-query>
|
<pro-query :searchParam="searchParam" @on-search="search"></pro-query>
|
||||||
</a-card>
|
</template>
|
||||||
</a-col>
|
|
||||||
<!-- SN历史列表 -->
|
<!-- SN历史列表 -->
|
||||||
<a-col :span="24">
|
|
||||||
<a-card>
|
|
||||||
<pro-table ref="tableRef" :fetch="fetch" :columns="columns" :toolbar="toolbar" :operate="operate"
|
<pro-table ref="tableRef" :fetch="fetch" :columns="columns" :toolbar="toolbar" :operate="operate"
|
||||||
:param="state.param" :pagination="pagination"
|
:param="state.param" :pagination="pagination"
|
||||||
:row-selection="{ selectedRowKeys: state.selectedRowKeys, onChange: onSelectChange }">
|
:row-selection="{ selectedRowKeys: state.selectedRowKeys, onChange: onSelectChange }">
|
||||||
</pro-table>
|
</pro-table>
|
||||||
</a-card>
|
|
||||||
</a-col>
|
|
||||||
</a-row>
|
|
||||||
<save :visible="state.visibleSave" @close="closeSave"></save>
|
<save :visible="state.visibleSave" @close="closeSave"></save>
|
||||||
<edit :visible="state.visibleEdit" @close="closeEdit" :record="state.recordEdit"></edit>
|
<edit :visible="state.visibleEdit" @close="closeEdit" :record="state.recordEdit"></edit>
|
||||||
</page-layout>
|
</a-list-layout>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
@ -180,7 +173,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
const removeBatchMethod = (ids) => {
|
const removeBatchMethod = (ids) => {
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确定删除该数据?',
|
title: '您是否确定删除该数据?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
|
|
|
||||||
|
|
@ -1,25 +1,18 @@
|
||||||
<template>
|
<template>
|
||||||
<page-layout>
|
<a-list-layout
|
||||||
<a-row :gutter="[10, 10]">
|
ref="pageRef"
|
||||||
<!-- 查询表单 -->
|
>
|
||||||
<a-col :span="24">
|
<template #search>
|
||||||
<a-card>
|
|
||||||
<pro-query :searchParam="searchParam" @on-search="search"></pro-query>
|
<pro-query :searchParam="searchParam" @on-search="search"></pro-query>
|
||||||
</a-card>
|
</template>
|
||||||
</a-col>
|
|
||||||
<!-- SN历史列表 -->
|
<!-- SN历史列表 -->
|
||||||
<a-col :span="24">
|
|
||||||
<a-card>
|
|
||||||
<pro-table ref="tableRef" :fetch="fetch" :columns="columns" :toolbar="toolbar" :operate="operate"
|
<pro-table ref="tableRef" :fetch="fetch" :columns="columns" :toolbar="toolbar" :operate="operate"
|
||||||
:param="state.param" :pagination="pagination"
|
:param="state.param" :pagination="pagination"
|
||||||
:row-selection="{ selectedRowKeys: state.selectedRowKeys, onChange: onSelectChange }">
|
:row-selection="{ selectedRowKeys: state.selectedRowKeys, onChange: onSelectChange }">
|
||||||
</pro-table>
|
</pro-table>
|
||||||
</a-card>
|
|
||||||
</a-col>
|
|
||||||
</a-row>
|
|
||||||
<save :visible="state.visibleSave" @close="closeSave"></save>
|
<save :visible="state.visibleSave" @close="closeSave"></save>
|
||||||
<edit :visible="state.visibleEdit" @close="closeEdit" :record="state.recordEdit"></edit>
|
<edit :visible="state.visibleEdit" @close="closeEdit" :record="state.recordEdit"></edit>
|
||||||
</page-layout>
|
</a-list-layout>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
@ -180,7 +173,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
const removeBatchMethod = (ids) => {
|
const removeBatchMethod = (ids) => {
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确定删除该数据?',
|
title: '您是否确定删除该数据?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
|
|
|
||||||
|
|
@ -1,24 +1,17 @@
|
||||||
<template>
|
<template>
|
||||||
<page-layout>
|
<a-list-layout
|
||||||
<a-row :gutter="[10, 10]">
|
ref="pageRef"
|
||||||
<!-- 查询表单 -->
|
>
|
||||||
<a-col :span="24">
|
<template #search>
|
||||||
<a-card>
|
|
||||||
<pro-query :searchParam="searchParam" @on-search="search"></pro-query>
|
<pro-query :searchParam="searchParam" @on-search="search"></pro-query>
|
||||||
</a-card>
|
</template>
|
||||||
</a-col>
|
|
||||||
<!-- 区域出入口列表 -->
|
<!-- 区域出入口列表 -->
|
||||||
<a-col :span="24">
|
|
||||||
<a-card>
|
|
||||||
<pro-table ref="tableRef" :fetch="fetch" :columns="columns" :toolbar="toolbar" :operate="operate"
|
<pro-table ref="tableRef" :fetch="fetch" :columns="columns" :toolbar="toolbar" :operate="operate"
|
||||||
:param="state.param" :pagination="pagination">
|
:param="state.param" :pagination="pagination">
|
||||||
</pro-table>
|
</pro-table>
|
||||||
</a-card>
|
|
||||||
</a-col>
|
|
||||||
</a-row>
|
|
||||||
<save :visible="state.visibleSave" @close="closeSave"></save>
|
<save :visible="state.visibleSave" @close="closeSave"></save>
|
||||||
<edit :visible="state.visibleEdit" @close="closeEdit" :record="state.recordEdit"></edit>
|
<edit :visible="state.visibleEdit" @close="closeEdit" :record="state.recordEdit"></edit>
|
||||||
</page-layout>
|
</a-list-layout>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
|
||||||
|
|
@ -1,24 +1,16 @@
|
||||||
<template>
|
<template>
|
||||||
<page-layout>
|
<a-list-layout
|
||||||
<a-row :gutter="[10, 10]">
|
ref="pageRef"
|
||||||
<!-- 查询表单 -->
|
>
|
||||||
<a-col :span="24">
|
<template #search>
|
||||||
<a-card>
|
|
||||||
<pro-query :searchParam="searchParam" @on-search="search"></pro-query>
|
<pro-query :searchParam="searchParam" @on-search="search"></pro-query>
|
||||||
</a-card>
|
</template>
|
||||||
</a-col>
|
|
||||||
<!-- 区域出入口列表 -->
|
|
||||||
<a-col :span="24">
|
|
||||||
<a-card>
|
|
||||||
<pro-table ref="tableRef" :fetch="fetch" :columns="columns" :toolbar="toolbar" :operate="operate"
|
<pro-table ref="tableRef" :fetch="fetch" :columns="columns" :toolbar="toolbar" :operate="operate"
|
||||||
:param="state.param" :pagination="pagination">
|
:param="state.param" :pagination="pagination">
|
||||||
</pro-table>
|
</pro-table>
|
||||||
</a-card>
|
|
||||||
</a-col>
|
|
||||||
</a-row>
|
|
||||||
<save :visible="state.visibleSave" @close="closeSave"></save>
|
<save :visible="state.visibleSave" @close="closeSave"></save>
|
||||||
<edit :visible="state.visibleEdit" @close="closeEdit" :record="state.recordEdit"></edit>
|
<edit :visible="state.visibleEdit" @close="closeEdit" :record="state.recordEdit"></edit>
|
||||||
</page-layout>
|
</a-list-layout>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
|
||||||
|
|
@ -1,27 +1,20 @@
|
||||||
<template>
|
<template>
|
||||||
<page-layout>
|
<a-list-layout
|
||||||
<a-row :gutter="[10, 10]">
|
ref="pageRef"
|
||||||
<!-- 查询表单 -->
|
>
|
||||||
<a-col :span="24">
|
<template #search>
|
||||||
<a-card>
|
|
||||||
<pro-query :searchParam="searchParam" @on-search="search"></pro-query>
|
<pro-query :searchParam="searchParam" @on-search="search"></pro-query>
|
||||||
</a-card>
|
</template>
|
||||||
</a-col>
|
|
||||||
<!-- 通道列表 -->
|
<!-- 通道列表 -->
|
||||||
<a-col :span="24">
|
|
||||||
<a-card>
|
|
||||||
<pro-table ref="tableRef" :fetch="fetch" :columns="columns" :toolbar="toolbar" :operate="operate"
|
<pro-table ref="tableRef" :fetch="fetch" :columns="columns" :toolbar="toolbar" :operate="operate"
|
||||||
:param="state.param" :pagination="pagination"
|
:param="state.param" :pagination="pagination"
|
||||||
:row-selection="{ selectedRowKeys: state.selectedRowKeys, onChange: onSelectChange }">
|
:row-selection="{ selectedRowKeys: state.selectedRowKeys, onChange: onSelectChange }">
|
||||||
</pro-table>
|
</pro-table>
|
||||||
</a-card>
|
|
||||||
</a-col>
|
|
||||||
</a-row>
|
|
||||||
<save :visible="state.visibleSave" @close="closeSave"></save>
|
<save :visible="state.visibleSave" @close="closeSave"></save>
|
||||||
<edit :visible="state.visibleEdit" @close="closeEdit" :record="state.recordEdit"></edit>
|
<edit :visible="state.visibleEdit" @close="closeEdit" :record="state.recordEdit"></edit>
|
||||||
<addConfig :visible="state.visibleSave" @close="closeSave"></addConfig>
|
<addConfig :visible="state.visibleSave" @close="closeSave"></addConfig>
|
||||||
<info :visible="state.visibleInfo" @close="closeInfo" :record="state.recordInfo"></info>
|
<info :visible="state.visibleInfo" @close="closeInfo" :record="state.recordInfo"></info>
|
||||||
</page-layout>
|
</a-list-layout>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
@ -171,7 +164,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
const removeBatchMethod = (ids) => {
|
const removeBatchMethod = (ids) => {
|
||||||
Modal.confirm({
|
modal.confirm({
|
||||||
title: '您是否确定要删除选择通道?',
|
title: '您是否确定要删除选择通道?',
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
okText: '确定',
|
okText: '确定',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue