This commit is contained in:
TimSpan 2024-09-11 14:42:13 +08:00
commit 0767dc704d
11 changed files with 67 additions and 8 deletions

View File

@ -2,7 +2,7 @@
"name": "collect_information", "name": "collect_information",
"version": "1.0.0", "version": "1.0.0",
"private": true, "private": true,
"description": "小程序", "description": "智慧派出所信息采集小程序",
"templateInfo": { "templateInfo": {
"name": "default", "name": "default",
"typescript": true, "typescript": true,

View File

@ -6,7 +6,7 @@
"urlCheck": false, "urlCheck": false,
"es6": false, "es6": false,
"enhance": false, "enhance": false,
"compileHotReLoad": false, "compileHotReLoad": true,
"postcss": false, "postcss": false,
"minified": false, "minified": false,
"babelSetting": { "babelSetting": {
@ -27,5 +27,6 @@
"editorSetting": { "editorSetting": {
"tabIndent": "insertSpaces", "tabIndent": "insertSpaces",
"tabSize": 2 "tabSize": 2
} },
"appid": "wx8902ddbfddb820d1"
} }

View File

@ -7,6 +7,13 @@
"condition": { "condition": {
"miniprogram": { "miniprogram": {
"list": [ "list": [
{
"name": "pages/projectManager/myProject/myProject",
"pathName": "pages/projectManager/myProject/myProject",
"query": "",
"launchMode": "default",
"scene": null
},
{ {
"name": "", "name": "",
"pathName": "pages/mine/mine", "pathName": "pages/mine/mine",

View File

@ -6,6 +6,7 @@ export default defineAppConfig({
'pages/policeManager/index/index', 'pages/policeManager/index/index',
'pages/mine/mine', 'pages/mine/mine',
'pages/employeeInfo/employeeInfo', 'pages/employeeInfo/employeeInfo',
'pages/projectManager/myProject/myProject'
], ],
window: { window: {
backgroundTextStyle: 'light', backgroundTextStyle: 'light',

View File

@ -11,7 +11,7 @@
<nut-grid :column-num="3"> <nut-grid :column-num="3">
<nut-grid-item <nut-grid-item
text="我的项目" text="我的项目"
@click="Taro.navigateTo({url: '/pages/index/dataEntry/buildFloorEntry/buildFloorEntry'})"> @click="Taro.navigateTo({url: '/pages/projectManager/myProject/myProject'})">
</nut-grid-item> </nut-grid-item>
<nut-grid-item <nut-grid-item
text="警保风采" text="警保风采"

View File

@ -0,0 +1,4 @@
export default definePageConfig({
navigationBarTitleText: '我的项目',
})

View File

@ -0,0 +1,4 @@
.myProject{
background: red;
height: 100vh;
}

View File

@ -0,0 +1,41 @@
<template>
<view class="myProject">
<view>
<text></text>
<view>望月湖二期66666666望月湖二期111</view>
</view>
</view>
</template>
<script setup lang="ts">
import api from "@/request/index";
import {onMounted} from "vue";
import Taro from "@tarojs/taro";
const getMyServiceProject = async()=>{
console.log(11112)
const token = Taro.getStorageSync('token')
const resp = await api.get(`/projectManageIndex/getMyServiceProject`,{
token:token.value
})
console.log(resp.data)
}
const dataList = [
{
address:'12313',
name:'望月湖',
provincename:'湖南省',
remark:'123123',
streetName:'望月湖街道'
}
]
onMounted(async ()=>{
await getMyServiceProject()
})
</script>
<style scoped lang="scss">
</style>

View File

@ -59,6 +59,7 @@ class CustomRequest {
duration: 2000 duration: 2000
}).then() }).then()
reject(res.errMsg); reject(res.errMsg);
console.log(res.errMsg,'000')
} }
}) })
}) })

View File

@ -239,7 +239,7 @@ const getAdministrativeDivisionTree = async ()=>{
// //
const userNameOptions = ref([]) const userNameOptions = ref([])
const projectManagerMiniProgram = async()=>{ const projectManagerMiniProgram = async()=>{
const resp = await api.get('/securityUnit/listProjectManager') const resp = await api.get('/management/security/listProjectManager')
userNameOptions.value = resp.data as any userNameOptions.value = resp.data as any
} }

View File

@ -43,7 +43,7 @@ type TableProps = TableProMaxProps<BgManagementPagerQueryParams>
const tableRef = ref<ComponentExposed<typeof TableProMax>>(null!) const tableRef = ref<ComponentExposed<typeof TableProMax>>(null!)
// table // table
const reqApi: TableProps['requestApi'] = (params) => api.post('/managementSecurityUnitUser/pager', params) // const reqApi: TableProps['requestApi'] = (params) => api.post('/management/security/user/pager', params) //
const columns: TableProps['columns'] = [ const columns: TableProps['columns'] = [
{ {
dataIndex: 'account', dataIndex: 'account',
@ -95,7 +95,7 @@ const columns: TableProps['columns'] = [
style="width:100%" style="width:100%"
title="确认删除账号吗?" title="确认删除账号吗?"
onConfirm={async () => { onConfirm={async () => {
const resp = await api.delete('/managementSecurityUnitUser/deleteById', { const resp = await api.delete('/management/security/user/deleteById', {
managementSecurityUnitUserId: record.snowFlakeId, managementSecurityUnitUserId: record.snowFlakeId,
}) })
message.success(resp.message) message.success(resp.message)
@ -215,7 +215,7 @@ const submit = async () => {
isEnable: formParams.value.isEnable, isEnable: formParams.value.isEnable,
remark: formParams.value.remark remark: formParams.value.remark
} }
const resp = await api.post('/managementSecurityUnitUser/saveOrUpdate', managementSecurityUnitUserSaveOrUpdateParams) const resp = await api.post('/management/security/user/saveOrUpdate', managementSecurityUnitUserSaveOrUpdateParams)
message.success(resp.message) message.success(resp.message)
tableRef.value?.requestGetTableData() tableRef.value?.requestGetTableData()
closeModal() closeModal()