|
@@ -0,0 +1,127 @@
|
|
|
+<template>
|
|
|
+ <div>
|
|
|
+ <search-layout :needBox="true">
|
|
|
+ <template slot="searchItem1">
|
|
|
+ <span class="label">模板</span>
|
|
|
+ <el-input
|
|
|
+ v-model="searchParams.a1"
|
|
|
+ size="small"
|
|
|
+ clearable
|
|
|
+ placeholder="请输入"
|
|
|
+ >
|
|
|
+ </el-input>
|
|
|
+ </template>
|
|
|
+
|
|
|
+ <template slot="searchBtn1">
|
|
|
+ <el-button type="primary">查询</el-button>
|
|
|
+ </template>
|
|
|
+ <template slot="searchBtn2">
|
|
|
+ <el-button type="primary">重置</el-button>
|
|
|
+ </template>
|
|
|
+ </search-layout>
|
|
|
+
|
|
|
+ <div class="btnsPanel">
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ icon="el-icon-circle-plus-outline"
|
|
|
+ @click="addConfig"
|
|
|
+ >新建配置</el-button
|
|
|
+ >
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <tableList
|
|
|
+ ref="table"
|
|
|
+ style="border-top: none; margin: 0 30px"
|
|
|
+ :columns="columns"
|
|
|
+ :getDataWay="getDataWay"
|
|
|
+ :pagination="pagination"
|
|
|
+ index
|
|
|
+ selection
|
|
|
+ >
|
|
|
+ <el-table-column label="操作" slot="cgInfos" align="center">
|
|
|
+ <template v-slot="scope">
|
|
|
+ <i
|
|
|
+ @click="addMarkDia(scope.row)"
|
|
|
+ class="el-icon-edit-outline elIcon"
|
|
|
+ ></i>
|
|
|
+ <i
|
|
|
+ @click="addMarkDia(scope.row)"
|
|
|
+ class="el-icon-video-pause elIcon"
|
|
|
+ ></i>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ </tableList>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+import searchLayout from "@/components/grid/searchLayout";
|
|
|
+import tableList from "@/components/grid/TableList";
|
|
|
+
|
|
|
+export default {
|
|
|
+ name: "reportTemplateManagement", // 报告模板管理
|
|
|
+ components: { searchLayout, tableList },
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ searchParams: {
|
|
|
+ //搜索参数
|
|
|
+
|
|
|
+ },
|
|
|
+ list: [],
|
|
|
+ columns: [
|
|
|
+ //表格列
|
|
|
+ {
|
|
|
+ label: "节点ID",
|
|
|
+ prop: "a1",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "节点类型",
|
|
|
+ prop: "a2",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "适用类型",
|
|
|
+ prop: "a3",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "分配账户",
|
|
|
+ prop: "a4",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "操作",
|
|
|
+ prop: "cgInfos",
|
|
|
+ template: true,
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ pagination: {
|
|
|
+ //分页使用
|
|
|
+ currentPage: 1,
|
|
|
+ pageSize: 10,
|
|
|
+ position: "right",
|
|
|
+ pageSizes: [10, 30, 50, 100, 200],
|
|
|
+ layout: "sizes, total, prev, pager, next, jumper",
|
|
|
+ },
|
|
|
+ getDataWay: {
|
|
|
+ //dataType: "url",
|
|
|
+ dataType: "data",
|
|
|
+ type: "post",
|
|
|
+ // firstRequest: false,
|
|
|
+ // data: this.$api.algorithmsLibrary.selectSharedAlgorithmList,
|
|
|
+ data:[{a1:'1',a2:'2',a3:'3',a4:'4',a5:'5',a6:'6'}],
|
|
|
+ param: {},
|
|
|
+ },
|
|
|
+ };
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ addConfig() {
|
|
|
+ this.$router.push({ path: "/clusteringDetail" });
|
|
|
+ },
|
|
|
+ addMarkDia() {},
|
|
|
+ },
|
|
|
+};
|
|
|
+</script>
|
|
|
+
|
|
|
+<style scoped lang="less">
|
|
|
+.btnsPanel {
|
|
|
+ margin: 45px 40px 15px;
|
|
|
+}
|
|
|
+</style>
|