Commit b2a16980 authored by 智勇's avatar 智勇

wechat

parent fcbabc9e
......@@ -271,6 +271,17 @@
</el-col>
</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">
<el-button @click="dialogVisible = false">取 消</el-button>
<el-button type="primary" @click="createClusterService">确 定</el-button>
......@@ -371,6 +382,7 @@ export default {
],
debug: {},
mock: {},
wechat: {},
centerDialogVisible: false,
namespace: null,
tableData: [],
......@@ -379,6 +391,7 @@ export default {
FormatTabledata: {},
reponame: '',
is_show: false,
is_wechat: false,
is_mock: false,
mysqlName: '',
typeList: [],
......@@ -458,8 +471,10 @@ export default {
this.options = []
this.tagOptions = []
this.is_show = false
this.is_wechat = false
this.is_mock = false
this.debug = { key: '"0"', display_name: '' }
this.wechat = { key: '"0"', display_name: '' }
this.mock = { key: '"0"', display_name: '' }
fetchUserrepository({ 'namespace': 'qa-' + label }).then(res => {
this.options = res.data.repoInfo
......@@ -470,6 +485,7 @@ export default {
getTag() {
const realName = this.reponame.split('/')[1]
this.is_show = realName === 'mysql'
this.is_wechat = realName === 'h5-ui'
this.is_mock = realName === 'gu-bei' || realName === 'clotho'
getHostName({ project_name: this.reponame.split('/')[1] }).then(res => {
if (res.data) {
......@@ -499,6 +515,7 @@ export default {
type: this.type,
domain: this.domain.split('.')[0],
debug: this.debug.key,
wechat: this.wechat.key,
mock: this.mock.key
}).then(res => {
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