土地案件
This commit is contained in:
parent
0fbc726e8e
commit
ab2b0647de
@ -12,6 +12,7 @@ declare module 'vue' {
|
||||
'CenterMap copy': typeof import('./src/components/centerMap copy.vue')['default']
|
||||
CodeDialog: typeof import('./src/components/code-dialog/index.vue')['default']
|
||||
Components: typeof import('./src/components/index.js')['default']
|
||||
copy: typeof import('./src/components/centerMap copy.vue')['default']
|
||||
CurrentTime: typeof import('./src/components/currentTime.vue')['default']
|
||||
CustomBack: typeof import('./src/components/customBack.vue')['default']
|
||||
CustomCarouselPicture: typeof import('./src/components/custom-carousel-picture/index.vue')['default']
|
||||
|
@ -248,8 +248,14 @@ export function exportlandInspection(params = {}) {
|
||||
// #region
|
||||
|
||||
/* 查询土地违法处理 */
|
||||
export function getLandIllegal(params = {}) {
|
||||
return request('land-resource/landViolation/page', {
|
||||
// export function getLandIllegal(params = {}) {
|
||||
// return request('land-resource/landViolation/page', {
|
||||
// method: 'GET',
|
||||
// params,
|
||||
// });
|
||||
// }
|
||||
export function getIllegalList(params = {}) {
|
||||
return request('/land-resource/inspection/illegal/list', {
|
||||
method: 'GET',
|
||||
params,
|
||||
});
|
||||
|
@ -18,21 +18,12 @@
|
||||
@cell-click="handleCellClick"
|
||||
>
|
||||
<template #menu="{ row }">
|
||||
<el-button v-if="row.status == '0'" type="primary" @click="handleInfo(row)">登记处理</el-button>
|
||||
</template>
|
||||
<template #status="{ row }"> {{ row.status == '0' ? '未' : '已' }}处理 </template>
|
||||
<template #sceneProof-form="{ row, type }">
|
||||
<section class="proof_content_">
|
||||
<span v-if="type == 'add'">(照片、视频)</span>
|
||||
<Attrs v-model:attrs="examineForm.proof" :type="type" :limit="5" :file-num="5" accept="image/*,video/*" />
|
||||
</section>
|
||||
</template>
|
||||
<template #attrs_-form="{ row, type }">
|
||||
<FileUpload v-model:attrs="examineForm.attrs" :format="['rar', 'zip', 'doc', 'docx', 'pdf']" :type="type" />
|
||||
<el-button link type="primary" @click="handleInfo(row)">查看</el-button>
|
||||
<el-button link type="primary" @click="handleInfo(row)">案件处理</el-button>
|
||||
</template>
|
||||
</avue-crud>
|
||||
</section>
|
||||
<Register v-model:visible="caseInfo.visible" />
|
||||
<div>222</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
@ -41,7 +32,7 @@ import { CRUD_OPTIONS } from '@/config';
|
||||
import { useUserStore } from '@/store/modules/user';
|
||||
import Register from './common/Register.vue';
|
||||
import FileUpload from './common/FileUpload.vue';
|
||||
import { getLandIllegal, createLandIllegal, registerLandIllegal, illegalInfo } from '@/apis/land';
|
||||
import { getIllegalList, createLandIllegal, registerLandIllegal, illegalInfo } from '@/apis/land';
|
||||
import { ElMessage, ElMessageBox } from 'element-plus';
|
||||
import Attrs from '../../common/Attrs.vue';
|
||||
import { add } from 'lodash';
|
||||
@ -109,148 +100,78 @@ const documentData = ref([
|
||||
const option = ref({
|
||||
...CRUD_OPTIONS,
|
||||
refreshBtn: false,
|
||||
index: false,
|
||||
rowKey: 'caseId',
|
||||
editTitle: '案件登记处理',
|
||||
selection: false,
|
||||
addBtn: false,
|
||||
column: [
|
||||
{
|
||||
label: '案件编号',
|
||||
prop: 'caseId',
|
||||
label: '违法行为',
|
||||
prop: 'illegalTypeName',
|
||||
search: true,
|
||||
editDisplay: false,
|
||||
viewDisplay: false,
|
||||
rules: [
|
||||
{
|
||||
required: true,
|
||||
message: '请选择',
|
||||
trigger: 'blur',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
label: '案件名称',
|
||||
prop: 'caseName',
|
||||
editDisplay: false,
|
||||
viewDisplay: false,
|
||||
rules: [
|
||||
{
|
||||
required: true,
|
||||
message: '请选择',
|
||||
trigger: 'blur',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
label: '关联单位',
|
||||
prop: 'relatedUnit',
|
||||
editDisplay: false,
|
||||
viewDisplay: false,
|
||||
},
|
||||
{
|
||||
label: '关联土地·',
|
||||
prop: 'landId',
|
||||
type: 'select',
|
||||
addDisplay: true,
|
||||
hide: true,
|
||||
dicUrl: `${VITE_APP_BASE_API}/land-resource/landManage/page`,
|
||||
dicQuery: {
|
||||
current: 1,
|
||||
size: 9999,
|
||||
},
|
||||
props: {
|
||||
value: 'id',
|
||||
label: 'landName',
|
||||
},
|
||||
dicMethod: 'get',
|
||||
dicHeaders: {
|
||||
authorization: UserStore.token,
|
||||
},
|
||||
dicFormatter: (res) => {
|
||||
landsArr.value = res?.data?.records ?? [];
|
||||
return res?.data?.records ?? [];
|
||||
},
|
||||
editDisplay: false,
|
||||
viewDisplay: false,
|
||||
rules: [
|
||||
{
|
||||
required: true,
|
||||
message: '请选择',
|
||||
trigger: 'blur',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
label: '联系电话',
|
||||
prop: 'phone',
|
||||
hide: true,
|
||||
editDisplay: false,
|
||||
viewDisplay: false,
|
||||
},
|
||||
{
|
||||
label: '法定代表人',
|
||||
prop: 'legalPerson',
|
||||
addDisplay: true,
|
||||
hide: true,
|
||||
editDisplay: false,
|
||||
viewDisplay: false,
|
||||
},
|
||||
{
|
||||
label: '统一社会信用代码',
|
||||
prop: 'usciCode',
|
||||
addDisplay: true,
|
||||
hide: true,
|
||||
editDisplay: false,
|
||||
viewDisplay: false,
|
||||
},
|
||||
{
|
||||
label: '违法情况',
|
||||
prop: 'violationSituation',
|
||||
type: 'textarea',
|
||||
addDisplay: true,
|
||||
hide: true,
|
||||
width: '100%',
|
||||
span: 24,
|
||||
editDisplay: false,
|
||||
viewDisplay: false,
|
||||
},
|
||||
{
|
||||
label: '负责人',
|
||||
prop: 'responsiblePerson',
|
||||
display: false,
|
||||
addDisplay: true,
|
||||
editDisplay: false,
|
||||
viewDisplay: false,
|
||||
},
|
||||
{
|
||||
label: '案件进度',
|
||||
prop: 'status',
|
||||
display: false,
|
||||
search: true,
|
||||
type: 'select',
|
||||
dicData: [
|
||||
{ label: '未处理', value: 0 },
|
||||
{ label: '已处理', value: 1 },
|
||||
],
|
||||
// rules: [
|
||||
// {
|
||||
// required: true,
|
||||
// message: '请选择',
|
||||
// trigger: 'blur',
|
||||
// },
|
||||
// ],
|
||||
},
|
||||
{
|
||||
label: '违法行为描述',
|
||||
prop: 'desc',
|
||||
editDisplay: false,
|
||||
viewDisplay: false,
|
||||
rules: [
|
||||
{
|
||||
required: true,
|
||||
message: '请选择',
|
||||
trigger: 'blur',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
label: '任务编号',
|
||||
prop: 'illegalTypeCode',
|
||||
search: true,
|
||||
editDisplay: false,
|
||||
viewDisplay: false,
|
||||
rules: [
|
||||
{
|
||||
required: true,
|
||||
message: '请输入任务编号',
|
||||
trigger: 'blur',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
label: '巡查任务名称',
|
||||
prop: 'inspectionTaskName',
|
||||
editDisplay: false,
|
||||
viewDisplay: false,
|
||||
},
|
||||
{
|
||||
label: '巡查任务对象',
|
||||
prop: 'inspectionTaskTarget',
|
||||
addDisplay: true,
|
||||
editDisplay: false,
|
||||
viewDisplay: false,
|
||||
},
|
||||
{
|
||||
label: '案件结果',
|
||||
label: '状态',
|
||||
prop: 'status',
|
||||
display: false,
|
||||
addDisplay: true,
|
||||
editDisplay: false,
|
||||
viewDisplay: false,
|
||||
},
|
||||
{
|
||||
label: '处理时间',
|
||||
prop: 'updateTime',
|
||||
display: false,
|
||||
addDisplay: false,
|
||||
editDisplay: true,
|
||||
viewDisplay: false,
|
||||
},
|
||||
],
|
||||
group: [
|
||||
{
|
||||
@ -439,13 +360,14 @@ watch(
|
||||
// #region
|
||||
|
||||
async function getList() {
|
||||
_loading.value = true;
|
||||
// _loading.value = true;
|
||||
let params = {
|
||||
illegalFlag: 1,
|
||||
current: page.value.currentPage,
|
||||
size: page.value.pageSize,
|
||||
...searchData.value,
|
||||
// ...searchData.value,
|
||||
};
|
||||
let res = await getLandIllegal(params);
|
||||
let res = await getIllegalList(params);
|
||||
console.log('res -- ', res);
|
||||
_loading.value = false;
|
||||
if (res.code == 200) {
|
||||
@ -464,10 +386,10 @@ function handleSizeChange(val) {
|
||||
}
|
||||
function handleInfo(row) {
|
||||
console.log('row', row);
|
||||
examineForm.caseId = row.caseId;
|
||||
// caseInfo.value.visible = true;
|
||||
crudRef.value.rowEdit(row);
|
||||
// crudRef.value.rowView(row);
|
||||
// examineForm.caseId = row.caseId;
|
||||
// // caseInfo.value.visible = true;
|
||||
// crudRef.value.rowEdit(row);
|
||||
// // crudRef.value.rowView(row);
|
||||
}
|
||||
async function handleSearch(form, done) {
|
||||
page.value.currentPage = 1;
|
||||
@ -569,7 +491,7 @@ function handleOpenFrom(done, type) {
|
||||
if (type == 'view') {
|
||||
option.value.group.find((v) => v.prop == 'caseHandle').column.find((v) => v.prop == 'attrs_').label = lab;
|
||||
}
|
||||
done();
|
||||
// done();
|
||||
}
|
||||
function handleCloseFrom(done) {
|
||||
console.log('form close');
|
||||
|
Loading…
x
Reference in New Issue
Block a user