Commit 4aba1a96 by yuwei

2.0.0项目初始化

parent dc74abdc
......@@ -139,6 +139,8 @@ export default {
}
})
this.getDataSourceList()
},
mounted () {
this.getDataSet(this.data.id)
},
methods: {
......
......@@ -159,6 +159,8 @@ export default {
}
})
this.getDataSourceList()
},
mounted () {
this.getDataSet(this.data.id)
},
methods: {
......
......@@ -211,6 +211,8 @@ export default {
},
created () {
this.getList()
},
mounted () {
this.initCols()
},
methods: {
......
......@@ -117,6 +117,8 @@ export default {
this.dbTypeOptions = response.data
}
})
},
mounted () {
this.getDataSource(this.data.id)
},
methods: {
......
......@@ -152,6 +152,8 @@ export default {
this.dbTypeOptions = response.data
}
})
},
mounted () {
this.getDataSource(this.data.id)
},
methods: {
......
......@@ -211,6 +211,8 @@ export default {
},
created () {
this.getList()
},
mounted () {
this.initCols()
},
methods: {
......
......@@ -139,6 +139,8 @@ export default {
this.algorithmCryptoOptions = response.data
}
})
},
mounted () {
this.getApiMask(this.data.id)
},
methods: {
......@@ -161,8 +163,6 @@ export default {
return item.resParams
})
this.form.rules.forEach(rule => {
console.log(rule)
console.log(this.resParamList)
let fieldParamIndex = this.resParamList.findIndex((param) => {
return param.fieldName === rule.fieldName
})
......
......@@ -208,6 +208,8 @@ export default {
this.algorithmCryptoOptions = response.data
}
})
},
mounted () {
this.getApiMask(this.data.id)
},
methods: {
......
......@@ -211,6 +211,8 @@ export default {
},
created () {
this.getList()
},
mounted () {
this.initCols()
},
methods: {
......
......@@ -195,9 +195,11 @@ export default {
this.paramTypeOptions = response.data
}
})
this.getDataApi(this.data.id)
this.getApiHeader(this.data.id)
},
mounted () {
this.getDataApi(this.data.id)
},
methods: {
showCard () {
this.$emit('showCard', this.showOptions)
......
......@@ -163,73 +163,71 @@
</el-row>
</el-form>
<el-form ref="form3" :model="form3" label-width="80px" v-if="active == 3" disabled>
<el-form-item label="请求参数">
<el-table :data="form3.reqParams" stripe border
:max-height="300"
style="width: 100%; margin: 15px 0;">
<el-table-column label="序号" width="55" align="center">
<template slot-scope="scope">
<span>{{ scope.$index +1 }}</span>
</template>
</el-table-column>
<el-table-column prop="paramName" label="参数名称" align="center" show-overflow-tooltip >
</el-table-column>
<el-table-column prop="nullable" label="是否允许为空" align="center" show-overflow-tooltip >
<template slot-scope="scope">
<el-checkbox v-model="scope.row.nullable" true-label="1" false-label="0"></el-checkbox>
</template>
</el-table-column>
<el-table-column prop="remark" label="描述" align="center" show-overflow-tooltip >
</el-table-column>
<el-table-column prop="paramType" label="参数类型" align="center" show-overflow-tooltip >
<template slot-scope="scope">
<el-select v-model="scope.row.paramType" placeholder="请选择参数类型">
<el-option
v-for="dict in paramTypeOptions"
:key="dict.id"
:label="dict.itemValue"
:value="dict.itemText"
></el-option>
</el-select>
</template>
</el-table-column>
<el-table-column prop="whereType" label="操作符" align="center" show-overflow-tooltip >
<template slot-scope="scope">
<el-select v-model="scope.row.whereType" placeholder="请选择操作符">
<el-option
v-for="dict in whereTypeOptions"
:key="dict.id"
:label="dict.itemValue"
:value="dict.itemText"
></el-option>
</el-select>
</template>
</el-table-column>
<el-table-column prop="exampleValue" label="示例值" align="center" show-overflow-tooltip >
</el-table-column>
<el-table-column prop="defaultValue" label="默认值" align="center" show-overflow-tooltip >
</el-table-column>
</el-table>
</el-form-item>
<el-form-item label="返回字段">
<el-table :data="form3.resParams" stripe border
:max-height="300"
style="width: 100%; margin: 15px 0;">
<el-table-column label="序号" width="55" align="center">
<template slot-scope="scope">
<span>{{ scope.$index +1 }}</span>
</template>
</el-table-column>
<el-table-column prop="fieldName" label="字段名称" align="center" show-overflow-tooltip >
</el-table-column>
<el-table-column prop="remark" label="描述" align="center" show-overflow-tooltip >
</el-table-column>
<el-table-column prop="dataType" label="数据类型" align="center" show-overflow-tooltip >
</el-table-column>
<el-table-column prop="exampleValue" label="示例值" align="center" show-overflow-tooltip >
</el-table-column>
</el-table>
</el-form-item>
<el-divider content-position="left">请求参数</el-divider>
<el-table :data="form3.reqParams" stripe border
:max-height="300"
style="width: 100%; margin: 15px 0;">
<el-table-column label="序号" width="55" align="center">
<template slot-scope="scope">
<span>{{ scope.$index +1 }}</span>
</template>
</el-table-column>
<el-table-column prop="paramName" label="参数名称" align="center" show-overflow-tooltip >
</el-table-column>
<el-table-column prop="nullable" label="是否允许为空" align="center" show-overflow-tooltip >
<template slot-scope="scope">
<el-checkbox v-model="scope.row.nullable" true-label="1" false-label="0"></el-checkbox>
</template>
</el-table-column>
<el-table-column prop="remark" label="描述" align="center" show-overflow-tooltip >
</el-table-column>
<el-table-column prop="paramType" label="参数类型" align="center" show-overflow-tooltip >
<template slot-scope="scope">
<el-select v-model="scope.row.paramType" placeholder="请选择参数类型">
<el-option
v-for="dict in paramTypeOptions"
:key="dict.id"
:label="dict.itemValue"
:value="dict.itemText"
></el-option>
</el-select>
</template>
</el-table-column>
<el-table-column prop="whereType" label="操作符" align="center" show-overflow-tooltip >
<template slot-scope="scope">
<el-select v-model="scope.row.whereType" placeholder="请选择操作符">
<el-option
v-for="dict in whereTypeOptions"
:key="dict.id"
:label="dict.itemValue"
:value="dict.itemText"
></el-option>
</el-select>
</template>
</el-table-column>
<el-table-column prop="exampleValue" label="示例值" align="center" show-overflow-tooltip >
</el-table-column>
<el-table-column prop="defaultValue" label="默认值" align="center" show-overflow-tooltip >
</el-table-column>
</el-table>
<el-divider content-position="left">返回字段</el-divider>
<el-table :data="form3.resParams" stripe border
:max-height="300"
style="width: 100%; margin: 15px 0;">
<el-table-column label="序号" width="55" align="center">
<template slot-scope="scope">
<span>{{ scope.$index +1 }}</span>
</template>
</el-table-column>
<el-table-column prop="fieldName" label="字段名称" align="center" show-overflow-tooltip >
</el-table-column>
<el-table-column prop="remark" label="描述" align="center" show-overflow-tooltip >
</el-table-column>
<el-table-column prop="dataType" label="数据类型" align="center" show-overflow-tooltip >
</el-table-column>
<el-table-column prop="exampleValue" label="示例值" align="center" show-overflow-tooltip >
</el-table-column>
</el-table>
</el-form>
<el-button style="margin-top: 12px;" @click="handleNextStep" v-if="active < 3">下一步</el-button>
<el-button style="margin-top: 12px;" @click="handleLastStep" v-if="active > 1">上一步</el-button>
......@@ -389,6 +387,8 @@ export default {
this.paramTypeOptions = response.data
}
})
},
mounted () {
this.getDataApi(this.data.id)
},
methods: {
......
......@@ -216,6 +216,8 @@ export default {
},
created () {
this.getList()
},
mounted () {
this.initCols()
},
methods: {
......
......@@ -62,6 +62,8 @@ export default {
},
created () {
console.log('id:' + this.data.id)
},
mounted () {
this.getLog(this.data.id)
},
methods: {
......
......@@ -184,6 +184,8 @@ export default {
},
created () {
this.getList()
},
mounted () {
this.initCols()
},
methods: {
......
......@@ -89,6 +89,8 @@ export default {
},
created () {
console.log('id:' + this.data.id)
},
mounted () {
this.getLog(this.data.id)
},
methods: {
......
......@@ -202,6 +202,8 @@ export default {
},
created () {
this.getList()
},
mounted () {
this.initCols()
},
methods: {
......
......@@ -83,6 +83,8 @@ export default {
this.statusOptions = response.data
}
})
},
mounted () {
this.getJob(this.data.id)
},
methods: {
......
......@@ -105,6 +105,8 @@ export default {
this.statusOptions = response.data
}
})
},
mounted () {
this.getJob(this.data.id)
},
methods: {
......
......@@ -260,6 +260,8 @@ export default {
},
created () {
this.getList()
},
mounted () {
this.initCols()
},
methods: {
......
......@@ -69,6 +69,8 @@ export default {
this.statusOptions = response.data
}
})
},
mounted () {
this.getLog(this.data.id)
},
methods: {
......
......@@ -196,9 +196,11 @@ export default {
}
},
created () {
this.getJobList()
this.getList()
},
mounted () {
this.initCols()
this.getJobList()
},
methods: {
getJobList () {
......
......@@ -77,6 +77,8 @@ export default {
this.statusOptions = response.data
}
})
},
mounted () {
this.getConfig(this.data.id)
},
methods: {
......
......@@ -96,6 +96,8 @@ export default {
this.statusOptions = response.data
}
})
},
mounted () {
this.getConfig(this.data.id)
},
methods: {
......
......@@ -220,6 +220,8 @@ export default {
},
created () {
this.getList()
},
mounted () {
this.initCols()
},
methods: {
......
......@@ -84,6 +84,8 @@ export default {
}
})
this.getDeptTreeSelect()
},
mounted () {
this.getDept(this.data.id)
},
methods: {
......
......@@ -103,6 +103,8 @@ export default {
}
})
this.getDeptTreeSelect()
},
mounted () {
this.getDept(this.data.id)
},
methods: {
......
......@@ -152,6 +152,8 @@ export default {
},
created () {
this.getList()
},
mounted () {
this.initCols()
},
methods: {
......
......@@ -78,6 +78,8 @@ export default {
this.statusOptions = response.data
}
})
},
mounted () {
this.getDict(this.data.id)
},
methods: {
......
......@@ -94,6 +94,8 @@ export default {
this.statusOptions = response.data
}
})
},
mounted () {
this.getDict(this.data.id)
},
methods: {
......
......@@ -237,6 +237,8 @@ export default {
},
created () {
this.getList()
},
mounted () {
this.initCols()
},
methods: {
......
......@@ -81,6 +81,8 @@ export default {
this.statusOptions = response.data
}
})
},
mounted () {
this.getDictItem(this.data.id)
},
methods: {
......
......@@ -97,6 +97,8 @@ export default {
this.statusOptions = response.data
}
})
},
mounted () {
this.getDictItem(this.data.id)
},
methods: {
......
......@@ -236,6 +236,8 @@ export default {
console.log('data:' + JSON.stringify(this.data))
this.queryParams.dictId = this.data.dictId
this.getList()
},
mounted () {
this.initCols()
},
methods: {
......
......@@ -118,6 +118,8 @@ export default {
}
})
this.getMenuTreeSelect()
},
mounted () {
this.getMenu(this.data.id)
},
methods: {
......
......@@ -137,6 +137,8 @@ export default {
}
})
this.getMenuTreeSelect()
},
mounted () {
this.getMenu(this.data.id)
},
methods: {
......
......@@ -166,6 +166,8 @@ export default {
},
created () {
this.getList()
},
mounted () {
this.initCols()
},
methods: {
......
......@@ -71,6 +71,8 @@ export default {
this.statusOptions = response.data
}
})
},
mounted () {
this.getPost(this.data.id)
},
methods: {
......
......@@ -84,6 +84,8 @@ export default {
this.statusOptions = response.data
}
})
},
mounted () {
this.getPost(this.data.id)
},
methods: {
......
......@@ -211,6 +211,8 @@ export default {
},
created () {
this.getList()
},
mounted () {
this.initCols()
},
methods: {
......
......@@ -139,6 +139,8 @@ export default {
})
this.getMenuTree()
this.getDeptTree()
},
mounted () {
this.getRole(this.data.id)
},
methods: {
......
......@@ -155,6 +155,8 @@ export default {
})
this.getMenuTree()
this.getDeptTree()
},
mounted () {
this.getRole(this.data.id)
},
methods: {
......
......@@ -218,6 +218,8 @@ export default {
},
created () {
this.getList()
},
mounted () {
this.initCols()
},
methods: {
......
......@@ -128,6 +128,8 @@ export default {
this.getDeptTreeSelect()
this.getPostList()
this.getRoleList()
},
mounted () {
this.getUser(this.data.id)
},
methods: {
......
......@@ -163,6 +163,8 @@ export default {
this.getDeptTreeSelect()
this.getPostList()
this.getRoleList()
},
mounted () {
this.getUser(this.data.id)
},
methods: {
......
......@@ -281,6 +281,8 @@ export default {
created () {
this.getList()
this.getDeptTree()
},
mounted () {
this.initCols()
},
methods: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment