提交 dbfa259c 编写于 作者: changdi.hao's avatar changdi.hao

Merge branch 'dev-moreTab-20210425' into 'release'

自定义tab可以增删

自定义tab可以增删

See merge request !262
...@@ -56,16 +56,16 @@ ...@@ -56,16 +56,16 @@
:value="item2.id"> :value="item2.id">
</el-option> </el-option>
</el-select> </el-select>
<!-- <img v-if="scope.row.appTag == 10"--> <img v-if="scope.row.appTag == 10"
<!-- @click="add(scope.$index)"--> @click="add(scope.$index)"
<!-- class="edit-img"--> class="edit-tplbtn"
<!-- src="../../assets/image/plus.png"--> src="../../assets/image/plus.png"
<!-- />--> />
<!-- <img v-if="scope.row.appTag == 10 && count > 0"--> <img v-if="scope.row.appTag == 10 && count > 0"
<!-- @click="del(scope.$index, scope.row)"--> @click="del(scope.$index, scope.row)"
<!-- class="edit-img"--> class="edit-tplbtn"
<!-- src="../../assets/image/trash.png"--> src="../../assets/image/trash.png"
<!-- />--> />
</template> </template>
</el-table-column> </el-table-column>
...@@ -310,15 +310,17 @@ export default { ...@@ -310,15 +310,17 @@ export default {
circleId: this.circleId, circleId: this.circleId,
id: row.id id: row.id
} }
vm.$confirm(
vm.$confirm(`确定删除“${row.appName}”吗?`, "", { `确定删除自定义tab“${row.appName}”吗?<br>(<span style='color:red;font-size:12px;'>删除后该tab将不再显示</span>)`,
confirmButtonText: "删除", "提示",
cancelButtonText: "取消", {
type: "warning" confirmButtonText: "删除",
// customClass: 'range-make-box', cancelButtonText: "取消",
}) dangerouslyUseHTMLString: true,
customClass: "cc-class-box",
type: "warning",
})
.then(() => { .then(() => {
if (params.id == "") { if (params.id == "") {
vm.$message({ vm.$message({
type: "success", type: "success",
...@@ -346,7 +348,6 @@ export default { ...@@ -346,7 +348,6 @@ export default {
} }
}) })
.catch(() => {}); .catch(() => {});
}, },
activityColor({row, column, rowIndex, columnIndex}){ activityColor({row, column, rowIndex, columnIndex}){
return "activity-color"; return "activity-color";
...@@ -388,6 +389,11 @@ export default { ...@@ -388,6 +389,11 @@ export default {
} }
} }
} }
.edit-tplbtn {
// display: inline-block;
vertical-align: middle;
}
} }
/*.range-make-box{*/ /*.range-make-box{*/
/*.el-message-box__btns{*/ /*.el-message-box__btns{*/
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册