|
|
@@ -308,6 +308,15 @@
|
|
|
v-hasPermi="['system:user:remove']"
|
|
|
>下发</el-button
|
|
|
>
|
|
|
+ <el-button
|
|
|
+ size="mini"
|
|
|
+ type="text"
|
|
|
+ icon="el-icon-arrow-down"
|
|
|
+ v-if="chehui(r.row)"
|
|
|
+ @click="chhuile(r.row)"
|
|
|
+ v-hasPermi="['system:user:remove']"
|
|
|
+ >撤回</el-button
|
|
|
+ >
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
@@ -334,7 +343,7 @@
|
|
|
<script>
|
|
|
import DialogDistribute from "@/views/resumption/plan/distribute.vue";
|
|
|
import OrgTree from "@/components/orgTree";
|
|
|
-import { mapState, mapMutations,mapGetters } from "vuex";
|
|
|
+import { mapState, mapMutations, mapGetters } from "vuex";
|
|
|
import DialogEdit from "./dialog.edit";
|
|
|
import * as api from "@/api/resumption/plan";
|
|
|
import { statusOptions, getLabel } from "./../../commonOption";
|
|
|
@@ -411,11 +420,7 @@ export default {
|
|
|
eqOrg(row) {
|
|
|
// console.log(row.planCreateOrgId,"row.planCreateOrgId");
|
|
|
// console.log(this.orgId,"this.orgId");
|
|
|
- if (
|
|
|
- row != null &&
|
|
|
- row != undefined &&
|
|
|
- row.planOfOrgId == this.orgId
|
|
|
- ) {
|
|
|
+ if (row != null && row != undefined && row.planOfOrgId == this.orgId) {
|
|
|
return true;
|
|
|
}
|
|
|
return false;
|
|
|
@@ -423,7 +428,20 @@ export default {
|
|
|
//已完成下发的计划不显示下发按钮
|
|
|
checkCanPublish(row) {
|
|
|
// console.log(row.planOfOrgType,"row.planOfOrgType")
|
|
|
- if (row.planOfOrgType == "1" && row.distribute==null) {
|
|
|
+ if (row.planOfOrgType == "1" && row.distribute == null) {
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ return false;
|
|
|
+ },
|
|
|
+ chhuile(row) {
|
|
|
+ this.loading = true;
|
|
|
+ api.cheHui(row.id).then((response) => {
|
|
|
+ this.getList();
|
|
|
+ this.loading = false;
|
|
|
+ });
|
|
|
+ },
|
|
|
+ chehui(row) {
|
|
|
+ if (row.planOfOrgType == "1" && row.distribute == 1) {
|
|
|
return true;
|
|
|
}
|
|
|
return false;
|