Commit e7ec6f42 authored by 任建锋's avatar 任建锋

--

parent ef3ff29e
......@@ -6,10 +6,10 @@ export let API_HOST;
if (process.env.NODE_ENV === 'development') {
//API_HOST = '//10.10.95.74:7777';
//API_HOST = '//192.168.1.16:7777';
API_HOST = '//10.10.93.88:7777';
//API_HOST = '//10.10.93.88:7777';
//API_HOST = '//192.168.0.105:7777';
//API_HOST = '//localhost:3002';
//API_HOST = window.__data.apiHost;
API_HOST = window.__data.apiHost;
//API_HOST = '';
} else {
API_HOST = window.__data.apiHost;
......
......@@ -194,6 +194,7 @@
"Dependencies missing": "依赖缺失",
"missingDependenciesNotice": "<i class=\"el-icon-warning\"></i>依赖缺失,请到【<span style=\"font-weight: bold,\">详情>包管理</span>】进行安装",
"Pack manager": "打包管理",
"Select QA": "选择QA人员",
"Publish": "发布",
"Publish config": "发布配置",
"Publish to projectx": "发布到星速台",
......@@ -325,6 +326,15 @@
"test": "测试环境",
"prod": "线上环境"
},
"QAList":[
"崔立强",
"李培培",
"劳奇峰",
"任建锋",
"张婷婷",
"王炽",
"王鸿源"
],
"tplOperates": [
"新增",
"修改",
......
......@@ -3,6 +3,7 @@
<span class="px-project-name">
{{pxProjectName}}
</span>
<div class="operate-bar">
<el-select size="small" v-model="env" placeholder="请选择环境" @change="changeEnv">
<el-option v-for="(item, key) in pxEnvs" :key="key" :label="item" :value="key"></el-option>
......@@ -36,6 +37,17 @@
</el-popconfirm>
<el-button v-if="skinId && operate!==0" size="small" @click="getUrl">获取链接</el-button>
</div>
<div class="operate-bar" v-if="env==='prod'">
<!-- <label class="el-form-item__label" style="width: 140px;">请选择QA人员</label> -->
<div class="el-form-item el-form-item--mini" style="padding:10px 0 10px 0">
<label class="el-form-item__label" style="width: 60px;text-align: left;padding-right:0px">QA人员:</label>
<div class="el-form-item__content" style="margin-left: 60px;">
<el-select size="small" v-model="qa" placeholder="请选择QA人员" @change="changeQA">
<el-option v-for="item in QAList" :key="item" :label="item" :value="item"></el-option>
</el-select>
</div>
</div>
</div>
</div>
</template>
......@@ -58,6 +70,7 @@
},
data() {
return {
QAList:this.$t("QAList"),
pxEnvs: this.$t("pxEnvs"),
tplOperates: this.$t("tplOperates"),
tplTypes: this.$t("tplTypes"),
......@@ -70,7 +83,8 @@
pxProjectName: "",
skins: [],
pxPid: "",
name: ""
name: "",
qa:this.$t("QAList")[0]
};
},
computed: {
......@@ -88,6 +102,10 @@
this.skinId = "";
this.getSkinsList();
},
async changeQA(e) {
//this.skinId = "";
//this.getSkinsList();
},
async getSkinsList() {
const {env} = this;
......@@ -176,6 +194,9 @@
name,
env: env
};
this.$refs.SelectQADialog.show();
return;
const {ret} = await saveSkins(data);
if (ret.success !== false) {
this.$message({
......
......@@ -26,7 +26,16 @@
<div slot="footer" class="dialog-footer">
<div>
</div>
<div>
<!-- <div class="el-form-item el-form-item--mini" style="padding:10px 0 10px 0">
<label class="el-form-item__label" style="width: 60px;text-align: left;padding-right:0px">QA人员:</label>
<div class="el-form-item__content" style="margin-left: 60px;">
<el-select size="small" v-model="qa" placeholder="请选择QA人员" @change="changeQA">
<el-option v-for="item in QAList" :key="item" :label="item" :value="item"></el-option>
</el-select>
</div>
</div> -->
<el-button size="mini" @click="clickClose">{{ $t("Close") }}</el-button>
<el-popconfirm v-if="skin" class="save-button" @onConfirm="clickSave" placement="top"
:title="$t('Click save will overwrite and apply immediately', {name: this.pxProjectName, skin: skin.name})">
......@@ -49,6 +58,8 @@
data() {
return {
visible: false,
// QAList:this.$t("QAList"),
// qa:this.$t("QAList")[0],
pxProjectName: '',
skin: null,
operate: 0,
......
......@@ -12,6 +12,12 @@
<el-option v-for="(item, key) in pxEnvs" :key="key" :label="item" :value="key"></el-option>
</el-select>
<span class="px-project-name">{{pxProjectName}}</span>
<span v-if="env==='prod'">
<span style="padding-left:10px;">QA人员:</span>
<el-select class="env-select" size="mini" v-model="qa" placeholder="请选择QA人员" @change="changeQA">
<el-option v-for="item in QAList" :key="item" :label="item" :value="item"></el-option>
</el-select>
</span>
</div>
<el-table class="mock-table" :data="skins" height="100%" stripe size="mini">
<el-table-column
......@@ -99,6 +105,8 @@
pxProjectName: '',
skins: [],
env: 'dev',
QAList:this.$t("QAList"),
qa:this.$t("QAList")[0],
}
},
computed: {
......
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