|
|
@@ -143,7 +143,7 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
label="操作"
|
|
|
- width="180"
|
|
|
+ width="200"
|
|
|
fixed="right"
|
|
|
class-name="small-padding fixed-width"
|
|
|
>
|
|
|
@@ -154,7 +154,7 @@
|
|
|
@click="publishHandler(row)"
|
|
|
type="text"
|
|
|
icon="el-icon-plus"
|
|
|
- >发布</el-button
|
|
|
+ >{{row.isDistribute=='0'? '':'取消'}}发布</el-button
|
|
|
>
|
|
|
<el-button
|
|
|
size="mini"
|
|
|
@@ -194,6 +194,7 @@ import {
|
|
|
swtichHandler,
|
|
|
delelteEvaluate,
|
|
|
publishEvaluate,
|
|
|
+ withdraw,
|
|
|
} from "@/api/resumption/outsourcing.js";
|
|
|
import OrgTree from "@/components/orgTree";
|
|
|
import editEvaluate from "./editDialog.vue";
|
|
|
@@ -270,8 +271,24 @@ export default {
|
|
|
},
|
|
|
//发布
|
|
|
publishHandler(row) {
|
|
|
- // publishEvaluate
|
|
|
- this.$modal
|
|
|
+ //0未 //1已
|
|
|
+ if(row.isDistribute=='1'){
|
|
|
+ this.$modal
|
|
|
+ .confirm("是否取消发布?")
|
|
|
+ .then(function () {})
|
|
|
+ .then(() => {
|
|
|
+ withdraw(row.id).then((res) => {
|
|
|
+ let { code, msg } = res;
|
|
|
+ if (code == 200) {
|
|
|
+ this.getList();
|
|
|
+ this.$modal.msgSuccess("取消发布成功");
|
|
|
+ } else {
|
|
|
+ this.$modal.msgSuccess(msg);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ });
|
|
|
+ }else{
|
|
|
+ this.$modal
|
|
|
.confirm("是否确认发布?")
|
|
|
.then(function () {})
|
|
|
.then(() => {
|
|
|
@@ -285,6 +302,10 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
});
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
},
|
|
|
deleteHandler(row) {
|
|
|
this.$modal
|