提交 9bf9ca8f authored 作者: gjx's avatar gjx

修改启动缘由bug

上级 ec3eaa2f
......@@ -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">
......
<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.value);
map.value.on('mousemove', function (e) {
mousePositionControl.updatePosition(e.latlng);
});
}
......
......@@ -348,9 +348,9 @@ export const formSchema: FormSchema[] = [
colProps: { span: 24 },
required: true,
componentProps: ({ formModel, formActionType }) => {
if (formModel.faliYiju) {
handeFlyj(formModel.faliYiju, formActionType)
}
// if (formModel.faliYiju) {
handeFlyj(formModel.faliYiju, formActionType)
// }
return {
api: dict,
......
......@@ -103,7 +103,7 @@ export const searchFormSchema: FormSchema[] = [
label: '工作单位所在区域',
field: 'createByName',
component: 'Select',
},
];
......@@ -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: '性别',
......
......@@ -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';
//注册model
const [registerModal, { openModal }] = useModal();
//注册table数据
const { prefixCls, tableContext, onExportXls, onImportXls } = useListPage({
tableProps: {
title: '专家成员表',
api: list,
columns,
canResize: false,
clickToRowSelect: true,
rowKey: "id",
rowSelection: { type: 'radio' },
formConfig: {
labelWidth: 120,
schemas: searchFormSchema,
autoSubmitOnEnter: true,
showAdvancedButton: true,
autoAdvancedCol:10 //超过几行显示折叠默认是3
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({
tableProps: {
title: '专家成员表',
api: list,
columns,
canResize: false,
clickToRowSelect: true,
rowKey: 'id',
rowSelection: { type: 'radio' },
formConfig: {
labelWidth: 120,
schemas: searchFormSchema,
autoSubmitOnEnter: true,
showAdvancedButton: true,
autoAdvancedCol: 10, //超过几行显示折叠默认是3
},
actionColumn: {
width: 120,
},
},
exportConfig: {
name: '专家成员表',
url: getExportUrl,
},
actionColumn: {
width: 120,
importConfig: {
url: getImportUrl,
},
},
exportConfig: {
name: "专家成员表",
url: getExportUrl,
},
importConfig: {
url: getImportUrl
},
})
});
const [registerTable, { reload }, { rowSelection, selectedRowKeys }] = tableContext
const [registerTable, { reload }, { rowSelection, selectedRowKeys }] = tableContext;
/**
* 新增事件
*/
function handleAdd() {
openModal(true, {
isUpdate: false,
showFooter: true,
});
}
/**
* 编辑事件
*/
function handleEdit(record: Recordable) {
openModal(true, {
record,
isUpdate: true,
showFooter: true,
});
}
/**
* 详情
*/
function handleDetail(record: Recordable) {
openModal(true, {
record,
isUpdate: true,
showFooter: false,
});
}
/**
* 删除事件
*/
async function handleDelete(record) {
await deleteOne({ id: record.id }, reload);
}
/**
* 批量删除事件
*/
async function batchHandleDelete() {
await batchDelete({ ids: selectedRowKeys.value }, reload);
}
/**
* 成功回调
*/
function handleSuccess({ isUpdate, values }) {
reload();
}
/**
/**
* 新增事件
*/
function handleAdd() {
openModal(true, {
isUpdate: false,
showFooter: true,
});
}
/**
* 编辑事件
*/
function handleEdit(record: Recordable) {
openModal(true, {
record,
isUpdate: true,
showFooter: true,
});
}
/**
* 详情
*/
function handleDetail(record: Recordable) {
openModal(true, {
record,
isUpdate: true,
showFooter: false,
});
}
/**
* 删除事件
*/
async function handleDelete(record) {
await deleteOne({ id: record.id }, reload);
}
/**
* 批量删除事件
*/
async function batchHandleDelete() {
await batchDelete({ ids: selectedRowKeys.value }, reload);
}
/**
* 成功回调
*/
function handleSuccess({ isUpdate, values }) {
reload();
}
/**
* 操作栏
*/
function getTableAction(record) {
return [
{
label: '编辑',
onClick: handleEdit.bind(null, record),
}
]
}
/**
* 下拉操作栏
*/
function getDropDownAction(record) {
return [
{
label: '详情',
onClick: handleDetail.bind(null, record),
}, {
label: '删除',
popConfirm: {
title: '是否确认删除',
confirm: handleDelete.bind(null, record),
}
}
]
}
function getTableAction(record) {
return [
{
label: '编辑',
onClick: handleEdit.bind(null, record),
},
];
}
/**
* 下拉操作栏
*/
function getDropDownAction(record) {
return [
{
label: '详情',
onClick: handleDetail.bind(null, record),
},
{
label: '删除',
popConfirm: {
title: '是否确认删除',
confirm: handleDelete.bind(null, record),
},
},
];
}
</script>
<style scoped></style>
\ No newline at end of file
<style scoped></style>
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论