Skip to content
项目
群组
代码片段
帮助
正在加载...
登录/注册
切换导航
广
广东建设用地-前端
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
广东建设用地
广东建设用地-前端
Commits
9bf9ca8f
提交
9bf9ca8f
authored
12月 12, 2023
作者:
gjx
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改启动缘由bug
上级
ec3eaa2f
显示空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
82 行增加
和
68 行删除
+82
-68
DkTable.vue
src/components/customComponent/DkTable.vue
+5
-5
index.vue
src/views/dashboard/OnePic/components/map/index.vue
+15
-8
GWrdkjbxxb.data.ts
src/views/directory/components/GWrdkjbxxb.data.ts
+2
-2
GZjcyb.data.ts
src/views/zjgl/Files/GZjcyb.data.ts
+7
-1
GZjcybList.vue
src/views/zjgl/Files/GZjcybList.vue
+53
-52
没有找到文件。
src/components/customComponent/DkTable.vue
浏览文件 @
9bf9ca8f
...
...
@@ -158,11 +158,11 @@
<tr
class=
"ant-table-cell ant-table-cell-ellipsis"
>
<td
class=
"ant-table-cell ant-table-cell-ellipsis bgColor"
>
启动缘由
</td>
<td
class=
"ant-table-cell ant-table-cell-ellipsis"
colspan=
"3"
>
<div
v-if=
"data?.qdyy.includes('1')"
>
生态环境部门责令调查
</div>
<div
v-if=
"data?.qdyy.includes('2')"
>
用于变更为住宅公共管理与公共服务用地
</div>
<div
v-if=
"data?.qdyy.includes('3')"
>
土壤污染重点监管单位用途变更
</div>
<div
v-if=
"data?.qdyy.includes('4')"
>
重点监管单位使用权转让收回
</div>
<div
v-if=
"data?.qdyy.includes('5')"
>
其它
{{
data
?.
qyyyQt
}}
</div>
<div
v-if=
"data?.qdyy
?
.includes('1')"
>
生态环境部门责令调查
</div>
<div
v-if=
"data?.qdyy
?
.includes('2')"
>
用于变更为住宅公共管理与公共服务用地
</div>
<div
v-if=
"data?.qdyy
?
.includes('3')"
>
土壤污染重点监管单位用途变更
</div>
<div
v-if=
"data?.qdyy
?
.includes('4')"
>
重点监管单位使用权转让收回
</div>
<div
v-if=
"data?.qdyy
?
.includes('5')"
>
其它
{{
data
?.
qyyyQt
}}
</div>
</td>
</tr>
<tr
class=
"ant-table-cell ant-table-cell-ellipsis"
>
...
...
src/views/dashboard/OnePic/components/map/index.vue
浏览文件 @
9bf9ca8f
<
template
>
<div
id=
"centerMap"
class=
"map"
></div>
<div
ref=
"content"
></div>
</
template
>
<
script
setup
>
import
{
ref
,
onMounted
,
nextTick
}
from
'vue'
;
...
...
@@ -15,6 +16,7 @@
initMap
();
});
const
map
=
ref
(
''
);
const
content
=
ref
(
null
);
function
initMap
()
{
map
.
value
=
L
.
map
(
'centerMap'
,
{
center
:
[
31.841309
,
113.2
],
...
...
@@ -45,33 +47,38 @@
maxZoom
:
17
,
tileSize
:
256
,
}).
addTo
(
map
.
value
);
L
.
tileLayer
(
CIA_C
,
{
zoomOffset
:
1
,
// 经纬度投影打开
maxZoom
:
17
,
tileSize
:
256
,
}).
addTo
(
map
.
vue
);
// L.tileLayer(CIA_C, {
// zoomOffset: 1, // 经纬度投影打开
// maxZoom: 17,
// tileSize: 256,
// }).addTo(map.vue);
position
();
}
function
position
()
{
var
mousePositionControl
=
L
.
control
({
position
:
'bottomright'
,
});
mousePositionControl
.
onAdd
=
function
(
map
)
{
var
div
=
L
.
DomUtil
.
create
(
'div'
,
'mouse-position'
);
return
div
;
};
mousePositionControl
.
updatePosition
=
function
(
latlng
)
{
var
lat
=
latlng
.
lat
.
toFixed
(
5
);
var
lng
=
latlng
.
lng
.
toFixed
(
5
);
this
.
_container
.
innerHTML
=
content
.
value
.
innerHTML
=
'<div style="color:#FFF;margin-bottom:-10px;margin-right:20px;"><span>经度: '
+
lng
+
'</span><span style="margin-left: 20px;">纬度: '
+
lat
+
'</span></div>'
;
};
mousePositionControl
.
addTo
(
map
.
vue
);
map
.
vue
.
on
(
'mousemove'
,
function
(
e
)
{
mousePositionControl
.
addTo
(
map
.
v
al
ue
);
map
.
v
al
ue
.
on
(
'mousemove'
,
function
(
e
)
{
mousePositionControl
.
updatePosition
(
e
.
latlng
);
});
}
...
...
src/views/directory/components/GWrdkjbxxb.data.ts
浏览文件 @
9bf9ca8f
...
...
@@ -348,9 +348,9 @@ export const formSchema: FormSchema[] = [
colProps
:
{
span
:
24
},
required
:
true
,
componentProps
:
({
formModel
,
formActionType
})
=>
{
if
(
formModel
.
faliYiju
)
{
//
if (formModel.faliYiju) {
handeFlyj
(
formModel
.
faliYiju
,
formActionType
)
}
//
}
return
{
api
:
dict
,
...
...
src/views/zjgl/Files/GZjcyb.data.ts
浏览文件 @
9bf9ca8f
...
...
@@ -123,7 +123,13 @@ export const formSchema: FormSchema[] = [
{
label
:
'出生年月'
,
field
:
'csny'
,
component
:
'Input'
,
component
:
'DatePicker'
,
componentProps
:
{
//日期格式化,页面上显示的值
format
:
'YYYY-MM-DD'
,
//返回值格式化(绑定值的格式)
valueFormat
:
'YYYY-MM-DD'
,
}
},
{
label
:
'性别'
,
...
...
src/views/zjgl/Files/GZjcybList.vue
浏览文件 @
9bf9ca8f
...
...
@@ -5,9 +5,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"
>
...
...
@@ -16,10 +16,11 @@
</a-menu-item>
</a-menu>
</
template
>
<a-button>
批量操作
<a-button
>
批量操作
<Icon
icon=
"mdi:chevron-down"
></Icon>
</a-button>
</a-dropdown>
</a-dropdown>
-->
</template>
<!--操作栏-->
<
template
#
action=
"{ record }"
>
...
...
@@ -33,123 +34,123 @@
</template>
<
script
lang=
"ts"
name=
"zjgl-gZjcyb"
setup
>
import
{
ref
,
computed
,
unref
}
from
'vue'
;
import
{
BasicTable
,
useTable
,
TableAction
}
from
'/@/components/Table'
;
import
{
useModal
}
from
'/@/components/Modal'
;
import
{
useListPage
}
from
'/@/hooks/system/useListPage'
import
GZjcybModal
from
'./modules/GZjcybModal.vue'
import
{
columns
,
searchFormSchema
}
from
'./GZjcyb.data'
;
import
{
list
,
deleteOne
,
batchDelete
,
getImportUrl
,
getExportUrl
}
from
'./GZjcyb.api'
;
import
{
ref
,
computed
,
unref
}
from
'vue'
;
import
{
BasicTable
,
useTable
,
TableAction
}
from
'/@/components/Table'
;
import
{
useModal
}
from
'/@/components/Modal'
;
import
{
useListPage
}
from
'/@/hooks/system/useListPage'
;
import
GZjcybModal
from
'./modules/GZjcybModal.vue'
;
import
{
columns
,
searchFormSchema
}
from
'./GZjcyb.data'
;
import
{
list
,
deleteOne
,
batchDelete
,
getImportUrl
,
getExportUrl
}
from
'./GZjcyb.api'
;
//注册model
const
[
registerModal
,
{
openModal
}]
=
useModal
();
//注册table数据
const
{
prefixCls
,
tableContext
,
onExportXls
,
onImportXls
}
=
useListPage
({
//注册model
const
[
registerModal
,
{
openModal
}]
=
useModal
();
//注册table数据
const
{
prefixCls
,
tableContext
,
onExportXls
,
onImportXls
}
=
useListPage
({
tableProps
:
{
title
:
'专家成员表'
,
api
:
list
,
columns
,
canResize
:
false
,
clickToRowSelect
:
true
,
rowKey
:
"id"
,
rowKey
:
'id'
,
rowSelection
:
{
type
:
'radio'
},
formConfig
:
{
labelWidth
:
120
,
schemas
:
searchFormSchema
,
autoSubmitOnEnter
:
true
,
showAdvancedButton
:
true
,
autoAdvancedCol
:
10
//超过几行显示折叠默认是3
autoAdvancedCol
:
10
,
//超过几行显示折叠默认是3
},
actionColumn
:
{
width
:
120
,
},
},
exportConfig
:
{
name
:
"专家成员表"
,
name
:
'专家成员表'
,
url
:
getExportUrl
,
},
importConfig
:
{
url
:
getImportUrl
url
:
getImportUrl
,
},
})
});
const
[
registerTable
,
{
reload
},
{
rowSelection
,
selectedRowKeys
}]
=
tableContext
const
[
registerTable
,
{
reload
},
{
rowSelection
,
selectedRowKeys
}]
=
tableContext
;
/**
/**
* 新增事件
*/
function
handleAdd
()
{
function
handleAdd
()
{
openModal
(
true
,
{
isUpdate
:
false
,
showFooter
:
true
,
});
}
/**
}
/**
* 编辑事件
*/
function
handleEdit
(
record
:
Recordable
)
{
function
handleEdit
(
record
:
Recordable
)
{
openModal
(
true
,
{
record
,
isUpdate
:
true
,
showFooter
:
true
,
});
}
/**
}
/**
* 详情
*/
function
handleDetail
(
record
:
Recordable
)
{
*/
function
handleDetail
(
record
:
Recordable
)
{
openModal
(
true
,
{
record
,
isUpdate
:
true
,
showFooter
:
false
,
});
}
/**
}
/**
* 删除事件
*/
async
function
handleDelete
(
record
)
{
async
function
handleDelete
(
record
)
{
await
deleteOne
({
id
:
record
.
id
},
reload
);
}
/**
}
/**
* 批量删除事件
*/
async
function
batchHandleDelete
()
{
async
function
batchHandleDelete
()
{
await
batchDelete
({
ids
:
selectedRowKeys
.
value
},
reload
);
}
/**
}
/**
* 成功回调
*/
function
handleSuccess
({
isUpdate
,
values
})
{
function
handleSuccess
({
isUpdate
,
values
})
{
reload
();
}
/**
}
/**
* 操作栏
*/
function
getTableAction
(
record
)
{
function
getTableAction
(
record
)
{
return
[
{
label
:
'编辑'
,
onClick
:
handleEdit
.
bind
(
null
,
record
),
},
];
}
]
}
/**
/**
* 下拉操作栏
*/
function
getDropDownAction
(
record
)
{
function
getDropDownAction
(
record
)
{
return
[
{
label
:
'详情'
,
onClick
:
handleDetail
.
bind
(
null
,
record
),
},
{
},
{
label
:
'删除'
,
popConfirm
:
{
title
:
'是否确认删除'
,
confirm
:
handleDelete
.
bind
(
null
,
record
),
},
},
];
}
}
]
}
</
script
>
<
style
scoped
></
style
>
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论