|
@@ -26,6 +26,7 @@
|
|
|
<el-option label="进行中" value=1 ></el-option>
|
|
|
<el-option label="已完成" value=2 ></el-option>
|
|
|
<el-option label="已撤销" value=3 ></el-option>
|
|
|
+ <el-option label="已暂停" value=4 ></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<!-- 主项目筛选 -->
|
|
@@ -207,7 +208,8 @@
|
|
|
<el-dropdown class="customdropdown" split-button size="mini" @click="finishPro(scope.row)" v-if="(permissions.projectManagement || user.id==scope.row.creatorId || user.id==scope.row.inchargerId) && scope.row.status == 1" placement="bottom-start">
|
|
|
完成
|
|
|
<el-dropdown-menu slot="dropdown" class="customdropdown_menu">
|
|
|
- <el-button size="mini" @click="cancelPro(scope.row)" class="customdropdown_menu_btn">撤销</el-button>
|
|
|
+ <el-button size="mini" @click="cancelPro(scope.row)" class="customdropdown_menu_btn">撤销</el-button><br>
|
|
|
+ <el-button size="mini" @click="suspendPro(scope.row)" class="customdropdown_menu_btn">暂停</el-button>
|
|
|
</el-dropdown-menu>
|
|
|
</el-dropdown>
|
|
|
<el-button v-if="(permissions.projectManagement || user.id==scope.row.inchargerId || user.id==scope.row.creatorId) && scope.row.status >= 2" size="mini" @click="restartPro(scope.row)">重启</el-button>
|
|
@@ -809,7 +811,7 @@ a {
|
|
|
customerList:[],
|
|
|
roleArray:["普通员工","超级管理员", "系统管理员", "公司高层","财务管理员", "项目管理员"],
|
|
|
status:"1",
|
|
|
- statusTxt:["-","进行中","已完成","已撤销"],
|
|
|
+ statusTxt:["-","进行中","已完成","已撤销","已暂停"],
|
|
|
importanceList:[{id:1,label:'正常'},{id:2,label:'紧急'},{id:3,label:'重要'},{id:4,label:'重要且紧急'}],
|
|
|
searchField:'1',
|
|
|
keyword:null,
|
|
@@ -1266,6 +1268,30 @@ a {
|
|
|
});
|
|
|
});
|
|
|
},
|
|
|
+ // 暂停项目
|
|
|
+ suspendPro(row) {
|
|
|
+ this.http.post('/project/suspend',{id: row.id},
|
|
|
+ res => {
|
|
|
+ if (res.code == "ok") {
|
|
|
+ this.$message({
|
|
|
+ message: '暂停成功',
|
|
|
+ type: "success"
|
|
|
+ });
|
|
|
+ row.status = 4;
|
|
|
+ } else {
|
|
|
+ this.$message({
|
|
|
+ message: res.msg,
|
|
|
+ type: "error"
|
|
|
+ });
|
|
|
+ }
|
|
|
+ },
|
|
|
+ error => {
|
|
|
+ this.$message({
|
|
|
+ message: error,
|
|
|
+ type: "error"
|
|
|
+ });
|
|
|
+ });
|
|
|
+ },
|
|
|
//完成项目
|
|
|
finishPro(row) {
|
|
|
this.http.post('/project/finish',{id: row.id},
|