|
|
@ -14,7 +14,7 @@ |
|
|
|
<el-button icon="el-icon-refresh" size="mini" class="reset-button-style" @click="resetQuery">重置</el-button> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item class="fr"> |
|
|
|
<el-button icon="el-icon-plus" class="add-button-style" @click="handleAdd">新增</el-button> |
|
|
|
<el-button icon="el-icon-plus" class="add-button-style" @click="handleNew">新增</el-button> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<el-table :data="tableData" v-loading="loading" size="mini" border class="predict-table" max-height="234px"> |
|
|
@ -35,13 +35,12 @@ |
|
|
|
<template #default="scope"> |
|
|
|
<el-button class="edit-button-style" size="small">环比</el-button> |
|
|
|
<el-button class="edit-button-style" size="small">同比</el-button> |
|
|
|
<el-button class="edit-button-style" @click="handleUpdate(scope.row)" icon="el-icon-edit" size="small">修改</el-button> |
|
|
|
<el-button class="edit-button-style" size="small">复制</el-button> |
|
|
|
<el-button class="edit-button-style" @click="handleEdit(scope.row)" icon="el-icon-edit" size="small">修改</el-button> |
|
|
|
<el-button class="edit-button-style" @click="handleCopy(scope.row)" size="small">复制</el-button> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
</div> |
|
|
|
|
|
|
|
</template> |
|
|
|
<script> |
|
|
|
import { ListMixin } from "@/mixins/ListMixin"; |
|
|
@ -98,6 +97,20 @@ export default { |
|
|
|
], |
|
|
|
} |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
// 新增按钮操作 |
|
|
|
handleNew() { |
|
|
|
this.$router.push({path:'/homePage/beta/predict/predictEdit'}) |
|
|
|
}, |
|
|
|
// 编辑 |
|
|
|
handleEdit(row) { |
|
|
|
this.$router.push({path:'/homePage/beta/predict/predictEdit',query: {id: row.one}}) |
|
|
|
}, |
|
|
|
// 复制 |
|
|
|
handleCopy(row) { |
|
|
|
this.$router.push({path:'/homePage/beta/predict/predictEdit',query: {id: row.one}}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
} |
|
|
|
</script> |
|
|
|
<style lang="less"> |
|
|
|