1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-520e0b07"],{"06a8":function(t,n,a){"use strict";var e=function(){var t=this,n=t.$createElement,a=t._self._c||n;return a("div")},i=[],o=a("795b"),c=a.n(o),r=(a("7f7f"),a("ac6a"),a("f20c")),u=a("5cab"),s=a("f499"),d=a.n(s),l=a("8982"),f="/industryParkApi",h="/wx/data",m="/wx/public",p="/wx/dictController";function g(t){return Object(l["a"])({url:f+h+"/listBizAll/"+t,method:"post"})}function v(t){return Object(l["a"])({url:f+m+"/listProjectAll",method:"post",data:t})}function b(t){return Object(l["a"])({url:f+p+"/getByCodes",method:"post",data:t})}function _(t){var n={codes:d()(t)};return new c.a(function(t,a){b(n).then(function(n){t(n)}).catch(function(t,n){a(t,n)})})}var j=a("3089"),C={name:"BaseData",data:function(){return{currentPage:1,totalSize:0,pageSize:10,InitialLoading:!0,allLoaded:!1,bottomStatus:"",StaffData:[],StaffMap:{},BizData:[],BizMap:{},UserProject:[],ProjectData:[],ProjectMap:{},dialogImageUrl:"",dialogImageVisible:!1,dc_map:{},dc_data:{},dc_map_no_all:{},dc_data_no_all:{}}},mounted:function(){},methods:{initDict:function(t){var n=this;return t||(t=n.dc_key),_(t).then(function(t){t.data&&n.dc_key.forEach(function(a){var e=n.getDictValue(t.data,a,!0);n.dc_data[a]=e,n.dc_map[a]=n.$common.transDcMap(e);var i=n.getDictValue(t.data,a,!1);n.dc_data_no_all[a]=i,n.dc_map_no_all[a]=n.$common.transDcMap(i)})})},initDict2:function(t){var n=this;return t||(t=n.dc_key),_(t).then(function(t){t.data&&n.dc_key.forEach(function(a){var e=n.getDictValue(t.data,a,!1);n.dc_data[a]=e,n.dc_map[a]=n.$common.transDcMap(e);var i=n.getDictValue(t.data,a,!1);n.dc_data_no_all[a]=i,n.dc_map_no_all[a]=n.$common.transDcMap(i)})})},initBiz:function(){var t=this;return this.BizData=[],g(u["a"].uid()).then(function(n){n.data&&n.data.forEach(function(n){var a={label:n.businessName,value:n.id};t.BizData.push(a),t.BizMap[n.id]=n.businessName})}).catch(function(){})},initProjectData:function(){var t=this;return this.ProjectData=[],v(u["a"].uid()).then(function(n){n.data&&n.data.forEach(function(n){var a={label:n.name,value:n.id};t.ProjectData.push(a),t.ProjectMap[a.value]=n})}).catch(function(){})},pagination:function(t){var n=this.currentPage,a=this.pageSize,e=n*a-a,i=n*a;return t.slice(e,i)},getDictValue:function(t,n,a){var e=t[n]?r["a"].castEval(t[n].dictValue):[],i=[];if(e.forEach(function(t){var n={id:t.id,isSearch:t.isSearch,label:t.label,value:t.value,active:!1};i.push(n)}),a){var o={label:"全部",value:"",active:!0};i.unshift(o)}return i},confirm:function(t,n){return new c.a(function(a,e){j["Dialog"].confirm({title:n,message:t}).then(function(t){a(t)}).catch(function(t){Object(j["Toast"])("已取消"),e(t)})})},handleBottomChange:function(t){console.log("handleBottomChange:"+t),this.bottomStatus=t,"drop"===this.bottomStatus&&this.currentPage++},loadBottom:function(){var t=this,n=this;console.log("loadBottom"),setTimeout(function(){n.getData(),t.$refs.loadmore.onBottomLoaded()},500)},imgPreview:function(t){this.dialogImageUrl="/industryParkApi/wx/img/viewImg/"+t,this.dialogImageVisible=!0},imgRemove:function(t,n){var a=n.indexOf(t);n.splice(a,1)},noImg:function(){var t=event.srcElement;t.src=a("aed7"),t.onerror=null}}},w=C,D=a("2877"),O=Object(D["a"])(w,e,i,!1,null,"3fa5b905",null);n["a"]=O.exports},"0e29":function(t,n,a){"use strict";var e=a("259f"),i=a.n(e);i.a},"259f":function(t,n,a){},"435e":function(t,n,a){"use strict";a.d(n,"a",function(){return c}),a.d(n,"g",function(){return r}),a.d(n,"d",function(){return u}),a.d(n,"e",function(){return s}),a.d(n,"f",function(){return d}),a.d(n,"c",function(){return l}),a.d(n,"b",function(){return f});var e=a("8982"),i="/industryParkApi",o="/wx/announcementNotice";function c(t){return Object(e["a"])({url:i+o+"/add",method:"post",data:t})}function r(t){return Object(e["a"])({url:i+o+"/list",method:"post",data:t})}function u(t){return Object(e["a"])({url:i+o+"/getById",method:"post",data:t})}function s(t){return Object(e["a"])({url:i+o+"/getConsultPerson",method:"post",data:t})}function d(t){return Object(e["a"])({url:i+o+"/getPerson",method:"post",data:t})}function l(t){return Object(e["a"])({url:i+o+"/edit",method:"post",data:t})}function f(t){return Object(e["a"])({url:i+o+"/clickCollect",method:"post",data:t})}},aae2:function(t,n,a){"use strict";a.d(n,"d",function(){return c}),a.d(n,"c",function(){return r}),a.d(n,"a",function(){return u}),a.d(n,"b",function(){return s}),a.d(n,"e",function(){return d});var e=a("8982"),i="/industryParkApi",o="/wx/documentConsult";function c(t){return Object(e["a"])({url:i+o+"/list",method:"post",data:t})}function r(t){return Object(e["a"])({url:i+o+"/getPath",method:"post",data:t})}function u(t){return Object(e["a"])({url:i+o+"/getAnnotation",method:"post",data:t})}function s(t){return Object(e["a"])({url:i+o+"/getForward",method:"post",data:t})}function d(t){return Object(e["a"])({url:i+o+"/updateUserIds",method:"post",data:t})}},aed7:function(t,n,a){t.exports=a.p+"assets/img/no-result.b05bdcd3.jpg"},ff1c:function(t,n,a){"use strict";a.r(n);var e=function(){var t=this,n=t.$createElement,a=t._self._c||n;return a("div",{staticClass:"add"},[a("div",{staticClass:"white-box page-1"},[a("div",{staticClass:"custom-item-tit"},[a("p",{staticClass:"tit"},[t._v("查阅人")]),a("span",{staticClass:"normal-button-app z-bt",on:{click:function(n){return t.$refs.pickerTips.init()}}},[t._v("新增")])]),a("PickerTips",{ref:"pickerTips",attrs:{list:t.readList,selects:t.nameList},on:{getSelect:t.getSelect}})],1),a("div",{staticClass:"white-box page-2"},[a("div",{staticClass:"custom-textarea-box"},[t._m(0),a("van-field",{attrs:{autosize:"",type:"textarea",placeholder:"请输入","show-word-limit":""},model:{value:t.annotationContent,callback:function(n){t.annotationContent=n},expression:"annotationContent"}})],1)]),a("div",{staticClass:"repair-bottom bottom-button"},[a("button",{staticClass:"btn",on:{click:t.updateUserIds}},[t._v("确定")])])])},i=[function(){var t=this,n=t.$createElement,a=t._self._c||n;return a("div",{staticClass:"custom-item-tit"},[a("p",{staticClass:"tit"},[t._v("批注")])])}],o=(a("7f7f"),a("ac6a"),a("1be1")),c=a("435e"),r=a("aae2"),u=a("06a8"),s=a("5cab"),d=a("3089"),l={components:{PickerTips:o["a"]},data:function(){return{users:[],readList:[],nameList:[],annotationContent:""}},mixins:[u["a"]],mounted:function(){this.issuingId=this.$route.query.issuingId,this.getConsultPerson(),this.getForward()},methods:{getSelect:function(t){var n=this;this.users=[],t.length>0&&t.forEach(function(t){n.users.push(t.value+"-"+t.name)})},getForward:function(){var t=this;Object(r["b"])({issuingId:this.issuingId,userId:s["a"].currUser().id}).then(function(n){t.nameList=n.nameList,t.annotationContent=n.annotationContent}).catch(function(){})},updateUserIds:function(){var t=this,n="";this.nameList.forEach(function(t){n=n+t.name+","}),""!==n&&(n=n.substring(0,n.length-1)),Object(r["e"])({issuingId:this.issuingId,annotationName:n,annotationContent:this.annotationContent,userId:s["a"].currUser().id}).then(function(n){Object(d["Toast"])("转发成功"),t.$router.push({path:"/officialDocument-app"})}).catch(function(){})},getConsultPerson:function(){var t=this;Object(c["e"])({groupId:s["a"].currUser().groupId}).then(function(n){if(console.log(n),n.data){var a=[];n.data.forEach(function(t){var n={name:t.name,value:t.id,role:t.dataRoleName};a.push(n)}),t.readList=a}})}}},f=l,h=(a("0e29"),a("2877")),m=Object(h["a"])(f,e,i,!1,null,"4ce2e1fe",null);n["default"]=m.exports}}]);
|