|
|
@@ -197,7 +197,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { getAppTypeList, getBuildDeployList, getEnvList } from '@/api/devops'
|
|
|
+import { getBuildDeployList, getEnvList } from '@/api/devops'
|
|
|
|
|
|
export default {
|
|
|
name: 'BuildDeploy',
|
|
|
@@ -207,7 +207,7 @@ export default {
|
|
|
appTypeList: [],
|
|
|
queryInfo: {
|
|
|
env: 'test',
|
|
|
- appType: 'java',
|
|
|
+ appType: '',
|
|
|
pn: 1
|
|
|
},
|
|
|
// 屏幕宽度, 为了控制分页条的大小
|
|
|
@@ -241,24 +241,17 @@ export default {
|
|
|
document.title = '构建部署'
|
|
|
getEnvList().then(resp => {
|
|
|
if (resp.code === 0) {
|
|
|
- this.envList = resp.data
|
|
|
+ this.queryInfo.env = resp.data.userEnv
|
|
|
+ this.queryInfo.appType = resp.data.userAppType
|
|
|
+ this.envList = resp.data.envList
|
|
|
+ this.appTypeList = resp.data.appTypeList
|
|
|
+ this.getData()
|
|
|
} else {
|
|
|
this.$message.error(resp.msg)
|
|
|
}
|
|
|
}).catch(error => {
|
|
|
this.$message.error(error.message)
|
|
|
})
|
|
|
- getAppTypeList().then(resp => {
|
|
|
- if (resp.code === 0) {
|
|
|
- this.appTypeList = resp.data
|
|
|
- } else {
|
|
|
- this.$message.error(resp.msg)
|
|
|
- }
|
|
|
- }).catch(error => {
|
|
|
- this.$message.error(error.message)
|
|
|
- })
|
|
|
-
|
|
|
- this.getData()
|
|
|
},
|
|
|
methods: {
|
|
|
handleCurrentChange(pageNumber) {
|