|
@@ -55,7 +55,7 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
-
|
|
|
+
|
|
|
<pagination
|
|
|
v-show="total>0"
|
|
|
:total="total"
|
|
@@ -65,9 +65,9 @@
|
|
|
/>
|
|
|
|
|
|
<!-- 详情对话框 -->
|
|
|
- <el-dialog
|
|
|
- title="申请详情"
|
|
|
- :visible.sync="detailsVisible"
|
|
|
+ <el-dialog
|
|
|
+ title="申请详情"
|
|
|
+ :visible.sync="detailsVisible"
|
|
|
width="50%"
|
|
|
:close-on-click-modal="false"
|
|
|
custom-class="apply-details-dialog"
|
|
@@ -93,21 +93,26 @@
|
|
|
</el-tag>
|
|
|
</div>
|
|
|
</div>
|
|
|
-
|
|
|
+
|
|
|
<!-- 用户列表 -->
|
|
|
<div class="details-content">
|
|
|
<div class="content-title">变更用户列表</div>
|
|
|
- <el-table
|
|
|
- :data="selectedUsers"
|
|
|
- border
|
|
|
+ <el-table
|
|
|
+ :data="selectedUsers"
|
|
|
+ border
|
|
|
style="width: 100%"
|
|
|
:header-cell-style="{background:'#f5f7fa',color:'#606266'}"
|
|
|
>
|
|
|
+ <el-table-column prop="projectId" label="项目" align="center">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-tag v-if="scope.row.projectId">{{ getProjectLabel(scope.row.projectId) }}</el-tag>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column prop="userId" label="用户ID" align="center"></el-table-column>
|
|
|
<el-table-column prop="userName" label="姓名" align="center"></el-table-column>
|
|
|
</el-table>
|
|
|
</div>
|
|
|
-
|
|
|
+
|
|
|
<!-- 底部操作区 -->
|
|
|
<div class="details-footer">
|
|
|
<el-button @click="detailsVisible = false">关闭</el-button>
|
|
@@ -115,9 +120,9 @@
|
|
|
</el-dialog>
|
|
|
|
|
|
<!-- 审核对话框 -->
|
|
|
- <el-dialog
|
|
|
- title="审核申请"
|
|
|
- :visible.sync="auditVisible"
|
|
|
+ <el-dialog
|
|
|
+ title="审核申请"
|
|
|
+ :visible.sync="auditVisible"
|
|
|
width="40%"
|
|
|
:close-on-click-modal="false"
|
|
|
custom-class="audit-dialog"
|
|
@@ -136,8 +141,8 @@
|
|
|
<el-radio :label="2">拒绝</el-radio>
|
|
|
</el-radio-group>
|
|
|
</el-form-item>
|
|
|
- <el-form-item
|
|
|
- label="拒绝原因"
|
|
|
+ <el-form-item
|
|
|
+ label="拒绝原因"
|
|
|
prop="reason"
|
|
|
v-if="auditForm.status === 2"
|
|
|
>
|
|
@@ -149,7 +154,7 @@
|
|
|
></el-input>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
-
|
|
|
+
|
|
|
<!-- 底部操作区 -->
|
|
|
<div class="audit-footer">
|
|
|
<el-button @click="auditVisible = false">取 消</el-button>
|
|
@@ -214,10 +219,14 @@ export default {
|
|
|
reason: [
|
|
|
{ required: true, message: "请输入拒绝原因", trigger: "blur" }
|
|
|
]
|
|
|
- }
|
|
|
+ },
|
|
|
+ projectOptions: [],
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
+ this.getDicts("sys_course_project").then(response => {
|
|
|
+ this.projectOptions = response.data;
|
|
|
+ });
|
|
|
this.getList();
|
|
|
},
|
|
|
methods: {
|
|
@@ -267,7 +276,7 @@ export default {
|
|
|
if (this.auditForm.status === 1) {
|
|
|
this.auditForm.reason = '';
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
this.submitLoading = true;
|
|
|
auditApply(this.auditForm).then(response => {
|
|
|
this.msgSuccess("审核成功");
|
|
@@ -280,7 +289,11 @@ export default {
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
- }
|
|
|
+ },
|
|
|
+ /** 获取项目对应名称 */
|
|
|
+ getProjectLabel(projectId) {
|
|
|
+ return this.projectOptions.find(item => parseInt(item.dictValue) === projectId)?.dictLabel;
|
|
|
+ },
|
|
|
}
|
|
|
};
|
|
|
</script>
|
|
@@ -291,7 +304,7 @@ export default {
|
|
|
::v-deep .el-dialog__body {
|
|
|
padding: 20px;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/* 头部信息样式 */
|
|
|
.details-header {
|
|
|
display: flex;
|
|
@@ -300,20 +313,20 @@ export default {
|
|
|
background-color: #f8f9fa;
|
|
|
border-radius: 4px;
|
|
|
margin-bottom: 20px;
|
|
|
-
|
|
|
+
|
|
|
.info-item {
|
|
|
width: 50%;
|
|
|
margin-bottom: 10px;
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
-
|
|
|
+
|
|
|
.label {
|
|
|
color: #606266;
|
|
|
font-size: 14px;
|
|
|
width: 100px;
|
|
|
text-align: right;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
.value {
|
|
|
color: #303133;
|
|
|
font-size: 14px;
|
|
@@ -321,7 +334,7 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/* 内容区域样式 */
|
|
|
.details-content {
|
|
|
.content-title {
|
|
@@ -333,7 +346,7 @@ export default {
|
|
|
border-left: 3px solid #409EFF;
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/* 底部样式 */
|
|
|
.details-footer {
|
|
|
margin-top: 20px;
|
|
@@ -352,7 +365,7 @@ export default {
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
.el-table__body-wrapper {
|
|
|
tr:hover > td {
|
|
|
background-color: #f5f7fa;
|
|
@@ -365,21 +378,21 @@ export default {
|
|
|
::v-deep .el-dialog__body {
|
|
|
padding: 20px;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/* 表单样式 */
|
|
|
.el-form {
|
|
|
padding: 20px 0;
|
|
|
-
|
|
|
+
|
|
|
.el-form-item {
|
|
|
margin-bottom: 20px;
|
|
|
-
|
|
|
+
|
|
|
span {
|
|
|
color: #606266;
|
|
|
font-size: 14px;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/* 底部样式 */
|
|
|
.audit-footer {
|
|
|
margin-top: 20px;
|