|
|
@@ -96,7 +96,7 @@
|
|
|
<el-table-column label="备注" align="center" prop="description"/>
|
|
|
<el-table-column label="操作" fixed="right" width="120" align="center" class-name="small-padding fixed-width">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-button size="mini" type="text" icon="el-icon-edit-outline" @click="handleUpdate(scope.row)" v-if="(scope.row.parentOrgId==isEdit||scope.row.orgId==isEdit)&&check==true"
|
|
|
+ <el-button size="mini" type="text" icon="el-icon-edit-outline" @click="handleUpdate(scope.row)" v-if="scope.row.parentId==null&&(scope.row.parentOrgId==isEdit||scope.row.orgId==isEdit)&&check==true"
|
|
|
v-hasPermi="['core:accessPlan:edit','core:accessPlan:query']">编辑
|
|
|
</el-button>
|
|
|
<el-button size="mini" type="text" v-if="scope.row.parentId==null&& scope.row.orgId==isEdit&&scope.row.isDistribute == 0 && (scope.row.planStatus==0||scope.row.planStatus==2)" icon="el-icon-arrow-down"
|
|
|
@@ -105,7 +105,8 @@
|
|
|
<el-button size="mini" type="text" v-if="scope.row.orgId==isEdit&&scope.row.isDistribute == 1 && scope.row.planStatus==1&&scope.row.parentId==null" icon="el-icon-arrow-down"
|
|
|
@click="handWithdraw(scope.row)" >撤回
|
|
|
</el-button>
|
|
|
- <el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)" v-if="(scope.row.parentOrgId==isEdit)&&scope.row.parentId==null && check==true"
|
|
|
+
|
|
|
+ <el-button size="mini" type="text" v-if="scope.row.parentOrgId==isEdit&&scope.row.parentId==null && check==true" icon="el-icon-delete" @click="handleDelete(scope.row)"
|
|
|
v-hasPermi="['core:accessPlan:remove']">删除
|
|
|
</el-button>
|
|
|
</template>
|
|
|
@@ -138,6 +139,16 @@
|
|
|
:value="`${dict.value}`" :disabled="form.isEdit||form.isComplete"></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label="立即生效" prop="immediately" v-if="form.planCycle!=0">
|
|
|
+ <el-checkbox v-model="form.immediately">
|
|
|
+ 默认从下个周期生成任务,
|
|
|
+ <br/>
|
|
|
+ 勾选后从当前周期立即生成任务
|
|
|
+ <!-- <el-popover placement="top-start" title="" width="200" trigger="hover"
|
|
|
+ content="" :disabled="form.isEdit">
|
|
|
+ </el-popover> -->
|
|
|
+ </el-checkbox>
|
|
|
+ </el-form-item>
|
|
|
<el-form-item prop="startTime" v-if="form.planCycle == 0" label="开始日期">
|
|
|
<el-date-picker style="width: 100%;" v-model="form.startTime" @change="startDateChanged" :picker-options="startDatepickerOptions"
|
|
|
align="right" type="date" placeholder="选择开始日期" :disabled="form.isEdit||form.isComplete">
|
|
|
@@ -169,16 +180,7 @@
|
|
|
</el-radio>
|
|
|
</el-radio-group>
|
|
|
</el-form-item> -->
|
|
|
- <el-form-item label="立即生效" prop="immediately" v-if="form.planCycle!=0">
|
|
|
- <el-checkbox v-model="form.immediately">
|
|
|
- 默认从下个周期生成任务,
|
|
|
- <br/>
|
|
|
- 勾选后从当前周期立即生成任务
|
|
|
- <!-- <el-popover placement="top-start" title="" width="200" trigger="hover"
|
|
|
- content="" :disabled="form.isEdit">
|
|
|
- </el-popover> -->
|
|
|
- </el-checkbox>
|
|
|
- </el-form-item>
|
|
|
+
|
|
|
|
|
|
|
|
|
<el-form-item label="备注" prop="description">
|
|
|
@@ -463,7 +465,7 @@
|
|
|
handleDelete(row) {
|
|
|
const ids = row.id || this.ids;
|
|
|
const names = row.planName || this.names;
|
|
|
- this.$modal.confirm('是否确认删除监控调阅计划"' + names + '"的数据项?').then(function () {
|
|
|
+ this.$modal.confirm('删除计划会清除本周期所有任务,确定执行?').then(function () {
|
|
|
return delPlan(ids);
|
|
|
}).then(() => {
|
|
|
this.getList();
|
|
|
@@ -472,7 +474,7 @@
|
|
|
});
|
|
|
},
|
|
|
handDistribute(row) {
|
|
|
- this.$modal.confirm('是否确认下发监控调阅计划"' + row.planName + '"的数据项?').then(function () {
|
|
|
+ this.$modal.confirm('下发计划会生成本周期所有任务,确定执行?').then(function () {
|
|
|
return distribute(row.id);
|
|
|
}).then(() => {
|
|
|
this.getList();
|
|
|
@@ -482,7 +484,7 @@
|
|
|
|
|
|
},
|
|
|
handWithdraw(row){
|
|
|
- this.$modal.confirm('撤回计划会清除本周期所有任务?').then(function () {
|
|
|
+ this.$modal.confirm('撤回计划会清除本周期所有任务,确定执行?').then(function () {
|
|
|
return withdraw(row.id);
|
|
|
}).then(() => {
|
|
|
this.getList();
|