Browse Source

修改参数和样式

master
lijuncheng 8 months ago
parent
commit
0126eb0652
  1. 10
      src/mycomponents/form/customerFrom.vue
  2. 16
      src/mycomponents/scan/winComScanNormal.vue
  3. 12
      src/pages/foam/check.vue
  4. 13
      src/pages/foam/input.vue
  5. 2
      src/pages/index/index.vue
  6. 7
      src/pages/setter/index.vue

10
src/mycomponents/form/customerFrom.vue

@ -29,7 +29,7 @@
<view class="uni-flex" style="width: 50%; margin-left: 0rpx;"
v-for="(radio, index) in dataList" :key="index">
<view class="uni-flex " style="margin-top: 10rpx; justify-content: flex-start;">
<u-radio :name="radio.name" @change="radioChange(radio)">
<u-radio size="45" labelSize="35" iconSize="40" :name="radio.name" @change="radioChange(radio)">
{{radio.name}}
</u-radio>
</view>
@ -73,7 +73,7 @@
<view class="uni-flex" style="width: 50%; margin-left: 0rpx;"
v-for="(radio, index) in dataInputList" :key="index">
<view class="uni-flex " style="margin-top: 10rpx; justify-content: flex-start;">
<u-radio :name="radio.name" @change="radioChange(radio)">
<u-radio size="45" labelSize="35" iconSize="40" :name="radio.name" @change="radioChange(radio)">
{{radio.name}}
</u-radio>
</view>
@ -105,8 +105,6 @@
</view>
</view>
</view>
<view class="">
<view class="" style="margin-left: 50rpx;" v-if="item.Methond!='压力表示数范围2.5bar~4.5bar'">
@ -119,7 +117,7 @@
<view class="uni-flex" style="width: 50%; margin-left: 0rpx;"
v-for="(radio, index) in dataInputList" :key="index">
<view class="uni-flex " style="margin-top: 10rpx; justify-content: flex-start;">
<u-radio :name="radio.name" @change="radioChange(radio)">
<u-radio size="45" labelSize="35" iconSize="40" :name="radio.name" @change="radioChange(radio)">
{{radio.name}}
</u-radio>
</view>
@ -166,7 +164,7 @@
<view class="uni-flex" style="width: 50%; margin-left: 0rpx;"
v-for="(radio, index) in dataClassList" :key="index">
<view class="uni-flex " style="margin-top: 10rpx; justify-content: flex-start;">
<u-radio :name="radio.name" @change="radioChange(radio)">
<u-radio size="45" labelSize="35" iconSize="40" :name="radio.name" @change="radioChange(radio)">
{{radio.name}}
</u-radio>
</view>

16
src/mycomponents/scan/winComScanNormal.vue

@ -107,14 +107,14 @@
hide() {
// #ifdef APP-PLUS
//
var interval = setInterval(function() {
uni.hideKeyboard(); //
console.log('刷新')
}, 5);
setTimeout(() => {
clearInterval(interval);
console.log('停止刷新')
}, 1000);
// var interval = setInterval(function() {
// uni.hideKeyboard(); //
// console.log('')
// }, 5);
// setTimeout(() => {
// clearInterval(interval);
// console.log('')
// }, 1000);
// #endif
},
getValue() {

12
src/pages/foam/check.vue

@ -77,7 +77,7 @@
dateTime: "",
deviceCode: "",
deviceName: "",
worker: this.$store.state.user.id,
worker: this.$store.state.user.name,
dataList: [],
formData: [{
type: "stateSelect",
@ -260,10 +260,20 @@
return
}
this.$refs.customerFrom.submit(data => {
var groupName="";
var groupValue=""
data.forEach(res=>{
if(res.Type=="4"){
groupName=res.SelectName;
groupValue=res.SelectValue;
}
})
var commitData={
LoginUserID:this.$store.state.user.id,
UserName:this.$store.state.user.name,
createTime:getCurrDateTime(),
groupName:groupName,
groupValue:groupValue,
dataList:data
}
var param = commitData

13
src/pages/foam/input.vue

@ -41,7 +41,8 @@
</uni-section>
<view class="uni-flex space-between">
<view class="" style="width: 80%;">
<input class="input" v-model="materialName" />
<!-- <input id='inputSelect' class="input" v-model="materialName" @focus="render._inputFocus" /> -->
<input id='inputSelect' class="input" v-model="materialName" @focus="render._inputFocus" />
</view>
<view class="uni-flex" style="width: 20%; align-items: center;">
<button type="primary" size="mini" @click="showMaterialSelect">原料</button>
@ -83,7 +84,15 @@
</template>
<script module="render" lang="renderjs">
export default {
methods: {
_inputFocus (event) {
document.querySelector('#inputSelect input').select()
}
}
}
</script>
<script>
import {
simulationReqGetList,

2
src/pages/index/index.vue

@ -140,7 +140,7 @@
if (this.backButtonPress > 1) {
plus.runtime.quit();
} else {
plus.nativeUI.toast('再滑一次退出应用11');
plus.nativeUI.toast('再按一次退出应用');
}
setTimeout(function() {
this.backButtonPress = 0;

7
src/pages/setter/index.vue

@ -57,8 +57,7 @@
const app = createApp({});
// app.component({
// });
const userName = ref(store.state.user.id);
let test = ref("123");
const userName = ref(store.state.user.name);
let version = ref();
let userInfo = ref(null);
onLoad(() => {
@ -71,10 +70,6 @@
// })
})
uni.$on('getName', function(data) {
console.log('我在B页面选择了:', data);
uni.$off('getName'); //
})
});

Loading…
Cancel
Save