| | |
| | | <div class="search"> |
| | | <Card> |
| | | <Row class="operation"> |
| | | <Button @click="addOil" type="primary" icon="md-add">添加加油记录</Button> |
| | | <Button @click="init" icon="md-refresh">刷新</Button> |
| | | <Button type="dashed" @click="openTip = !openTip">{{ |
| | | openTip ? "关闭提示" : "开启提示" |
| | | }}</Button> |
| | | <Input |
| | | v-model="searchForm.carNo" |
| | | v-model="searchForm.content" |
| | | suffix="ios-search" |
| | | @on-change="getDataList" |
| | | placeholder="输入车牌号搜索" |
| | | placeholder="输入反馈内容搜索" |
| | | clearable |
| | | style="width: 250px" |
| | | /> |
| | |
| | | getCarList, |
| | | editCar, |
| | | deleteCar, |
| | | getSuggest, |
| | | deleteSuggest, |
| | | } from "@/api/open"; |
| | | import util from "@/libs/util.js"; |
| | | export default { |
| | |
| | | }, |
| | | { |
| | | title: "意见分类", |
| | | key: "dictDataId", |
| | | key: "title", |
| | | width: 150, |
| | | }, |
| | | { |
| | |
| | | { |
| | | title: "反馈时间", |
| | | key: "createTime", |
| | | width: 180, |
| | | width: 240, |
| | | sortable: true, |
| | | }, |
| | | { |
| | | title: "反馈商户", |
| | | key: "customerId", |
| | | key: "name", |
| | | width: 150, |
| | | }, |
| | | { |
| | | title: "操作", |
| | | key: "action", |
| | | align: "center", |
| | | width: 195, |
| | | render: (h, params) => { |
| | | return h("div", [ |
| | | h( |
| | |
| | | }, |
| | | getDataList() { |
| | | this.loading = true; |
| | | getAddOilList(this.searchForm).then((res) => { |
| | | getSuggest(this.searchForm).then((res) => { |
| | | this.loading = false; |
| | | if (res.success) { |
| | | this.data = res.result.records; |
| | |
| | | content: "您确认要删除吗 ", |
| | | loading: true, |
| | | onOk: () => { |
| | | deleteAddOil({ ids: v.id }).then((res) => { |
| | | deleteSuggest({ ids: v.id }).then((res) => { |
| | | this.$Modal.remove(); |
| | | if (res.success) { |
| | | this.clearSelectAll(); |