fix: 审批/发布按钮移到脚本面板与保存相邻
This commit is contained in:
@@ -26,12 +26,6 @@
|
|||||||
<el-button size="small" @click="refresh" :loading="loading">刷新</el-button>
|
<el-button size="small" @click="refresh" :loading="loading">刷新</el-button>
|
||||||
<el-button size="small" @click="doBatchParse" :loading="parseLoading" v-if="selectedConfigId">全部重解析</el-button>
|
<el-button size="small" @click="doBatchParse" :loading="parseLoading" v-if="selectedConfigId">全部重解析</el-button>
|
||||||
|
|
||||||
<!-- 审批/拒绝 -->
|
|
||||||
<template v-if="selectedConfig?.status==='pending'">
|
|
||||||
<el-button size="small" type="success" @click="approveConfig" :loading="approving">审批通过</el-button>
|
|
||||||
<el-button size="small" type="danger" @click="rejectConfig" :loading="rejecting">拒绝</el-button>
|
|
||||||
</template>
|
|
||||||
<el-button size="small" type="success" @click="approveConfig" :loading="approving" v-if="selectedConfigId && selectedConfig?.status!=='pending'">发布脚本</el-button>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 主体:脚本 + 结果 -->
|
<!-- 主体:脚本 + 结果 -->
|
||||||
@@ -47,8 +41,13 @@
|
|||||||
<el-select v-model="historyVersion" size="small" style="width:140px" placeholder="历史版本" clearable @change="loadHistoryScript">
|
<el-select v-model="historyVersion" size="small" style="width:140px" placeholder="历史版本" clearable @change="loadHistoryScript">
|
||||||
<el-option v-for="v in allConfigVersions" :key="v.id" :label="'v'+v.version+' '+v.status" :value="v.id" />
|
<el-option v-for="v in allConfigVersions" :key="v.id" :label="'v'+v.version+' '+v.status" :value="v.id" />
|
||||||
</el-select>
|
</el-select>
|
||||||
<el-button size="small" @click="revertScript">回滚当前</el-button>
|
<el-button size="small" @click="revertScript">回滚</el-button>
|
||||||
<el-button size="small" type="primary" @click="saveScript" :loading="saving">保存</el-button>
|
<el-button size="small" type="primary" @click="saveScript" :loading="saving">保存</el-button>
|
||||||
|
<template v-if="selectedConfig?.status==='pending'">
|
||||||
|
<el-button size="small" type="success" @click="approveConfig" :loading="approving">通过</el-button>
|
||||||
|
<el-button size="small" type="danger" @click="rejectConfig" :loading="rejecting">拒绝</el-button>
|
||||||
|
</template>
|
||||||
|
<el-button v-if="selectedConfig?.status!=='pending'" size="small" type="success" @click="approveConfig" :loading="approving">发布</el-button>
|
||||||
</template>
|
</template>
|
||||||
<el-button v-if="!scriptExpanded && selectedConfigId" size="small" type="primary" @click="saveScript" :loading="saving">保存</el-button>
|
<el-button v-if="!scriptExpanded && selectedConfigId" size="small" type="primary" @click="saveScript" :loading="saving">保存</el-button>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user