小程序管理
This commit is contained in:
parent
5825ea2767
commit
423c6c86fb
|
@ -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,
|
||||||
|
|
|
@ -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"
|
||||||
}
|
}
|
|
@ -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",
|
||||||
|
|
|
@ -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',
|
||||||
|
|
|
@ -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="警保风采"
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
|
||||||
|
export default definePageConfig({
|
||||||
|
navigationBarTitleText: '我的项目',
|
||||||
|
})
|
|
@ -0,0 +1,4 @@
|
||||||
|
.myProject{
|
||||||
|
background: red;
|
||||||
|
height: 100vh;
|
||||||
|
}
|
|
@ -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>
|
|
@ -59,6 +59,7 @@ class CustomRequest {
|
||||||
duration: 2000
|
duration: 2000
|
||||||
}).then()
|
}).then()
|
||||||
reject(res.errMsg);
|
reject(res.errMsg);
|
||||||
|
console.log(res.errMsg,'000')
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue