Commit 73c6ac18 authored by rockyl's avatar rockyl

修改保存到星速台失败的问题

parent adc03cf2
...@@ -35,9 +35,9 @@ ...@@ -35,9 +35,9 @@
placement="bottom" placement="bottom"
width="400" width="400"
:title="$t('Publish to projectx')" :title="$t('Publish to projectx')"
@show="onPopoverPublishShow" @show="onPopoverPublishShow(scope.row.packResult.tpl, scope.$index)"
> >
<publish-view ref="popoverPublish"></publish-view> <publish-view :ref="'popoverPublish_' + scope.$index"></publish-view>
<el-button <el-button
slot="reference" slot="reference"
icon="el-icon-s-promotion" icon="el-icon-s-promotion"
...@@ -116,8 +116,8 @@ ...@@ -116,8 +116,8 @@
this.visible = true; this.visible = true;
this.historyItems = await this.getPackHistory(); this.historyItems = await this.getPackHistory();
}, },
onPopoverPublishShow(){ onPopoverPublishShow(tpl, index){
this.$refs.popoverPublish.active(); this.$refs['popoverPublish_' + index].active(tpl);
}, },
onPack() { onPack() {
this.$emit('pack'); this.$emit('pack');
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
</el-select> </el-select>
<el-input v-model="name" size="small" class="name" placeholder="请输入皮肤名称"></el-input> <el-input v-model="name" size="small" class="name" placeholder="请输入皮肤名称"></el-input>
</div>&nbsp; </div>&nbsp;
<el-button type="primary" size="small" @click="saveSkins">保存</el-button> <el-button type="primary" size="small" @click="clickSave">保存</el-button>
<el-button v-if="skinId" type="primary" size="small" @click="getUrl">获取链接</el-button> <el-button v-if="skinId" type="primary" size="small" @click="getUrl">获取链接</el-button>
</div> </div>
</template> </template>
...@@ -55,7 +55,6 @@ ...@@ -55,7 +55,6 @@
}, },
data() { data() {
return { return {
tpl: '',
pxEnvs: this.$t("pxEnvs"), pxEnvs: this.$t("pxEnvs"),
tplOperates: this.$t("tplOperates"), tplOperates: this.$t("tplOperates"),
tplTypes: this.$t("tplTypes"), tplTypes: this.$t("tplTypes"),
...@@ -135,7 +134,7 @@ ...@@ -135,7 +134,7 @@
const {skinList} = this; const {skinList} = this;
return skinList.some(v => v.type === "1"); return skinList.some(v => v.type === "1");
}, },
async saveSkins() { async clickSave() {
const { const {
env, env,
skinId, skinId,
......
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