接口对接

This commit is contained in:
仲么了
2023-07-03 20:29:24 +08:00
parent 5f67499e57
commit 77fd768acf
32 changed files with 587 additions and 1319 deletions

View File

@@ -191,7 +191,7 @@ export default {
})
},
init() {
this.store = this.DataSource('/EquipmentDelivery/queryEquipmentByProject')
this.store = this.DataSource('/cs-device-boot/EquipmentDelivery/queryEquipmentByProject')
this.store.params.projectId = this.project.id
this.store.reload()
@@ -212,12 +212,12 @@ export default {
},
onLoad(option) {
let userInfo = uni.getStorageSync('userInfo')
if (userInfo.role == '3') {
if (userInfo.authorities == '3') {
this.content.push({
iconPath: '/static/transfer.png',
text: '移交',
})
} else if (userInfo.role == '4') {
} else if (userInfo.authorities == '4') {
this.content.push({
iconPath: '/static/share.png',
text: '分享',

View File

@@ -6,7 +6,7 @@
:fixed="true"
status-bar
left-icon="left"
:rightIcon="userInfo.role == '2' ? '' : 'plusempty'"
:rightIcon="userInfo.authorities == '2' ? '' : 'plusempty'"
background-color="#fff"
color="#111"
title="项目管理"
@@ -44,7 +44,8 @@ export default {
},
methods: {
init() {
this.store = this.DataSource('/project/queryProject')
this.store = this.DataSource('/cs-device-boot/project/queryProject')
this.store.params.engineeringId = uni.getStorageSync('engineering')?.id
this.store.reload()
},
back() {
@@ -76,8 +77,6 @@ export default {
<style lang="scss">
.message {
padding-top: 20rpx;
.message-header {
padding: 200rpx 34rpx 34rpx;
display: flex;

View File

@@ -54,7 +54,7 @@
<script>
import { pinyin } from 'pinyin-pro'
import { addAppProject } from '../../common/api/project'
import { queryEngineering } from '@/common/api/gc.js'
import { queryEngineering } from '@/common/api/engineering.js'
export default {
data() {
return {