(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-531704d8","chunk-2d0b60f0"],{"1c19":function(e,t,n){"use strict";n.r(t);n("7514"),n("7f7f"),n("ac6a"),n("f3e2");var a=n("2c59");t["default"]={data:function(){return{theme:"",themeList:[],themeCustomStyle:{}}},created:function(){this.initTheme();var e=localStorage.getItem("wf-form-theme");this.theme=(e||""==e)&&e||"default"},watch:{theme:{handler:function(e){e&&(n.e("chunk-746e6f76").then(n.t.bind(null,"2b58",7)),localStorage.setItem("wf-form-theme",e),this.setThemeStyle())},immediate:!0}},methods:{initTheme:function(){var e=this;Object(a["getList"])(1,-1).then((function(t){e.themeList=t.data.data.records,e.themeList.forEach((function(e){e.label=e.name,e.value=e.themeKey})),e.setThemeStyle()}))},setThemeStyle:function(){var e=this,t=this.themeList.find((function(t){return t.themeKey==e.theme}));if(t)for(var n in t)this.themeCustomStyle["--".concat(n)]=t[n]}}}},"801b":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e._self._c;return t("div",{staticStyle:{"margin-left":"15px"}},[t("el-button",{staticStyle:{color:"black","font-size":"18px"},attrs:{type:"text",icon:"el-icon-time",title:"表单历史"},on:{click:function(t){e.visible=!0}}}),t("el-drawer",{attrs:{visible:e.visible,size:"60%","append-to-body":"","custom-class":"wf-drawer","destroy-on-close":""},on:{"update:visible":function(t){e.visible=t}},scopedSlots:e._u([{key:"title",fn:function(){return[t("span",[e._v("\n        流程表单提交历史 "),e.isDev?t("el-tag",[e._v("@nutflow1.8.1+")]):e._e()],1)]},proxy:!0}])},[t("el-tabs",{staticClass:"wf-theme-custom",model:{value:e.active,callback:function(t){e.active=t},expression:"active"}},e._l(e.list,(function(n,a){return t("el-tab-pane",{key:a,attrs:{name:a,lazy:""},scopedSlots:e._u([{key:"label",fn:function(){return[t("el-popover",{attrs:{placement:"top",width:"auto",trigger:"hover"}},[e._v("\n            "+e._s(n.createUsername)+" 于 "+e._s(n.createTime)+" 提交\n            "),t("span",{attrs:{slot:"reference"},slot:"reference"},[e._v(e._s(n.taskName))])])]},proxy:!0}],null,!0)},[t("avue-form",{style:e.themeCustomStyle,attrs:{option:n.formOption},model:{value:n.formVariable,callback:function(t){e.$set(n,"formVariable",t)},expression:"item.formVariable"}})],1)})),1)],1)],1)},i=[],o=(n("ac6a"),n("f3e2"),n("88ae")),s=n("1c19"),r={name:"wf-form-variable",mixins:[s["default"]],props:{processInsId:{type:String,default:""}},computed:{isDev:function(){return!1}},watch:{processInsId:{handler:function(e){this.getFormVariable(e)},immediate:!0}},data:function(){return{visible:!1,active:0,list:[]}},methods:{getFormVariable:function(e){var t=this;this.validatenull(e)||Object(o["getList"])(1,-1,{processInsId:e}).then((function(e){var n=e.data.data.records;n.forEach((function(e){e.formVariable=JSON.parse(e.formVariable),e.formOption=JSON.parse(e.formOption),e.formOption.detail=!0})),t.list=n}))}}},l=r,c=(n("ba03"),n("2877")),f=Object(c["a"])(l,a,i,!1,null,null,null);t["default"]=f.exports},9280:function(e,t,n){},ba03:function(e,t,n){"use strict";n("9280")}}]);