|
@@ -25,10 +25,12 @@
|
|
<div v-if="docList.length == 0"><NoData></NoData></div>
|
|
<div v-if="docList.length == 0"><NoData></NoData></div>
|
|
</div>
|
|
</div>
|
|
<div style="overflow-x: auto" class="flex-1 scroll-bar">
|
|
<div style="overflow-x: auto" class="flex-1 scroll-bar">
|
|
|
|
+ <el-row style="margin-left: 20px;margin-bottom: 20px;" v-if="currentDoc">
|
|
|
|
+ <el-col :span="10" style="display: block;font-size: 20px; color: rgb(48,49,51); vertical-align: middle" ><h4>{{currentDoc.name}}</h4></el-col>
|
|
|
|
+ </el-row>
|
|
<div style="margin-bottom: 20px;margin-left: 20px;" >
|
|
<div style="margin-bottom: 20px;margin-left: 20px;" >
|
|
<el-button v-if="currentDoc" type="primary" size="small" @click="editDoc">档案配置</el-button>
|
|
<el-button v-if="currentDoc" type="primary" size="small" @click="editDoc">档案配置</el-button>
|
|
<el-button v-if="currentDoc" type="primary" size="small" @click="addTeam">添加团队</el-button>
|
|
<el-button v-if="currentDoc" type="primary" size="small" @click="addTeam">添加团队</el-button>
|
|
-
|
|
|
|
</div>
|
|
</div>
|
|
<el-tabs v-if=" currentDoc && currentDoc.teams.length > 0 " v-model="activeTeam" type="border-card" closable @tab-remove="removeTeam" v-loading="contentLoading">
|
|
<el-tabs v-if=" currentDoc && currentDoc.teams.length > 0 " v-model="activeTeam" type="border-card" closable @tab-remove="removeTeam" v-loading="contentLoading">
|
|
<el-tab-pane v-for="(team,index) in currentDoc.teams" :key="index" :name="index.toString()" :label="team.name" >
|
|
<el-tab-pane v-for="(team,index) in currentDoc.teams" :key="index" :name="index.toString()" :label="team.name" >
|
|
@@ -67,7 +69,7 @@
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<!-- 创建/编辑档案 -->
|
|
<!-- 创建/编辑档案 -->
|
|
- <el-dialog :title="isUpdateDoc ? '编辑档案': '创建档案' " width="700px" top="10vh" :visible.sync="showDoc" :close-on-click-modal="false" >
|
|
|
|
|
|
+ <el-dialog :title="isUpdateDoc ? '档案配置': '创建档案' " width="700px" top="10vh" :visible.sync="showDoc" :close-on-click-modal="false" >
|
|
<el-form ref="docForm" :model="docForm" :rules="docFormValidateRules" label-width="100px" @submit.native.prevent style="margin: 0 auto;">
|
|
<el-form ref="docForm" :model="docForm" :rules="docFormValidateRules" label-width="100px" @submit.native.prevent style="margin: 0 auto;">
|
|
<el-form-item label="档案名" prop="name" :required="true">
|
|
<el-form-item label="档案名" prop="name" :required="true">
|
|
<el-input v-model="docForm.name" maxlength="10" auto-complete="off" show-word-limit placeholder="请输入档案名" ></el-input>
|
|
<el-input v-model="docForm.name" maxlength="10" auto-complete="off" show-word-limit placeholder="请输入档案名" ></el-input>
|
|
@@ -112,7 +114,7 @@
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
|
|
<!-- 创建编辑团队 -->
|
|
<!-- 创建编辑团队 -->
|
|
- <el-dialog :title="isUpdateTeam ? '编辑团队' : '创建团队'" width="700px" top="10vh" :visible.sync="showTeam" :close-on-click-modal="false" >
|
|
|
|
|
|
+ <el-dialog :title="isUpdateTeam ? '团队配置' : '添加团队'" width="700px" top="10vh" :visible.sync="showTeam" :close-on-click-modal="false" >
|
|
<el-form ref="teamForm" :model="teamForm" :rules="teamFormValidateRules" label-width="100px" @submit.native.prevent style="margin: 0 auto;" >
|
|
<el-form ref="teamForm" :model="teamForm" :rules="teamFormValidateRules" label-width="100px" @submit.native.prevent style="margin: 0 auto;" >
|
|
<el-form-item label="团队名" prop="name" :required="true">
|
|
<el-form-item label="团队名" prop="name" :required="true">
|
|
<el-input v-model="teamForm.name" maxlength="10" auto-complete="off" show-word-limit placeholder="请输入团队名" ></el-input>
|
|
<el-input v-model="teamForm.name" maxlength="10" auto-complete="off" show-word-limit placeholder="请输入团队名" ></el-input>
|
|
@@ -163,7 +165,7 @@
|
|
</el-form>
|
|
</el-form>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
|
|
- <el-dialog title="团队积分事件" width="700px" top="10vh" :visible.sync="showPoint" :close-on-click-modal="false" >
|
|
|
|
|
|
+ <el-dialog title="团队积分列表" width="700px" top="10vh" :visible.sync="showPoint" :close-on-click-modal="false" >
|
|
<el-form :inline="true" @submit.native.prevent >
|
|
<el-form :inline="true" @submit.native.prevent >
|
|
<el-date-picker
|
|
<el-date-picker
|
|
v-model="pointSearchDateScope"
|
|
v-model="pointSearchDateScope"
|
|
@@ -247,7 +249,7 @@ export default {
|
|
},
|
|
},
|
|
teamFormValidateRules:{
|
|
teamFormValidateRules:{
|
|
name: [
|
|
name: [
|
|
- {required: true,message:'请输入档案名称'},
|
|
|
|
|
|
+ {required: true,message:'请输入团队名'},
|
|
{ min: 3, max: 10, message: '长度在 3 到 10 个字符'}
|
|
{ min: 3, max: 10, message: '长度在 3 到 10 个字符'}
|
|
]
|
|
]
|
|
},
|
|
},
|