Skip to content
项目
群组
代码片段
帮助
正在加载...
登录/注册
切换导航
广
广东建设用地-前端
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
广东建设用地
广东建设用地-前端
Commits
256f6e91
提交
256f6e91
authored
11月 13, 2023
作者:
lsj
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
+)待办事项页面接口,修复按钮调整,去掉操作栏
上级
cc84ea77
隐藏空白字符变更
内嵌
并排
正在显示
14 个修改的文件
包含
341 行增加
和
101 行删除
+341
-101
api.ts
src/views/dashboard/workbench/api.ts
+33
-0
DynamicInfo.vue
src/views/dashboard/workbench/components/DynamicInfo.vue
+78
-41
modal.vue
src/views/dashboard/workbench/components/modal.vue
+130
-0
data.ts
src/views/dashboard/workbench/data.ts
+0
-0
index.vue
src/views/dashboard/workbench/index.vue
+31
-9
Plans.vue
src/views/directory/mlzk/land/modules/Plans.vue
+1
-0
Acceptance.vue
src/views/dkgl/repair/Acceptance.vue
+8
-7
Approved.vue
src/views/dkgl/repair/Approved.vue
+7
-6
Failed.vue
src/views/dkgl/repair/Failed.vue
+7
-6
Filling.vue
src/views/dkgl/repair/Filling.vue
+24
-13
Improved.vue
src/views/dkgl/repair/Improved.vue
+7
-6
NotReviewed.vue
src/views/dkgl/repair/NotReviewed.vue
+7
-6
Review.vue
src/views/dkgl/repair/Review.vue
+7
-6
modal.vue
src/views/system/xzCode/components/modal.vue
+1
-1
没有找到文件。
src/views/dashboard/workbench/api.ts
0 → 100644
浏览文件 @
256f6e91
import
{
defHttp
}
from
'/@/utils/http/axios'
;
export
enum
Api
{
Dblist
=
'/dbsx/getDbList'
,
positionList
=
'/sys/position/list'
,
queryDepartTreeSync
=
'/sys/sysDepart/queryDepartTreeSync'
,
addXzbm
=
`/sys/user/addXzbm`
,
editXzbm
=
`/sys/user/editXzbm`
,
delXzbm
=
`/sys/user/delXzbm`
,
treePidXzbm
=
`/sys/api/xzbm`
,
treeXzbm
=
`/sys/api/tree/xzbm`
,
}
/**
* 获取部门树列表
*/
// export const queryDepartTreeSync = (params?) => defHttp.get({ url: Api.queryDepartTreeSync, params });
/**
* 部门用户信息
*/
// export const list = (params?) => defHttp.get({ url: Api.list, params });
/**
* 职务list
*/
export
const
positionList
=
(
params
?)
=>
defHttp
.
get
({
url
:
Api
.
positionList
,
params
});
export
const
treeXzbm
=
(
params
?)
=>
defHttp
.
get
({
url
:
Api
.
treeXzbm
,
params
});
export
const
treePidXzbm
=
(
params
?)
=>
defHttp
.
get
({
url
:
`
${
Api
.
treePidXzbm
}
/
${
params
.
pid
}
`
});
export
const
addXzbm
=
(
params
?)
=>
defHttp
.
post
({
url
:
Api
.
addXzbm
,
params
});
export
const
editXzbm
=
(
params
?)
=>
defHttp
.
post
({
url
:
Api
.
editXzbm
,
params
});
export
const
delXzbm
=
(
params
?)
=>
defHttp
.
post
({
url
:
Api
.
delXzbm
,
params
});
export
const
getDblist
=
(
params
?)
=>
defHttp
.
get
({
url
:
Api
.
Dblist
,
params
});
src/views/dashboard/workbench/components/DynamicInfo.vue
浏览文件 @
256f6e91
<
template
>
<Card
:title=
"props.title"
v-bind=
"$attrs"
>
<template
#
extra
>
<a-button
type=
"link"
size=
"small"
>
更多
</a-button>
<Card
:title=
"props.title"
v-bind=
"$attrs"
:bodyStyle=
"
{'padding':0,'overflow': 'hidden'}"
>
<template
#
extra
v-if=
"title !== '更多内容'"
>
<a-button
type=
"link"
size=
"small"
@
click=
"more"
>
更多
</a-button>
</
template
>
<List
item-layout=
"horizontal"
:data-source=
"dynamicInfoItems"
>
<
template
#
renderItem=
"{ item }"
>
<ListItem>
<ListItemMeta>
<template
#
description
>
<span>
{{
item
.
name
}}
</span>
<span>
地块调查
</span>
<span>
待评审
</span>
<span>
{{
item
.
date
}}
</span>
</
template
>
</ListItemMeta>
</ListItem>
</template>
</List>
<VScroll
:itemHeight=
"41"
:items=
"dynamicInfoItems"
:height=
"400"
>
<
template
#
default=
"{ item }"
>
<a-row
@
click=
"toPage(item.wrdkid)"
class=
"listBox"
>
<a-col
:span=
"2"
class=
"listItem"
>
<span
class=
"listRadio"
></span>
</a-col>
<a-col
:span=
"11"
class=
"listItem listBody"
:title=
" item.wrdkmc"
>
{{
item
.
wrdkmc
}}
</a-col>
<a-col
:span=
"4"
class=
"listItem"
:title=
"item.scjdmc"
>
{{
item
.
scjdmc
}}
</a-col>
<a-col
:span=
"3"
class=
"listItem"
:title=
"item.tbjdmc"
>
{{
item
.
tbjdmc
}}
</a-col>
<a-col
:span=
"4"
class=
"listItem listTime"
:title=
"item.createTsamp"
>
{{
item
.
createTsamp
}}
</a-col>
</a-row>
</
template
>
</VScroll>
</Card>
</template>
<
script
lang=
"ts"
setup
>
import
{
defineProps
}
from
'vue'
;
import
{
Card
,
List
}
from
'ant-design-vue'
;
import
{
dynamicInfoItems
}
from
'./data'
;
import
{
defineProps
,
defineEmits
,
ref
}
from
'vue'
;
import
{
Card
}
from
'ant-design-vue'
;
import
{
VScroll
}
from
'/@/components/VirtualScroll/index'
;
import
{
useRouter
}
from
'vue-router'
;
const
ListItem
=
List
.
Item
;
const
ListItemMeta
=
List
.
Item
.
Meta
;
let
router
=
useRouter
();
const
emit
=
defineEmits
([
'moreClck'
])
const
props
=
defineProps
({
title
:
String
,
default
:
''
,
title
:{
type
:
String
,
default
:
''
},
urls
:{
type
:
String
,
default
:
''
},
dynamicInfoItems
:{
type
:
Object
,
default
:()
=>
{}
},
})
function
more
(){
emit
(
'moreClck'
,
props
.
urls
)
}
function
toPage
(
val
)
{
// 增加传参id 跳转评审页面打开新窗口
const
url
=
router
.
resolve
({
path
:
`/directory/mlzk/land/modules/Plans`
,
query
:{
id
:
val
,
scjdbm
:
'S2'
}
})
window
.
open
(
url
.
href
,
'_blank'
)
}
</
script
>
<
style
lang=
"less"
scoped
>
:deep(.ant-card-body) {
padding: 0 24px;
}
.ant-list-item {
padding: 12px 0;
}
:deep(.ant-list-item-meta-description) {
color: rgba(0, 0, 0, 0.65);
display: flex;
font-size: 12px;
span {
width: 25%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
}
.listBox:nth-child(2){
background: rgba(232,232,232,.27);
}
.listBox:hover{
background: rgba(232,232,232,.27);
}
.listItem{
text-align:center;
overflow: hidden;
text-overflow: ellipsis;
white-space:nowrap;
font-size: 13px;
color: #272727;
cursor:pointer;
padding: 10px 0;
}
.listRadio{
display: inline-block;
background-color: #1CA4FF;
border-radius: 50%;
width: 8px;
height: 8px;
}
.listBody{
text-align:left;
}
.listTime{
color: #999999;
}
</
style
>
src/views/dashboard/workbench/components/modal.vue
0 → 100644
浏览文件 @
256f6e91
<
template
>
<BasicModal
@
register=
"registerModal"
:title=
"title"
width=
"50%"
>
<a-spin
:spinning=
"loading"
>
<VScroll
:itemHeight=
"41"
:items=
"dynamicInfoItems"
:height=
"333"
@
scroll=
"simpleDebounce(scrolling($event),3000)"
>
<template
#
default=
"
{ item }">
<a-row
@
click=
"toPage(item.wrdkid)"
class=
"listBox"
>
<a-col
:span=
"2"
class=
"listItem"
>
<span
class=
"listRadio"
></span>
</a-col>
<a-col
:span=
"11"
class=
"listItem listBody"
:title=
" item.wrdkmc"
>
{{
item
.
wrdkmc
}}
</a-col>
<a-col
:span=
"4"
class=
"listItem"
:title=
"item.scjdmc"
>
{{
item
.
scjdmc
}}
</a-col>
<a-col
:span=
"3"
class=
"listItem"
:title=
"item.tbjdmc"
>
{{
item
.
tbjdmc
}}
</a-col>
<a-col
:span=
"4"
class=
"listItem listTime"
:title=
"item.createTsamp"
>
{{
item
.
createTsamp
}}
</a-col>
</a-row>
</
template
>
</VScroll>
<a-divider
dashed=
"true"
v-if=
"bottom"
style=
"border-color: #999999;color:#99999;font-size:12px"
>
我也是有底线的
</a-divider>
</a-spin>
</BasicModal>
</template>
<
script
lang=
"ts"
setup
>
import
{
defineComponent
,
ref
,
reactive
}
from
'vue'
;
import
{
BasicModal
,
useModalInner
}
from
'/@/components/Modal'
;
import
{
VScroll
}
from
'/@/components/VirtualScroll/index'
;
import
{
useRouter
}
from
'vue-router'
;
import
{
getDblist
}
from
"../api"
;
import
{
simpleDebounce
}
from
'/@/utils/common/compUtils'
;
let
router
=
useRouter
();
let
dynamicInfoItems
=
ref
([])
const
loading
=
ref
(
true
);
let
pageNo
=
ref
(
1
)
let
type
=
ref
(
0
)
let
pages
=
ref
(
0
)
const
props
=
defineProps
({
title
:{
type
:
String
,
default
:
'更多'
,
},
})
const
[
registerModal
,
{
setModalProps
,
closeModal
}]
=
useModalInner
(
async
(
data
)
=>
{
switch
(
data
.
record
.
val
)
{
case
'待办事项'
:
type
.
value
=
1
break
;
case
'已办事项'
:
type
.
value
=
2
break
;
case
'通知消息'
:
type
.
value
=
3
break
;
}
// 重置状态
loading
.
value
=
true
pageNo
.
value
=
1
dynamicInfoItems
.
value
=
[]
// 请求接口赋值
let
result
=
await
getDblist
({
type
:
type
.
value
,
pageNo
:
pageNo
.
value
,
pageSize
:
15
})
dynamicInfoItems
.
value
=
result
?.
records
pages
.
value
=
result
?.
pages
loading
.
value
=
false
});
function
toPage
(
val
)
{
// 增加传参id 跳转评审页面打开新窗口
const
url
=
router
.
resolve
({
path
:
`/directory/mlzk/land/modules/Plans`
,
query
:{
id
:
val
,
scjdbm
:
'S2'
}
})
window
.
open
(
url
.
href
,
'_blank'
)
}
const
bottom
=
ref
(
false
)
async
function
scrolling
(
e
)
{
const
clientHeight
=
e
.
target
.
clientHeight
const
scrollHeight
=
e
.
target
.
scrollHeight
const
scrollTop
=
e
.
target
.
scrollTop
if
(
scrollTop
+
clientHeight
>=
scrollHeight
-
5
)
{
bottom
.
value
=
true
loading
.
value
=
true
if
(
pageNo
.
value
>=
pages
.
value
){
// bottom.value = true
loading
.
value
=
false
}
else
{
pageNo
.
value
=
pageNo
.
value
+
1
let
result
=
await
getDblist
({
type
:
type
.
value
,
pageNo
:
pageNo
.
value
,
pageSize
:
15
})
dynamicInfoItems
.
value
=
dynamicInfoItems
.
value
.
concat
(
result
?.
records
)
loading
.
value
=
false
bottom
.
value
=
false
}
}
else
{
bottom
.
value
=
false
}
}
</
script
>
<
style
scoped
>
.listBox
:nth-child
(
2n
)
{
background
:
rgba
(
232
,
232
,
232
,
.27
);
}
.listBox
:hover
{
background
:
rgba
(
232
,
232
,
232
,
.27
);
}
.listItem
{
text-align
:
center
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
font-size
:
13px
;
color
:
#272727
;
cursor
:
pointer
;
padding
:
10px
0
;
}
.listRadio
{
display
:
inline-block
;
background-color
:
#1CA4FF
;
border-radius
:
50%
;
width
:
8px
;
height
:
8px
;
}
.listBody
{
text-align
:
left
;
}
.listTime
{
color
:
#999999
;
}
</
style
>
\ No newline at end of file
src/views/dashboard/workbench/
components/
data.ts
→
src/views/dashboard/workbench/data.ts
浏览文件 @
256f6e91
File moved
src/views/dashboard/workbench/index.vue
浏览文件 @
256f6e91
<
template
>
<PageWrapper>
<div
class=
"lg:flex
"
>
<div
style=
"display: flex;height: calc(100vh - 100px);justify-content: center;align-items: center;
"
>
<div
class=
"lg:w-3/9 w-full !mr-4 enter-y"
>
<DynamicInfo
:loading=
"loading"
title=
"待办事项"
class=
"enter-y"
/>
<DynamicInfo
:loading=
"loading"
title=
"待办事项"
:urls=
"'待办事项'"
@
moreClck=
"moreClck"
class=
"enter-y"
:dynamicInfoItems=
"dbData"
/>
</div>
<div
class=
"lg:w-3/9 w-full !mr-4 enter-y"
>
<DynamicInfo
:loading=
"loading"
title=
"已办事项"
class=
"enter-y"
/>
<DynamicInfo
:loading=
"loading"
title=
"已办事项"
:urls=
"'已办事项'"
@
moreClck=
"moreClck"
class=
"enter-y"
:dynamicInfoItems=
"ybData"
/>
</div>
<div
class=
"lg:w-3/9 w-full enter-y"
>
<DynamicInfo
:loading=
"loading"
title=
"通知消息"
class=
"enter-y"
/>
<DynamicInfo
:loading=
"loading"
title=
"通知消息"
:urls=
"'通知消息'"
@
moreClck=
"moreClck"
class=
"enter-y"
:dynamicInfoItems=
"tzData"
/>
</div>
</div>
</PageWrapper>
<Modal
@
register=
"register"
:title=
"title"
/>
</
template
>
<
script
lang=
"ts"
setup
>
import
{
ref
}
from
'vue'
;
import
{
ref
,
reactive
}
from
'vue'
;
import
{
PageWrapper
}
from
'/@/components/Page'
;
import
DynamicInfo
from
'./components/DynamicInfo.vue'
;
import
Modal
from
'./components/modal.vue'
;
import
{
useModal
}
from
'/@/components/Modal'
;
import
{
getDblist
}
from
"./api"
;
const
[
register
,
{
openModal
}]
=
useModal
();
const
loading
=
ref
(
true
);
setTimeout
(()
=>
{
let
dbData
=
reactive
({})
let
ybData
=
reactive
({})
let
tzData
=
reactive
({})
let
title
=
ref
(
''
)
async
function
init
()
{
// 请求接口
let
result1
=
await
getDblist
({
type
:
1
,
pageNo
:
1
,
pageSize
:
15
});
//代办事项
let
result2
=
await
getDblist
({
type
:
2
,
pageNo
:
1
,
pageSize
:
15
});
//已办事项
let
result3
=
await
getDblist
({
type
:
3
,
pageNo
:
1
,
pageSize
:
15
});
//通知消息
dbData
=
result1
?.
records
ybData
=
result2
?.
records
tzData
=
result3
?.
records
loading
.
value
=
false
;
},
500
);
};
init
()
function
moreClck
(
val
)
{
title
.
value
=
val
openModal
(
true
,
{
record
:{
val
},
isUpdate
:
false
,
});
}
</
script
>
src/views/directory/mlzk/land/modules/Plans.vue
浏览文件 @
256f6e91
...
...
@@ -9,6 +9,7 @@
</
template
>
<
template
#
title
>
<div>
<!-- 需要判断id状态展示不同按钮组 -->
<a-space
wrap
>
<a-button
type=
"primary"
@
click=
"view"
>
查看基本信息
</a-button>
<a-button
type=
"primary"
@
click=
"add"
>
新增方案
</a-button>
...
...
src/views/dkgl/repair/Acceptance.vue
浏览文件 @
256f6e91
...
...
@@ -31,9 +31,9 @@
<!--插槽:table标题-->
<
template
#
tableTitle
>
<a-button
type=
"primary"
@
click=
"handleAdd"
v-auth=
"'dkdc-dsl-sl'"
>
受理
</a-button>
<
a-button
type=
"primary"
preIcon=
"ant-design:export-outlined"
@
click=
"onExportXls"
>
导出
</a-button
>
<
j-upload-button
type=
"primary"
preIcon=
"ant-design:import-outlined"
@
click=
"onImportXls"
>
导入
</j-upload-button
>
<a-dropdown
v-if=
"selectedRowKeys.length > 0"
>
<
!--
<a-button
type=
"primary"
preIcon=
"ant-design:export-outlined"
@
click=
"onExportXls"
>
导出
</a-button>
--
>
<
!--
<j-upload-button
type=
"primary"
preIcon=
"ant-design:import-outlined"
@
click=
"onImportXls"
>
导入
</j-upload-button>
--
>
<
!--
<
a-dropdown
v-if=
"selectedRowKeys.length > 0"
>
<template
#
overlay
>
<a-menu>
<a-menu-item
key=
"1"
@
click=
"batchHandleDelete"
>
...
...
@@ -43,17 +43,17 @@
</a-menu>
</
template
>
<a-button>
批量操作
<Icon
icon=
"mdi:chevron-down"
></Icon></a-button>
</a-dropdown>
</a-dropdown>
-->
</template>
<!--操作栏-->
<
template
#
action=
"{ record }"
>
<
!-- <
template #action="{ record }">
<TableAction :actions="getTableAction(record)" :dropDownActions="getDropDownAction(record)" />
</
template
>
</template>
-->
</BasicTable>
</div>
</template>
<
script
lang=
"ts"
name=
"dkgl-
investigate-A
cceptance"
setup
>
<
script
lang=
"ts"
name=
"dkgl-
repair-a
cceptance"
setup
>
import
{
ref
,
computed
,
unref
}
from
'vue'
;
import
{
BasicTable
,
useTable
,
TableAction
}
from
'/@/components/Table'
;
import
{
useModal
}
from
'/@/components/Modal'
;
...
...
@@ -73,6 +73,7 @@
//定义rowSelection的类型,默认是checkbox多选,可以设置成radio单选
rowKey
:
'wrdkid'
,
rowSelection
:
{
type
:
'radio'
},
showActionColumn
:
false
,
formConfig
:
{
labelWidth
:
120
,
schemas
:
searchFormSchema
,
...
...
src/views/dkgl/repair/Approved.vue
浏览文件 @
256f6e91
...
...
@@ -31,9 +31,9 @@
<!--插槽:table标题-->
<
template
#
tableTitle
>
<a-button
type=
"primary"
@
click=
"handleAdd"
preIcon=
"ant-design:plus-outlined"
>
新增
</a-button>
<
a-button
type=
"primary"
preIcon=
"ant-design:export-outlined"
@
click=
"onExportXls"
>
导出
</a-button
>
<
j-upload-button
type=
"primary"
preIcon=
"ant-design:import-outlined"
@
click=
"onImportXls"
>
导入
</j-upload-button
>
<a-dropdown
v-if=
"selectedRowKeys.length > 0"
>
<
!--
<a-button
type=
"primary"
preIcon=
"ant-design:export-outlined"
@
click=
"onExportXls"
>
导出
</a-button>
--
>
<
!--
<j-upload-button
type=
"primary"
preIcon=
"ant-design:import-outlined"
@
click=
"onImportXls"
>
导入
</j-upload-button>
--
>
<
!--
<
a-dropdown
v-if=
"selectedRowKeys.length > 0"
>
<template
#
overlay
>
<a-menu>
<a-menu-item
key=
"1"
@
click=
"batchHandleDelete"
>
...
...
@@ -43,12 +43,12 @@
</a-menu>
</
template
>
<a-button>
批量操作
<Icon
icon=
"mdi:chevron-down"
></Icon></a-button>
</a-dropdown>
</a-dropdown>
-->
</template>
<!--操作栏-->
<
template
#
action=
"{ record }"
>
<
!-- <
template #action="{ record }">
<TableAction :actions="getTableAction(record)" :dropDownActions="getDropDownAction(record)" />
</
template
>
</template>
-->
</BasicTable>
</div>
</template>
...
...
@@ -73,6 +73,7 @@
//定义rowSelection的类型,默认是checkbox多选,可以设置成radio单选
rowKey
:
'wrdkid'
,
rowSelection
:
{
type
:
'radio'
},
showActionColumn
:
false
,
formConfig
:
{
labelWidth
:
120
,
schemas
:
searchFormSchema
,
...
...
src/views/dkgl/repair/Failed.vue
浏览文件 @
256f6e91
...
...
@@ -31,9 +31,9 @@
<!--插槽:table标题-->
<
template
#
tableTitle
>
<a-button
type=
"primary"
@
click=
"handleAdd"
preIcon=
"ant-design:plus-outlined"
>
新增
</a-button>
<
a-button
type=
"primary"
preIcon=
"ant-design:export-outlined"
@
click=
"onExportXls"
>
导出
</a-button
>
<
j-upload-button
type=
"primary"
preIcon=
"ant-design:import-outlined"
@
click=
"onImportXls"
>
导入
</j-upload-button
>
<a-dropdown
v-if=
"selectedRowKeys.length > 0"
>
<
!--
<a-button
type=
"primary"
preIcon=
"ant-design:export-outlined"
@
click=
"onExportXls"
>
导出
</a-button>
--
>
<
!--
<j-upload-button
type=
"primary"
preIcon=
"ant-design:import-outlined"
@
click=
"onImportXls"
>
导入
</j-upload-button>
--
>
<
!--
<
a-dropdown
v-if=
"selectedRowKeys.length > 0"
>
<template
#
overlay
>
<a-menu>
<a-menu-item
key=
"1"
@
click=
"batchHandleDelete"
>
...
...
@@ -43,12 +43,12 @@
</a-menu>
</
template
>
<a-button>
批量操作
<Icon
icon=
"mdi:chevron-down"
></Icon></a-button>
</a-dropdown>
</a-dropdown>
-->
</template>
<!--操作栏-->
<
template
#
action=
"{ record }"
>
<
!-- <
template #action="{ record }">
<TableAction :actions="getTableAction(record)" :dropDownActions="getDropDownAction(record)" />
</
template
>
</template>
-->
</BasicTable>
</div>
</template>
...
...
@@ -79,6 +79,7 @@
autoSubmitOnEnter
:
true
,
showAdvancedButton
:
false
,
},
showActionColumn
:
false
,
actionColumn
:
{
width
:
120
,
},
...
...
src/views/dkgl/repair/Filling.vue
浏览文件 @
256f6e91
...
...
@@ -30,11 +30,12 @@
</template>
<!--插槽:table标题-->
<
template
#
tableTitle
>
<a-button
type=
"primary"
@
click=
"handleAdd"
v-auth=
"'dkdc-tbz-tbfsbg'"
>
填报方式变更
</a-button>
<a-button
type=
"primary"
@
click=
"handleAdd"
v-auth=
"'dkdc-tbz-zltb'"
>
资料填报
</a-button>
<a-button
type=
"primary"
preIcon=
"ant-design:export-outlined"
@
click=
"onExportXls"
>
导出
</a-button>
<j-upload-button
type=
"primary"
preIcon=
"ant-design:import-outlined"
@
click=
"onImportXls"
>
导入
</j-upload-button>
<a-dropdown
v-if=
"selectedRowKeys.length > 0"
>
<!-- v-auth="'xf-tbz-ckfalb'" -->
<a-button
type=
"primary"
@
click=
"handleAdd"
>
查看方案列表
</a-button>
<!--
<a-button
type=
"primary"
@
click=
"handleAdd"
v-auth=
"'xf-tbz-zltb'"
>
资料填报
</a-button>
-->
<!--
<a-button
type=
"primary"
preIcon=
"ant-design:export-outlined"
@
click=
"onExportXls"
>
导出
</a-button>
-->
<!--
<j-upload-button
type=
"primary"
preIcon=
"ant-design:import-outlined"
@
click=
"onImportXls"
>
导入
</j-upload-button>
-->
<!--
<a-dropdown
v-if=
"selectedRowKeys.length > 0"
>
<template
#
overlay
>
<a-menu>
<a-menu-item
key=
"1"
@
click=
"batchHandleDelete"
>
...
...
@@ -44,12 +45,12 @@
</a-menu>
</
template
>
<a-button>
批量操作
<Icon
icon=
"mdi:chevron-down"
></Icon></a-button>
</a-dropdown>
</a-dropdown>
-->
</template>
<!--操作栏-->
<
template
#
action=
"{ record }"
>
<
!-- <
template #action="{ record }">
<TableAction :actions="getTableAction(record)" />
</
template
>
</template>
-->
</BasicTable>
</div>
</template>
...
...
@@ -61,9 +62,13 @@
import
{
useListPage
}
from
'/@/hooks/system/useListPage'
;
import
{
columns
,
searchFormSchema
,
useSuspectsData
,
useCategoryData
}
from
'./data'
;
import
{
fillingList
,
deleteOne
,
batchDelete
,
getImportUrl
,
getExportUrl
}
from
'./api'
;
import
{
useRouter
}
from
'vue-router'
;
import
{
useMessage
}
from
'/@/hooks/web/useMessage'
;
const
{
createMessage
}
=
useMessage
();
let
router
=
useRouter
();
//注册model
const
[
registerModal
,
{
openModal
}]
=
useModal
();
//
const [registerModal, { openModal }] = useModal();
//注册table数据
const
{
prefixCls
,
tableContext
,
onExportXls
,
onImportXls
}
=
useListPage
({
tableProps
:
{
...
...
@@ -73,6 +78,7 @@
canResize
:
false
,
//定义rowSelection的类型,默认是checkbox多选,可以设置成radio单选
rowKey
:
'wrdkid'
,
showActionColumn
:
false
,
rowSelection
:
{
type
:
'radio'
},
formConfig
:
{
labelWidth
:
120
,
...
...
@@ -101,10 +107,15 @@
* 新增事件
*/
function
handleAdd
()
{
openModal
(
true
,
{
isUpdate
:
false
,
showFooter
:
true
,
});
if
(
selectedRowKeys
.
value
.
length
===
1
){
router
.
push
(
`/directory/mlzk/land/modules/Plans?wrdkid=
${
selectedRowKeys
.
value
[
0
]}
&scjdbm=S5`
)
}
else
{
createMessage
.
info
(
'请选择需要查看的内容,每次只能选中一条'
);
}
// openModal(true, {
// isUpdate: false,
// showFooter: true,
// });
}
/**
* 编辑事件
...
...
src/views/dkgl/repair/Improved.vue
浏览文件 @
256f6e91
...
...
@@ -31,9 +31,9 @@
<!--插槽:table标题-->
<
template
#
tableTitle
>
<a-button
type=
"primary"
@
click=
"handleAdd"
preIcon=
"ant-design:plus-outlined"
>
新增
</a-button>
<
a-button
type=
"primary"
preIcon=
"ant-design:export-outlined"
@
click=
"onExportXls"
>
导出
</a-button
>
<
j-upload-button
type=
"primary"
preIcon=
"ant-design:import-outlined"
@
click=
"onImportXls"
>
导入
</j-upload-button
>
<a-dropdown
v-if=
"selectedRowKeys.length > 0"
>
<
!--
<a-button
type=
"primary"
preIcon=
"ant-design:export-outlined"
@
click=
"onExportXls"
>
导出
</a-button>
--
>
<
!--
<j-upload-button
type=
"primary"
preIcon=
"ant-design:import-outlined"
@
click=
"onImportXls"
>
导入
</j-upload-button>
--
>
<
!--
<
a-dropdown
v-if=
"selectedRowKeys.length > 0"
>
<template
#
overlay
>
<a-menu>
<a-menu-item
key=
"1"
@
click=
"batchHandleDelete"
>
...
...
@@ -43,12 +43,12 @@
</a-menu>
</
template
>
<a-button>
批量操作
<Icon
icon=
"mdi:chevron-down"
></Icon></a-button>
</a-dropdown>
</a-dropdown>
-->
</template>
<!--操作栏-->
<
template
#
action=
"{ record }"
>
<
!-- <
template #action="{ record }">
<TableAction :actions="getTableAction(record)" :dropDownActions="getDropDownAction(record)" />
</
template
>
</template>
-->
</BasicTable>
</div>
</template>
...
...
@@ -70,6 +70,7 @@
api
:
improvedList
,
columns
,
canResize
:
false
,
showActionColumn
:
false
,
//定义rowSelection的类型,默认是checkbox多选,可以设置成radio单选
rowKey
:
'wrdkid'
,
rowSelection
:
{
type
:
'radio'
},
...
...
src/views/dkgl/repair/NotReviewed.vue
浏览文件 @
256f6e91
...
...
@@ -31,9 +31,9 @@
<!--插槽:table标题-->
<
template
#
tableTitle
>
<a-button
type=
"primary"
@
click=
"handleAdd"
preIcon=
"ant-design:plus-outlined"
>
新增
</a-button>
<a-button
type=
"primary"
preIcon=
"ant-design:export-outlined"
@
click=
"onExportXls"
>
导出
</a-button>
<j-upload-button
type=
"primary"
preIcon=
"ant-design:import-outlined"
@
click=
"onImportXls"
>
导入
</j-upload-button>
<a-dropdown
v-if=
"selectedRowKeys.length > 0"
>
<
!--
<
a-button
type=
"primary"
preIcon=
"ant-design:export-outlined"
@
click=
"onExportXls"
>
导出
</a-button>
<j-upload-button
type=
"primary"
preIcon=
"ant-design:import-outlined"
@
click=
"onImportXls"
>
导入
</j-upload-button>
-->
<
!--
<
a-dropdown
v-if=
"selectedRowKeys.length > 0"
>
<template
#
overlay
>
<a-menu>
<a-menu-item
key=
"1"
@
click=
"batchHandleDelete"
>
...
...
@@ -43,12 +43,12 @@
</a-menu>
</
template
>
<a-button>
批量操作
<Icon
icon=
"mdi:chevron-down"
></Icon></a-button>
</a-dropdown>
</a-dropdown>
-->
</template>
<!--操作栏-->
<
template
#
action=
"{ record }"
>
<
!-- <
template #action="{ record }">
<TableAction :actions="getTableAction(record)" :dropDownActions="getDropDownAction(record)" />
</
template
>
</template>
-->
</BasicTable>
</div>
</template>
...
...
@@ -73,6 +73,7 @@
//定义rowSelection的类型,默认是checkbox多选,可以设置成radio单选
rowKey
:
'wrdkid'
,
rowSelection
:
{
type
:
'radio'
},
showActionColumn
:
false
,
formConfig
:
{
labelWidth
:
120
,
schemas
:
searchFormSchema
,
...
...
src/views/dkgl/repair/Review.vue
浏览文件 @
256f6e91
...
...
@@ -31,9 +31,9 @@
<!--插槽:table标题-->
<
template
#
tableTitle
>
<a-button
type=
"primary"
@
click=
"handleAdd"
preIcon=
"ant-design:plus-outlined"
>
新增
</a-button>
<
a-button
type=
"primary"
preIcon=
"ant-design:export-outlined"
@
click=
"onExportXls"
>
导出
</a-button
>
<
j-upload-button
type=
"primary"
preIcon=
"ant-design:import-outlined"
@
click=
"onImportXls"
>
导入
</j-upload-button
>
<a-dropdown
v-if=
"selectedRowKeys.length > 0"
>
<
!--
<a-button
type=
"primary"
preIcon=
"ant-design:export-outlined"
@
click=
"onExportXls"
>
导出
</a-button>
--
>
<
!--
<j-upload-button
type=
"primary"
preIcon=
"ant-design:import-outlined"
@
click=
"onImportXls"
>
导入
</j-upload-button>
--
>
<
!--
<
a-dropdown
v-if=
"selectedRowKeys.length > 0"
>
<template
#
overlay
>
<a-menu>
<a-menu-item
key=
"1"
@
click=
"batchHandleDelete"
>
...
...
@@ -43,12 +43,12 @@
</a-menu>
</
template
>
<a-button>
批量操作
<Icon
icon=
"mdi:chevron-down"
></Icon></a-button>
</a-dropdown>
</a-dropdown>
-->
</template>
<!--操作栏-->
<
template
#
action=
"{ record }"
>
<
!-- <
template #action="{ record }">
<TableAction :actions="getTableAction(record)" :dropDownActions="getDropDownAction(record)" />
</
template
>
</template>
-->
</BasicTable>
</div>
</template>
...
...
@@ -73,6 +73,7 @@
//定义rowSelection的类型,默认是checkbox多选,可以设置成radio单选
rowKey
:
'wrdkid'
,
rowSelection
:
{
type
:
'radio'
},
showActionColumn
:
false
,
formConfig
:
{
labelWidth
:
120
,
schemas
:
searchFormSchema
,
...
...
src/views/system/xzCode/components/modal.vue
浏览文件 @
256f6e91
...
...
@@ -65,7 +65,7 @@
showActionButtonGroup
:
false
,
});
const
[
registerModal
,
{
setModalProps
,
closeModal
}]
=
useModalInner
(
async
(
data
)
=>
{
const
[
registerModal
,
{
setModalProps
,
closeModal
}]
=
useModalInner
(
async
(
data
)
=>
{
//重置表单
await
resetFields
();
if
(
data
.
record
.
id
){
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论