| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364 |
- <template>
- <view>
- <view class="white">
- <view class="title">
- <text class="param">参数修正</text>
- <view class="tiao"></view>
- </view>
- <form>
- <view class="setmenu">
- <view class="setItem">
- <view class="text">
- <text>排风温度修正</text>
- </view>
- <view class="input">
- <input style="margin-left: 20rpx;" placeholder="请输入" v-model="formData.WD1_XZ" />
- <view class="danwei">
- <text style="margin-left: 10rpx;">℃</text>
- </view>
- </view>
- </view>
- <view class="setItem">
- <view class="text">
- <text>排风湿度修正</text>
- </view>
- <view class="input">
- <input style="margin-left: 20rpx;" placeholder="请输入" v-model="formData.SD1_XZ" />
- <view class="danwei"> <text style="margin-left: 14rpx;">%</text></view>
- </view>
- </view>
- <view class="setItem">
- <view class="text">
- <text>加热比例</text>
- </view>
- <view class="input">
- <input style="margin-left: 20rpx;" placeholder="请输入" v-model="formData.JR_P" />
- </view>
- </view>
- <view class="setItem">
- <view class="text">
- <text>加热积分</text>
- </view>
- <view class="input">
- <input style="margin-left: 20rpx;" placeholder="请输入" v-model="formData.JR_I" />
- </view>
- </view>
- <view class="setItem">
- <view class="text">
- <text>降温比例</text>
- </view>
- <view class="input">
- <input style="margin-left: 20rpx;" placeholder="请输入" v-model="formData.ZL_P" />
- </view>
- </view>
- <view class="setItem">
- <view class="text">
- <text>降温积分</text>
- </view>
- <view class="input">
- <input style="margin-left: 20rpx;" placeholder="请输入" v-model="formData.ZL_I" />
- </view>
- </view>
- <view class="setItem">
- <view class="text">
- <text>加湿比例</text>
- </view>
- <view class="input">
- <input style="margin-left: 20rpx;" placeholder="请输入" v-model="formData.JS_P" />
- </view>
- </view>
- <view class="setItem">
- <view class="text">
- <text>加湿积分</text>
- </view>
- <view class="input">
- <input style="margin-left: 20rpx;" placeholder="请输入" v-model="formData.JS_I" />
- </view>
- </view>
- <view class="setItem">
- <view class="text">
- <text>除湿比例</text>
- </view>
- <view class="input">
- <input style="margin-left: 20rpx;" placeholder="请输入" v-model="formData.CS_P" />
- </view>
- </view>
- <view class="setItem">
- <view class="text">
- <text>除湿积分</text>
- </view>
- <view class="input">
- <input style="margin-left: 20rpx;" placeholder="请输入" v-model="formData.CS_I" />
- </view>
- </view>
- <view class="stopButton">
- <button class="button" @tap="edit">修改按钮</button>
- </view>
- </view>
- </form>
- <view class="anniu">
- <image class="anniu" src="../../static/设备菜单/前往列表@2x.png" @tap="back"></image>
- </view>
- </view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- formData: {
- ZL_P: '0.0', //制冷回路增益P
- ZL_I: '0.0', //制冷积分时间I
- CS_P: '0.0', //除湿回路增益P
- CS_I: '0.0', //除湿积分时间I
- JR_P: '0.0', //加热回路增益P
- JR_I: '0.0', //加热积分时间I
- JS_P: '0.0', //加湿回路增益P
- JS_I: '0.0', //加湿积分时间I
- WD1_XZ: '0.0', //排风温度修正(单位为℃)
- SD1_XZ: '0.0', //排风湿度修正(单位为%RH)
- }
- }
- },
- onLoad() {
- this.getWDXZ()
- this.getSDXZ()
- this.getJR_I()
- this.getJR_P()
- this.getJW_I()
- this.getJW_P()
- this.getJS_I()
- this.getJS_P()
- this.getCS_I()
- this.getCS_P()
- },
- methods: {
- async edit(e) {
- let vm = this;
- let url = uni.$api.deviceParam.update;
- let data = {
- name: this.formData.name,
- };
- let res = await uni.$http.get(url, data);
-
- console.log(res);
-
- },
-
- back() {
- uni.navigateTo({
- url: '/pages/device/deviceInfo/deviceInfo'
- })
- },
- async getWDXZ(e) {
- let vm = this;
- let url = uni.$api.deviceParam.detail;
- let data = {
- id: "232",
- };
- let res = await uni.$http.get(url, data);
- this.formData.WD1_XZ = res.data.data.deviceParam.value;
- },
- async getSDXZ(e) {
- let vm = this;
- let url = uni.$api.deviceParam.detail;
- let data = {
- id: "278",
- };
- let res = await uni.$http.get(url, data);
- this.formData.SD1_XZ = res.data.data.deviceParam.value;
- },
- async getJR_P(e) {
- let vm = this;
- let url = uni.$api.deviceParam.detail;
- let data = {
- id: "224",
- };
- let res = await uni.$http.get(url, data);
- this.formData.JR_P = res.data.data.deviceParam.value;
- },
- async getJR_I(e) {
- let vm = this;
- let url = uni.$api.deviceParam.detail;
- let data = {
- id: "218",
- };
- let res = await uni.$http.get(url, data);
- this.formData.JR_I = res.data.data.deviceParam.value;
- },
- async getJW_P(e) {
- let vm = this;
- let url = uni.$api.deviceParam.detail;
- let data = {
- id: "267",
- };
- let res = await uni.$http.get(url, data);
- this.formData.ZL_P = res.data.data.deviceParam.value;
- },
- async getJW_I(e) {
- let vm = this;
- let url = uni.$api.deviceParam.detail;
- let data = {
- id: "233",
- };
- let res = await uni.$http.get(url, data);
- this.formData.ZL_I = res.data.data.deviceParam.value;
- },
- async getJS_P(e) {
- let vm = this;
- let url = uni.$api.deviceParam.detail;
- let data = {
- id: "294",
- };
- let res = await uni.$http.get(url, data);
- this.formData.JS_P = res.data.data.deviceParam.value;
- },
- async getJS_I(e) {
- let vm = this;
- let url = uni.$api.deviceParam.detail;
- let data = {
- id: "290",
- };
- let res = await uni.$http.get(url, data);
- this.formData.JS_I = res.data.data.deviceParam.value;
- },
- async getCS_P(e) {
- let vm = this;
- let url = uni.$api.deviceParam.detail;
- let data = {
- id: "237",
- };
- let res = await uni.$http.get(url, data);
- this.formData.CS_P = res.data.data.deviceParam.value;
- },
- async getCS_I(e) {
- let vm = this;
- let url = uni.$api.deviceParam.detail;
- let data = {
- id: "216",
- };
- let res = await uni.$http.get(url, data);
- this.formData.CS_I = res.data.data.deviceParam.value;
- }
- }
- }
- </script>
- <style>
- .button {
- background: #007AFF;
- color: white;
- width: 654rpx;
- margin-left: 24rpx;
- margin-top: 44rpx;
- }
- .text {
- margin-top: 40rpx;
- margin-bottom: 16rpx;
- color: #444546;
- font-size: 26rpx;
- }
- .input {
- width: 320rpx;
- height: 98rpx;
- background-color: #eaeaea;
- display: flex;
- flex-direction: row;
- align-items: center;
- border-radius: 6rpx;
- border: 1px solid #eaeaea;
- }
- .danwei {
- width: 78rpx;
- height: 98rpx;
- background-color: white;
- display: flex;
- align-items: center;
- }
- .setmenu {
- display: flex;
- flex-wrap: wrap;
- }
- .setItem {
- margin-left: 20rpx;
- }
- .white {
- width: 702rpx;
- height: 1230rpx;
- margin-left: 24rpx;
- margin-top: 24rpx;
- border-radius: 10rpx;
- background-color: white;
- }
- .title {
- display: flex;
- flex-direction: column;
- align-items: center;
- }
- .tiao {
- width: 60px;
- height: 3px;
- margin-top: 20rpx;
- background: #007AFF;
- }
- .param {
- font-size: 38rpx;
- font-weight: 550;
- margin-top: 40rpx;
- }
- .anniu {
- width: 116rpx;
- height: 116rpx;
- float: right;
- margin-top: 20rpx;
- }
- </style>
|