{"remainingRequest":"/data/jenkins/workspace/badp-bcxin-web-5.x-vue/node_modules/thread-loader/dist/cjs.js!/data/jenkins/workspace/badp-bcxin-web-5.x-vue/node_modules/babel-loader/lib/index.js!/data/jenkins/workspace/badp-bcxin-web-5.x-vue/node_modules/cache-loader/dist/cjs.js??ref--0-0!/data/jenkins/workspace/badp-bcxin-web-5.x-vue/node_modules/vue-loader/lib/index.js??vue-loader-options!/data/jenkins/workspace/badp-bcxin-web-5.x-vue/src/components/chart.vue?vue&type=script&lang=js&","dependencies":[{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-vue/src/components/chart.vue","mtime":1725957645720},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-vue/babel.config.js","mtime":1725957645200},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-vue/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-vue/node_modules/thread-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-vue/node_modules/babel-loader/lib/index.js","mtime":315532800000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-vue/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-vue/node_modules/vue-loader/lib/index.js","mtime":1655715099000}],"contextDependencies":[],"result":["import form_searchform from \"@/components/form_searchform.vue\";\nexport default {\n name: \"chart\",\n props: ['openParams'],\n components: {\n form_searchform: form_searchform\n },\n watch: {\n chartData: function chartData() {\n this.drawLine();\n }\n },\n created: function created() {},\n mounted: function mounted() {\n this.getChart();\n },\n data: function data() {\n return {\n chartData: '',\n view: '',\n isShowDelegate: false,\n openViewParams: {},\n isShowBtn: false,\n isOpenTemplate: false,\n chartType: 'chart',\n chartHeight: 0\n };\n },\n methods: {\n hiddenCustomizeVisible: function hiddenCustomizeVisible() {\n var _this = this;\n //该方法实现视图修改数据,或者删除数据重新加载视图数据\n if (this.view.simpleClassName == 'GanttView') {\n //当是甘特视图直接刷新整个页面\n // this.updateView();\n this.$refs.delegate.reloadListView();\n } else {\n setTimeout(function () {\n _this.customizeVisible = false;\n _this.$refs.chart.$refs.delegate.reloadListView();\n }, 1000);\n }\n },\n handleSearch: function handleSearch(data, searchData) {\n var _this2 = this;\n this.$api.getChartData(this.openParams.actionContent, searchData, {\n onSucess: function onSucess(response) {\n _this2.chartData = JSON.parse(response.data.data.result);\n _this2.view = response.data.data.view;\n }\n });\n },\n showBtn: function showBtn(val) {\n this.isShowBtn = val;\n },\n openSearchTemplate: function openSearchTemplate() {\n var _this3 = this;\n this.isOpenTemplate = !this.isOpenTemplate;\n this.$nextTick(function () {\n _this3.chartHeight = _this3.$refs.viewChartDelegate.offsetHeight - _this3.$refs.chartSearchBox.offsetHeight - 58;\n });\n },\n onAction: function onAction(params) {\n this.$emit(\"add-tab\", params);\n },\n getChart: function getChart() {\n var _this4 = this;\n this.$api.getChart(this.openParams.actionContent, {\n onSucess: function onSucess(response) {\n _this4.chartData = JSON.parse(response.data.data.result);\n _this4.view = response.data.data.view;\n }\n });\n },\n drawLine: function drawLine() {\n var that = this;\n var myChart = this.$echarts.init(this.$refs.myChart);\n myChart.setOption(this.chartData);\n myChart.on('click', function (param) {\n if (that.view && that.view.id) {\n var obj = {};\n obj.appId = that.$root.appid;\n obj.actionContent = that.view.id;\n obj.id = that.openParams.id;\n that.openViewParams = obj;\n that.isShowDelegate = true;\n }\n });\n }\n }\n};",null]}