| | |
| | | > |
| | | <template slot="menuLeft"> |
| | | <el-button |
| | | type="danger" |
| | | |
| | | size="small" |
| | | icon="el-icon-delete" |
| | | plain |
| | |
| | | </template> |
| | | |
| | | <template slot-scope="{type,size, row}" slot="menu"> |
| | | <el-button icon="el-icon-check" :size="size" :type="type" @click="setReal(row)">接收</el-button> |
| | | <el-button |
| | | v-if="row.type != 1" |
| | | icon="el-icon-check" :size="size" :type="type" @click="setReal(row)">接收</el-button> |
| | | </template> |
| | | |
| | | <template slot-scope="{ row }" slot="type"> |
| | | <el-tag |
| | | >{{ |
| | | row.type == 1 ?"已接受":"未接受" |
| | | }} |
| | | </el-tag> |
| | | </template> |
| | | |
| | | </avue-crud> |
| | |
| | | search: true, |
| | | searchLabelWidth: 100, |
| | | searchSpan: 5, |
| | | width: 100, |
| | | addDisplay: false, |
| | | editDisplay: false, |
| | | }, |
| | |
| | | props: { |
| | | label: "title", |
| | | }, |
| | | width: 72, |
| | | hide: true, |
| | | addDisplay: true, |
| | | editDisplay: true, |
| | |
| | | { |
| | | label: "上报时间", |
| | | prop: "stime", |
| | | width: 150, |
| | | type: "datetime", |
| | | format: "yyyy-MM-dd HH:mm:ss", |
| | | valueFormat: "yyyy-MM-dd HH:mm:ss", |
| | |
| | | { |
| | | label: "备注", |
| | | prop: "result", |
| | | span: 24, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | |
| | | trigger: "blur", |
| | | }, |
| | | ], |
| | | }, |
| | | { |
| | | label: "接收状态", |
| | | prop: "type", |
| | | width: 80, |
| | | slot: true, |
| | | addDisplay: false, |
| | | viewDisplay: false, |
| | | editDisplay: false, |
| | | }, |
| | | { |
| | | label: "图片", |
| | |
| | | stime: row.stime, |
| | | result: row.result, |
| | | place: row.place, |
| | | jd: row.jd, |
| | | wd: row.wd, |
| | | }; |
| | | if (row.images.length > 0) { |
| | | var imageArr = row.images; |
| | |
| | | stime: row.stime, |
| | | result: row.result, |
| | | place: row.place, |
| | | jd: row.jd, |
| | | wd: row.wd, |
| | | }; |
| | | if (row.images.length > 0) { |
| | | var imageArr = row.images; |
| | |
| | | rowDel(row) { |
| | | this.$confirm("确定将选择数据删除?", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | type: "warning", |
| | | cancelButtonText: "取消", type: "warning", |
| | | }) |
| | | .then(() => { |
| | | return remove(row.id); |
| | |
| | | //派遣任务 |
| | | setReal(row) { |
| | | var arr = []; |
| | | var data = { |
| | | id: row.id, |
| | | status: 1, |
| | | tpaddress: "", |
| | | spaddress: "", |
| | | sname: row.$snumber, |
| | | snumber: row.snumber, |
| | | stime: row.stime, |
| | | result: row.result, |
| | | place: row.place, |
| | | jd: row.jd, |
| | | wd: row.wd, |
| | | type: 1, |
| | | }; |
| | | updates(data).then( |
| | | () => { |
| | | this.onLoad(this.page); |
| | | // this.$message({ |
| | | // type: "success", |
| | | // message: "操作成功!", |
| | | // }); |
| | | done(); |
| | | }, |
| | | (error) => { |
| | | } |
| | | ); |
| | | |
| | | this.$store.state.tags.tagList.forEach((item) => { |
| | | if (item.label != "任务下发") { |
| | | arr.push(item); |