|
|
@@ -3,14 +3,15 @@
|
|
|
<div>
|
|
|
<form @submit="formSubmit">
|
|
|
<div class="module-com input-line-wrap">
|
|
|
-
|
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
|
<div class="tui-title">编号(SN):</div>
|
|
|
<input v-model="form.makeLbSn" placeholder-class="phcolor" class="tui-input" name="makeLbSn" placeholder="请填写编号" maxlength="50" type="number" />
|
|
|
</tui-list-cell>
|
|
|
-
|
|
|
+ <tui-list-cell class="line-cell" :hover="false">
|
|
|
+ <div class="tui-title">版本号:</div>
|
|
|
+ <input v-model="form.makeLbVersion" placeholder-class="phcolor" class="tui-input" name="makeLbVersion" placeholder="请填写编号" maxlength="50" type="number" />
|
|
|
+ </tui-list-cell>
|
|
|
</div>
|
|
|
-
|
|
|
<div class="confirm-btn">
|
|
|
<button class="admin-button-com big blue" formType="submit">
|
|
|
提交
|
|
|
@@ -20,12 +21,10 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
|
-
|
|
|
<script>
|
|
|
-import TuiListCell from "@/components/plugin/list-cell";
|
|
|
-import AppAvatarModule from "@/components/module/app-avatar";
|
|
|
-const form = require("@/utils/formValidation.js");
|
|
|
-import { getLb,addCloudLb } from "@/api/shop";
|
|
|
+import TuiListCell from "@/components/plugin/list-cell"
|
|
|
+import AppAvatarModule from "@/components/module/app-avatar"
|
|
|
+import { getLb,addCloudLb } from "@/api/shop"
|
|
|
export default {
|
|
|
name: "makeTrumpet",
|
|
|
components: {
|
|
|
@@ -35,7 +34,8 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
form: {
|
|
|
- makeLbSn: ""
|
|
|
+ makeLbSn: "",
|
|
|
+ makeLbVersion:0
|
|
|
}
|
|
|
};
|
|
|
},
|
|
|
@@ -43,11 +43,10 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
async init() {
|
|
|
- try {
|
|
|
const { data } = await getLb();
|
|
|
this.form.makeLbSn = data.makeLbSn;
|
|
|
- this.$forceUpdate();
|
|
|
- } finally {}
|
|
|
+ this.form.makeLbVersion = data.makeLbVersion
|
|
|
+ this.$forceUpdate()
|
|
|
},
|
|
|
confirmFn() {
|
|
|
addCloudLb(this.form).then((res) => {
|
|
|
@@ -60,13 +59,6 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
formSubmit(e) {
|
|
|
- let rules = [
|
|
|
- {
|
|
|
- name: "makeLbSn",
|
|
|
- rule: ["required"],
|
|
|
- msg: ["请填写编号"],
|
|
|
- }
|
|
|
- ]
|
|
|
this.confirmFn();
|
|
|
},
|
|
|
},
|