摘要: <div v-for="(d, index) in item.sku" :key="index"> //通过函数返回的方式改变模版的值 {{ hanshuss(d.donations_sku_category_id, d.need_total) }} </div> <script> export d 阅读全文
posted @ 2021-11-22 11:12 喜欢Tb 阅读(19) 评论(0) 推荐(0)
摘要: 需求:根据返回的id去解析,id对应的name <template slot="gs" slot-scope="{ row }"> //传参把当前id传过去 {{ guishu(row.province_id, row.city_id, row.district_id) }} </template> 阅读全文
posted @ 2021-11-22 11:07 喜欢Tb 阅读(113) 评论(0) 推荐(0)
摘要: 后端返回的数据就是正常的对象,不是树状。 <template> <div> <!-- 省 --> <el-form-item label-width="60px"> <el-select v-model="province_id" placeholder="请选择省份" clearable> <el 阅读全文
posted @ 2021-11-22 10:59 喜欢Tb 阅读(56) 评论(0) 推荐(0)
摘要: 使用 <div>注册时间:{{ this.data.created_at | dataFormat }}</div> 全局注册 Vue.filter('dataFormat', function (originVal, info) { const dt = new Date(originVal * 阅读全文
posted @ 2021-11-16 13:17 喜欢Tb 阅读(9) 评论(0) 推荐(0)
摘要: 父组件 <el-link type="primary" :underline="false" @click="openEdit(row)" >查看 </el-link> <!-- 使用 --> <adio :data="current" :visible.sync="showEdit" ></adi 阅读全文
posted @ 2021-11-16 10:53 喜欢Tb 阅读(40) 评论(0) 推荐(0)
摘要: <div>{{ datas.cash_total | numFilter }}</div> vue过滤 filters: { numFilter(value) { let realVal = ''; if (!isNaN(value) && value !== '') { // 截取当前数据到小数点 阅读全文
posted @ 2021-11-16 10:38 喜欢Tb 阅读(43) 评论(0) 推荐(0)
摘要: // 当前时间 addDate() { let nowDate = new Date(); let date = { year: nowDate.getFullYear(), month: nowDate.getMonth() + 1, date: nowDate.getDate(), hh: '0 阅读全文
posted @ 2021-11-01 17:49 喜欢Tb 阅读(12) 评论(0) 推荐(0)
摘要: 父组件 <template> <div class="ele-body"> <el-card shadow="never"> <el-table :data="list" :span-method="objectSpanMethod" border style="width: 100%; margi 阅读全文
posted @ 2021-10-28 14:55 喜欢Tb 阅读(9) 评论(0) 推荐(0)
摘要: <template> <div class="ele-body"> <el-card shadow="never"> <el-tabs v-model="form.type" @tab-click="handleClick"> <el-tab-pane label="用户" name="0"> <e 阅读全文
posted @ 2021-10-28 14:54 喜欢Tb 阅读(17) 评论(0) 推荐(0)
摘要: <template> <div class="ele-body"> <el-card shadow="never"> <el-tag :key="tag.id" v-for="tag in dynamicTags" closable :disable-transitions="false" @clo 阅读全文
posted @ 2021-10-28 14:54 喜欢Tb 阅读(17) 评论(0) 推荐(0)