测试:前台任务添加
parent
868a7e1a8b
commit
ee74916ebb
|
@ -15,7 +15,7 @@
|
|||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="任务执行状态">
|
||||
<el-select v-model="taskReq.weigh" placeholder="请选择等级">
|
||||
<el-select v-model="taskReq.status" placeholder="请选择等级">
|
||||
<el-option label="请选择" value=""></el-option>
|
||||
<el-option label="待执行" value="0"></el-option>
|
||||
<el-option label="正在执行" value="1"></el-option>
|
||||
|
@ -149,38 +149,36 @@
|
|||
</template>
|
||||
|
||||
</el-table-column>
|
||||
|
||||
<!-- 添加界面-->
|
||||
<el-dialog title="添加任务信息" :visible.sync="dialogFormVisible">
|
||||
|
||||
<el-form :model="taskAddReq">
|
||||
<el-form-item label="任务名称">
|
||||
<el-input v-model="taskAddReq.name"></el-input>
|
||||
</el-form-item>
|
||||
|
||||
|
||||
|
||||
<el-table-column
|
||||
label="任务权重级别"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<span style="margin-left: 10px" v-if="scope.row.weigh ==1 ">紧急</span>
|
||||
<span style="margin-left: 10px" v-if="scope.row.weigh ==2 ">底</span>
|
||||
<span style="margin-left: 10px" v-if="scope.row.weigh ==3 ">中</span>
|
||||
<span style="margin-left: 10px" v-if="scope.row.weigh ==4 ">高</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-form>
|
||||
|
||||
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button @click="dialogFormVisible = false">取 消</el-button>
|
||||
<el-button type="primary" @click="addTask()">确 定</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
|
||||
</el-table>
|
||||
<!-- 添加界面-->
|
||||
|
||||
<el-dialog title="添加任务信息" :visible.sync="dialogFormVisible">
|
||||
|
||||
<el-form :model="taskAddReq">
|
||||
<el-form-item label="任务名称">
|
||||
<el-input v-model="taskAddReq.name"></el-input>
|
||||
</el-form-item>
|
||||
|
||||
|
||||
|
||||
<el-table-column
|
||||
label="任务权重级别"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<span style="margin-left: 10px" v-if="scope.row.weigh ==1 ">紧急</span>
|
||||
<span style="margin-left: 10px" v-if="scope.row.weigh ==2 ">底</span>
|
||||
<span style="margin-left: 10px" v-if="scope.row.weigh ==3 ">中</span>
|
||||
<span style="margin-left: 10px" v-if="scope.row.weigh ==4 ">高</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-form>
|
||||
|
||||
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button @click="dialogFormVisible = false">取 消</el-button>
|
||||
<el-button type="primary" @click="addTask()">确 定</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue