Commit 01453b51 by 无尘

add: 增加接口公共处理方法

parent 86130ee1
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>GIC-会员标签</title><link href=./static/css/app.9bd0b20284210953bae6c9736d05983b.css rel=stylesheet></head><body style="background-color: #f0f2f5;min-width: 1400px;"><div id=app></div><script type=text/javascript src=./static/js/manifest.9c5276d97437a7412df4.js></script><script type=text/javascript src=./static/js/vendor.ae6fa584b9d3d8074e5d.js></script><script type=text/javascript src=./static/js/app.8111e0837d46ca14add1.js></script></body></html>
\ No newline at end of file
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>GIC-会员标签</title><link href=./static/css/app.0ebf1feef61fcce7b9619c64aa71a5b4.css rel=stylesheet></head><body style="background-color: #f0f2f5;min-width: 1400px;"><div id=app></div><script type=text/javascript src=./static/js/manifest.827987b08b63141f2ef6.js></script><script type=text/javascript src=./static/js/vendor.ae6fa584b9d3d8074e5d.js></script><script type=text/javascript src=./static/js/app.3ec97028d4c3695d21ae.js></script></body></html>
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -841,6 +841,16 @@ input:-webkit-autofill, textarea:-webkit-autofill, select:-webkit-autofill {
border-right: 1px solid #C0C4CC;
}
.common-lib__cell__fieldName:last-child::before {
content: '';
width: 0px;
height: 10px;
position: absolute;
top: 1px;
right: 0;
border-right: 0px solid #C0C4CC;
}
/* 标签库通用 */
.right-box .common-wrap__opt{
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
webpackJsonp([13],{"G/on":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=a("3Xzz"),n=a("5QTb"),s=(a("Mk6G"),a("3E4D")),o=a("Ch4/"),i=(a("PI0u"),a("P9l9")),l={name:"platformTagList",data:function(){return{navpath:[{name:"首页",path:""},{name:"会员标签",path:""}],tagLibName:"platformTag",tagSearch:"",tagTableData:[{tagId:1,tagName:"123",tagDescribe:"描述描述,最多200字,一行显示50字,默认显示一行",isActive:1,isAdd:0}],selTagTableData:[],currentPage:1,pageSize:20,total:0,currentGroupId:0}},methods:{toAddMyTagLib:function(t,e){var a={};if("mult"===t){if(!this.selTagTableData.length)return this.$message.error({message:"请选择标签"}),!1;a.tagId=[],this.selTagTableData.forEach(function(t,e){a.tagId.push(t.id)}),a.tagId=a.tagId.join(","),this.addByTagId("addByTagIds",a)}else a.tagId=e,this.addByTagId("addByTagId",a)},addByTagId:function(t,e){var a=this;Object(i.a)("/enterpriseMemberTag/"+t,e).then(function(t){var e=t.data;1!=e.errorCode?o.a.errorMsg(e):s.a.showmsg("添加成功","success")}).catch(function(t){console.log(t),a.$message.error({duration:1e3,message:t.message})})},searchEnterFun:function(t){console.log(t),this.currentPage=1,this.getTagList()},handleSelectChange:function(t){console.log(t),this.selTagTableData=t},handleSizeChange:function(t){console.log("每页 "+t+" 条"),this.pageSize=t,this.getTagList()},handleCurrentChange:function(t){console.log("当前页: "+t),this.currentPage=t,this.getTagList()},getTagList:function(t){var e=this,a={tagName:e.tagSearch,tagLevelGroupId:e.currentGroupId,pageNum:e.currentPage,pageSize:e.pageSize};Object(i.a)("/memberTag/platformTagPageList",a).then(function(t){var e=t.data;1!=e.errorCode&&o.a.errorMsg(e)}).catch(function(t){console.log(t),e.$message.error({duration:1e3,message:t.message})})}},watch:{$route:{handler:function(t,e){console.log("获取当前路由:",t);this.tagSearch=this.$route.query.searchName?this.$route.query.searchName:"",this.currentGroupId=this.$route.query.tagLevelGroupId?this.$route.query.tagLevelGroupId:0,this.getTagList()},deep:!0}},beforeMount:function(){},mounted:function(){console.log(this.$route.query),this.tagSearch=this.$route.query.searchName?this.$route.query.searchName:"",this.currentGroupId=this.$route.query.tagLevelGroupId?this.$route.query.tagLevelGroupId:0,this.getTagList()},components:{navCrumb:r.a,tagCategory:n.a}},c={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"platformTagList-wrap common-wrap"},[a("nav-crumb",{attrs:{navpath:t.navpath}}),t._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box"},[a("div",{staticClass:"common-wrap__cateTags"},[a("tag-category",{attrs:{tagLibName:t.tagLibName,tagCateId:t.currentGroupId}})],1),t._v(" "),a("div",{staticClass:"common-wrap__opt"},[a("el-input",{staticClass:"w-184",attrs:{placeholder:"请输入标签","prefix-icon":"el-icon-search"},nativeOn:{keyup:function(e){return"button"in e||!t._k(e.keyCode,"enter",13,e.key,"Enter")?t.searchEnterFun(e):null}},model:{value:t.tagSearch,callback:function(e){t.tagSearch=e},expression:"tagSearch"}}),t._v(" "),a("el-button",{staticClass:"fr",attrs:{type:"primary"},on:{click:function(e){t.toAddMyTagLib("mult")}}},[t._v("添加至我的标签库")])],1),t._v(" "),a("div",{staticClass:"common-wrap__table m-t-20"},[a("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:t.tagTableData,"tooltip-effect":"dark"},on:{"selection-change":t.handleSelectChange}},[a("el-table-column",{attrs:{type:"selection"}}),t._v(" "),a("el-table-column",{attrs:{prop:"tagName",label:"标签名称"}}),t._v(" "),a("el-table-column",{attrs:{prop:"tagDescribe",label:"标签描述","show-overflow-tooltip":""}}),t._v(" "),a("el-table-column",{attrs:{label:"是否实时"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(1==e.row.isActive?"实时":"非实时")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("router-link",{staticClass:"edit-btn el-button--text",attrs:{to:{path:"/myTagDetail",query:{tagId:e.row.tagId}}}},[t._v("详情")]),t._v(" "),a("el-button",{staticClass:"p-l-32",attrs:{type:"text",size:"small",disabled:1==e.row.isAdd},on:{click:function(a){t.toAddMyTagLib("single",e.row.tagId)}}},[t._v("\n 添加至我的标签库\n ")])]}}])})],1)],1),t._v(" "),0!=t.tagTableData.length?a("div",{staticClass:"block common-wrap__page text-right"},[a("el-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[10,20,30,40],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()])]),t._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[]};var g=a("VU/8")(l,c,!1,function(t){a("gIum")},"data-v-7c431d7a",null);e.default=g.exports},gIum:function(t,e){}});
//# sourceMappingURL=13.8e91e32bf2cb0b987209.js.map
\ No newline at end of file
webpackJsonp([13],{GaIp:function(t,a){},twLH:function(t,a,n){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var e=n("3Xzz"),i=n("BdFv"),s=(n("Mk6G"),n("3E4D"),n("Ch4/"),n("PI0u"),n("P9l9"),{name:"myTagLib",data:function(){return{navpath:[{name:"首页",path:""},{name:"会员标签",path:""}],tagCategory:"myTagList"}},methods:{toAddMyTagLib:function(){}},mounted:function(){},components:{navCrumb:e.a,tagLib:i.a}}),r={render:function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"myTagLib-wrap common-wrap"},[a("nav-crumb",{attrs:{navpath:this.navpath}}),this._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box"},[a("tag-lib",{attrs:{tagCategory:this.tagCategory}})],1)]),this._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[]};var o=n("VU/8")(s,r,!1,function(t){n("GaIp")},"data-v-6d8ff900",null);a.default=o.exports}});
//# sourceMappingURL=13.355eedee1bee94cfd95d.js.map
\ No newline at end of file
webpackJsonp([14],{GaIp:function(t,a){},twLH:function(t,a,n){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var e=n("3Xzz"),i=n("BdFv"),s=(n("Mk6G"),n("3E4D"),n("Ch4/"),n("PI0u"),n("P9l9"),{name:"myTagLib",data:function(){return{navpath:[{name:"首页",path:""},{name:"会员标签",path:""}],tagCategory:"myTagList"}},methods:{toAddMyTagLib:function(){}},mounted:function(){},components:{navCrumb:e.a,tagLib:i.a}}),r={render:function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"myTagLib-wrap common-wrap"},[a("nav-crumb",{attrs:{navpath:this.navpath}}),this._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box"},[a("tag-lib",{attrs:{tagCategory:this.tagCategory}})],1)]),this._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[]};var o=n("VU/8")(s,r,!1,function(t){n("GaIp")},"data-v-6d8ff900",null);a.default=o.exports}});
//# sourceMappingURL=14.92199267df3426ee7901.js.map
\ No newline at end of file
webpackJsonp([14],{"6Qob":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=i("mvHQ"),n=i.n(s),o=i("5reh"),a=i("zL8q");function r(t){return t?(a.Message.warning(t),!1):(a.Message.warning("操作失败"),!1)}function l(t){return"cancel"==t?(a.Message.info(t||"cancel"),!1):t.hasOwnProperty("response")?401==t.response.status?(a.Message.error("登录过期"),!1):500==t.response.status?(a.Message.error("服务器错误500"),!1):void 0:(a.Message.error(t),!1)}var c=i("mw3O"),u={name:"login",data:function(){return{redirect:this.$route.query.redirect,token:"",form:{loginName:"damogic",password:"1",eid:"ff808081593917d90159398ec6340012"}}},computed:{imgHeight:function(){return document.body.clientHeight},imgWidth:function(){return document.body.clientWidth}},methods:{loginAnimate:function(){new LoginAnimate(loginwrap,{length:90,LineWeight:.1,clicked:!0,moveon:!0}).Run()},submitLogin:function(){var t=this;this.axios.post("/api-auth/do-login",c.stringify({loginName:this.form.loginName,password:this.form.password,eid:"ff808081593917d90159398ec6340012"})).then(function(e){if(e.data.success){(s=e.data.message)?a.Message.success(s):a.Message.success("操作成功");var i=decodeURIComponent(t.$route.query.redirect||"/index");t.$router.push({path:i})}else r(e.data.message);var s}).catch(function(t){l(t)})},getMenu:function(){var t=this;this.axios.get("/gic/get-menu").then(function(e){if(e.data.success){t.menuList=e.data.list,sessionStorage.setItem("menuList",n()(t.menuList));var i=t.$route.query.redirect||"/index";t.$router.push({path:i})}else r(e.data.errorMessage)}).catch(function(t){l(t)})}},mounted:function(){this.$store.commit(o.d,"login"),document.title=this.$store.state.title,this.loginAnimate()}},m={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"loginwrap",style:{height:t.imgHeight+"px"}},[i("div",{staticStyle:{position:"absolute",left:"0",height:"0",width:"100%"}},[i("canvas",{attrs:{id:"loginwrap",width:t.imgWidth,height:t.imgHeight}})]),t._v(" "),t._m(0),t._v(" "),i("div",{staticClass:"login_contetnt"},[i("h3",{staticClass:"login-top"},[t._v("让信息连接一切")]),t._v(" "),i("h4",{staticClass:"login-bottom"},[t._v("GIC商户后台")]),t._v(" "),i("div",{staticClass:"formlogin"},[i("el-form",{ref:"form",attrs:{model:t.form,"label-width":""}},[i("el-form-item",{attrs:{label:""}},[i("el-input",{staticClass:"forminput",attrs:{placeholder:"账号"},model:{value:t.form.loginName,callback:function(e){t.$set(t.form,"loginName",e)},expression:"form.loginName"}})],1),t._v(" "),i("el-form-item",{attrs:{label:""}},[i("el-input",{attrs:{type:"password",placeholder:"密码"},nativeOn:{keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;t.submitLogin("form")}},model:{value:t.form.password,callback:function(e){t.$set(t.form,"password",e)},expression:"form.password"}})],1),t._v(" "),i("el-form-item",[i("button",{staticClass:"submit",on:{click:function(e){e.preventDefault(),t.submitLogin("form")}}},[t._v("立即登录")])])],1)],1)])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"logintop"},[e("div",{staticClass:"fl loginlogo"},[e("a",{staticClass:"fr logo",attrs:{href:"#"}},[this._v("login_logo.png")])]),this._v(" "),e("a",{staticClass:"home-link fr",attrs:{href:"http://www.demogic.com/"}},[this._v("返回首页")])])}]};var d=i("VU/8")(u,m,!1,function(t){i("OWNH")},null,null);e.default=d.exports},OWNH:function(t,e){}});
//# sourceMappingURL=14.c4695f2a34ee0c60de49.js.map
\ No newline at end of file
webpackJsonp([15],{"6Qob":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=i("mvHQ"),n=i.n(s),o=i("5reh"),a=i("zL8q");function r(t){return t?(a.Message.warning(t),!1):(a.Message.warning("操作失败"),!1)}function l(t){return"cancel"==t?(a.Message.info(t||"cancel"),!1):t.hasOwnProperty("response")?401==t.response.status?(a.Message.error("登录过期"),!1):500==t.response.status?(a.Message.error("服务器错误500"),!1):void 0:(a.Message.error(t),!1)}var c=i("mw3O"),u={name:"login",data:function(){return{redirect:this.$route.query.redirect,token:"",form:{loginName:"damogic",password:"1",eid:"ff808081593917d90159398ec6340012"}}},computed:{imgHeight:function(){return document.body.clientHeight},imgWidth:function(){return document.body.clientWidth}},methods:{loginAnimate:function(){new LoginAnimate(loginwrap,{length:90,LineWeight:.1,clicked:!0,moveon:!0}).Run()},submitLogin:function(){var t=this;this.axios.post("/api-auth/do-login",c.stringify({loginName:this.form.loginName,password:this.form.password,eid:"ff808081593917d90159398ec6340012"})).then(function(e){if(e.data.success){(s=e.data.message)?a.Message.success(s):a.Message.success("操作成功");var i=decodeURIComponent(t.$route.query.redirect||"/index");t.$router.push({path:i})}else r(e.data.message);var s}).catch(function(t){l(t)})},getMenu:function(){var t=this;this.axios.get("/gic/get-menu").then(function(e){if(e.data.success){t.menuList=e.data.list,sessionStorage.setItem("menuList",n()(t.menuList));var i=t.$route.query.redirect||"/index";t.$router.push({path:i})}else r(e.data.errorMessage)}).catch(function(t){l(t)})}},mounted:function(){this.$store.commit(o.d,"login"),document.title=this.$store.state.title,this.loginAnimate()}},m={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"loginwrap",style:{height:t.imgHeight+"px"}},[i("div",{staticStyle:{position:"absolute",left:"0",height:"0",width:"100%"}},[i("canvas",{attrs:{id:"loginwrap",width:t.imgWidth,height:t.imgHeight}})]),t._v(" "),t._m(0),t._v(" "),i("div",{staticClass:"login_contetnt"},[i("h3",{staticClass:"login-top"},[t._v("让信息连接一切")]),t._v(" "),i("h4",{staticClass:"login-bottom"},[t._v("GIC商户后台")]),t._v(" "),i("div",{staticClass:"formlogin"},[i("el-form",{ref:"form",attrs:{model:t.form,"label-width":""}},[i("el-form-item",{attrs:{label:""}},[i("el-input",{staticClass:"forminput",attrs:{placeholder:"账号"},model:{value:t.form.loginName,callback:function(e){t.$set(t.form,"loginName",e)},expression:"form.loginName"}})],1),t._v(" "),i("el-form-item",{attrs:{label:""}},[i("el-input",{attrs:{type:"password",placeholder:"密码"},nativeOn:{keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;t.submitLogin("form")}},model:{value:t.form.password,callback:function(e){t.$set(t.form,"password",e)},expression:"form.password"}})],1),t._v(" "),i("el-form-item",[i("button",{staticClass:"submit",on:{click:function(e){e.preventDefault(),t.submitLogin("form")}}},[t._v("立即登录")])])],1)],1)])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"logintop"},[e("div",{staticClass:"fl loginlogo"},[e("a",{staticClass:"fr logo",attrs:{href:"#"}},[this._v("login_logo.png")])]),this._v(" "),e("a",{staticClass:"home-link fr",attrs:{href:"http://www.demogic.com/"}},[this._v("返回首页")])])}]};var d=i("VU/8")(u,m,!1,function(t){i("OWNH")},null,null);e.default=d.exports},OWNH:function(t,e){}});
//# sourceMappingURL=15.9f61f06d1572f1265cc0.js.map
\ No newline at end of file
webpackJsonp([16],{"G/on":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("3Xzz"),n=a("5QTb"),s=(a("Mk6G"),a("3E4D")),o=a("Ch4/"),i=(a("PI0u"),a("P9l9")),l={name:"platformTagList",data:function(){return{navpath:[{name:"首页",path:""},{name:"会员标签",path:""}],tagLibName:"platformTag",tagSearch:"",tagTableData:[{id:1,name:"123",tagDescribe:"描述描述,最多200字,一行显示50字,默认显示一行",isRealTime:1,isExist:0},{id:2,name:"113",tagDescribe:"描述描述,最多200字,一行显示50字,默认显示一行",isRealTime:0,isExist:1}],selTagTableData:[],currentPage:1,pageSize:20,total:0,currentGroupId:0,currentTagDatas:[{id:1,name:"基本信息"},{id:2,name:"地理信息"}],childTagDatas:[{id:1,name:"其他一",num:12},{id:2,name:"其他二",num:12}]}},methods:{toAddMyTagLib:function(e,t){console.log(t);var a={};if("mult"===e){if(!this.selTagTableData.length)return this.$message.error({message:"请选择标签"}),!1;a.tagId=[],this.selTagTableData.forEach(function(e,t){a.tagId.push(e.id)}),console.log(a),a.tagId=a.tagId.join(","),this.addByTagId("addByTagIds",a)}else this.addByTagId("addByTagId",a)},addByTagId:function(e,t){var a=this;Object(i.a)("/enterpriseMemberTag/"+e,t).then(function(e){var t=e.data;1!=t.errorCode?o.a.errorMsg(t):s.a.showmsg("添加成功","success")}).catch(function(e){console.log(e),a.$message.error({duration:1e3,message:e.message})})},searchEnterFun:function(e){console.log(e),this.currentPage=1,this.getTagList()},handleSelectChange:function(e){console.log(e),this.selTagTableData=e},handleSizeChange:function(e){console.log("每页 "+e+" 条"),this.pageSize=e,this.getTagList()},handleCurrentChange:function(e){console.log("当前页: "+e),this.currentPage=e,this.getTagList()},getTagList:function(e){var t=this,a={tagName:t.tagSearch,tagLevelGroupId:t.currentGroupId,pageNum:t.currentPage,pageSize:t.pageSize};Object(i.a)("/memberTag/platformTagPageList",a).then(function(e){var t=e.data;1!=t.errorCode&&o.a.errorMsg(t)}).catch(function(e){console.log(e),t.$message.error({duration:1e3,message:e.message})})}},watch:{$route:{handler:function(e,t){console.log("获取当前路由:",e);this.tagSearch=this.$route.query.searchName?this.$route.query.searchName:"",this.currentGroupId=this.$route.query.tagLevelGroupId?this.$route.query.tagLevelGroupId:0,this.getTagList()},deep:!0}},beforeMount:function(){},mounted:function(){console.log(this.$route.query),this.tagSearch=this.$route.query.searchName?this.$route.query.searchName:"",this.currentGroupId=this.$route.query.tagLevelGroupId?this.$route.query.tagLevelGroupId:0,this.getTagList()},components:{navCrumb:r.a,tagCategory:n.a}},c={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"platformTagList-wrap common-wrap"},[a("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box"},[a("div",{staticClass:"common-wrap__cateTags"},[a("tag-category",{attrs:{tagLibName:e.tagLibName,tagCateId:e.currentGroupId}})],1),e._v(" "),a("div",{staticClass:"common-wrap__opt"},[a("el-input",{staticClass:"w-184",attrs:{placeholder:"请输入标签","prefix-icon":"el-icon-search"},nativeOn:{keyup:function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.searchEnterFun(t):null}},model:{value:e.tagSearch,callback:function(t){e.tagSearch=t},expression:"tagSearch"}}),e._v(" "),a("el-button",{staticClass:"fr",attrs:{type:"primary"},on:{click:function(t){e.toAddMyTagLib("mult")}}},[e._v("添加至我的标签库")])],1),e._v(" "),a("div",{staticClass:"common-wrap__table m-t-20"},[a("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:e.tagTableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectChange}},[a("el-table-column",{attrs:{type:"selection"}}),e._v(" "),a("el-table-column",{attrs:{prop:"name",label:"标签名称"}}),e._v(" "),a("el-table-column",{attrs:{prop:"tagDescribe",label:"标签描述"}}),e._v(" "),a("el-table-column",{attrs:{label:"是否实时"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(1==t.row.isRealTime?"实时":"非实时")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("router-link",{staticClass:"edit-btn el-button--text",attrs:{to:{path:"/myTagDetail",query:{tagId:t.row.id}}}},[e._v("详情")]),e._v(" "),a("el-button",{staticClass:"p-l-32",attrs:{type:"text",size:"small",disabled:1==t.row.isExist},on:{click:function(a){e.toAddMyTagLib("single",t.row.id)}}},[e._v("\n 添加至我的标签库\n ")])]}}])})],1)],1),e._v(" "),0!=e.tagTableData.length?a("div",{staticClass:"block common-wrap__page text-right"},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[10,20,30,40],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()])]),e._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[]};var g=a("VU/8")(l,c,!1,function(e){a("IAAZ")},"data-v-5c60d6f9",null);t.default=g.exports},IAAZ:function(e,t){}});
//# sourceMappingURL=16.fb1c128626aaddf47c4d.js.map
\ No newline at end of file
!function(e){var n=window.webpackJsonp;window.webpackJsonp=function(r,o,c){for(var f,d,i,u=0,b=[];u<r.length;u++)d=r[u],t[d]&&b.push(t[d][0]),t[d]=0;for(f in o)Object.prototype.hasOwnProperty.call(o,f)&&(e[f]=o[f]);for(n&&n(r,o,c);b.length;)b.shift()();if(c)for(u=0;u<c.length;u++)i=a(a.s=c[u]);return i};var r={},t={26:0};function a(n){if(r[n])return r[n].exports;var t=r[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,a),t.l=!0,t.exports}a.e=function(e){var n=t[e];if(0===n)return new Promise(function(e){e()});if(n)return n[2];var r=new Promise(function(r,a){n=t[e]=[r,a]});n[2]=r;var o=document.getElementsByTagName("head")[0],c=document.createElement("script");c.type="text/javascript",c.charset="utf-8",c.async=!0,c.timeout=12e4,a.nc&&c.setAttribute("nonce",a.nc),c.src=a.p+"static/js/"+e+"."+{0:"6225abf9450089196f45",1:"d1b66d4bf3d45b2621dd",2:"344d5c61c44868322e7e",3:"88a303fc10feb8b51091",4:"f6a8f25f4e8cc458879d",5:"3782da85554aabdaa930",6:"e8a80e25b08656461f52",7:"2a339071f1b0172aab7f",8:"d026a8e41b09e5635ee9",9:"85fb625f8b0688f1c0e3",10:"c71c26ffe9e929740644",11:"e85b90356083e5b3e250",12:"efe5e750726bc1eaf8fb",13:"355eedee1bee94cfd95d",14:"c4695f2a34ee0c60de49",15:"28dc596367e11cc70e83",16:"fb1c128626aaddf47c4d",17:"1948b2304dfe70d18f05",18:"ab734ebe9809ba629573",19:"7766cd380e454598a96d",20:"02f8d018afc1a9baaf51",21:"07c82561157b5e9a3988",22:"f796f0fd16aa61510117",25:"9ceafa4ee79176c87d81"}[e]+".js";var f=setTimeout(d,12e4);function d(){c.onerror=c.onload=null,clearTimeout(f);var n=t[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),t[e]=void 0)}return c.onerror=c.onload=d,o.appendChild(c),r},a.m=e,a.c=r,a.d=function(e,n,r){a.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},a.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(n,"a",n),n},a.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},a.p="./",a.oe=function(e){throw console.error(e),e}}([]);
//# sourceMappingURL=manifest.9c5276d97437a7412df4.js.map
\ No newline at end of file
!function(e){var n=window.webpackJsonp;window.webpackJsonp=function(r,o,f){for(var c,d,b,i=0,u=[];i<r.length;i++)d=r[i],t[d]&&u.push(t[d][0]),t[d]=0;for(c in o)Object.prototype.hasOwnProperty.call(o,c)&&(e[c]=o[c]);for(n&&n(r,o,f);u.length;)u.shift()();if(f)for(i=0;i<f.length;i++)b=a(a.s=f[i]);return b};var r={},t={26:0};function a(n){if(r[n])return r[n].exports;var t=r[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,a),t.l=!0,t.exports}a.e=function(e){var n=t[e];if(0===n)return new Promise(function(e){e()});if(n)return n[2];var r=new Promise(function(r,a){n=t[e]=[r,a]});n[2]=r;var o=document.getElementsByTagName("head")[0],f=document.createElement("script");f.type="text/javascript",f.charset="utf-8",f.async=!0,f.timeout=12e4,a.nc&&f.setAttribute("nonce",a.nc),f.src=a.p+"static/js/"+e+"."+{0:"9da4348b340695acee5b",1:"d1b66d4bf3d45b2621dd",2:"344d5c61c44868322e7e",3:"88a303fc10feb8b51091",4:"f6a8f25f4e8cc458879d",5:"3782da85554aabdaa930",6:"e8a80e25b08656461f52",7:"2a339071f1b0172aab7f",8:"d026a8e41b09e5635ee9",9:"85fb625f8b0688f1c0e3",10:"c71c26ffe9e929740644",11:"e85b90356083e5b3e250",12:"efe5e750726bc1eaf8fb",13:"8e91e32bf2cb0b987209",14:"92199267df3426ee7901",15:"9f61f06d1572f1265cc0",16:"2f5942e91ee9b162d882",17:"1948b2304dfe70d18f05",18:"ab734ebe9809ba629573",19:"7766cd380e454598a96d",20:"02f8d018afc1a9baaf51",21:"07c82561157b5e9a3988",22:"6895744bf8ed68ba2ad7",25:"9ceafa4ee79176c87d81"}[e]+".js";var c=setTimeout(d,12e4);function d(){f.onerror=f.onload=null,clearTimeout(c);var n=t[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),t[e]=void 0)}return f.onerror=f.onload=d,o.appendChild(f),r},a.m=e,a.c=r,a.d=function(e,n,r){a.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},a.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(n,"a",n),n},a.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},a.p="./",a.oe=function(e){throw console.error(e),e}}([]);
//# sourceMappingURL=manifest.827987b08b63141f2ef6.js.map
\ No newline at end of file
......@@ -7,13 +7,13 @@
<a :href="'#/'+tagLibName+'List?tagLevelGroupId=0'" class="common-wrap__currentTag__name">全部</a>
<i class="el-icon-arrow-right m-l-8 m-r-8"></i>
<template v-for="(item,index) in currentTagDatas">
<a :href="'#/'+tagLibName+'List?tagLevelGroupId='+item.id" class="common-wrap__currentTag__name">{{item.name}}</a>
<a :href="'#/'+tagLibName+'List?tagLevelGroupId='+item.tagLevelGroupId" class="common-wrap__currentTag__name">{{item.levelName}}</a>
<i class="el-icon-arrow-right m-l-8 m-r-8" v-if="currentTagDatas.length-1 != index"></i>
</template>
</div>
<div class="common-wrap__childTag inline-block">
<template v-for="(item,index) in childTagDatas">
<a :href="'#/'+tagLibName+'List?tagLevelGroupId='+item.id" class="common-wrap__childTag__name">{{item.name}}({{ item.num }})</a>
<a :href="'#/'+tagLibName+'List?tagLevelGroupId='+item.tagLevelGroupId" class="common-wrap__childTag__name">{{item.levelName}}({{ item.count }})</a>
</template>
</div>
<div class="common-wrap__moreTag p-l-20">
......@@ -24,7 +24,7 @@
<!-- 更多列表 -->
<div class="common-wrap__moreTag__body">
<template v-for="(item,index) in childTagDatas">
<a :href="'#/'+tagLibName+'List?tagLevelGroupId='+item.id" class="common-wrap__childTag__name">{{item.name}}({{ item.num }})</a>
<a :href="'#/'+tagLibName+'List?tagLevelGroupId='+item.tagLevelGroupId" class="common-wrap__childTag__name">{{item.levelName}}({{ item.num }})</a>
</template>
</div>
<i slot="reference" class="el-icon-more"></i>
......@@ -57,136 +57,37 @@
// 子分类数据
tagLevelGroupId: '',
currentTagDatas: [
{
id: 1,
name: '基本信息',
},
{
id: 2,
name: '地理信息',
},
// {
// tagLevelGroupId: 1,
// levelName: '基本信息',
// },
// {
// tagLevelGroupId: 2,
// levelName: '地理信息',
// },
],
childTagDatas: [
{
id: 1,
name: '其他一',
num: 12
},
{
id: 2,
name: '其他二',
num: 12
},
{
id: 1,
name: '其他一',
num: 12
},
{
id: 2,
name: '其他二',
num: 12
},
{
id: 1,
name: '其他一',
num: 12
},
{
id: 2,
name: '其他二',
num: 12
},
{
id: 1,
name: '其他一',
num: 12
},
{
id: 2,
name: '其他二',
num: 12
},
{
id: 1,
name: '其他一',
num: 12
},
{
id: 2,
name: '其他二',
num: 12
},
{
id: 1,
name: '其他一',
num: 12
},
{
id: 2,
name: '其他二',
num: 12
},
{
id: 1,
name: '其他一',
num: 12
},
{
id: 2,
name: '其他二',
num: 12
},
{
id: 1,
name: '其他一',
num: 12
},
{
id: 2,
name: '其他二',
num: 12
},
{
id: 1,
name: '其他一',
num: 12
},
{
id: 2,
name: '其他二',
num: 12
},
{
id: 1,
name: '其他一',
num: 12
},
{
id: 2,
name: '其他二',
num: 12
},
{
id: 1,
name: '其他一',
num: 12
},
{
id: 2,
name: '其他二',
num: 12
},
{
id: 1,
name: '其他一',
num: 12
},
{
id: 2,
name: '其他二',
num: 12
},
// {
// tagLevelGroupId: 1,
// levelName: '其他一',
// count: 12
// },
// {
// tagLevelGroupId: 2,
// levelName: '其他二',
// count: 12
// },
// {
// tagLevelGroupId: 1,
// levelName: '其他一',
// count: 12
// },
// {
// tagLevelGroupId: 2,
// levelName: '其他二',
// count: 12
// },
],
}
},
......@@ -206,6 +107,8 @@
const resData = res.data
if (resData.errorCode == 1) {
// showMsg.showmsg('成功','success')
that.currentTagDatas = resData.result.currentNode; // 当前分类数据
that.childTagDatas = resData.result.dataList; // 子类数据
return;
}
......
......@@ -5,19 +5,6 @@
<div class="right-box">
<!-- 子类 -->
<div class="common-wrap__cateTags">
<!-- <div class="common-wrap__currentTag inline-block">
<a href="#/platformTagList?v=122" class="common-wrap__currentTag__name">全部</a>
<i class="el-icon-arrow-right m-l-8 m-r-8"></i>
<template v-for="(item,index) in currentTagDatas">
<a href="" class="common-wrap__currentTag__name">{{item.name}}</a>
<i class="el-icon-arrow-right m-l-8 m-r-8" v-if="currentTagDatas.length-1 != index"></i>
</template>
</div>
<div class="common-wrap__childTag inline-block">
<template v-for="(item,index) in childTagDatas">
<a href="" class="common-wrap__childTag__name">{{item.name}}</a>
</template>
</div> -->
<tag-category :tagLibName="tagLibName" :tagCateId="currentGroupId"></tag-category>
</div>
<div class="common-wrap__opt">
......@@ -44,7 +31,7 @@
>
</el-table-column>
<el-table-column
prop="name"
prop="tagName"
label="标签名称"
>
<!-- <template slot-scope="scope">{{ scope.row.name }}</template> -->
......@@ -52,21 +39,28 @@
<el-table-column
prop="tagDescribe"
label="标签描述"
>
show-overflow-tooltip>
</el-table-column>
<el-table-column
label="是否实时"
>
<template slot-scope="scope">
{{scope.row.isRealTime == 1? '实时':'非实时'}}
{{scope.row.isActive == 1? '实时':'非实时'}}
</template>
</el-table-column>
<el-table-column
label="操作">
<template slot-scope="scope">
<router-link :to="{path:'/myTagDetail',query:{name:scope.row.id}}" class="edit-btn el-button--text">详情</router-link>
<router-link :to="{path:'/manualTagEdit',query:{name:scope.row.id}}" class="edit-btn el-button--text p-l-20">编辑</router-link>
<el-button type="text" size="small" class="p-l-20" @click="toAddMyTagLib('single',scope.row.id)">添加至我的标签库</el-button>
<router-link :to="{path:'/myTagDetail',query:{name:scope.row.tagId}}" class="edit-btn el-button--text">详情</router-link>
<router-link :to="{path:'/manualTagEdit',query:{name:scope.row.tagId}}" class="edit-btn el-button--text p-l-20">编辑</router-link>
<el-button
type="text"
size="small"
class="p-l-20"
@click="toAddMyTagLib('single',scope.row.tagId)"
:disabled="scope.row.isAdd == 1">
添加至我的标签库
</el-button>
<el-popover
placement="top"
width="160"
......@@ -178,11 +172,11 @@
// 标签列表数据
tagTableData:[
{
id: 1,
name: "123",
tagId: 1,
tagName: "123",
tagDescribe: '描述描述,最多200字,一行显示50字,默认显示一行',
isRealTime: 1,
popVisible: false,
isActive: 1,
isAdd: 0,
}
],
selTagTableData: [], // 已选择
......@@ -193,29 +187,8 @@
total: 0,
// 子分类数据
currentGroupId: 0, //当前分类 id
currentTagDatas: [
{
id: 1,
name: '基本信息',
},
{
id: 2,
name: '地理信息',
},
],
childTagDatas: [
{
id: 1,
name: '其他一',
num: 12
},
{
id: 2,
name: '其他二',
num: 12
},
],
currentGroupId: 0, // 当前分类 id
// 分类设置
cateTableVisible: false,
......
......@@ -5,19 +5,6 @@
<div class="right-box">
<!-- 子类 -->
<div class="common-wrap__cateTags">
<!-- <div class="common-wrap__currentTag inline-block">
<a href="#/platformTagList?v=122" class="common-wrap__currentTag__name">全部</a>
<i class="el-icon-arrow-right m-l-8 m-r-8"></i>
<template v-for="(item,index) in currentTagDatas">
<a href="" class="common-wrap__currentTag__name">{{item.name}}</a>
<i class="el-icon-arrow-right m-l-8 m-r-8" v-if="currentTagDatas.length-1 != index"></i>
</template>
</div>
<div class="common-wrap__childTag inline-block">
<template v-for="(item,index) in childTagDatas">
<a href="" class="common-wrap__childTag__name">{{item.name}}</a>
</template>
</div> -->
<tag-category :tagLibName="tagLibName" :tagCateId="currentGroupId"></tag-category>
</div>
<div class="common-wrap__opt">
......@@ -42,7 +29,7 @@
>
</el-table-column>
<el-table-column
prop="name"
prop="tagName"
label="标签名称"
>
<!-- <template slot-scope="scope">{{ scope.row.name }}</template> -->
......@@ -50,25 +37,25 @@
<el-table-column
prop="tagDescribe"
label="标签描述"
>
show-overflow-tooltip>
</el-table-column>
<el-table-column
label="是否实时"
>
<template slot-scope="scope">
{{scope.row.isRealTime == 1? '实时':'非实时'}}
{{scope.row.isActive == 1? '实时':'非实时'}}
</template>
</el-table-column>
<el-table-column
label="操作">
<template slot-scope="scope">
<router-link :to="{path:'/myTagDetail',query:{tagId:scope.row.id}}" class="edit-btn el-button--text">详情</router-link>
<router-link :to="{path:'/myTagDetail',query:{tagId:scope.row.tagId}}" class="edit-btn el-button--text">详情</router-link>
<el-button
type="text"
size="small"
class="p-l-32"
:disabled="scope.row.isExist == 1"
@click="toAddMyTagLib('single',scope.row.id)">
:disabled="scope.row.isAdd == 1"
@click="toAddMyTagLib('single',scope.row.tagId)">
添加至我的标签库
</el-button>
</template>
......@@ -124,18 +111,11 @@
// 标签列表数据
tagTableData:[
{
id: 1,
name: "123",
tagDescribe: '描述描述,最多200字,一行显示50字,默认显示一行',
isRealTime: 1,
isExist: 0,
},
{
id: 2,
name: "113",
tagId: 1,
tagName: "123",
tagDescribe: '描述描述,最多200字,一行显示50字,默认显示一行',
isRealTime: 0,
isExist: 1,
isActive: 1,
isAdd: 0,
}
],
selTagTableData: [], // 已选择
......@@ -147,30 +127,6 @@
// 子分类数据
currentGroupId: 0, //当前分类 id, 0默认全部
currentTagDatas: [
{
id: 1,
name: '基本信息',
},
{
id: 2,
name: '地理信息',
},
],
childTagDatas: [
{
id: 1,
name: '其他一',
num: 12
},
{
id: 2,
name: '其他二',
num: 12
},
],
}
},
......@@ -180,7 +136,7 @@
*/
toAddMyTagLib(flag,id) {
const that = this
console.log(id)
// console.log(id)
const para = {
}
......@@ -193,10 +149,11 @@
that.selTagTableData.forEach(function(ele,index){
para.tagId.push(ele.id)
})
console.log(para)
para.tagId = para.tagId.join(',')
// console.log(para)
para.tagId = para.tagId.join(',');
that.addByTagId('addByTagIds',para)
}else {
para.tagId = id;
that.addByTagId('addByTagId',para)
}
......
......@@ -841,6 +841,16 @@ input:-webkit-autofill, textarea:-webkit-autofill, select:-webkit-autofill {
border-right: 1px solid #C0C4CC;
}
.common-lib__cell__fieldName:last-child::before {
content: '';
width: 0px;
height: 10px;
position: absolute;
top: 1px;
right: 0;
border-right: 0px solid #C0C4CC;
}
/* 标签库通用 */
.right-box .common-wrap__opt{
......
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