摘要: // index.vue <el-tabs v-model="activeName" type="card" style="margin-top:28px;" @tab-click="handleClick" > <el-tab-pane label="tab1" name="A"> <base-i 阅读全文
posted @ 2021-10-12 15:06 挽你手 阅读(58) 评论(0) 推荐(0)
摘要: <el-date-picker v-model="pickerTime" type="monthrange" align="right" unlink-panels range-separator="~" start-placeholder="开始月份" end-placeholder="结束月份" 阅读全文
posted @ 2021-10-12 09:19 挽你手 阅读(45) 评论(0) 推荐(0)
摘要: 转载:https://blog.csdn.net/lucky541788/article/details/89085296 阅读全文
posted @ 2021-09-30 16:11 挽你手 阅读(110) 评论(0) 推荐(0)
摘要: <el-table id="printContent" ref="print" header-row-class-name="sheet-container" :data="selfList" border :header-cell-style="{ background: '#f8f8f8', c 阅读全文
posted @ 2021-09-24 10:32 挽你手 阅读(99) 评论(0) 推荐(0)
摘要: 当后台返回的数据只有图片路径时,我们是不能直接用 <img :src="item.img"> 因为找不到img这个图片的名称,这个时候就要自己进行转化(让后台返给你 [{pie:"图片1" ,img:"http://tu.png"}] 这种格式也行) 后台能返给你只有路径的他就是不想麻烦再返给你那种 阅读全文
posted @ 2021-09-24 10:03 挽你手 阅读(2015) 评论(1) 推荐(0)
摘要: <el-table ref="table" v-loading="listLoading" :data="list" highlight-current-row @current-change="handleCurrentChange" > </el-table> watch: { 'list'() 阅读全文
posted @ 2021-09-16 10:31 挽你手 阅读(199) 评论(0) 推荐(0)
摘要: <el-table-column label="评价内容" style="width: 30%;" :show-overflow-tooltip="true"> <template slot-scope="scope"> {{ scope.row.content || "-" }} <el-tool 阅读全文
posted @ 2021-09-08 09:37 挽你手 阅读(4327) 评论(0) 推荐(0)
摘要: forEach 只遍历数组, 不返回新数组 map 对每项元素做改变后,返回新数组 filter 筛选出符合条件的数组 includes 判断数组是否含有某值 find 筛选数组:找元素 findIndex 筛选数组:找索引 every 判断数组中每一项是否符合条件(内部return false时跳 阅读全文
posted @ 2021-08-05 13:58 挽你手 阅读(497) 评论(0) 推荐(0)
摘要: <template> <div id="mainw" style="width: 750px; height: 400px"></div> </template> <script> var echarts = require("echarts"); mounted() { this.$nextTic 阅读全文
posted @ 2021-08-04 15:45 挽你手 阅读(2148) 评论(0) 推荐(0)
摘要: <el-select v-model="timer"class="select_class"> <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value"> </el-opt 阅读全文
posted @ 2021-08-04 15:35 挽你手 阅读(418) 评论(0) 推荐(0)