{"remainingRequest":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\xq-web-bpm\\src\\components\\form\\WidgetFormItem.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\src\\components\\form\\WidgetFormItem.vue","mtime":1675071992038},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es6.regexp.split\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nimport VueAMap from \"vue-amap\"; //高德地图插件\n\nVueAMap.initAMapApiLoader({\n // 高德的key\n key: \"1f8f479e9b787974efaa9bda1bf8ef92\",\n // 插件集合\n plugin: [\"AMap.Autocomplete\", \"AMap.PlaceSearch\", \"AMap.Scale\", \"AMap.OverView\", \"AMap.ToolBar\", \"AMap.MapType\", \"AMap.PolyEditor\", \"AMap.CircleEditor\", \"AMap.Geolocation\", \"AMap.Autocomplete\", \"AMap.PlaceSearch\"],\n // 默认高德 sdk 版本为 1.4.4\n v: \"1.4.4\"\n});\nimport req from \"@/request.js\";\nimport WidgetFormBus from \"@/components/form/bus/WidgetFormBus.js\";\nimport deepmerge from \"deepmerge\";\nexport default {\n props: [\"element\", \"select\", \"index\", \"data\", \"selectWidgetList\"],\n data: function data() {\n var self = this;\n return {\n config: {\n initialFrameHeight: 50,\n UEDITOR_HOME_URL: window.location.origin + '/' + window.location.pathname.split('/')[1] + '/static/ueditor/',\n toolbars: [],\n elementPathEnabled: false,\n //是否启用元素路径,默认是true显示 \n wordCount: false,\n //是否开启字数统计\n // 初始容器宽度\n initialFrameWidth: \"99%\",\n zIndex: 8,\n enableAutoSave: false,\n readonly: true\n },\n mapCenter: [121.59996, 31.197646],\n zoom: 12,\n lng: 0,\n lat: 0,\n loaded: false,\n resizeEnable: true,\n plugin: [],\n img_src: \"\",\n selectWidget: this.select,\n flowListSvg: require(\"@/assets/img/flowList.svg\"),\n demoSignature: require(\"@/assets/img/signature.png\")\n };\n },\n computed: {\n imgSrc: function imgSrc(state) {\n this.getImgSrc(this.element);\n return true;\n }\n },\n created: function created() {\n var _this = this;\n\n var me_ = this;\n WidgetFormBus.$emit('initNoAttrField', this.element);\n WidgetFormBus.$on(\"changeCtrlType\", function (obj) {\n if (obj.key === me_.element.key) {\n var key = Date.parse(new Date()) + \"_\" + Math.ceil(Math.random() * 99999);\n obj.key = key;\n obj.model = obj.ctrlType + \"_\" + key;\n me_.selectWidget = obj; //me_.$set(me_.data.list, me_.index, obj);\n\n var tmp = me_.data;\n tmp.list[me_.index] = obj;\n me_.$emit(\"data:update\", tmp);\n me_.destroyedCtrlType(_this); //me_.$emit(\"data:update\", me_.data);\n }\n });\n },\n destroyed: function destroyed() {//WidgetFormBus.$off(\"changeCtrlType\");\n },\n methods: {\n destroyedCtrlType: function destroyedCtrlType(formBus) {\n formBus.$off(\"changeCtrlType\");\n },\n getImgSrc: function getImgSrc(obj) {\n var _this2 = this;\n\n if (obj.options.isDisplay) {\n var fileJson = obj.options.fileJson;\n\n if (fileJson) {\n var json = JSON.parse(fileJson);\n req.get(window.context.portal + \"/file/onlinePreviewController/v1/getFileById_\" + json[0].id, 'arraybuffer').then(function (response) {\n var type = response.headers['content-type'];\n\n if (type) {\n _this2.img_src = window.URL.createObjectURL(new Blob([response.data], {\n type: type\n }));\n } else {\n _this2.img_src = window.URL.createObjectURL(new Blob([response.data]));\n }\n });\n }\n }\n },\n handleClick: function handleClick(index) {\n //判断\"CTRL\" 键是否被按住 true:按住了 false:没按住\n if (!window.event.ctrlKey) {\n //清空数组\n this.selectWidgetList.empty();\n this.selectWidgetList.push(this.selectWidget.key);\n }\n },\n //按住Ctrl键选择表单字段控件多选进行删除\n handleClickCtrl: function handleClickCtrl(index) {\n if (this.selectWidgetList.length == 0 || this.selectWidgetList.indexOf(this.data.list[index].key) == -1) {\n this.selectWidgetList.push(this.data.list[index].key);\n } else if (this.selectWidgetList.indexOf(this.data.list[index].key) != -1) {\n this.selectWidgetList.remove(this.data.list[index].key);\n }\n\n this.selectWidget = {\n options: {\n validateType: \"\"\n }\n };\n },\n handleSelectWidget: function handleSelectWidget(index) {\n this.selectWidget = this.data.list[index];\n },\n handleWidgetDelete: function handleWidgetDelete(index) {\n var _this3 = this;\n\n if (this.data.list.length - 1 === index) {\n if (index === 0) {\n this.selectWidget = {\n options: {\n validateType: \"\"\n }\n };\n } else {\n this.selectWidget = this.data.list[index - 1];\n }\n } else {\n this.selectWidget = this.data.list[index + 1];\n }\n\n this.$nextTick(function () {\n _this3.data.list.splice(index, 1);\n });\n },\n handleWidgetClone: function handleWidgetClone(index) {\n var _this4 = this;\n\n var cloneData = deepmerge({}, this.data.list[index], {\n clone: true\n });\n cloneData.key = Date.parse(new Date()) + \"_\" + Math.ceil(Math.random() * 99999);\n this.data.list.splice(index, 0, cloneData);\n this.$nextTick(function () {\n _this4.selectWidget = _this4.data.list[index + 1];\n });\n }\n },\n watch: {\n select: function select(val) {\n this.selectWidget = val;\n },\n selectWidget: {\n handler: function handler(val) {\n this.$emit(\"update:select\", val);\n },\n deep: true\n },\n element: {\n handler: function handler(newVal, oldVal) {\n if (newVal) {\n if (newVal.ctrlType == \"amap\") {\n var self = this;\n this.plugin = [\"AMap.Scale\", \"AMap.ToolBar\", \"AMap.Autocomplete\", {\n enableHighAccuracy: true,\n //是否使用高精度定位,默认:true\n timeout: 10000,\n //超过10秒后停止定位,默认:5s\n buttonPosition: \"RB\",\n //定位按钮的停靠位置\n buttonOffset: new AMap.Pixel(5, 10),\n //定位按钮与设置的停靠位置的偏移量,默认:Pixel(10, 20)\n zoomToAccuracy: true,\n //定位成功后是否自动调整地图视野到定位点\n markerOptions: {\n //自定义定位点样式,同Marker的Options\n offset: new AMap.Pixel(-18, -36),\n content: ''\n },\n showCircle: true,\n //是否显示定位精度圈\n circleOptions: {\n //定位精度圈的样式\n strokeColor: \"#0093FF\",\n noSelect: true,\n strokeOpacity: 0.5,\n strokeWeight: 1,\n fillColor: \"#02B0FF\",\n fillOpacity: 0.25\n },\n extensions: \"all\",\n pName: \"Geolocation\",\n events: {\n init: function init(o) {\n // o 是高德地图定位插件实例 获取当前位置\n o.getCurrentPosition(function (status, result) {\n if (result && result.position) {\n self.lng = result.position.lng;\n self.lat = result.position.lat;\n self.mapCenter = [self.lng, self.lat];\n self.loaded = true;\n self.$nextTick();\n }\n });\n }\n }\n }];\n }\n }\n },\n deep: true\n }\n }\n};",null]}