|
@@ -3,28 +3,25 @@
|
|
|
<div>
|
|
<div>
|
|
|
<form @submit="formSubmit">
|
|
<form @submit="formSubmit">
|
|
|
<div class="module-com input-line-wrap">
|
|
<div class="module-com input-line-wrap">
|
|
|
-
|
|
|
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
|
<div class="tui-title">编号(SN):</div>
|
|
<div class="tui-title">编号(SN):</div>
|
|
|
<input v-model="form.lbSn" placeholder-class="phcolor" class="tui-input" name="lbSn" placeholder="请填写编号" maxlength="50" type="number" />
|
|
<input v-model="form.lbSn" placeholder-class="phcolor" class="tui-input" name="lbSn" placeholder="请填写编号" maxlength="50" type="number" />
|
|
|
</tui-list-cell>
|
|
</tui-list-cell>
|
|
|
-
|
|
|
|
|
|
|
+ <tui-list-cell class="line-cell" :hover="false">
|
|
|
|
|
+ <div class="tui-title">版本号:</div>
|
|
|
|
|
+ <input v-model="form.lbVersion" placeholder-class="phcolor" class="tui-input" name="lbVersion" placeholder="请填写版本号" maxlength="50" type="number" />
|
|
|
|
|
+ </tui-list-cell>
|
|
|
</div>
|
|
</div>
|
|
|
-
|
|
|
|
|
<div class="confirm-btn">
|
|
<div class="confirm-btn">
|
|
|
- <button class="admin-button-com big blue" formType="submit">
|
|
|
|
|
- 提交
|
|
|
|
|
- </button>
|
|
|
|
|
|
|
+ <button class="admin-button-com big blue" formType="submit"> 提交 </button>
|
|
|
</div>
|
|
</div>
|
|
|
</form>
|
|
</form>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
-
|
|
|
|
|
<script>
|
|
<script>
|
|
|
import TuiListCell from "@/components/plugin/list-cell";
|
|
import TuiListCell from "@/components/plugin/list-cell";
|
|
|
import AppAvatarModule from "@/components/module/app-avatar";
|
|
import AppAvatarModule from "@/components/module/app-avatar";
|
|
|
-const form = require("@/utils/formValidation.js");
|
|
|
|
|
import { getLb,addCloudLb } from "@/api/shop";
|
|
import { getLb,addCloudLb } from "@/api/shop";
|
|
|
export default {
|
|
export default {
|
|
|
name: "trumpet",
|
|
name: "trumpet",
|
|
@@ -35,17 +32,17 @@ export default {
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
form: {
|
|
form: {
|
|
|
- lbSn: ""
|
|
|
|
|
|
|
+ lbSn: "",
|
|
|
|
|
+ lbVersion:0
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
async init() {
|
|
async init() {
|
|
|
- try {
|
|
|
|
|
const { data } = await getLb();
|
|
const { data } = await getLb();
|
|
|
- this.form.lbSn = data.lbSn;
|
|
|
|
|
|
|
+ this.form.lbSn = data.lbSn
|
|
|
|
|
+ this.form.lbVersion = data.lbVersion
|
|
|
this.$forceUpdate();
|
|
this.$forceUpdate();
|
|
|
- } finally {}
|
|
|
|
|
},
|
|
},
|
|
|
confirmFn() {
|
|
confirmFn() {
|
|
|
addCloudLb(this.form).then((res) => {
|
|
addCloudLb(this.form).then((res) => {
|
|
@@ -58,19 +55,11 @@ export default {
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
formSubmit(e) {
|
|
formSubmit(e) {
|
|
|
- let rules = [
|
|
|
|
|
- {
|
|
|
|
|
- name: "lbSn",
|
|
|
|
|
- rule: ["required"],
|
|
|
|
|
- msg: ["请填写编号"],
|
|
|
|
|
- }
|
|
|
|
|
- ]
|
|
|
|
|
this.confirmFn();
|
|
this.confirmFn();
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
};
|
|
};
|
|
|
</script>
|
|
</script>
|
|
|
-
|
|
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
|
.app-content {
|
|
.app-content {
|
|
|
min-height: calc(100vh - 20upx);
|
|
min-height: calc(100vh - 20upx);
|