index.html
4.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<link rel="stylesheet" href="__CDN__/assets/css/mc_declare.css">
<link rel="stylesheet" href="__CDN__/assets/expert/layui/css/layui.css">
<link rel="stylesheet" href="__CDN__/assets/css/member_change.css">
<link rel="stylesheet" href="__CDN__/assets/ele/element/element.css">
<script src="__CDN__/assets/ele/vue.js"></script>
<script src="__CDN__/assets/ele/element/element.js"></script>
<script src="__CDN__/assets/ele/Sortable.min.js"></script>
<script src="__CDN__/assets/ele/vuedraggable.js"></script>
<script src="__CDN__/assets/ele/moment.js"></script>
<style>
[v-cloak] {
display: none
}
.icon_class {
font-weight: bold;
color:#32B3F1
}
</style>
<div id="content-container" class="container">
<div class="row">
<div class="col-md-3">
{include file="common/sidenav" /}
</div>
<div class="col-md-9">
<div class="panel panel-default">
<div class="panel-body">
<div class="main">
<div class="main_right" id="app" v-cloak>
<div class="title1">
<div class="title1_left">
<a style="color: #555;font-weight: 550;">成员变更</a>
</div>
<div class="title_right">
<button class=" btn btn-info" onclick="javascript:history.go(-1);">返回</button>
</div>
</div>
<div class="sign">【{{info.project_name}}】变更项目成员</div>
<div class="title2">
<text style="font-size: 1rem;font-weight: 550;">变更成员 </text>
<text class="star">*</text>
<a style="color: #f00;">提交申请后,请通知指导老师进入系统审核并会通过,才能变更成功,否则变更不生效!</a>
</div>
<el-button @click="addMember = true" type="primary" size="small" style="margin-bottom: 15px; ">添加成员</el-button>
<template>
<el-table :data="membersInfo" style="width: 100%">
<el-table-column label="成员姓名">
<template slot-scope="scope">
{{scope.row.nickname}}<el-tag v-if="scope.row.is_captain == 2" style="background-color:red;color:#fff;margin-left:8px;" size="mini" type="success" >队长</el-tag>
</template>
</el-table-column>
<el-table-column prop="student_no" label="成员学号"></el-table-column>
<el-table-column label="操作">
<template slot-scope="scope">
<input type="radio" v-if="scope.row.is_captain == 2" checked name="radio" @click="setCaptain(scope.$index,scope.row)">设置为队长
<input type="radio" v-else name="radio" @click="setCaptain(scope.$index,scope.row)">设置为队长
<i class="el-icon-delete icon_class" @click="handleDelete(scope.$index, scope.row)"><a
href="javascript:;" class="icon_class">删除</a></i>
<i class="el-icon-bottom icon_class"@click="moveDown(scope.$index,scope.row)"/><a
href="javascript:;" class="icon_class">下移</a></i>
<i class="el-icon-top icon_class" @click="moveUp(scope.$index,scope.row)"/><a
href="javascript:;" class="icon_class">上移</a></i>
</template>
</el-table-column>
</el-table>
</template>
<div style="margin:35px 0px 15px 0px;"><span style="color:red">*</span>变更原因</div>
<div>
<el-input
type="textarea"
:rows="8"
placeholder="请输入变更原因(必填)"
v-model="memo">
</el-input>
</div>
<button type="button" class="commit" @click="saveChange()">提交申请</button>
<el-dialog title="团队成员" :visible.sync="addMember">
<div v-for="(cx,k) in memberField" style="margin:0 auto;">
<div class="forms" v-if="cx.type == 'input'">
<div class="form-group">
<div class="input-group">
<div class="input-group-addon left_name" >{{cx.title}}</div>
<input @blur="cx.name == 'student_no' ? getMember($event) : ''" class="form-control" :disabled="cx.name != 'student_no'" type="text" v-model="tmp_member[cx.name]" :placeholder="cx.describe">
</div>
</div>
</div>
</div>
<div slot="footer" class="dialog-footer">
<el-button @click="exit_member">取 消</el-button>
<el-button type="primary" @click="addMembers">确 定</el-button>
</div>
</el-dialog>
</div>
</div>
</div>
</div>
</div>
</div>
</div>