|
|
|
@ -255,7 +255,7 @@ import bindWorkDialog from "@/views/collect/bindWorkDialog";
|
|
|
|
|
import prescribeOriginPanel from "./PannelOrderBiz";
|
|
|
|
|
import prescribeOriginDiPanel from "./PannelOrderBiz";
|
|
|
|
|
import {filterWorkOptimize} from "@/api/basic/workPlace/sysWorkplaceManage";
|
|
|
|
|
import {deleteByOrder, orderPage} from "@/api/collect/collectOrder";
|
|
|
|
|
import {deleteByOrder, orderPage, orderTop} from "@/api/collect/collectOrder";
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
name: "prescribePanel",
|
|
|
|
@ -481,7 +481,27 @@ export default {
|
|
|
|
|
_this.options.findWorkPlace = [];
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
orderTop(_this, row) {
|
|
|
|
|
let data = row;
|
|
|
|
|
orderTop({id:data.id})
|
|
|
|
|
.then((response) => {
|
|
|
|
|
if (response.code == 20000) {
|
|
|
|
|
this.getList();
|
|
|
|
|
this.$message({
|
|
|
|
|
type: "success",
|
|
|
|
|
message: "置顶成功!",
|
|
|
|
|
});
|
|
|
|
|
} else if (response.code == 520) {
|
|
|
|
|
this.$message.error(response.message);
|
|
|
|
|
this.getList();
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error(response.message);
|
|
|
|
|
this.getList();
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
created() {
|
|
|
|
|
if (this.$route.query.workplaceId != null) {
|
|
|
|
|