Commit fa6d415f by 匡雅琴

接口联调

1 parent f23f3042
...@@ -247,9 +247,9 @@ export default defineComponent({ ...@@ -247,9 +247,9 @@ export default defineComponent({
} }
//获取config //获取config
let params = { moduleUrl: "base" }; // let params = { moduleUrl: "base" };
let result = await getConfig(params); // let result = await getConfig(params);
console.log("result: ", result); // console.log("result: ", result);
}; };
getData(); getData();
......
...@@ -185,7 +185,7 @@ const isUniqueName = async () => { ...@@ -185,7 +185,7 @@ const isUniqueName = async () => {
class="demo-ruleForm" class="demo-ruleForm"
> >
<el-form-item label="配置项标识" prop="uniqueName"> <el-form-item label="配置项标识" prop="uniqueName">
<el-input v-model="ruleForm.uniqueName" :disabled="isEdit" @blur="isUniqueName"> <el-input v-model="ruleForm.uniqueName" :disabled="isEdit" @blur="isUniqueName" maxlength="20">
<template #prepend>@</template> <template #prepend>@</template>
</el-input> </el-input>
</el-form-item> </el-form-item>
......
...@@ -67,10 +67,8 @@ onBeforeMount(() => { ...@@ -67,10 +67,8 @@ onBeforeMount(() => {
const getModelData = async () => { const getModelData = async () => {
let { code, data } = await getmodelList(); let { code, data } = await getmodelList();
if (code === 200) { if (code === 200) {
console.log(data);
tabData[1].children = [] tabData[1].children = []
tabData[1].children.push(...data) tabData[1].children.push(...data)
console.log(tabData[1]);
} }
}; };
...@@ -79,9 +77,10 @@ const getModelData = async () => { ...@@ -79,9 +77,10 @@ const getModelData = async () => {
const getConfigData = async () => { const getConfigData = async () => {
let { code, data } = await getconfigList(); let { code, data } = await getconfigList();
if (code === 200) { if (code === 200) {
console.log(data);
tabData[0].children = [] tabData[0].children = []
tabData[0].children.push(...data) tabData[0].children.push(...data)
console.log(tabData[0]);
} }
}; };
...@@ -145,7 +144,7 @@ const clickTabShow = (index: number) => { ...@@ -145,7 +144,7 @@ const clickTabShow = (index: number) => {
:key="inx" :key="inx"
@click="clickSubItem(index, itm)" @click="clickSubItem(index, itm)"
> >
{{ itm.templateName || itm.name }} {{ itm.templateName || itm.uniqueName }}
</div> </div>
</template> </template>
</div> </div>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!