问题反馈修改

This commit is contained in:
仲么了
2023-08-29 16:14:09 +08:00
parent 7c79eddc05
commit 38b827af46
23 changed files with 330 additions and 144 deletions

View File

@@ -17,6 +17,7 @@
@input="store.search()"></uni-search-bar>
<view class="message">
<uni-card :title="item.name" @click="jump(item)"
extra="🔍"
v-for="(item, index) in store.data" :key="index"
:style="{marginTop:index===0?'0':''}">
<view class="term-list-bottom">
@@ -30,7 +31,7 @@
</view>
</view>
</uni-card>
<Cn-empty v-if="store.empty" style="padding-top: 200px"></Cn-empty>
<Cn-empty v-if="store.empty" style="padding-top: 400rpx"></Cn-empty>
<uni-load-more v-if="store.data && store.data.length > 0" :status="store.status"></uni-load-more>
</view>
</view>
@@ -48,10 +49,11 @@ export default {
}
},
methods: {
init() {
init(engineeringId) {
this.userInfo = uni.getStorageSync(this.$cacheKey.userInfo)
this.store = this.DataSource('/cs-device-boot/project/queryProject')
this.store.params.searchValue = ''
this.store.params.engineeringId = engineeringId || ''
this.store.reload()
},
back() {
@@ -84,8 +86,8 @@ export default {
})
},
},
onLoad() {
this.init()
onLoad({engineeringId}) {
this.init(engineeringId)
},
}
</script>

View File

@@ -7,7 +7,7 @@
<uni-forms-item label="工程名称" @click.native.stop.prevent="selectEngineering">
<uni-easyinput
v-model="formData.engineeringName"
placeholder="请输入项目名称"
placeholder="请选择工程"
:clearable="false"
:disabled="true"
/>
@@ -37,6 +37,7 @@
<uni-easyinput
type="textarea"
autoHeight
maxlength="999"
v-model="formData.description"
placeholder="请输入项目描述"
/>
@@ -127,9 +128,12 @@ export default {
},
onShow() {
if (!this.options.project) {
let engineering = uni.getStorageSync(this.$cacheKey.engineering)
this.formData.engineeringId = engineering.id
this.formData.engineeringName = engineering.name
let engineering = uni.getStorageSync('projectSelectEngineering')
if (engineering) {
uni.removeStorageSync('projectSelectEngineering')
this.formData.engineeringId = engineering.id
this.formData.engineeringName = engineering.name
}
}
},
onLoad(options) {
@@ -145,6 +149,10 @@ export default {
this.formData[key] = this.project[key]
}
}
} else {
let engineering = uni.getStorageSync('engineering')
this.formData.engineeringId = engineering.id
this.formData.engineeringName = engineering.name
}
uni.getLocation({
type: 'wgs84',
@@ -175,9 +183,10 @@ export default {
},
methods: {
selectEngineering() {
if (this.options.project) return
console.log(123)
if (this.options.project) return this.$util.toast('项目已经创建,不能修改工程')
uni.navigateTo({
url: '/pages/home/selectEngineering',
url: '/pages/home/selectEngineering?from=projectNew',
})
},
beforeRemove(e) {
@@ -322,11 +331,14 @@ export default {
background: #fff !important;
color: #111;
}
.new {
padding: 34rpx;
.project-new{
.project-new {
}
.content {
.content-des {
font-size: 28rpx;