-
+
+
+
{{item.name}}
+
+
+
+
+
+
+
@@ -65,7 +73,17 @@
-
+
+
+
+
@@ -79,6 +97,7 @@
data: function () {
return {
+ dialogVisible: false,
msg:'暂无标签',
tagList:[],
total:0,
@@ -87,13 +106,15 @@
pageSize: 8,
name:undefined
},
-
+ newName:'',//标签名称
addBkTAG:true,//添加书TAG
searchBkTAG:true,//搜索TAG
tagListShow:false,//TAGlist
eidtTAGText:false,//我的TAG
tagName:undefined,//新增书签 - 搜索的输入框
- tagNameCopy:''//用于提示
+ tagNameCopy:'',//用于提示
+ seen:false,//用于展示触碰显示操作按钮
+ current:0,//用于展示触碰显示操作按钮
}
},
created(){
@@ -101,6 +122,18 @@
that.listByUsers();
},
methods: {
+ updateTagOpen(id){
+ this.dialogVisible = true;
+ console.log(id)
+ },
+ handleClose(done) {
+ this.$confirm('确认关闭?')
+ .then(_ => {
+ done();
+ })
+ .catch(_ => {});
+ },
+
// 统一的表单重置
reset() {
this.form = {
@@ -126,8 +159,9 @@
this.tagList = null;
this.total = 0;
listByUserLike(this.tagParams).then(response => {
- if (response.code === 200) {
- this.tagList=response.rows;
+ if (response.code === 200) {1
+
+ this.tagList=response.rows;
this.total = response.total;
if (this.total == 0){
this.tagNameCopy = this.tagName;
@@ -203,14 +237,23 @@
this.addBkTAG = true;
this.searchBkTAG = true;
},
-
+ enter(index){
+ this.seen = true;
+ this.current = index;
+ },
+ leave(){
+ this.seen = false;
+ this.current = null;
+ },
}
}