This commit is contained in:
fan 2021-07-12 16:40:41 +08:00
parent eb7b59078a
commit 8db9414cfa
2 changed files with 10 additions and 10 deletions

View File

@ -4,7 +4,7 @@ export function getBaseUrl() {
// BASE_API = 'https://joylink.club/jlcloud';
// BASE_API = 'https://test.joylink.club/jlcloud';
// BASE_API = 'http://192.168.8.107:9000'; // 袁琪
BASE_API = 'http://192.168.3.250:9000'; // 旭强 有线
BASE_API = 'http://192.168.2.175:9000'; // 旭强 有线
// BASE_API = 'http://192.168.8.114:9000'; // 旭强 无线
// BASE_API = 'http://192.168.3.120:9000'; // 张赛
// BASE_API = 'http://192.168.8.140:9000'; // 杜康

View File

@ -1,16 +1,16 @@
<template>
<jl-model-builder @save="onSave" :composeName="name" :model="model" :id="id" :type="type" />
<jl-model-builder :id="id" :compose-name="name" :model="model" :type="type" @save="onSave" />
</template>
<script>
import { updateModelDraftData, getModelDraftData } from "@/api/management/model";
import { updateModelDraftData, getModelDraftData } from '@/api/management/model';
export default {
name: "editModel",
name: 'EditModel',
data() {
return {
name: "",
id: "",
type: "",
name: '',
id: '',
type: '',
model: {}
};
},
@ -23,7 +23,7 @@ export default {
getModelDraftData(this.id).then(res => {
const data = res.data;
this.name = data.name;
this.type = data.type || "";
this.type = data.type || '';
this.model = data.jsonData ? JSON.parse(data.jsonData) : {};
});
},
@ -36,10 +36,10 @@ export default {
};
updateModelDraftData(data)
.then(resp => {
this.$message("保存成功");
this.$message('保存成功');
})
.catch(e => {
this.$message("error", e);
this.$message('error', e);
});
}
}