|
@@ -27,7 +27,7 @@
|
|
<el-option
|
|
<el-option
|
|
v-for="(val, key) in ARCHIVED_TYPE"
|
|
v-for="(val, key) in ARCHIVED_TYPE"
|
|
:key="key"
|
|
:key="key"
|
|
- :value="val"
|
|
|
|
|
|
+ :value="key * 1"
|
|
:label="val"
|
|
:label="val"
|
|
></el-option>
|
|
></el-option>
|
|
</el-select>
|
|
</el-select>
|
|
@@ -47,22 +47,24 @@
|
|
<el-table ref="TableList" :data="dataList">
|
|
<el-table ref="TableList" :data="dataList">
|
|
<el-table-column prop="id" label="ID" width="80"></el-table-column>
|
|
<el-table-column prop="id" label="ID" width="80"></el-table-column>
|
|
<el-table-column prop="name" label="名称"> </el-table-column>
|
|
<el-table-column prop="name" label="名称"> </el-table-column>
|
|
- <el-table-column prop="archived" label="是否为主干版本" width="80">
|
|
|
|
|
|
+ <el-table-column prop="archived" label="是否为主干版本" width="124">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<span
|
|
<span
|
|
:class="{
|
|
:class="{
|
|
'color-success': scope.row.id === curMasterVersionId
|
|
'color-success': scope.row.id === curMasterVersionId
|
|
}"
|
|
}"
|
|
- ></span>
|
|
|
|
- {{ scope.row.id === curMasterVersionId ? "主干版本" : "" }}
|
|
|
|
|
|
+ >
|
|
|
|
+ {{ scope.row.id === curMasterVersionId ? "主干版本" : "" }}
|
|
|
|
+ </span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column prop="archived" label="状态" width="80">
|
|
<el-table-column prop="archived" label="状态" width="80">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<span
|
|
<span
|
|
:class="scope.row.archived ? 'color-success' : 'color-info'"
|
|
:class="scope.row.archived ? 'color-success' : 'color-info'"
|
|
- ></span>
|
|
|
|
- {{ scope.row.archived | archivedTypeFilter }}
|
|
|
|
|
|
+ >
|
|
|
|
+ {{ scope.row.archived | archivedTypeFilter }}</span
|
|
|
|
+ >
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column prop="createTime" label="创建时间" width="170">
|
|
<el-table-column prop="createTime" label="创建时间" width="170">
|
|
@@ -75,7 +77,7 @@
|
|
scope.row.updateTime | timestampFilter
|
|
scope.row.updateTime | timestampFilter
|
|
}}</span>
|
|
}}</span>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column label="操作" width="100" class-name="action-column">
|
|
|
|
|
|
+ <el-table-column label="操作" width="120" class-name="action-column">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-button
|
|
<el-button
|
|
class="btn-primary"
|
|
class="btn-primary"
|
|
@@ -83,6 +85,12 @@
|
|
@click="toEdit(scope.row)"
|
|
@click="toEdit(scope.row)"
|
|
>编辑</el-button
|
|
>编辑</el-button
|
|
>
|
|
>
|
|
|
|
+ <el-button
|
|
|
|
+ :class="scope.row.archived ? 'btn-danger' : 'btn-primary'"
|
|
|
|
+ type="text"
|
|
|
|
+ @click="toArchived(scope.row)"
|
|
|
|
+ >{{ scope.row.archived ? "取消归档" : "归档" }}</el-button
|
|
|
|
+ >
|
|
<el-button
|
|
<el-button
|
|
class="btn-primary"
|
|
class="btn-primary"
|
|
type="text"
|
|
type="text"
|
|
@@ -90,12 +98,6 @@
|
|
@click="toSetMaster(scope.row)"
|
|
@click="toSetMaster(scope.row)"
|
|
>设置为主干版本</el-button
|
|
>设置为主干版本</el-button
|
|
>
|
|
>
|
|
- <el-button
|
|
|
|
- :class="scope.row.archived ? 'btn-danger' : 'btn-primary'"
|
|
|
|
- type="text"
|
|
|
|
- @click="toArchived(scope.row)"
|
|
|
|
- >{{ scope.row.archived ? "取消归档" : "归档" }}</el-button
|
|
|
|
- >
|
|
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
@@ -159,8 +161,8 @@ export default {
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
visibleChange() {
|
|
visibleChange() {
|
|
- this.curMasterVersionId = this.app.masterVertionId;
|
|
|
|
- // this.toPage(1);
|
|
|
|
|
|
+ this.curMasterVersionId = this.app.masterVersionId;
|
|
|
|
+ this.toPage(1);
|
|
},
|
|
},
|
|
cancel() {
|
|
cancel() {
|
|
this.modalIsShow = false;
|
|
this.modalIsShow = false;
|