| | |
| | | <template> |
| | | <div id="main"> |
| | | <basic-container> |
| | | <v-chart :options="option" ref="chart" style="width: 100%;height:100vh"></v-chart> |
| | | <v-chart :options="option" ref="chart" style="width: 100%;"></v-chart> |
| | | </basic-container> |
| | | </div> |
| | | </template> |
| | |
| | | }, |
| | | ], |
| | | title: { |
| | | text: '主题库数据统计分析', |
| | | text: '主数据统计分析', |
| | | left:'center', |
| | | textAlign:'center' |
| | | }, |
| | |
| | | <template> |
| | | <lineChart></lineChart> |
| | | <!-- 新增右侧按钮--> |
| | | <div> |
| | | <div style=" display: flex; justify-content: flex-end;"> |
| | | <el-button plain type="primary" @click="addHandler">新增</el-button> |
| | | </div> |
| | | <!-- 新增对话框--> |
| | | <el-dialog |
| | | title="新增数据统计分析" |
| | | :visible.sync="addVisible" |
| | | append-to-body |
| | | > |
| | | </el-dialog> |
| | | </div> |
| | | |
| | | </template> |
| | | |
| | | <script> |
| | |
| | | lineChart |
| | | }, |
| | | name: "statisticPage", |
| | | data(){ |
| | | return{ |
| | | |
| | | data() { |
| | | return { |
| | | addVisible: false, |
| | | } |
| | | }, |
| | | methods: { |
| | | addHandler() { |
| | | this.addVisible = true; |
| | | } |
| | | } |
| | | } |
| | |
| | | top='-40px'> |
| | | <el-table |
| | | ref="TableBox" |
| | | v-loading="TableLoading" |
| | | :data="Crud.data" |
| | | border |
| | | style="width: 100%" |
| | |
| | | </el-table-column> |
| | | </el-table> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button plain type="primary" @click="SaveHandler">保存</el-button> |
| | | <el-button plain type="primary" @click="SaveHandler" v-loading="BtnLoading">保存</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | </div> |
| | |
| | | name: "Statistic", |
| | | data() { |
| | | return { |
| | | TableLoading: false, |
| | | BtnLoading: false, |
| | | loading: true, |
| | | Crud: { |
| | | form: '', |
| | |
| | | this.$message.warning('请选择一条数据!'); |
| | | return; |
| | | } |
| | | this.TableLoading = true; |
| | | this.BtnLoading = true; |
| | | try { |
| | | const {data: {code}} = await save(this.userId, this.SelectRow.map(item => item.code)); |
| | | if (code === 200) { |
| | |
| | | this.option.data = []; |
| | | this.MasterGetList(); |
| | | this.dialogTableVisible = false; |
| | | this.TableLoading = false; |
| | | this.BtnLoading = false; |
| | | this.loading = true; |
| | | this.FontInfo(); |
| | | } |
| | | } catch { |
| | | this.TableLoading = false; |
| | | this.BtnLoading = false; |
| | | } |
| | | }, |
| | | MoreHandler() { |