公安后台接口替换
This commit is contained in:
parent
5825ea2767
commit
e21843ae85
|
@ -1,5 +1,5 @@
|
|||
<template>
|
||||
<view>警察</view>
|
||||
<view>警察1111</view>
|
||||
</template>
|
||||
<script setup lang="ts">
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@ import {message} from 'ant-design-vue'
|
|||
const formRef = ref<FormExpose>(null)
|
||||
type TableProps = TableProMaxProps<publicUnitPagerQueryParams>
|
||||
const tableRef = ref<ComponentExposed<typeof TableProMax>>(null!)
|
||||
const reqApi: TableProps['requestApi'] = (params) => api.post('/policeUnit/policeEnterprisesUnitPager', params) //分页
|
||||
const reqApi: TableProps['requestApi'] = (params) => api.post('/management/police/enterprisesUnitPager', params) //分页
|
||||
|
||||
const columns: TableProps['columns'] = [
|
||||
{
|
||||
|
|
|
@ -16,6 +16,7 @@ import {ComponentExposed} from 'vue-component-type-helpers'
|
|||
import {dictSelectNodes} from '@/config/dict.ts'
|
||||
import {publicUnitPagerQueryParams, FromItem} from '@/types/views/publicUnit.ts'
|
||||
import {FormExpose} from 'ant-design-vue/es/form/Form'
|
||||
import {message, Modal} from "ant-design-vue";
|
||||
|
||||
const formRef = ref<FormExpose>(null)
|
||||
type TableProps = TableProMaxProps<publicUnitPagerQueryParams>
|
||||
|
@ -86,9 +87,9 @@ const columns: TableProps['columns'] = [
|
|||
<a-button
|
||||
class={record.isEnable.value === 0 ? 'btn-danger' : 'btn-success'}
|
||||
onClick={async () => {
|
||||
const resp = await api.post('/management/disableOrEnable', {
|
||||
const resp = await api.post('/management/disableOrEnableMiniProgramUser', {
|
||||
dataId: record.snowFlakeId,
|
||||
unitOptType: UNIT_TYPE.police
|
||||
unitOptType: 'POLICE_UNIT'
|
||||
})
|
||||
message.success(resp.message)
|
||||
await tableRef.value?.requestGetTableData()
|
||||
|
|
|
@ -39,7 +39,7 @@ import {publicUnitPagerQueryParams, FromItem} from "@/types/views/publicUnit.ts"
|
|||
const tableRef = ref<ComponentExposed<typeof TableProMax>>(null!)
|
||||
const formRef = ref<FormExpose>(null)
|
||||
type TableProps = TableProMaxProps<publicUnitPagerQueryParams>
|
||||
const reqApi: TableProps['requestApi'] = (params) => api.post('/managementPoliceUnitUser/pager', params) //分页
|
||||
const reqApi: TableProps['requestApi'] = (params) => api.post('/management/police/user/pager', params) //分页
|
||||
const formParams = ref<{
|
||||
snowFlakeId?: string,
|
||||
name: string,
|
||||
|
@ -146,7 +146,7 @@ const columns: TableProps['columns'] = [
|
|||
style="width:100%"
|
||||
title="确认删除账号吗?"
|
||||
onConfirm={async () => {
|
||||
const resp = await api.delete('/managementPoliceUnitUser/deleteById', {
|
||||
const resp = await api.delete('/management/police/user/deleteById', {
|
||||
managementPoliceUnitUserId: record.snowFlakeId,
|
||||
})
|
||||
message.success(resp.message)
|
||||
|
@ -224,7 +224,7 @@ const submit = async () => {
|
|||
isEnable: formParams.value.isEnable,
|
||||
|
||||
}
|
||||
const resp = await api.post('/managementPoliceUnitUser/saveOrUpdate', managementSecurityUnitUserSaveOrUpdateParams)
|
||||
const resp = await api.post('/management/police/user/saveOrUpdate', managementSecurityUnitUserSaveOrUpdateParams)
|
||||
message.success(resp.message)
|
||||
tableRef.value?.requestGetTableData()
|
||||
closeModal()
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue