123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237 |
- <template>
- <el-dialog
- title="已关联证据"
- :visible.sync="dialogVisibleReport"
- :append-to-body="true"
- width="1000px"
- :before-close="handleClose"
- class="dialog_diy"
- >
- <el-table
- ref="multipleTable"
- :data="tableData"
- tooltip-effect="dark"
- style="width: 100%"
- border
- header-align="center"
- :header-cell-style="{
- background: '#E0EAFB',
- color: 'rgba(0, 0, 0, 0.90)'
- }"
- >
- <!-- <el-table-column type="selection" align="center" label="全选" width="55">
- </el-table-column> -->
- <el-table-column
- prop="create_at"
- label="创建时间"
- align="center"
- width="120"
- >
- <!-- <template slot-scope="scope">{{ scope.row.date }}</template> -->
- </el-table-column>
- <el-table-column
- prop="recordTit"
- label="观察内容"
- align="center"
- width="120"
- >
- </el-table-column>
- <el-table-column
- prop="place"
- label="观察地点"
- align="center"
- show-overflow-tooltip
- >
- </el-table-column>
- <el-table-column
- prop="tname"
- label="维度"
- align="center"
- show-overflow-tooltip
- >
- </el-table-column>
- <el-table-column
- prop="recordContent"
- label="内容"
- align="center"
- show-overflow-tooltip
- >
- </el-table-column>
- <!-- <el-table-column label="操作" align="center" width="175px">
- <template slot-scope="scope">
- <div class="evaluate">
- <div
- class="TableBtn"
- style="color: #3681fc"
- @click="updateCred(scope.row, 0)"
- >
- 查看
- </div>
- <div
- class="TableBtn"
- style="color: #3681fc"
- @click="updateCred(scope.row, 1)"
- >
- 修改
- </div>
- <div
- class="TableBtn"
- style="color: #ee3e3e"
- @click="delRecord(scope.row)"
- >
- 删除
- </div>
- </div>
- </template>
- </el-table-column> -->
- </el-table>
- <!-- 分页 -->
- <el-pagination
- @current-change="handleCurrentChange"
- background
- :page-size="8"
- layout="prev, pager, next"
- :total="total"
- class="pagination"
- >
- </el-pagination>
- </el-dialog>
- </template>
- <script>
- export default {
- props: {
- dialogVisibleReport: {
- type: Boolean,
- default: false
- },
- userid: {
- type: String
- },
- fid: {
- type: String
- },
- tid: {
- type: String
- },
- oid: {
- type: String
- },
- year: {
- type: String
- },
- cid: {
- type: String
- }
- },
- data() {
- return {
- // 表格数据
- tableData: [],
- // 总条数
- total: 0,
- // 当前页
- page: 1
- };
- },
- watch: {
- dialogVisibleReport(newVal) {
- if (newVal) {
- this.getData();
- }
- }
- },
- methods: {
- handleClose(done) {
- this.close();
- done();
- },
- close() {
- this.$emit("update:dialogVisibleReport", false);
- },
- // 获取数据
- getData() {
- // 获取筛选框数据
- let params = {
- uid: this.userid,
- cid: this.cid,
- cu: this.fid,
- cn: this.tid,
- cm: this.year,
- page: this.page
- };
- console.log(params);
- this.ajax
- .get(this.$store.state.api + "selectVeidooType", params)
- .then(res => {
- this.isLoading = false;
- this.tableData = res.data[0];
- this.total = res.data[0].length > 0 ? res.data[0][0].num : 0;
- // console.log(" 获取筛选数据", res);
- })
- .catch(err => {
- this.isLoading = false;
- console.error(err);
- });
- },
- // 切换页
- handleCurrentChange(val) {
- //当页数发生改变的时候调用获取列表数据请求
- // console.log(`当前页: ${val}`);
- this.page = val;
- this.getData();
- }
- },
- mounted() {
- // this.getData();
- }
- };
- </script>
- <style scoped>
- .dialog_diy {
- box-sizing: border-box;
- /* padding: 0 10px 10px 10px; */
- }
- .dialog_diy >>> .el-dialog {
- /* height: 100%; */
- margin: 10vh auto !important;
- }
- .dialog_diy >>> .el-dialog__header {
- background: #454545 !important;
- padding: 15px 20px;
- }
- .dialog_diy >>> .el-dialog__body {
- height: calc(100% - 124px);
- box-sizing: border-box;
- /* padding: 0px; */
- }
- .dialog_diy >>> .el-dialog__title {
- color: #fff;
- }
- .dialog_diy >>> .el-dialog__headerbtn {
- top: 19px;
- }
- .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close {
- color: #fff;
- }
- .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover {
- color: #fff;
- }
- .dialog_diy >>> .el-dialog__body,
- .dialog_diy >>> .el-dialog__footer {
- background: #fafafa;
- }
- .pagination {
- display: flex;
- justify-content: flex-end;
- padding: 20px;
- }
- </style>
|