@@ -69,12 +93,16 @@
return {
commitData: [],
branchData: [],
+ tagData: [],
isShowHost:false,
+ isShowStatus:false,
Hosts:[],
selectHosts:[],
ProjectData:null,
+ isShowValue: 2,
form: {
Branch: null,
+ Tag: null,
Title: null,
CommitId: null,
Hosts:null,
@@ -86,6 +114,7 @@
load_data: false,
on_submit_loading: false,
rules: {
+ Tag: [{required: true, message: '分支不能为空', trigger: 'blur'}],
Branch: [{required: true, message: '分支不能为空', trigger: 'blur'}],
CommitId: [{required: true, message: 'Commit不能为空', trigger: 'blur'}],
Title: [{required: true, message: '标题不能为空', trigger: 'blur'}]
@@ -95,6 +124,7 @@
created(){
if (this.route_id) {
+ this.get_tag_data()
this.get_branch_data()
this.get_Project_data()
} else {
@@ -184,6 +214,30 @@
this.load_data = false
})
},
+ get_tag_data(){
+ this.load_data = true
+ this.$http.get(port_git.getTag, {
+ params: {
+ projectId: this.form.ProjectId
+ }
+ })
+ .then(({data: {data}}) => {
+ var tagData = []
+ for(var i in data)
+ {
+ if( data[i].id !== "") {
+ tagData.push({label: data[i].message, value: data[i].id})
+ }
+ }
+ console.log('--->', tagData)
+ this.tagData = tagData
+ this.load_data = false
+ })
+ .
+ catch(() => {
+ this.load_data = false
+ })
+ },
//提交
on_submit_form(){
this.$refs.form.validate((valid) => {
@@ -215,7 +269,18 @@
this.on_submit_loading = false
})
})
+ },
+ showStatus(){
+ if (this.isShowValue === 1){
+ this.isShowStatus = true
+ this.form.CommitId = null
+ this.form.Branch = null
+ } else {
+ this.isShowStatus = false
+ this.form.CommitId = null
+ this.form.Branch = null
}
+ }
},
components: {
panelTitle
diff --git a/vue-gopub/src/pages/task/mylist.vue b/vue-gopub/src/pages/task/mylist.vue
index ed08a8d..ca8368b 100644
--- a/vue-gopub/src/pages/task/mylist.vue
+++ b/vue-gopub/src/pages/task/mylist.vue
@@ -44,8 +44,11 @@
width="180">
+
+ Tag发布
+ {{props.row.branch}}
+
-
+
+
+ {{task.CommitId}}
+
+
+
+
{{task.Branch}}
{{task.CommitId}}
+