Commit 4aba1a96 by yuwei

2.0.0项目初始化

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