Commit b2a16980 authored by 智勇's avatar 智勇

wechat

parent fcbabc9e
...@@ -271,6 +271,17 @@ ...@@ -271,6 +271,17 @@
</el-col> </el-col>
</el-row> </el-row>
<div v-show="is_wechat">
<p class="title-sub">是否微信模式<span style="font-size: 12px">(测试微信时选择是)</span></p>
<el-row :gutter="20">
<el-col :span="14">
<el-select v-model="wechat.key" filterable clearable class="elSelect" placeholder="请选择是否微信模式,测试微信时选择是">
<el-option v-for="item in debugOptions" :key="item.key" :label="item.display_name" :value="item.key"/>
</el-select>
</el-col>
</el-row>
</div>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button @click="dialogVisible = false">取 消</el-button> <el-button @click="dialogVisible = false">取 消</el-button>
<el-button type="primary" @click="createClusterService">确 定</el-button> <el-button type="primary" @click="createClusterService">确 定</el-button>
...@@ -371,6 +382,7 @@ export default { ...@@ -371,6 +382,7 @@ export default {
], ],
debug: {}, debug: {},
mock: {}, mock: {},
wechat: {},
centerDialogVisible: false, centerDialogVisible: false,
namespace: null, namespace: null,
tableData: [], tableData: [],
...@@ -379,6 +391,7 @@ export default { ...@@ -379,6 +391,7 @@ export default {
FormatTabledata: {}, FormatTabledata: {},
reponame: '', reponame: '',
is_show: false, is_show: false,
is_wechat: false,
is_mock: false, is_mock: false,
mysqlName: '', mysqlName: '',
typeList: [], typeList: [],
...@@ -458,8 +471,10 @@ export default { ...@@ -458,8 +471,10 @@ export default {
this.options = [] this.options = []
this.tagOptions = [] this.tagOptions = []
this.is_show = false this.is_show = false
this.is_wechat = false
this.is_mock = false this.is_mock = false
this.debug = { key: '"0"', display_name: '' } this.debug = { key: '"0"', display_name: '' }
this.wechat = { key: '"0"', display_name: '' }
this.mock = { key: '"0"', display_name: '' } this.mock = { key: '"0"', display_name: '' }
fetchUserrepository({ 'namespace': 'qa-' + label }).then(res => { fetchUserrepository({ 'namespace': 'qa-' + label }).then(res => {
this.options = res.data.repoInfo this.options = res.data.repoInfo
...@@ -470,6 +485,7 @@ export default { ...@@ -470,6 +485,7 @@ export default {
getTag() { getTag() {
const realName = this.reponame.split('/')[1] const realName = this.reponame.split('/')[1]
this.is_show = realName === 'mysql' this.is_show = realName === 'mysql'
this.is_wechat = realName === 'h5-ui'
this.is_mock = realName === 'gu-bei' || realName === 'clotho' this.is_mock = realName === 'gu-bei' || realName === 'clotho'
getHostName({ project_name: this.reponame.split('/')[1] }).then(res => { getHostName({ project_name: this.reponame.split('/')[1] }).then(res => {
if (res.data) { if (res.data) {
...@@ -499,6 +515,7 @@ export default { ...@@ -499,6 +515,7 @@ export default {
type: this.type, type: this.type,
domain: this.domain.split('.')[0], domain: this.domain.split('.')[0],
debug: this.debug.key, debug: this.debug.key,
wechat: this.wechat.key,
mock: this.mock.key mock: this.mock.key
}).then(res => { }).then(res => {
this.$message({ this.$message({
......
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