Browse Source

修改参数和样式

master
lijuncheng 7 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;" <view class="uni-flex" style="width: 50%; margin-left: 0rpx;"
v-for="(radio, index) in dataList" :key="index"> v-for="(radio, index) in dataList" :key="index">
<view class="uni-flex " style="margin-top: 10rpx; justify-content: flex-start;"> <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}} {{radio.name}}
</u-radio> </u-radio>
</view> </view>
@ -73,7 +73,7 @@
<view class="uni-flex" style="width: 50%; margin-left: 0rpx;" <view class="uni-flex" style="width: 50%; margin-left: 0rpx;"
v-for="(radio, index) in dataInputList" :key="index"> v-for="(radio, index) in dataInputList" :key="index">
<view class="uni-flex " style="margin-top: 10rpx; justify-content: flex-start;"> <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}} {{radio.name}}
</u-radio> </u-radio>
</view> </view>
@ -105,8 +105,6 @@
</view> </view>
</view> </view>
</view> </view>
<view class=""> <view class="">
<view class="" style="margin-left: 50rpx;" v-if="item.Methond!='压力表示数范围2.5bar~4.5bar'"> <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;" <view class="uni-flex" style="width: 50%; margin-left: 0rpx;"
v-for="(radio, index) in dataInputList" :key="index"> v-for="(radio, index) in dataInputList" :key="index">
<view class="uni-flex " style="margin-top: 10rpx; justify-content: flex-start;"> <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}} {{radio.name}}
</u-radio> </u-radio>
</view> </view>
@ -166,7 +164,7 @@
<view class="uni-flex" style="width: 50%; margin-left: 0rpx;" <view class="uni-flex" style="width: 50%; margin-left: 0rpx;"
v-for="(radio, index) in dataClassList" :key="index"> v-for="(radio, index) in dataClassList" :key="index">
<view class="uni-flex " style="margin-top: 10rpx; justify-content: flex-start;"> <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}} {{radio.name}}
</u-radio> </u-radio>
</view> </view>

16
src/mycomponents/scan/winComScanNormal.vue

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

12
src/pages/foam/check.vue

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

13
src/pages/foam/input.vue

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

2
src/pages/index/index.vue

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

7
src/pages/setter/index.vue

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

Loading…
Cancel
Save