| | |
| | | //初始化 |
| | | init() |
| | | |
| | | $('#list').click(function () { |
| | | $('.evaluate-echarts').hide() |
| | | $('.evaluate-table').show() |
| | | $('.flood-analysis-pagination').show() |
| | | $('.list').addClass('choose-button') |
| | | $('.list').removeClass('unchoose-button') |
| | | $('.echarts').addClass('unchoose-button') |
| | | $('.echarts').removeClass('choose-button') |
| | | }) |
| | | |
| | | $('#echarts').click(function () { |
| | | $('.evaluate-table').hide() |
| | | $('.flood-analysis-pagination').hide() |
| | | recharts_z() |
| | | loadEcharts() |
| | | $('.evaluate-echarts').show() |
| | | |
| | | $('.echarts').addClass('choose-button') |
| | | $('.echarts').removeClass('unchoose-button') |
| | | $('.list').addClass('unchoose-button') |
| | | $('.list').removeClass('choose-button') |
| | | }) |
| | | |
| | | //淹没图弹窗事件 |
| | | $('#create-flood-image').click(function () { |
| | | exportPicture() |
| | | }) |
| | | |
| | | //保存按钮点击事件 |
| | | $('#save-btn').click(function () { |
| | | confirmPopup() |
| | | }) |
| | | |
| | | //导出按钮点击事件 |
| | | $('#export-img').click(function () { |
| | | exportPicture() |
| | | }) |
| | | |
| | | //确认弹窗 |
| | | function confirmPopup() { |
| | | const self = this |
| | |
| | | |
| | | //初始化 |
| | | function init() { |
| | | |
| | | $('#list').click(function () { |
| | | $('.evaluate-echarts').hide() |
| | | $('.evaluate-table').show() |
| | | $('.flood-analysis-pagination').show() |
| | | $('.list').addClass('choose-button') |
| | | $('.list').removeClass('unchoose-button') |
| | | $('.echarts').addClass('unchoose-button') |
| | | $('.echarts').removeClass('choose-button') |
| | | }) |
| | | |
| | | $('#echarts').click(function () { |
| | | $('.evaluate-table').hide() |
| | | $('.flood-analysis-pagination').hide() |
| | | recharts_z() |
| | | loadEcharts() |
| | | $('.evaluate-echarts').show() |
| | | |
| | | $('.echarts').addClass('choose-button') |
| | | $('.echarts').removeClass('unchoose-button') |
| | | $('.list').addClass('unchoose-button') |
| | | $('.list').removeClass('choose-button') |
| | | }) |
| | | |
| | | //淹没图弹窗事件 |
| | | $('#create-flood-image').click(function () { |
| | | exportPicture() |
| | | }) |
| | | |
| | | //保存按钮点击事件 |
| | | $('#save-btn').click(function () { |
| | | confirmPopup() |
| | | }) |
| | | |
| | | //导出按钮点击事件 |
| | | $('#export-img').click(function () { |
| | | exportPicture() |
| | | }) |
| | | |
| | | |
| | | //图片展示 |
| | | $('#show-img').prop('src', 'image/floodAnalysisEvaluate-2.png') |
| | | $('.list').addClass('choose-button') |