Commit b10d2954 by 无尘

style: 修改我的顾客样式

parent 57811476
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>好办管理平台</title><link href=./static/css/app.20987bd0d093629d5af0f41619e1efc2.css rel=stylesheet></head><body style="min-width: 1400px;"><div id=app></div><script src=https://cdn.ravenjs.com/3.26.2/vue/raven.min.js crossorigin=anonymous></script><script>Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();</script><script type=text/javascript src=./static/js/manifest.f52bfec03e22b808e8b1.js></script><script type=text/javascript src=./static/js/vendor.1fb32a1d0eb8b56a0d21.js></script><script type=text/javascript src=./static/js/app.fb403f51ba31419b3588.js></script></body></html> <!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>好办管理平台</title><link href=./static/css/app.af8cd83da18b5c3368be7f9461d4db26.css rel=stylesheet></head><body style="min-width: 1400px;"><div id=app></div><script src=https://cdn.ravenjs.com/3.26.2/vue/raven.min.js crossorigin=anonymous></script><script>Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();</script><script type=text/javascript src=./static/js/manifest.ac9bc16191f917fd481b.js></script><script type=text/javascript src=./static/js/vendor.1fb32a1d0eb8b56a0d21.js></script><script type=text/javascript src=./static/js/app.7613856b5ac38be75c52.js></script></body></html>
\ No newline at end of file \ 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.
This source diff could not be displayed because it is too large. You can view the blob instead.
webpackJsonp([10],{Knd1:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=e("2eFk"),c=e("fvdr"),i=e("Qie6"),o={name:"reviewed",data:function(){return{tableH:window.screen.availHeight-464-126+"px",appName:"云日报",appIcon:"icon-ribao",activeSelTab:"1",activeTab:"1",tabListData:[{tabId:"1",tabName:"云日报记录",icon:"icon-ribao1",onlyIconActive:!1},{tabId:"2",tabName:"云日报设置",icon:"icon-ribaoshezhi",onlyIconActive:!1,children:[{tabId:"21",tabName:"模板配置",icon:"",children:[{tabId:"211",tabName:"系统报表",icon:""},{tabId:"212",tabName:"自定义报表",icon:""}]},{tabId:"22",tabName:"任务下发设置",icon:""}]}],activeBrand:""}},computed:{},methods:{changeRoute:function(t){this.$router.push(t)},selectBrandId:function(t){this.activeBrand=t},setSelectTab:function(t){switch(this.activeTab=t.tabId,t.tabId){case"1":this.changeRoute("dailyRecord");break;case"2":case"21":case"211":this.changeRoute("systemReport");break;case"212":this.changeRoute("customReport");break;case"22":this.changeRoute("taskAssign")}},showTab:function(t){this.activeTab=t,this.activeSelTab=t,this.tabListData.forEach(function(a){a.tabId==t&&(a.onlyIconActive=!1),a.children&&a.children.forEach(function(e){e.tabId==t&&(a.onlyIconActive=!0),e.children&&e.children.forEach(function(e){e.tabId==t&&(a.onlyIconActive=!0)})})})}},watch:{activeBrand:function(t,a){this.activeBrand=t}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:n.a,commonAppTop:c.a,commonDetailLeft:i.a}},s={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"my-customer-wrap common-set-wrap"},[e("div",{staticClass:"right-content"},[e("common-app-top",{attrs:{appName:t.appName,appIcon:t.appIcon},on:{selectBrandId:t.selectBrandId}}),t._v(" "),e("div",{staticClass:"right-box",style:{"min-height":t.$store.state.bgHeight}},[e("div",{staticClass:"apps-content flex",style:{height:t.$store.state.bgHeight}},[e("div",{staticClass:"apps-content-left w-157"},[e("common-detail-left",{attrs:{tabListData:t.tabListData,activeSelTab:t.activeSelTab},on:{setSelectTab:t.setSelectTab}})],1),t._v(" "),e("div",{staticClass:"apps-content-right"},[e("transition",{attrs:{name:"fade",mode:"out-in"}},[e("router-view",{attrs:{brandId:t.activeBrand,tabType:t.activeTab},on:{showTab:t.showTab}})],1)],1)])])],1),t._v(" "),e("vue-gic-footer")],1)},staticRenderFns:[]};var r=e("VU/8")(o,s,!1,function(t){e("MDAo")},"data-v-44cbc75a",null);a.default=r.exports},MDAo:function(t,a){},Qie6:function(t,a,e){"use strict";var n={name:"common-detail-left",props:{appName:{type:String,default:function(){return""}},activeSelTab:{type:[String,Number],default:function(){return"1"}},tabListData:{type:[Array,Object],default:function(){return[]}}},data:function(){return{projectName:"",activeTab:"1",tabData:this.tabListData}},methods:{returnBack:function(){this.$router.push("appcenter")},selectTab:function(t,a,e){if(a?this.tabData[e].onlyIconActive=!0:this.tabData.forEach(function(t){t.onlyIconActive=!1}),t.hasOwnProperty("children"))return this.tabData[e].onlyIconActive=!0,t.children[0].hasOwnProperty("children")?(this.activeTab=t.children[0].children[0].tabId,this.$emit("setSelectTab",t),!1):(this.activeTab=t.children[0].tabId,this.$emit("setSelectTab",t),!1);this.activeTab=t.tabId,this.$emit("setSelectTab",t)}},watch:{tabListData:function(t,a){this.tabData=t},activeSelTab:function(t,a){this.activeTab=t}}},c={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",[e("ul",{staticClass:"tab-left-list"},[t._l(t.tabData,function(a,n){return[e("li",{key:n,class:["tab-left-list-cell color-303133 font-14 border-box p-l-14",a.tabId==t.activeTab?"active-tab":""],on:{click:function(e){t.selectTab(a,!1,n)}}},[e("i",{class:["p-r-10 color-303133 iconfont",a.icon,a.onlyIconActive?"iconActive":""]}),t._v(t._s(a.tabName))]),t._v(" "),e("ul",{key:"childitem"+n,staticClass:"child-tab-left-list"},[t._l(a.children,function(a,c){return[e("li",{key:c,class:["tab-left-list-cell color-303133 font-14 border-box p-l-40",a.tabId==t.activeTab?"active-tab":""],on:{click:function(e){t.selectTab(a,"child",n)}}},[t._v(t._s(a.tabName))]),t._v(" "),e("ul",{key:"thirditem"+c,staticClass:"third-tab-left-list"},[t._l(a.children,function(a,c){return[e("li",{key:c,class:["tab-left-list-cell color-303133 font-14 border-box p-l-60",a.tabId==t.activeTab?"active-tab":""],on:{click:function(e){t.selectTab(a,"child",n)}}},[t._v(t._s(a.tabName))])]})],2)]})],2)]})],2)])},staticRenderFns:[]};var i=e("VU/8")(n,c,!1,function(t){e("mxYQ")},"data-v-91106130",null);a.a=i.exports},YZ5U:function(t,a){},fvdr:function(t,a,e){"use strict";var n=e("Ch4/"),c=e("P9l9"),i={name:"common-app-top",props:{appName:{type:String,default:function(){return""}},appIcon:{type:String,default:function(){return""}}},data:function(){return{projectName:"",activeBrand:"",brandListData:[]}},methods:{returnBack:function(){this.$router.push("appcenter")},changeSelect:function(t){this.$emit("selectBrandId",t)},getBrandData:function(){var t=this;Object(c.c)("/haoban-manage-web/application-brand-list",{}).then(function(a){var e=a.data;1!=e.errorCode?n.a.errorMsg(e):e.result&&e.result.length&&(t.brandListData=e.result,t.activeBrand=t.brandListData[0].brandId,t.$emit("selectBrandId",t.brandListData[0].brandId))}).catch(function(a){t.$message.error({duration:1e3,message:a.message})})}},watch:{brandId:function(t,a){this.getBrandData()}},mounted:function(){this.getBrandData()}},o={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"app-top-wrap app-detail-wrap"},[e("div",{staticClass:"my-customer-top"},[e("div",{staticClass:"my-customer-name"},[e("span",{staticClass:"app-icon "},[e("i",{class:["iconfont",t.appIcon]})]),e("span",{staticClass:"p-l-8"},[t._v(t._s(t.appName))])]),t._v(" "),e("el-button",{staticClass:"border-radius-18 my-customer-return",on:{click:t.returnBack}},[t._v("返回")]),t._v(" "),e("div",{staticClass:"my-customer-brand"},[e("el-select",{attrs:{placeholder:"请选择"},on:{change:t.changeSelect},model:{value:t.activeBrand,callback:function(a){t.activeBrand=a},expression:"activeBrand"}},t._l(t.brandListData,function(t){return e("el-option",{key:t.brandId,attrs:{label:t.name,value:t.brandId}})}))],1)],1)])},staticRenderFns:[]};var s=e("VU/8")(i,o,!1,function(t){e("YZ5U")},"data-v-24333092",null);a.a=s.exports},mxYQ:function(t,a){}});
\ No newline at end of file
webpackJsonp([10],{"9IeW":function(t,a){},Knd1:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=e("2eFk"),c=e("fvdr"),i=e("Qie6"),r={name:"reviewed",data:function(){return{tableH:window.screen.availHeight-464-126+"px",appName:"云日报",appIcon:"icon-ribao",activeSelTab:"1",activeTab:"1",tabListData:[{tabId:"1",tabName:"云日报记录",icon:"icon-ribao1",onlyIconActive:!1},{tabId:"2",tabName:"云日报设置",icon:"icon-ribaoshezhi",onlyIconActive:!1,children:[{tabId:"21",tabName:"模板配置",icon:"",children:[{tabId:"211",tabName:"系统报表",icon:""},{tabId:"212",tabName:"自定义报表",icon:""}]},{tabId:"22",tabName:"任务下发设置",icon:""}]}],activeBrand:""}},computed:{},methods:{changeRoute:function(t){this.$router.push(t)},selectBrandId:function(t){this.activeBrand=t},setSelectTab:function(t){switch(this.activeTab=t.tabId,t.tabId){case"1":this.changeRoute("dailyRecord");break;case"2":case"21":case"211":this.changeRoute("systemReport");break;case"212":this.changeRoute("customReport");break;case"22":this.changeRoute("taskAssign")}},showTab:function(t){this.activeTab=t,this.activeSelTab=t,this.tabListData.forEach(function(a){a.tabId==t&&(a.onlyIconActive=!1),a.children&&a.children.forEach(function(e){e.tabId==t&&(a.onlyIconActive=!0),e.children&&e.children.forEach(function(e){e.tabId==t&&(a.onlyIconActive=!0)})})})}},watch:{activeBrand:function(t,a){this.activeBrand=t}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:n.a,commonAppTop:c.a,commonDetailLeft:i.a}},o={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"my-customer-wrap common-set-wrap"},[e("div",{staticClass:"right-content"},[e("common-app-top",{attrs:{appName:t.appName,appIcon:t.appIcon},on:{selectBrandId:t.selectBrandId}}),t._v(" "),e("div",{staticClass:"right-box",style:{"min-height":t.$store.state.bgHeight}},[e("div",{staticClass:"apps-content flex",style:{height:t.$store.state.bgHeight}},[e("div",{staticClass:"apps-content-left w-157"},[e("common-detail-left",{attrs:{tabListData:t.tabListData,activeSelTab:t.activeSelTab},on:{setSelectTab:t.setSelectTab}})],1),t._v(" "),e("div",{staticClass:"apps-content-right"},[e("transition",{attrs:{name:"fade",mode:"out-in"}},[e("router-view",{attrs:{brandId:t.activeBrand,tabType:t.activeTab},on:{showTab:t.showTab}})],1)],1)])])],1),t._v(" "),e("vue-gic-footer")],1)},staticRenderFns:[]};var s=e("VU/8")(r,o,!1,function(t){e("MDAo")},"data-v-44cbc75a",null);a.default=s.exports},MDAo:function(t,a){},Qie6:function(t,a,e){"use strict";var n={name:"common-detail-left",props:{appName:{type:String,default:function(){return""}},activeSelTab:{type:[String,Number],default:function(){return"1"}},tabListData:{type:[Array,Object],default:function(){return[]}}},data:function(){return{projectName:"",activeTab:"1",tabData:this.tabListData}},methods:{returnBack:function(){this.$router.push("appcenter")},selectTab:function(t,a,e){if(a?this.tabData[e].onlyIconActive=!0:this.tabData.forEach(function(t){t.onlyIconActive=!1}),t.hasOwnProperty("children"))return this.tabData[e].onlyIconActive=!0,t.children[0].hasOwnProperty("children")?(this.activeTab=t.children[0].children[0].tabId,this.$emit("setSelectTab",t),!1):(this.activeTab=t.children[0].tabId,this.$emit("setSelectTab",t),!1);this.activeTab=t.tabId,this.$emit("setSelectTab",t)}},watch:{tabListData:function(t,a){this.tabData=t},activeSelTab:function(t,a){this.activeTab=t}}},c={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",[e("ul",{staticClass:"tab-left-list"},[t._l(t.tabData,function(a,n){return[e("li",{key:n,class:["tab-left-list-cell color-303133 font-14 border-box p-l-14",a.tabId==t.activeTab?"active-tab":""],on:{click:function(e){t.selectTab(a,!1,n)}}},[e("i",{class:["p-r-10 color-303133 iconfont",a.icon,a.onlyIconActive?"iconActive":""]}),t._v(t._s(a.tabName))]),t._v(" "),e("ul",{key:"childitem"+n,staticClass:"child-tab-left-list"},[t._l(a.children,function(a,c){return[e("li",{key:c,class:["tab-left-list-cell color-303133 font-14 border-box p-l-40",a.tabId==t.activeTab?"active-tab":""],on:{click:function(e){t.selectTab(a,"child",n)}}},[t._v(t._s(a.tabName))]),t._v(" "),e("ul",{key:"thirditem"+c,staticClass:"third-tab-left-list"},[t._l(a.children,function(a,c){return[e("li",{key:c,class:["tab-left-list-cell color-303133 font-14 border-box p-l-60",a.tabId==t.activeTab?"active-tab":""],on:{click:function(e){t.selectTab(a,"child",n)}}},[t._v(t._s(a.tabName))])]})],2)]})],2)]})],2)])},staticRenderFns:[]};var i=e("VU/8")(n,c,!1,function(t){e("mxYQ")},"data-v-91106130",null);a.a=i.exports},fvdr:function(t,a,e){"use strict";var n=e("Ch4/"),c=e("P9l9"),i={name:"common-app-top",props:{appName:{type:String,default:function(){return""}},appIcon:{type:String,default:function(){return""}}},data:function(){return{projectName:"",activeBrand:"",brandListData:[]}},methods:{returnBack:function(){this.$router.push("appcenter")},changeSelect:function(t){this.$emit("selectBrandId",t)},getBrandData:function(){var t=this;Object(c.c)("/haoban-manage-web/application-brand-list",{}).then(function(a){var e=a.data;if(1!=e.errorCode)n.a.errorMsg(e);else if(e.result&&e.result.length){if(t.brandListData=e.result,t.$route.query.brandId)return t.activeBrand=t.$route.query.brandId,t.$emit("selectBrandId",t.$route.query.brandId),!1;t.activeBrand=t.brandListData[0].brandId,t.$emit("selectBrandId",t.brandListData[0].brandId)}}).catch(function(a){t.$message.error({duration:1e3,message:a.message})})}},watch:{brandId:function(t,a){this.getBrandData()}},mounted:function(){this.getBrandData()}},r={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"app-top-wrap app-detail-wrap"},[e("div",{staticClass:"my-customer-top"},[e("div",{staticClass:"my-customer-name"},[e("span",{staticClass:"app-icon "},[e("i",{class:["iconfont",t.appIcon]})]),e("span",{staticClass:"p-l-8"},[t._v(t._s(t.appName))])]),t._v(" "),e("el-button",{staticClass:"border-radius-18 my-customer-return",on:{click:t.returnBack}},[t._v("返回")]),t._v(" "),e("div",{staticClass:"my-customer-brand"},[e("el-select",{attrs:{placeholder:"请选择"},on:{change:t.changeSelect},model:{value:t.activeBrand,callback:function(a){t.activeBrand=a},expression:"activeBrand"}},t._l(t.brandListData,function(t){return e("el-option",{key:t.brandId,attrs:{label:t.name,value:t.brandId}})}))],1)],1)])},staticRenderFns:[]};var o=e("VU/8")(i,r,!1,function(t){e("9IeW")},"data-v-1ced29b4",null);a.a=o.exports},mxYQ:function(t,a){}});
\ No newline at end of file
webpackJsonp([38],{"00Sv":function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={render:function(){var e=this.$createElement;return(this._self._c||e)("div")},staticRenderFns:[]};var u=t("VU/8")({name:"add-employee"},r,!1,function(e){t("yw/n")},null,null);n.default=u.exports},"yw/n":function(e,n){}}); webpackJsonp([39],{"00Sv":function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={render:function(){var e=this.$createElement;return(this._self._c||e)("div")},staticRenderFns:[]};var u=t("VU/8")({name:"add-employee"},r,!1,function(e){t("yw/n")},null,null);n.default=u.exports},"yw/n":function(e,n){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([39],{"79Bk":function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"date-range-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}}},i={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("div",[s("div",{class:["opencard-item-title",t.childItem.startTitle.length>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.startTitle))]),t._v(" "),s("div",{staticClass:"draged-item-show"},[s("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[t._v(t._s(t.childItem.placeholder)+" "+t._s(t.childItem.isMust?"(必填)":"")),s("i",{staticClass:"el-icon-arrow-right"})])])]),t._v(" "),s("div",{staticClass:"b-t-1"},[s("div",{class:["opencard-item-title",t.childItem.endTitle.length>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.endTitle))]),t._v(" "),s("div",{staticClass:"draged-item-show"},[s("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[t._v(t._s(t.childItem.placeholder)+" "+t._s(t.childItem.isMust?"(必填)":"")+" "),s("i",{staticClass:"el-icon-arrow-right"})])])])])},staticRenderFns:[]};var l=s("VU/8")(a,i,!1,function(t){s("bu1e")},"data-v-7138ecea",null);e.default=l.exports},bu1e:function(t,e){}}); webpackJsonp([40],{"79Bk":function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"date-range-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}}},i={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("div",[s("div",{class:["opencard-item-title",t.childItem.startTitle.length>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.startTitle))]),t._v(" "),s("div",{staticClass:"draged-item-show"},[s("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[t._v(t._s(t.childItem.placeholder)+" "+t._s(t.childItem.isMust?"(必填)":"")),s("i",{staticClass:"el-icon-arrow-right"})])])]),t._v(" "),s("div",{staticClass:"b-t-1"},[s("div",{class:["opencard-item-title",t.childItem.endTitle.length>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.endTitle))]),t._v(" "),s("div",{staticClass:"draged-item-show"},[s("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[t._v(t._s(t.childItem.placeholder)+" "+t._s(t.childItem.isMust?"(必填)":"")+" "),s("i",{staticClass:"el-icon-arrow-right"})])])])])},staticRenderFns:[]};var l=s("VU/8")(a,i,!1,function(t){s("bu1e")},"data-v-7138ecea",null);e.default=l.exports},bu1e:function(t,e){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([40],{Y8F9:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n("2eFk"),s=n("Ke24"),i={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{activeBrandId:this.brandId,topMenuData:[{id:"1",name:"系统报表"}],activeId:"1"}},computed:{},methods:{toEdit:function(){this.$router.push("/systemReportSet?brandId="+this.activeBrandId)}},watch:{brandId:function(t,e){this.activeBrandId=t}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","211"),this.activeBrandId=this.brandId},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:a.a,commonDetailTop:s.a}},o={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"system-set-wrap"},[e("common-detail-top",{attrs:{topMenuData:this.topMenuData,activeId:this.activeId}}),this._v(" "),e("div",{staticClass:"system-set-content boder-box"},[e("div",{staticClass:"system-set-cell"},[e("div",{staticClass:"font-14 color-606266"},[this._v("云日报系统报表:提供系统能够智能识别的指标(例如:销售额、达成率等),配置成报表融入云日报上报模板中")]),this._v(" "),e("div",{staticClass:"m-t-30"},[e("el-button",{attrs:{type:"primary"},on:{click:this.toEdit}},[this._v("编辑模板")])],1)])])],1)},staticRenderFns:[]};var d=n("VU/8")(i,o,!1,function(t){n("zmYQ")},"data-v-6f8e979d",null);e.default=d.exports},zmYQ:function(t,e){}}); webpackJsonp([41],{Y8F9:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n("2eFk"),s=n("Ke24"),i={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{activeBrandId:this.brandId,topMenuData:[{id:"1",name:"系统报表"}],activeId:"1"}},computed:{},methods:{toEdit:function(){this.$router.push("/systemReportSet?brandId="+this.activeBrandId)}},watch:{brandId:function(t,e){this.activeBrandId=t}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","211"),this.activeBrandId=this.brandId},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:a.a,commonDetailTop:s.a}},o={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"system-set-wrap"},[e("common-detail-top",{attrs:{topMenuData:this.topMenuData,activeId:this.activeId}}),this._v(" "),e("div",{staticClass:"system-set-content boder-box"},[e("div",{staticClass:"system-set-cell"},[e("div",{staticClass:"font-14 color-606266"},[this._v("云日报系统报表:提供系统能够智能识别的指标(例如:销售额、达成率等),配置成报表融入云日报上报模板中")]),this._v(" "),e("div",{staticClass:"m-t-30"},[e("el-button",{attrs:{type:"primary"},on:{click:this.toEdit}},[this._v("编辑模板")])],1)])])],1)},staticRenderFns:[]};var d=n("VU/8")(i,o,!1,function(t){n("zmYQ")},"data-v-6f8e979d",null);e.default=d.exports},zmYQ:function(t,e){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([44],{"5WAZ":function(t,e){},DxdI:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("2eFk"),o=a("Ke24"),l=a("P9l9"),s=a("Ch4/"),i={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{tableH:window.screen.availHeight-464-126+"px",topMenuData:[{id:"1",name:"自定义报表"}],activeId:"1",activeTab:"1",activeBrand:"1",tableData:[{date:"2016-05-03",name:"王小虎",address:"上海市普陀区金沙江路 1518 弄"},{date:"2016-05-02",name:"王小虎",address:"上海市普陀区金沙江路 1518 弄"},{date:"2016-05-04",name:"王小虎",address:"上海市普陀区金沙江路 1518 弄"}],multipleSelection:[]}},computed:{},methods:{changeRouter:function(t){this.$router.push(t)},setSelectTab:function(t){this.activeTab=t.tabId},toCustomSet:function(){this.changeRouter("/template?brandId="+this.brandId)},getData:function(){var t=this;Object(l.c)("/haoban-app-daily-web/daily/list-define-template",{brandId:t.brandId}).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=[],void(a.result&&a.result.length&&(t.tableData=a.result));s.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{activeBrand:function(t,e){this.activeBrand=t}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","212"),this.getData()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:n.a,commonDetailTop:o.a}},r={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"custom-set-wrap"},[a("common-detail-top",{attrs:{topMenuData:t.topMenuData,activeId:t.activeId}}),t._v(" "),a("div",{staticClass:"custom-set-content boder-box"},[a("div",{staticClass:"flex flex-space-between flex-pack-center m-b-23 m-t-30"},[a("div",{staticClass:"custom-set-title flex flex-pack-center"},[t._v("模板列表("+t._s(t.tableData.length)+")")]),t._v(" "),a("div",[a("el-button",{attrs:{type:"button"},on:{click:function(e){t.toCustomSet("")}}},[t._v("新建模板")])],1)]),t._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"100%"},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"模板名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.date))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"name",label:"模板描述","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.date))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"address",label:"门店类型","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.date))]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.handleEdit(e.$index,e.row)}}},[t._v("预览")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.handleDelete(e.$index,e.row)}}},[t._v("复制")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.handleEdit(e.$index,e.row)}}},[t._v("编辑")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.handleDelete(e.$index,e.row)}}},[t._v("删除")])]}}])})],1)],1)],1)},staticRenderFns:[]};var c=a("VU/8")(i,r,!1,function(t){a("5WAZ")},"data-v-5f3abebe",null);e.default=c.exports}});
\ No newline at end of file
webpackJsonp([45],{"+lem":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={name:"reviewed",data:function(){return{projectName:"haoban-manage-web",collapseFlag:!1,contentHeight:"0px"}},computed:{},methods:{toRouterView:function(e){this.$router.push({path:e.path})},collapseTag:function(e){this.collapseFlag=e}},watch:{$route:{handler:function(e,t){this.$refs.asideMenu.refreshRoute()},deep:!0}},mounted:function(){this.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-64+"px"}},o={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"review-wrap"},[n("vue-office-header",{attrs:{projectName:e.projectName},on:{collapseTag:e.collapseTag,toRouterView:e.toRouterView}}),e._v(" "),n("div",{staticClass:"setting-wrap__body"},[n("div",{staticClass:"content",attrs:{id:"content"}},[n("div",{staticClass:"content-body",style:{height:e.contentHeight}},[n("div",{staticClass:"left-menu",style:{height:e.contentHeight}},[n("vue-office-aside",{ref:"asideMenu",attrs:{projectName:e.projectName,collapseFlag:e.collapseFlag}})],1),e._v(" "),n("transition",{attrs:{name:"fade",mode:"out-in"}},[n("router-view")],1)],1)])])],1)},staticRenderFns:[]};var i=n("VU/8")(a,o,!1,function(e){n("wrIu")},null,null);t.default=i.exports},wrIu:function(e,t){}}); webpackJsonp([44],{"+lem":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={name:"reviewed",data:function(){return{projectName:"haoban-manage-web",collapseFlag:!1,contentHeight:"0px"}},computed:{},methods:{toRouterView:function(e){this.$router.push({path:e.path})},collapseTag:function(e){this.collapseFlag=e}},watch:{$route:{handler:function(e,t){this.$refs.asideMenu.refreshRoute()},deep:!0}},mounted:function(){this.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-64+"px"}},o={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"review-wrap"},[n("vue-office-header",{attrs:{projectName:e.projectName},on:{collapseTag:e.collapseTag,toRouterView:e.toRouterView}}),e._v(" "),n("div",{staticClass:"setting-wrap__body"},[n("div",{staticClass:"content",attrs:{id:"content"}},[n("div",{staticClass:"content-body",style:{height:e.contentHeight}},[n("div",{staticClass:"left-menu",style:{height:e.contentHeight}},[n("vue-office-aside",{ref:"asideMenu",attrs:{projectName:e.projectName,collapseFlag:e.collapseFlag}})],1),e._v(" "),n("transition",{attrs:{name:"fade",mode:"out-in"}},[n("router-view")],1)],1)])])],1)},staticRenderFns:[]};var i=n("VU/8")(a,o,!1,function(e){n("wrIu")},null,null);t.default=i.exports},wrIu:function(e,t){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([45],{"43gw":function(e,t){},DxdI:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a("2eFk"),n=a("Ke24"),l=a("fPyK"),i=a("P9l9"),r=a("Ch4/"),s=a("3E4D"),c={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{dialogVisible:!1,tableH:window.screen.availHeight-464-126+"px",topMenuData:[{id:"1",name:"自定义报表"}],activeId:"1",activeTab:"1",activeBrand:"1",tableData:[],multipleSelection:[]}},computed:{},methods:{changeRouter:function(e){this.$router.push(e)},setSelectTab:function(e){this.activeTab=e.tabId},handlePreview:function(e,t){var a=window.location.origin+"/office-mobile/#/staffRecordsTemplate?templateId="+t.dailyReportTemplateId;this.$refs.qrcodePreview.qrcode(a),this.dialogVisible=!0},toCustomSet:function(){this.changeRouter("/template?brandId="+this.brandId)},handleCopy:function(e,t){this.changeRouter("/template?brandId="+this.brandId+"&templateId="+t.dailyReportTemplateId+"&type=copy")},handleEdit:function(e,t){this.changeRouter("/template?brandId="+this.brandId+"&templateId="+t.dailyReportTemplateId+"&type=edit")},handleDelete:function(e,t){var a=this;a.$confirm("一旦删除之后,该范围的门店将无法接收该日报,是否确定删除?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.deleteTemplate(e,t)}).catch(function(){})},deleteTemplate:function(e,t){var a=this;Object(i.c)("/haoban-app-daily-web/daily/del-define-template",{templateId:t.dailyReportTemplateId}).then(function(t){var o=t.data;if(1==o.errorCode)return s.a.showmsg("删除成功","success"),void a.tableData.splice(e,1);r.a.errorMsg(o)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},getData:function(){var e=this;Object(i.c)("/haoban-app-daily-web/daily/list-define-template",{brandId:e.brandId}).then(function(t){var a=t.data;if(1==a.errorCode)return e.tableData=[],void(a.result&&a.result.length&&(e.tableData=a.result));r.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(e,t){this.activeBrand=e,this.getData()}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","212"),this.getData()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:o.a,commonDetailTop:n.a,qrcodeDialog:l.a}},d={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"custom-set-wrap"},[a("common-detail-top",{attrs:{topMenuData:e.topMenuData,activeId:e.activeId}}),e._v(" "),a("div",{staticClass:"custom-set-content boder-box"},[a("div",{staticClass:"flex flex-space-between flex-pack-center m-b-23 m-t-30"},[a("div",{staticClass:"custom-set-title flex flex-pack-center"},[e._v("模板列表("+e._s(e.tableData.length)+")")]),e._v(" "),a("div",[a("el-button",{attrs:{type:"button"},on:{click:function(t){e.toCustomSet("")}}},[e._v("新建模板")])],1)]),e._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"100%"},attrs:{data:e.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"模板名称","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.title))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"name",label:"模板描述","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.description))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"address",label:"门店类型","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[0==t.row.storeType?a("span",[e._v("直营门店")]):e._e(),e._v(" "),1==t.row.storeType?a("span",[e._v("联营门店")]):e._e(),e._v(" "),2==t.row.storeType?a("span",[e._v("代理门店")]):e._e(),e._v(" "),3==t.row.storeType?a("span",[e._v("代销门店")]):e._e(),e._v(" "),4==t.row.storeType?a("span",[e._v("托管门店")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.handlePreview(t.$index,t.row)}}},[e._v("预览")]),e._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.handleCopy(t.$index,t.row)}}},[e._v("复制")]),e._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.handleEdit(t.$index,t.row)}}},[e._v("编辑")]),e._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.handleDelete(t.$index,t.row)}}},[e._v("删除")])]}}])})],1)],1),e._v(" "),a("qrcode-dialog",{ref:"qrcodePreview",model:{value:e.dialogVisible,callback:function(t){e.dialogVisible=t},expression:"dialogVisible"}})],1)},staticRenderFns:[]};var u=a("VU/8")(c,d,!1,function(e){a("43gw")},"data-v-4dc3fb86",null);t.default=u.exports}});
\ No newline at end of file
webpackJsonp([9],{"764x":function(t,a){},Qie6:function(t,a,e){"use strict";var n={name:"common-detail-left",props:{appName:{type:String,default:function(){return""}},activeSelTab:{type:[String,Number],default:function(){return"1"}},tabListData:{type:[Array,Object],default:function(){return[]}}},data:function(){return{projectName:"",activeTab:"1",tabData:this.tabListData}},methods:{returnBack:function(){this.$router.push("appcenter")},selectTab:function(t,a,e){if(a?this.tabData[e].onlyIconActive=!0:this.tabData.forEach(function(t){t.onlyIconActive=!1}),t.hasOwnProperty("children"))return this.tabData[e].onlyIconActive=!0,t.children[0].hasOwnProperty("children")?(this.activeTab=t.children[0].children[0].tabId,this.$emit("setSelectTab",t),!1):(this.activeTab=t.children[0].tabId,this.$emit("setSelectTab",t),!1);this.activeTab=t.tabId,this.$emit("setSelectTab",t)}},watch:{tabListData:function(t,a){this.tabData=t},activeSelTab:function(t,a){this.activeTab=t}}},i={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",[e("ul",{staticClass:"tab-left-list"},[t._l(t.tabData,function(a,n){return[e("li",{key:n,class:["tab-left-list-cell color-303133 font-14 border-box p-l-14",a.tabId==t.activeTab?"active-tab":""],on:{click:function(e){t.selectTab(a,!1,n)}}},[e("i",{class:["p-r-10 color-303133 iconfont",a.icon,a.onlyIconActive?"iconActive":""]}),t._v(t._s(a.tabName))]),t._v(" "),e("ul",{key:"childitem"+n,staticClass:"child-tab-left-list"},[t._l(a.children,function(a,i){return[e("li",{key:i,class:["tab-left-list-cell color-303133 font-14 border-box p-l-40",a.tabId==t.activeTab?"active-tab":""],on:{click:function(e){t.selectTab(a,"child",n)}}},[t._v(t._s(a.tabName))]),t._v(" "),e("ul",{key:"thirditem"+i,staticClass:"third-tab-left-list"},[t._l(a.children,function(a,i){return[e("li",{key:i,class:["tab-left-list-cell color-303133 font-14 border-box p-l-60",a.tabId==t.activeTab?"active-tab":""],on:{click:function(e){t.selectTab(a,"child",n)}}},[t._v(t._s(a.tabName))])]})],2)]})],2)]})],2)])},staticRenderFns:[]};var c=e("VU/8")(n,i,!1,function(t){e("mxYQ")},"data-v-91106130",null);a.a=c.exports},YZ5U:function(t,a){},cuIN:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=e("2eFk"),i=e("fvdr"),c=e("Qie6"),r={name:"reviewed",data:function(){return{tableH:window.screen.availHeight-464-126+"px",appName:"我的顾客",appIcon:"icon-gukedown",activeTab:"1",tabListData:[{tabId:"1",tabName:"会员搜索设置",icon:"icon-sousuoshezhi"},{tabId:"2",tabName:"在线沟通设置",icon:"icon-zaixiangoutong"}],activeBrand:"1"}},computed:{},methods:{selectBrandId:function(t){this.activeBrand=t},setSelectTab:function(t){this.activeTab=t.tabId}},watch:{activeBrand:function(t,a){this.activeBrand=t}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:n.a,commonAppTop:i.a,commonDetailLeft:c.a}},s={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"my-customer-wrap common-set-wrap"},[e("div",{staticClass:"right-content"},[e("common-app-top",{attrs:{appName:t.appName,appIcon:t.appIcon},on:{selectBrandId:t.selectBrandId}}),t._v(" "),e("div",{staticClass:"right-box",style:{"min-height":t.$store.state.bgHeight}},[e("div",{staticClass:"apps-content flex",style:{height:t.$store.state.bgHeight}},[e("div",{staticClass:"apps-content-left w-157"},[e("common-detail-left",{attrs:{tabListData:t.tabListData},on:{setSelectTab:t.setSelectTab}})],1),t._v(" "),e("div",{staticClass:"apps-content-right"},[e("app-detail",{attrs:{brandId:t.activeBrand,tabType:t.activeTab}})],1)])])],1),t._v(" "),e("vue-gic-footer")],1)},staticRenderFns:[]};var o=e("VU/8")(r,s,!1,function(t){e("764x")},"data-v-66f55c80",null);a.default=o.exports},fvdr:function(t,a,e){"use strict";var n=e("Ch4/"),i=e("P9l9"),c={name:"common-app-top",props:{appName:{type:String,default:function(){return""}},appIcon:{type:String,default:function(){return""}}},data:function(){return{projectName:"",activeBrand:"",brandListData:[]}},methods:{returnBack:function(){this.$router.push("appcenter")},changeSelect:function(t){this.$emit("selectBrandId",t)},getBrandData:function(){var t=this;Object(i.c)("/haoban-manage-web/application-brand-list",{}).then(function(a){var e=a.data;1!=e.errorCode?n.a.errorMsg(e):e.result&&e.result.length&&(t.brandListData=e.result,t.activeBrand=t.brandListData[0].brandId,t.$emit("selectBrandId",t.brandListData[0].brandId))}).catch(function(a){t.$message.error({duration:1e3,message:a.message})})}},watch:{brandId:function(t,a){this.getBrandData()}},mounted:function(){this.getBrandData()}},r={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"app-top-wrap app-detail-wrap"},[e("div",{staticClass:"my-customer-top"},[e("div",{staticClass:"my-customer-name"},[e("span",{staticClass:"app-icon "},[e("i",{class:["iconfont",t.appIcon]})]),e("span",{staticClass:"p-l-8"},[t._v(t._s(t.appName))])]),t._v(" "),e("el-button",{staticClass:"border-radius-18 my-customer-return",on:{click:t.returnBack}},[t._v("返回")]),t._v(" "),e("div",{staticClass:"my-customer-brand"},[e("el-select",{attrs:{placeholder:"请选择"},on:{change:t.changeSelect},model:{value:t.activeBrand,callback:function(a){t.activeBrand=a},expression:"activeBrand"}},t._l(t.brandListData,function(t){return e("el-option",{key:t.brandId,attrs:{label:t.name,value:t.brandId}})}))],1)],1)])},staticRenderFns:[]};var s=e("VU/8")(c,r,!1,function(t){e("YZ5U")},"data-v-24333092",null);a.a=s.exports},mxYQ:function(t,a){}});
\ No newline at end of file
webpackJsonp([9],{"764x":function(t,a){},"9IeW":function(t,a){},Qie6:function(t,a,e){"use strict";var n={name:"common-detail-left",props:{appName:{type:String,default:function(){return""}},activeSelTab:{type:[String,Number],default:function(){return"1"}},tabListData:{type:[Array,Object],default:function(){return[]}}},data:function(){return{projectName:"",activeTab:"1",tabData:this.tabListData}},methods:{returnBack:function(){this.$router.push("appcenter")},selectTab:function(t,a,e){if(a?this.tabData[e].onlyIconActive=!0:this.tabData.forEach(function(t){t.onlyIconActive=!1}),t.hasOwnProperty("children"))return this.tabData[e].onlyIconActive=!0,t.children[0].hasOwnProperty("children")?(this.activeTab=t.children[0].children[0].tabId,this.$emit("setSelectTab",t),!1):(this.activeTab=t.children[0].tabId,this.$emit("setSelectTab",t),!1);this.activeTab=t.tabId,this.$emit("setSelectTab",t)}},watch:{tabListData:function(t,a){this.tabData=t},activeSelTab:function(t,a){this.activeTab=t}}},i={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",[e("ul",{staticClass:"tab-left-list"},[t._l(t.tabData,function(a,n){return[e("li",{key:n,class:["tab-left-list-cell color-303133 font-14 border-box p-l-14",a.tabId==t.activeTab?"active-tab":""],on:{click:function(e){t.selectTab(a,!1,n)}}},[e("i",{class:["p-r-10 color-303133 iconfont",a.icon,a.onlyIconActive?"iconActive":""]}),t._v(t._s(a.tabName))]),t._v(" "),e("ul",{key:"childitem"+n,staticClass:"child-tab-left-list"},[t._l(a.children,function(a,i){return[e("li",{key:i,class:["tab-left-list-cell color-303133 font-14 border-box p-l-40",a.tabId==t.activeTab?"active-tab":""],on:{click:function(e){t.selectTab(a,"child",n)}}},[t._v(t._s(a.tabName))]),t._v(" "),e("ul",{key:"thirditem"+i,staticClass:"third-tab-left-list"},[t._l(a.children,function(a,i){return[e("li",{key:i,class:["tab-left-list-cell color-303133 font-14 border-box p-l-60",a.tabId==t.activeTab?"active-tab":""],on:{click:function(e){t.selectTab(a,"child",n)}}},[t._v(t._s(a.tabName))])]})],2)]})],2)]})],2)])},staticRenderFns:[]};var c=e("VU/8")(n,i,!1,function(t){e("mxYQ")},"data-v-91106130",null);a.a=c.exports},cuIN:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=e("2eFk"),i=e("fvdr"),c=e("Qie6"),r={name:"reviewed",data:function(){return{tableH:window.screen.availHeight-464-126+"px",appName:"我的顾客",appIcon:"icon-gukedown",activeTab:"1",tabListData:[{tabId:"1",tabName:"会员搜索设置",icon:"icon-sousuoshezhi"},{tabId:"2",tabName:"在线沟通设置",icon:"icon-zaixiangoutong"}],activeBrand:"1"}},computed:{},methods:{selectBrandId:function(t){this.activeBrand=t},setSelectTab:function(t){this.activeTab=t.tabId}},watch:{activeBrand:function(t,a){this.activeBrand=t}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:n.a,commonAppTop:i.a,commonDetailLeft:c.a}},s={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"my-customer-wrap common-set-wrap"},[e("div",{staticClass:"right-content"},[e("common-app-top",{attrs:{appName:t.appName,appIcon:t.appIcon},on:{selectBrandId:t.selectBrandId}}),t._v(" "),e("div",{staticClass:"right-box",style:{"min-height":t.$store.state.bgHeight}},[e("div",{staticClass:"apps-content flex",style:{height:t.$store.state.bgHeight}},[e("div",{staticClass:"apps-content-left w-157"},[e("common-detail-left",{attrs:{tabListData:t.tabListData},on:{setSelectTab:t.setSelectTab}})],1),t._v(" "),e("div",{staticClass:"apps-content-right"},[e("app-detail",{attrs:{brandId:t.activeBrand,tabType:t.activeTab}})],1)])])],1),t._v(" "),e("vue-gic-footer")],1)},staticRenderFns:[]};var o=e("VU/8")(r,s,!1,function(t){e("764x")},"data-v-66f55c80",null);a.default=o.exports},fvdr:function(t,a,e){"use strict";var n=e("Ch4/"),i=e("P9l9"),c={name:"common-app-top",props:{appName:{type:String,default:function(){return""}},appIcon:{type:String,default:function(){return""}}},data:function(){return{projectName:"",activeBrand:"",brandListData:[]}},methods:{returnBack:function(){this.$router.push("appcenter")},changeSelect:function(t){this.$emit("selectBrandId",t)},getBrandData:function(){var t=this;Object(i.c)("/haoban-manage-web/application-brand-list",{}).then(function(a){var e=a.data;if(1!=e.errorCode)n.a.errorMsg(e);else if(e.result&&e.result.length){if(t.brandListData=e.result,t.$route.query.brandId)return t.activeBrand=t.$route.query.brandId,t.$emit("selectBrandId",t.$route.query.brandId),!1;t.activeBrand=t.brandListData[0].brandId,t.$emit("selectBrandId",t.brandListData[0].brandId)}}).catch(function(a){t.$message.error({duration:1e3,message:a.message})})}},watch:{brandId:function(t,a){this.getBrandData()}},mounted:function(){this.getBrandData()}},r={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"app-top-wrap app-detail-wrap"},[e("div",{staticClass:"my-customer-top"},[e("div",{staticClass:"my-customer-name"},[e("span",{staticClass:"app-icon "},[e("i",{class:["iconfont",t.appIcon]})]),e("span",{staticClass:"p-l-8"},[t._v(t._s(t.appName))])]),t._v(" "),e("el-button",{staticClass:"border-radius-18 my-customer-return",on:{click:t.returnBack}},[t._v("返回")]),t._v(" "),e("div",{staticClass:"my-customer-brand"},[e("el-select",{attrs:{placeholder:"请选择"},on:{change:t.changeSelect},model:{value:t.activeBrand,callback:function(a){t.activeBrand=a},expression:"activeBrand"}},t._l(t.brandListData,function(t){return e("el-option",{key:t.brandId,attrs:{label:t.name,value:t.brandId}})}))],1)],1)])},staticRenderFns:[]};var s=e("VU/8")(c,r,!1,function(t){e("9IeW")},"data-v-1ced29b4",null);a.a=s.exports},mxYQ:function(t,a){}});
\ No newline at end of file
!function(e){var a=window.webpackJsonp;window.webpackJsonp=function(c,d,n){for(var r,t,o,i=0,u=[];i<c.length;i++)t=c[i],f[t]&&u.push(f[t][0]),f[t]=0;for(r in d)Object.prototype.hasOwnProperty.call(d,r)&&(e[r]=d[r]);for(a&&a(c,d,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=b(b.s=n[i]);return o};var c={},f={59:0};function b(a){if(c[a])return c[a].exports;var f=c[a]={i:a,l:!1,exports:{}};return e[a].call(f.exports,f,f.exports,b),f.l=!0,f.exports}b.e=function(e){var a=f[e];if(0===a)return new Promise(function(e){e()});if(a)return a[2];var c=new Promise(function(c,b){a=f[e]=[c,b]});a[2]=c;var d=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.async=!0,n.timeout=12e4,b.nc&&n.setAttribute("nonce",b.nc),n.src=b.p+"static/js/"+e+"."+{0:"23b23733f6065b4179c2",1:"0ebe3ead93207dc78a78",2:"a168f9f3fa5a62ea5c70",3:"7f87f1f60c09bb6ad371",4:"980fbe9ce39d0bdd10c0",5:"d453dce272cb1568e82a",6:"e0db72d8013f3998914f",7:"e2adc4d7afcbe0a7ed52",8:"555ec3b4a00bb6aee826",9:"8d73e309ef58b30f3949",10:"df9e16ddb6a75b958744",11:"2a6371e26ce81d53bfa6",12:"666f0a8165beb18b8d9d",13:"f0eeeb571414f7729a5b",14:"03b6a6249c86c65ed92f",15:"e0b74d60b14247754cb3",16:"d2f23967b1247f2207ec",17:"9cfaee8d66ae728ea464",18:"81ae347a12f75b90e007",19:"cc8c9552f7ea84249be2",20:"a8abdc23bdc593b762e5",21:"38d35871ca0f95869726",22:"7cee9a623310b73db76b",23:"9efbbc6dd315a676ce09",24:"bf6f0ff86766a16c7dbd",25:"4f9db49437ea94436d03",26:"bbc7a69bf6fba46efcbb",27:"3162eb199b04bdea1533",28:"23e211b3adb48af95990",29:"175367c6d43c170e5641",30:"ca8c2764a85d8486ce80",31:"1b98b5a68e3b103fd91f",32:"bedbe19efe184da871fd",33:"5526970631a630fe7d39",34:"faebf976540c43a270ad",35:"8425bf13fae43f58bbc3",36:"b4d48c4b28ba43575533",37:"d045f27e556ef0cd011b",38:"28d16cd53b7944efc4cd",39:"8861e4489f26fe322990",40:"c6cf553f8eb155ae6f1a",41:"119ab10f2d353ddcdbc8",42:"2acf6cfffaeed2ca7a49",43:"45e56240c38c21153aab",44:"9729f565fa08bdae59f9",45:"8fc6bc64d699c523cafa",46:"b511df899e058a75227c",47:"a0628e1ca4b8b3f4b568",48:"f5b0ea05d46364fefec1",49:"312fbfa8240b2f51ff62",50:"a75c0b98514e4b842995",51:"778b4ef4e1c41bb37140",52:"4a20fc9d833ea98ca890",53:"99186c854574bb3bf0e6",54:"4c0d4c8c14180b49fb26",55:"9ccaceac4331fa11d788",58:"acb5d0caf683189666dc"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var a=f[e];0!==a&&(a&&a[1](new Error("Loading chunk "+e+" failed.")),f[e]=void 0)}return n.onerror=n.onload=t,d.appendChild(n),c},b.m=e,b.c=c,b.d=function(e,a,c){b.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:c})},b.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return b.d(a,"a",a),a},b.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},b.p="./",b.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
!function(e){var a=window.webpackJsonp;window.webpackJsonp=function(f,d,n){for(var r,t,o,i=0,u=[];i<f.length;i++)t=f[i],c[t]&&u.push(c[t][0]),c[t]=0;for(r in d)Object.prototype.hasOwnProperty.call(d,r)&&(e[r]=d[r]);for(a&&a(f,d,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=b(b.s=n[i]);return o};var f={},c={59:0};function b(a){if(f[a])return f[a].exports;var c=f[a]={i:a,l:!1,exports:{}};return e[a].call(c.exports,c,c.exports,b),c.l=!0,c.exports}b.e=function(e){var a=c[e];if(0===a)return new Promise(function(e){e()});if(a)return a[2];var f=new Promise(function(f,b){a=c[e]=[f,b]});a[2]=f;var d=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.async=!0,n.timeout=12e4,b.nc&&n.setAttribute("nonce",b.nc),n.src=b.p+"static/js/"+e+"."+{0:"5b74264eadd53a475bb9",1:"0ebe3ead93207dc78a78",2:"a168f9f3fa5a62ea5c70",3:"7f87f1f60c09bb6ad371",4:"a71db4030525896a0f7f",5:"d453dce272cb1568e82a",6:"ec80f7f88f96faf87e0e",7:"e2adc4d7afcbe0a7ed52",8:"555ec3b4a00bb6aee826",9:"1749d0be6cafea72c2e4",10:"afc243b94f451251094c",11:"2a6371e26ce81d53bfa6",12:"666f0a8165beb18b8d9d",13:"f0eeeb571414f7729a5b",14:"03b6a6249c86c65ed92f",15:"e0b74d60b14247754cb3",16:"d2f23967b1247f2207ec",17:"9cfaee8d66ae728ea464",18:"81ae347a12f75b90e007",19:"cc8c9552f7ea84249be2",20:"a8abdc23bdc593b762e5",21:"38d35871ca0f95869726",22:"7cee9a623310b73db76b",23:"9efbbc6dd315a676ce09",24:"bf6f0ff86766a16c7dbd",25:"4f9db49437ea94436d03",26:"bbc7a69bf6fba46efcbb",27:"3162eb199b04bdea1533",28:"23e211b3adb48af95990",29:"175367c6d43c170e5641",30:"ca8c2764a85d8486ce80",31:"1b98b5a68e3b103fd91f",32:"bedbe19efe184da871fd",33:"5526970631a630fe7d39",34:"faebf976540c43a270ad",35:"8425bf13fae43f58bbc3",36:"b4d48c4b28ba43575533",37:"d045f27e556ef0cd011b",38:"5abf0f84a99244933424",39:"3d1afad2b50acdcfbde4",40:"4d091f8b6280eb7074f0",41:"65b98076deb8556fb73b",42:"2acf6cfffaeed2ca7a49",43:"45e56240c38c21153aab",44:"7b532463b96eef7ec767",45:"e1f29ac7f7c5fb9cfd9a",46:"b511df899e058a75227c",47:"a0628e1ca4b8b3f4b568",48:"f5b0ea05d46364fefec1",49:"312fbfa8240b2f51ff62",50:"a75c0b98514e4b842995",51:"778b4ef4e1c41bb37140",52:"4a20fc9d833ea98ca890",53:"99186c854574bb3bf0e6",54:"4c0d4c8c14180b49fb26",55:"9ccaceac4331fa11d788",58:"acb5d0caf683189666dc"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var a=c[e];0!==a&&(a&&a[1](new Error("Loading chunk "+e+" failed.")),c[e]=void 0)}return n.onerror=n.onload=t,d.appendChild(n),f},b.m=e,b.c=f,b.d=function(e,a,f){b.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:f})},b.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return b.d(a,"a",a),a},b.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},b.p="./",b.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
...@@ -76,6 +76,11 @@ export default { ...@@ -76,6 +76,11 @@ export default {
if (resData.errorCode == 1) { if (resData.errorCode == 1) {
if (!!resData.result && !!resData.result.length) { if (!!resData.result && !!resData.result.length) {
that.brandListData = resData.result; that.brandListData = resData.result;
if (!!that.$route.query.brandId) {
that.activeBrand = that.$route.query.brandId;
that.$emit('selectBrandId', that.$route.query.brandId);
return false;
}
that.activeBrand = that.brandListData[0].brandId; that.activeBrand = that.brandListData[0].brandId;
that.$emit('selectBrandId', that.brandListData[0].brandId); that.$emit('selectBrandId', that.brandListData[0].brandId);
} }
...@@ -158,6 +163,7 @@ export default { ...@@ -158,6 +163,7 @@ export default {
background: -webkit-linear-gradient(right, #7ab6fb, #508bfe); background: -webkit-linear-gradient(right, #7ab6fb, #508bfe);
background: -moz-linear-gradient(right, #7ab6fb, #508bfe); background: -moz-linear-gradient(right, #7ab6fb, #508bfe);
background: linear-gradient(right, #7ab6fb, #508bfe); background: linear-gradient(right, #7ab6fb, #508bfe);
background: -webkit-linear-gradient(right, #7ab6fb, #508bfe);
} }
} }
} }
......
<!--
<qrcode-dialog ref="qrcodePreview" v-model="dialogVisible"></qrcode-dialog>
import qrcodeDialog from '@/components/app/qrcode-dialog.vue';
components: {
qrcodeDialog
}
dialogVisible: false,
let webUrl = ``;
that.$refs.qrcodePreview.qrcode(webUrl);
that.dialogVisible = true;
-->
<template> <template>
<div class="qr-dialog-content" style="opacity: 1;" v-show="dialogVisible"> <div class="qr-dialog-content" style="opacity: 1;" v-show="value">
<div class="qr-mask" @click.stop="closeDialog"></div> <div class="qr-mask" @click.stop="closeDialog"></div>
<div class="qr-dialog"> <div class="qr-dialog">
<div class="qr-dialog__hd"> <div class="qr-dialog__hd">
...@@ -18,17 +32,33 @@ ...@@ -18,17 +32,33 @@
import QRCode from 'qrcodejs2'; import QRCode from 'qrcodejs2';
export default { export default {
name: 'qrcode-dialog', name: 'qrcode-dialog',
props: {
value: {
type: Boolean,
default() {
return false;
}
}
},
data() { data() {
return { return {
dialogVisible: false qrcodeCase: '' // 二维码实例
} };
}, },
methods: { methods: {
/** /**
* 关闭预览窗口
*/
closeDialog() {
const that = this;
that.$emit('input', false);
},
/**
* 生成二维码 * 生成二维码
*/ */
qrcode(text) { qrcode(text) {
const that = this; let that = this;
if (!!that.qrcodeCase) { if (!!that.qrcodeCase) {
document.getElementById('qrcode').innerHTML = ''; document.getElementById('qrcode').innerHTML = '';
that.qrcodeCase.clear(); // 先清除原有的 that.qrcodeCase.clear(); // 先清除原有的
...@@ -40,22 +70,15 @@ export default { ...@@ -40,22 +70,15 @@ export default {
that.qrcodeCase = new QRCode('qrcode', { that.qrcodeCase = new QRCode('qrcode', {
width: 210, width: 210,
height: 210, // 高度 height: 210, // 高度
text: JSON.stringify(qrObj) // 二维码内容 // text: JSON.stringify(qrObj), // 二维码内容 //
//render: 'canvas', // 设置渲染方式(有两种方式 table和canvas,默认是canvas) // //render: 'canvas', // 设置渲染方式(有两种方式 table和canvas,默认是canvas) //
//background: '#f0f', //background: '#f0f',
//foreground: '#ff0' //foreground: '#ff0'
correctLevel: 3
}); });
},
/**
* 关闭预览窗口
*/
closeDialog() {
const that = this;
that.dialogVisible = false;
},
} }
} }
};
</script> </script>
<style type="text/scss" lang="scss" scoped> <style type="text/scss" lang="scss" scoped>
.qr-mask { .qr-mask {
...@@ -67,9 +90,9 @@ export default { ...@@ -67,9 +90,9 @@ export default {
bottom: 0; bottom: 0;
background: rgba(0, 0, 0, 0.6); background: rgba(0, 0, 0, 0.6);
cursor: pointer; cursor: pointer;
} }
.qr-dialog { .qr-dialog {
position: fixed; position: fixed;
z-index: 5000; z-index: 5000;
width: 80%; width: 80%;
...@@ -129,6 +152,5 @@ export default { ...@@ -129,6 +152,5 @@ export default {
color: #606266; color: #606266;
} }
} }
} }
</style> </style>
...@@ -81,7 +81,7 @@ ...@@ -81,7 +81,7 @@
<el-tab-pane label="自定义字段" name="second"> <el-tab-pane label="自定义字段" name="second">
<div class="filed-item-title"><!-- 其他信息 --></div> <div class="filed-item-title"><!-- 其他信息 --></div>
<ul> <ul>
<draggable id="list5" :list="defineInfo" class="compenent" :options="leftDefineOption" :move="onChildMove" @start="isDragging = true" @end="itemMoveEnd" @clone="cloneDefine"> <draggable id="list5" :list="defineInfo" class="compenent" :options="leftDefineOption" :move="onChildMove" @start="isDragging = true" @end="itemMoveEnd">
<li :class="['compenent-item', item.fixed == true ? 'fixed-item' : '']" :data-type="item.fieldCode" v-for="(item, index) in defineInfo" :key="index" @mousedown="clickItem(item)"> <li :class="['compenent-item', item.fixed == true ? 'fixed-item' : '']" :data-type="item.fieldCode" v-for="(item, index) in defineInfo" :key="index" @mousedown="clickItem(item)">
<span v-if="!item.systemFlag && item.fieldType == 0">{{ item.fieldName }}</span> <span v-if="!item.systemFlag && item.fieldType == 0">{{ item.fieldName }}</span>
<span v-if="!item.systemFlag && item.fieldType == 1">{{ item.fieldName }}</span> <span v-if="!item.systemFlag && item.fieldType == 1">{{ item.fieldName }}</span>
...@@ -117,7 +117,7 @@ ...@@ -117,7 +117,7 @@
<template v-if="tempaletDataList.length == 0"> <template v-if="tempaletDataList.length == 0">
<img class="templet-null-img" src="../../assets/templet_null_img.png" /> <img class="templet-null-img" src="../../assets/templet_null_img.png" />
</template> </template>
<draggable :options="{ group: { name: 'people', pull: false, put: false }, sort: true }" v-model="tempaletDataList" class="drag-wrap" @add="addItem"> <draggable :options="{ group: { name: 'people', pull: false, put: false }, sort: true }" v-model="tempaletDataList" class="drag-wrap">
<li :class="['filed-item', currentIndex == index ? 'active-item' : '', 'li-block']" v-for="(item, index) in tempaletDataList" :key="'li1' + index" @click="selectItem(item.fieldCode, index)"> <li :class="['filed-item', currentIndex == index ? 'active-item' : '', 'li-block']" v-for="(item, index) in tempaletDataList" :key="'li1' + index" @click="selectItem(item.fieldCode, index)">
<!-- 删除 --> <!-- 删除 -->
<span v-if="item.fieldCode != 'baseInfo'" class="item-close p-item-close" @click.stop="deleteItem(item.fieldCode, index)"> <span v-if="item.fieldCode != 'baseInfo'" class="item-close p-item-close" @click.stop="deleteItem(item.fieldCode, index)">
...@@ -257,7 +257,7 @@ ...@@ -257,7 +257,7 @@
<div class="edit-item-title">日期类型</div> <div class="edit-item-title">日期类型</div>
<!-- 日期 --> <!-- 日期 -->
<template v-for="(types, ind) in childItem.fieldOperations.ruleContent"> <template v-for="(types, ind) in childItem.fieldOperations.ruleContent">
<el-radio v-model="childItem.fieldOperations.typeValue" :label="types.key" :key="'child8' + ind" @change="changeRadio($event, ind, childItem)"> <el-radio v-model="childItem.fieldOperations.typeValue" :label="types.key" :key="'child8' + ind">
{{ types.name }} {{ types.name }}
</el-radio> </el-radio>
</template> </template>
...@@ -314,21 +314,7 @@ ...@@ -314,21 +314,7 @@
</div> </div>
</div> </div>
</div> </div>
<qrcode-dialog ref="qrcodePreview" v-model="dialogVisible"></qrcode-dialog>
<div class="qr-dialog-content" style="opacity: 1;" v-show="dialogVisible">
<div class="qr-mask" @click.stop="closeDialog"></div>
<div class="qr-dialog">
<div class="qr-dialog__hd">
<strong class="qr-dialog__title">预览</strong>
<i class="el-icon-close" @click.stop="closeDialog"></i>
</div>
<div class="qr-dialog__bd">
<div id="qrcode"></div>
<div class="qr-dialog__p">请使用好办 APP 扫一扫预览</div>
</div>
<div class="qr--dialog__ft"></div>
</div>
</div>
<!-- <vue-gic-footer></vue-gic-footer> --> <!-- <vue-gic-footer></vue-gic-footer> -->
</div> </div>
</template> </template>
...@@ -336,12 +322,12 @@ ...@@ -336,12 +322,12 @@
import draggable from 'vuedraggable'; import draggable from 'vuedraggable';
import AddInput from '@/components/templateSet/add-input'; import AddInput from '@/components/templateSet/add-input';
import limitInput from '@/components/limit-input.vue'; import limitInput from '@/components/limit-input.vue';
import QRCode from 'qrcodejs2'; import qrcodeDialog from '@/components/app/qrcode-dialog.vue';
import allInfo from '@/components/contacts/staffInfoTemplate'; import allInfo from '@/components/contacts/staffInfoTemplate';
import showMsg from '@/common/js/showmsg'; import showMsg from '@/common/js/showmsg';
import errMsg from '@/common/js/error'; import errMsg from '@/common/js/error';
// import strLength from '@/common/js/strlen'; // import strLength from '@/common/js/strlen';
// import { _debounce } from '@/common/js/public'; import { _debounce } from '@/common/js/public';
import { postRequest } from '@/api/api'; import { postRequest } from '@/api/api';
export default { export default {
...@@ -522,10 +508,7 @@ export default { ...@@ -522,10 +508,7 @@ export default {
personalInfo: {} personalInfo: {}
}, },
// 已经选择的字段集合 // 已经选择的字段集合
setList: [], setList: []
// 二维码
qrcodeCase: '', // 二维码实例
qrcodeNum: ''
}; };
}, },
created() { created() {
...@@ -592,9 +575,7 @@ export default { ...@@ -592,9 +575,7 @@ export default {
if (!that.checkMove(evt)) { if (!that.checkMove(evt)) {
return false; return false;
} }
// const relatedElement = evt.relatedContext.element;
const draggedElement = evt.draggedContext.element; const draggedElement = evt.draggedContext.element;
//console.log(draggedElement.fixed)(!relatedElement || !relatedElement.fixed) &&
return !draggedElement.fixed; return !draggedElement.fixed;
}, },
...@@ -642,12 +623,7 @@ export default { ...@@ -642,12 +623,7 @@ export default {
that.$forceUpdate(); that.$forceUpdate();
}, },
cloneDefine(evt) {
},
// 中间部分方法 // 中间部分方法
/** /**
* 选择 item 即父级 item * 选择 item 即父级 item
*/ */
...@@ -674,14 +650,6 @@ export default { ...@@ -674,14 +650,6 @@ export default {
}, },
/** /**
* 添加 item
*/
/* eslint-disable */
addItem() {
},
/**
* 添加 child * 添加 child
*/ */
addDragItem(evt) { addDragItem(evt) {
...@@ -726,11 +694,6 @@ export default { ...@@ -726,11 +694,6 @@ export default {
/** /**
* 右侧方法 * 右侧方法
*/ */
/* eslint-disable */
checkedChange(e, item) {
// const that = this;
},
/** /**
* 添加删除选项 * 添加删除选项
*/ */
...@@ -766,14 +729,6 @@ export default { ...@@ -766,14 +729,6 @@ export default {
}, },
/** /**
* 自定义单选(日期)
*/
/* eslint-disable */
changeRadio(e, ind, item) {
// const that = this;
},
/**
* 判断添加重复字段 * 判断添加重复字段
*/ */
isRepeat(arr) { isRepeat(arr) {
...@@ -842,7 +797,7 @@ export default { ...@@ -842,7 +797,7 @@ export default {
/** /**
* 保存 * 保存
*/ */
saveAndBack(opt) { saveAndBack: _debounce(function (opt) {
const that = this; const that = this;
let data = JSON.parse(JSON.stringify(that.tempaletDataList)); let data = JSON.parse(JSON.stringify(that.tempaletDataList));
let tagObj = that.checkTag(data); let tagObj = that.checkTag(data);
...@@ -916,7 +871,7 @@ export default { ...@@ -916,7 +871,7 @@ export default {
} else { } else {
that.postPreview(data); that.postPreview(data);
} }
}, },500),
/** /**
* 保存---api * 保存---api
...@@ -958,7 +913,7 @@ export default { ...@@ -958,7 +913,7 @@ export default {
if (resData.errorCode == 1) { if (resData.errorCode == 1) {
// 生成二维码需要的 url // 生成二维码需要的 url
let webUrl = `${window.location.origin}/office-mobile/#/staffRecordsTemplate?enterpriseId=${resData.result}`; let webUrl = `${window.location.origin}/office-mobile/#/staffRecordsTemplate?enterpriseId=${resData.result}`;
that.qrcode(webUrl); that.$refs.qrcodePreview.qrcode(webUrl);
that.dialogVisible = true; that.dialogVisible = true;
return; return;
} }
...@@ -973,29 +928,6 @@ export default { ...@@ -973,29 +928,6 @@ export default {
}, },
/** /**
* 生成二维码
*/
qrcode(text) {
const that = this;
if (!!that.qrcodeCase) {
document.getElementById('qrcode').innerHTML = '';
that.qrcodeCase.clear(); // 先清除原有的
}
let qrObj = {
type: 'record',
data: text
};
that.qrcodeCase = new QRCode('qrcode', {
width: 210,
height: 210, // 高度
text: JSON.stringify(qrObj) // 二维码内容 //
//render: 'canvas', // 设置渲染方式(有两种方式 table和canvas,默认是canvas) //
//background: '#f0f',
//foreground: '#ff0'
});
},
/**
* 关闭预览窗口 * 关闭预览窗口
*/ */
closeDialog() { closeDialog() {
...@@ -1158,7 +1090,8 @@ export default { ...@@ -1158,7 +1090,8 @@ export default {
components: { components: {
draggable, draggable,
AddInput, AddInput,
limitInput limitInput,
qrcodeDialog
}, },
mounted() { mounted() {
const that = this; const that = this;
......
...@@ -10,32 +10,41 @@ ...@@ -10,32 +10,41 @@
</div> </div>
<el-table class="select-table" ref="multipleTable" :data="tableData" tooltip-effect="dark" style="width: 100%"> <el-table class="select-table" ref="multipleTable" :data="tableData" tooltip-effect="dark" style="width: 100%">
<el-table-column label="模板名称" show-overflow-tooltip> <el-table-column label="模板名称" show-overflow-tooltip>
<template slot-scope="scope">{{ scope.row.date }}</template> <template slot-scope="scope">{{ scope.row.title }}</template>
</el-table-column> </el-table-column>
<el-table-column prop="name" label="模板描述" show-overflow-tooltip> <el-table-column prop="name" label="模板描述" show-overflow-tooltip>
<template slot-scope="scope">{{ scope.row.date }}</template> <template slot-scope="scope">{{ scope.row.description }}</template>
</el-table-column> </el-table-column>
<el-table-column prop="address" label="门店类型" show-overflow-tooltip> <el-table-column prop="address" label="门店类型" show-overflow-tooltip>
<template slot-scope="scope">{{ scope.row.date }}</template> <template slot-scope="scope">
<span v-if="scope.row.storeType == 0">直营门店</span>
<span v-if="scope.row.storeType == 1">联营门店</span>
<span v-if="scope.row.storeType == 2">代理门店</span>
<span v-if="scope.row.storeType == 3">代销门店</span>
<span v-if="scope.row.storeType == 4">托管门店</span>
</template>
</el-table-column> </el-table-column>
<el-table-column label="操作"> <el-table-column label="操作">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="text" size="small" @click="handleEdit(scope.$index, scope.row)">预览</el-button> <el-button type="text" size="small" @click="handlePreview(scope.$index, scope.row)">预览</el-button>
<el-button type="text" size="small" @click="handleDelete(scope.$index, scope.row)">复制</el-button> <el-button type="text" size="small" @click="handleCopy(scope.$index, scope.row)">复制</el-button>
<el-button type="text" size="small" @click="handleEdit(scope.$index, scope.row)">编辑</el-button> <el-button type="text" size="small" @click="handleEdit(scope.$index, scope.row)">编辑</el-button>
<el-button type="text" size="small" @click="handleDelete(scope.$index, scope.row)">删除</el-button> <el-button type="text" size="small" @click="handleDelete(scope.$index, scope.row)">删除</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
</div> </div>
<qrcode-dialog ref="qrcodePreview" v-model="dialogVisible"></qrcode-dialog>
</div> </div>
</template> </template>
<script> <script>
// import navCrumb from '@/components/nav/nav.vue'; // import navCrumb from '@/components/nav/nav.vue';
import appDetail from '@/components/app/app-detail.vue'; import appDetail from '@/components/app/app-detail.vue';
import commonDetailTop from '@/components/app/common-detail-top.vue'; import commonDetailTop from '@/components/app/common-detail-top.vue';
import qrcodeDialog from '@/components/app/qrcode-dialog.vue';
import { postRequest } from '@/api/api'; import { postRequest } from '@/api/api';
import errMsg from '@/common/js/error'; import errMsg from '@/common/js/error';
import showMsg from '@/common/js/showmsg';
export default { export default {
name: 'reviewed', name: 'reviewed',
props: { props: {
...@@ -48,6 +57,8 @@ export default { ...@@ -48,6 +57,8 @@ export default {
}, },
data() { data() {
return { return {
dialogVisible: false,
// 二维码
tableH: window.screen.availHeight - 464 - 126 + 'px', tableH: window.screen.availHeight - 464 - 126 + 'px',
topMenuData: [ topMenuData: [
{ {
...@@ -58,23 +69,7 @@ export default { ...@@ -58,23 +69,7 @@ export default {
activeId: '1', activeId: '1',
activeTab: '1', activeTab: '1',
activeBrand: '1', // 商户(品牌) id activeBrand: '1', // 商户(品牌) id
tableData: [ tableData: [],
{
date: '2016-05-03',
name: '王小虎',
address: '上海市普陀区金沙江路 1518 弄'
},
{
date: '2016-05-02',
name: '王小虎',
address: '上海市普陀区金沙江路 1518 弄'
},
{
date: '2016-05-04',
name: '王小虎',
address: '上海市普陀区金沙江路 1518 弄'
}
],
multipleSelection: [] multipleSelection: []
}; };
}, },
...@@ -94,6 +89,16 @@ export default { ...@@ -94,6 +89,16 @@ export default {
}, },
/** /**
* 预览模板
*/
handlePreview(index, item) {
let that = this;
let webUrl = `${window.location.origin}/office-mobile/#/staffRecordsTemplate?templateId=${item.dailyReportTemplateId}`;
that.$refs.qrcodePreview.qrcode(webUrl);
that.dialogVisible = true;
},
/**
* 新增模板 * 新增模板
*/ */
toCustomSet() { toCustomSet() {
...@@ -102,6 +107,58 @@ export default { ...@@ -102,6 +107,58 @@ export default {
}, },
/** /**
* 复制模板
*/
handleCopy(index, item) {
let that = this;
that.changeRouter(`/template?brandId=${that.brandId}&templateId=${item.dailyReportTemplateId}&type=copy`);
},
/**
* 编辑模板
*/
handleEdit(index, item) {
let that = this;
that.changeRouter(`/template?brandId=${that.brandId}&templateId=${item.dailyReportTemplateId}&type=edit`);
},
/**
* 删除模板
*/
handleDelete(index, item) {
let that = this;
that
.$confirm('一旦删除之后,该范围的门店将无法接收该日报,是否确定删除?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
})
.then(() => {
that.deleteTemplate(index, item);
})
.catch(() => {});
},
deleteTemplate(index, item) {
let that = this;
postRequest('/haoban-app-daily-web/daily/del-define-template', { templateId: item.dailyReportTemplateId })
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
showMsg.showmsg('删除成功', 'success');
that.tableData.splice(index, 1);
return;
}
errMsg.errorMsg(resData);
})
.catch(function(error) {
that.$message.error({
duration: 1000,
message: error.message
});
});
},
/**
* 获取 列表数据 * 获取 列表数据
*/ */
getData() { getData() {
...@@ -127,9 +184,10 @@ export default { ...@@ -127,9 +184,10 @@ export default {
} }
}, },
watch: { watch: {
activeBrand: function(newData, oldData) { brandId: function(newData, oldData) {
const that = this; let that = this;
that.activeBrand = newData; that.activeBrand = newData;
that.getData();
} }
}, },
mounted() { mounted() {
...@@ -142,7 +200,8 @@ export default { ...@@ -142,7 +200,8 @@ export default {
}, },
components: { components: {
appDetail, appDetail,
commonDetailTop commonDetailTop,
qrcodeDialog
} }
}; };
</script> </script>
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
</div> </div>
<div class="template-btns flex-1 flex-r"> <div class="template-btns flex-1 flex-r">
<el-button type="primary" plain @click="saveAndBack('preview')">预 览</el-button> <el-button type="primary" plain @click="saveAndBack('preview')">预 览</el-button>
<el-button type="primary" plain @click="changeRoute('/systemReport')">返 回</el-button> <el-button type="primary" plain @click="returnBack">返 回</el-button>
<el-button type="primary" @click="saveAndBack('save')">保存并启用</el-button> <el-button type="primary" @click="saveAndBack('save')">保存并启用</el-button>
</div> </div>
</div> </div>
...@@ -117,21 +117,7 @@ ...@@ -117,21 +117,7 @@
</div> </div>
</div> </div>
</div> </div>
<qrcode-dialog ref="qrcodePreview" v-model="dialogVisible"></qrcode-dialog>
<div class="qr-dialog-content" style="opacity: 1;" v-show="dialogVisible">
<div class="qr-mask" @click.stop="closeDialog"></div>
<div class="qr-dialog">
<div class="qr-dialog__hd">
<strong class="qr-dialog__title">预览</strong>
<i class="el-icon-close" @click.stop="closeDialog"></i>
</div>
<div class="qr-dialog__bd">
<div id="qrcode"></div>
<div class="qr-dialog__p">请使用好办 APP 扫一扫预览</div>
</div>
<div class="qr--dialog__ft"></div>
</div>
</div>
<!-- <vue-gic-footer></vue-gic-footer> --> <!-- <vue-gic-footer></vue-gic-footer> -->
</div> </div>
</template> </template>
...@@ -145,13 +131,12 @@ import membershipData from '@/components/app/cloudDaily/membership-data.vue'; ...@@ -145,13 +131,12 @@ import membershipData from '@/components/app/cloudDaily/membership-data.vue';
import errorMointor from '@/components/app/cloudDaily/error-mointor.vue'; import errorMointor from '@/components/app/cloudDaily/error-mointor.vue';
import oldCustomerData from '@/components/app/cloudDaily/old-customer-data.vue'; import oldCustomerData from '@/components/app/cloudDaily/old-customer-data.vue';
import birthdayMembershipData from '@/components/app/cloudDaily/birthday-membership-data.vue'; import birthdayMembershipData from '@/components/app/cloudDaily/birthday-membership-data.vue';
import QRCode from 'qrcodejs2'; import qrcodeDialog from '@/components/app/qrcode-dialog.vue';
import showMsg from '@/common/js/showmsg'; import showMsg from '@/common/js/showmsg';
import errMsg from '@/common/js/error'; import errMsg from '@/common/js/error';
// import strLength from '@/common/js/strlen'; // import strLength from '@/common/js/strlen';
// import { _debounce } from '@/common/js/public'; import { _debounce } from '@/common/js/public';
import { getRequest, postRequest } from '@/api/api'; import { getRequest, postRequest } from '@/api/api';
export default { export default {
name: 'staffRecordsTemplate', name: 'staffRecordsTemplate',
data() { data() {
...@@ -187,31 +172,9 @@ export default { ...@@ -187,31 +172,9 @@ export default {
powerInfo: [], powerInfo: [],
// 中间数据集合 // 中间数据集合
currentIndex: 0, //当前选择的 item currentIndex: 0, //当前选择的 item
tempaletDataList: [],
tempaletDataList: [
/* {
classify: 'cardInfo',
name: '时间进度',
title: '时间进度',
type: 'timeProgress',
fixed: false
} */
],
// 添加父级集合
fieldParent: {
baseInfo: {},
jobInfo: {},
selfInfo: {},
eduInfo: {},
contractInfo: {},
contactInfo: {},
personalInfo: {}
},
// 已经选择的字段集合 // 已经选择的字段集合
setParent: [], setParent: []
// 二维码
qrcodeCase: '', // 二维码实例
qrcodeNum: ''
}; };
}, },
created() { created() {
...@@ -219,6 +182,13 @@ export default { ...@@ -219,6 +182,13 @@ export default {
}, },
methods: { methods: {
/** /**
* 返回
*/
returnBack() {
let that = this;
that.changeRoute(`/systemReport?brandId=${that.brandId}`);
},
/**
* 点击左侧字段 item * 点击左侧字段 item
*/ */
/* eslint-disable */ /* eslint-disable */
...@@ -357,12 +327,10 @@ export default { ...@@ -357,12 +327,10 @@ export default {
/** /**
* 保存 * 保存
*/ */
saveAndBack(opt) { saveAndBack: _debounce(function(opt) {
const that = this; const that = this;
let data = JSON.parse(JSON.stringify(that.tempaletDataList)); let data = JSON.parse(JSON.stringify(that.tempaletDataList));
let tagObj = that.checkTag(data); let tagObj = that.checkTag(data);
let allLengthData = [];
if (tagObj.filedRepeat) { if (tagObj.filedRepeat) {
that.$message.error({ that.$message.error({
duration: 1000, duration: 1000,
...@@ -373,21 +341,20 @@ export default { ...@@ -373,21 +341,20 @@ export default {
data.forEach(function(ele, index) { data.forEach(function(ele, index) {
ele.sort = index; ele.sort = index;
}); });
if (!data.length) {
/* if (allLengthData.length >40) {
that.$message.error({ that.$message.error({
duration: 1000, duration: 1000,
message: '最多设置 40 个字段' message: '请先配置字段'
}); });
return false; return false;
} */ }
// console.log(JSON.stringify(data)) // console.log(JSON.stringify(data))
if (opt === 'save') { if (opt === 'save') {
that.saveAllData(data); that.saveAllData(data);
} else { } else {
that.postPreview(data); that.postPreview(data);
} }
}, },500),
/** /**
* 保存---api * 保存---api
...@@ -406,7 +373,7 @@ export default { ...@@ -406,7 +373,7 @@ export default {
let resData = res.data; let resData = res.data;
if (resData.errorCode == 1) { if (resData.errorCode == 1) {
showMsg.showmsg('保存成功', 'success'); showMsg.showmsg('保存成功', 'success');
// that.changeRoute('/systemReport'); that.changeRoute(`/systemReport?brandId=${that.brandId}`);
return; return;
} }
errMsg.errorMsg(resData); errMsg.errorMsg(resData);
...@@ -436,7 +403,7 @@ export default { ...@@ -436,7 +403,7 @@ export default {
if (resData.errorCode == 1) { if (resData.errorCode == 1) {
// 生成二维码需要的 url // 生成二维码需要的 url
let webUrl = `${window.location.origin}/office-mobile/#/staffRecordsTemplate?enterpriseId=${enterpriseId}&templateId=${resData.result}&brandId=${that.brandId}`; let webUrl = `${window.location.origin}/office-mobile/#/staffRecordsTemplate?enterpriseId=${enterpriseId}&templateId=${resData.result}&brandId=${that.brandId}`;
that.qrcode(webUrl); that.$refs.qrcodePreview.qrcode(webUrl);
that.dialogVisible = true; that.dialogVisible = true;
return; return;
} }
...@@ -451,30 +418,6 @@ export default { ...@@ -451,30 +418,6 @@ export default {
}, },
/** /**
* 生成二维码
*/
qrcode(text) {
const that = this;
if (!!that.qrcodeCase) {
document.getElementById('qrcode').innerHTML = '';
that.qrcodeCase.clear(); // 先清除原有的
}
let qrObj = {
type: 'record',
data: text
};
that.qrcodeCase = new QRCode('qrcode', {
width: 210,
height: 210, // 高度
text: JSON.stringify(qrObj), // 二维码内容 //
//render: 'canvas', // 设置渲染方式(有两种方式 table和canvas,默认是canvas) //
//background: '#f0f',
//foreground: '#ff0'
correctLevel : 3
});
},
/**
* 关闭预览窗口 * 关闭预览窗口
*/ */
closeDialog() { closeDialog() {
...@@ -601,7 +544,8 @@ export default { ...@@ -601,7 +544,8 @@ export default {
errorMointor, errorMointor,
membershipData, membershipData,
oldCustomerData, oldCustomerData,
birthdayMembershipData birthdayMembershipData,
qrcodeDialog
}, },
mounted() { mounted() {
const that = this; const that = this;
...@@ -640,79 +584,6 @@ export default { ...@@ -640,79 +584,6 @@ export default {
margin: 0 auto; margin: 0 auto;
} }
.qr-mask {
position: fixed;
z-index: 1000;
top: 0;
right: 0;
left: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.6);
cursor: pointer;
}
.qr-dialog {
position: fixed;
z-index: 5000;
width: 80%;
max-width: 300px;
top: 50%;
left: 50%;
-webkit-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
background-color: #fff;
text-align: center;
border-radius: 3px;
overflow: hidden;
.qr-dialog__hd {
position: relative;
.qr-dialog__title {
display: block;
padding: 32px 0;
font-size: 18px;
color: #303133;
}
i {
position: absolute;
top: 0;
right: 0;
display: block;
width: 46px;
height: 46px;
line-height: 46px;
text-align: center;
font-size: 10px;
color: #9b9da3;
cursor: pointer;
}
}
.qr-dialog__bd {
padding: 0 1.6em 0.8em;
min-height: 40px;
font-size: 15px;
line-height: 1.3;
word-wrap: break-word;
word-break: break-all;
color: #808080;
#qrcode {
display: -webkit-flex;
display: flex;
justify-content: center;
align-items: center;
}
.qr-dialog__p {
padding: 20px 0;
font-size: 14px;
color: #606266;
}
}
}
.template-head { .template-head {
display: -webkit-box; display: -webkit-box;
display: -webkit-flex; display: -webkit-flex;
......
...@@ -753,6 +753,19 @@ ...@@ -753,6 +753,19 @@
} }
} }
} }
.template-item {
.el-radio {
/deep/ span.el-radio__label {
color: #fff;
}
&.is-disabled {
/deep/ span.el-radio__label {
color: #c0c4cc;
}
}
}
}
.el-input { .el-input {
/deep/ .el-input__inner { /deep/ .el-input__inner {
......
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