| | |
| | | @refresh-change="refreshChange" |
| | | @on-load="onLoad" |
| | | > |
| | | |
| | | <template slot-scope="{row}" slot="type"> |
| | | <el-tag>{{row.type=='0'?'待处理':row.type=='1'?'处理中':row.type=='2'?'已处理':''}}</el-tag> |
| | | <template slot-scope="{ row }" slot="type"> |
| | | <el-tag>{{ |
| | | row.type == "0" |
| | | ? "待处理" |
| | | : row.type == "1" |
| | | ? "处理中" |
| | | : row.type == "2" |
| | | ? "已处理" |
| | | : "" |
| | | }}</el-tag> |
| | | </template> |
| | | |
| | | <template slot-scope="{ type, size, row }" slot="menu"> |
| | | <el-button |
| | | icon="el-icon-edit" |
| | | :size="size" |
| | | :type="type" |
| | | @click.stop="disposition(row)" |
| | | >处置</el-button |
| | | > |
| | | |
| | | <el-button |
| | | icon="el-icon-location-outline" |
| | | :size="size" |
| | | :type="type" |
| | | @click.stop="handleMap()" |
| | | >定位</el-button |
| | | > |
| | | </template> |
| | | </avue-crud> |
| | | <el-drawer |
| | | title="我是标题" |
| | |
| | | className: "cityClass3" |
| | | }, |
| | | { |
| | | label: "处理状态", |
| | | search: true, |
| | | searchSpan: 3, |
| | | slot: true, |
| | | searchLabelWidth: 80, |
| | | searchPlaceholder: "请选择", |
| | | prop: "type", |
| | | type: "select", |
| | | dicData: [ |
| | | { |
| | | label: "待处理", |
| | | value: '0' |
| | | }, |
| | | { |
| | | label: "处理中", |
| | | value: '1' |
| | | }, |
| | | { |
| | | label: "已处理", |
| | | value: '2' |
| | | } |
| | | ], |
| | | }, |
| | | label: "处理状态", |
| | | search: true, |
| | | searchSpan: 3, |
| | | slot: true, |
| | | searchLabelWidth: 80, |
| | | searchPlaceholder: "请选择", |
| | | prop: "type", |
| | | type: "select", |
| | | dicData: [ |
| | | { |
| | | label: "待处理", |
| | | value: "0" |
| | | }, |
| | | { |
| | | label: "处理中", |
| | | value: "1" |
| | | }, |
| | | { |
| | | label: "已处理", |
| | | value: "2" |
| | | } |
| | | ] |
| | | } |
| | | ] |
| | | }, |
| | | data: [] |
| | |
| | | done(); |
| | | }, |
| | | error => { |
| | | window.console.log(error); |
| | | loading(); |
| | | } |
| | | ); |
| | |
| | | done(); |
| | | }, |
| | | error => { |
| | | window.console.log(error); |
| | | loading(); |
| | | } |
| | | ); |
| | |
| | | } |
| | | this.loading = true; |
| | | getList(page.currentPage, page.pageSize, values).then(res => { |
| | | console.log(res, 11111111111111111); |
| | | |
| | | const data = res.data.data; |
| | | this.page.total = data.total; |
| | |
| | | color: "#000" |
| | | }; |
| | | } |
| | | }, |
| | | disposition(data) { |
| | | this.$router.push( |
| | | {path: '/distribution/index',query: data} |
| | | ); |
| | | } |
| | | } |
| | | }; |