修改
This commit is contained in:
@@ -178,6 +178,12 @@ uni-button:after {
|
||||
border-left: 6rpx solid #ff8227;
|
||||
}
|
||||
|
||||
.slide_new table tr td.wrap{
|
||||
line-height: 28rpx;
|
||||
white-space: normal;
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
.item-wrapper {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
|
||||
@@ -45,6 +45,7 @@
|
||||
};
|
||||
},
|
||||
created () {
|
||||
this.$store.dispatch('setPublicObj', '')
|
||||
if (this.$store.getters.userInfo) {
|
||||
this.userName = JSON.parse(this.$store.getters.userInfo).username
|
||||
}
|
||||
|
||||
@@ -91,7 +91,7 @@
|
||||
} else {
|
||||
this.$store.dispatch('delLoginName', '')
|
||||
}
|
||||
this.$store.dispatch('saveUserInfo', JSON.stringify(res.user.user))
|
||||
this.$store.dispatch('saveUserInfo', JSON.stringify(res.data.user))
|
||||
this.$store.dispatch('saveToken', res.token)
|
||||
uni.redirectTo({
|
||||
url: '/pages/home/home'
|
||||
|
||||
@@ -7,10 +7,10 @@
|
||||
<view class="setup-label">LMS地址</view>
|
||||
<input type="text" class="setup-input" placeholder="请输入服务器地址" v-model="addrip">
|
||||
</view>
|
||||
<view class="setup-item">
|
||||
<!-- <view class="setup-item">
|
||||
<view class="setup-label">ACS地址</view>
|
||||
<input type="text" class="setup-input" placeholder="请输入ACS地址" v-model="acsip">
|
||||
</view>
|
||||
</view> -->
|
||||
<!-- <view class="setup-item">
|
||||
<view class="setup-label">刷新时间(s)</view>
|
||||
<input type="text" class="setup-input" placeholder="请输入刷新时间" v-model="setTime">
|
||||
|
||||
@@ -19,14 +19,14 @@
|
||||
<thead>
|
||||
<tr>
|
||||
<th>物料名称</th>
|
||||
<th>物料规格</th>
|
||||
<th><view style="width: 300rpx;">物料规格</view></th>
|
||||
<th>物料编码</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr v-for="(e, i) in dataList" :key="i" :class="{'checked': e.material_id === pkId}" @tap="toCheck(e)">
|
||||
<td>{{e.material_name}}</td>
|
||||
<td>{{e.material_spec}}</td>
|
||||
<td class="wrap">{{e.material_spec}}</td>
|
||||
<td>{{e.material_code}}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@@ -83,10 +83,9 @@
|
||||
},
|
||||
async _getMaterialList () {
|
||||
let res = await getMaterialList( this.val1, this.pageNum + '', this.pageSize + '')
|
||||
// this.dataList = res.data
|
||||
this.totalCount = res.totalElements
|
||||
if (res.totalElements > 0) {
|
||||
const dataMap = res.data
|
||||
const dataMap = res.content
|
||||
this.dataList = this.reload ? dataMap : this.dataList.concat(dataMap)
|
||||
this.reload = false
|
||||
} else {
|
||||
|
||||
@@ -118,6 +118,7 @@
|
||||
this.currentData = {}
|
||||
this.index = ''
|
||||
this.disabled = false
|
||||
this.$store.dispatch('setPublicObj', '')
|
||||
},
|
||||
async _groupPlate () {
|
||||
this.disabled = true
|
||||
@@ -132,6 +133,7 @@
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
})
|
||||
this.toEmpty()
|
||||
this.disabled = false
|
||||
} catch (e) {
|
||||
this.disabled = false
|
||||
|
||||
Reference in New Issue
Block a user