|
@@ -37,7 +37,7 @@
|
|
|
</div>
|
|
|
</el-tab-pane>
|
|
|
<el-tab-pane label="表彰列表" name="third">
|
|
|
- <el-button size="small" type="primary" @click="dialogVisibleCite = true">上传表彰</el-button>
|
|
|
+ <el-button size="small" type="primary" @click="handleClickCreate('上传表彰')">上传表彰</el-button>
|
|
|
<el-table size="small" :data="dataListCite" border style="margin-top: 20px;width: 960px">
|
|
|
<el-table-column align="center" type="index" width="50" label="序号"></el-table-column>
|
|
|
<el-table-column align="center" min-width="200" label="附件">
|
|
@@ -112,7 +112,7 @@
|
|
|
</div>
|
|
|
</el-tab-pane>
|
|
|
<el-tab-pane label="培训列表" name="fourth">
|
|
|
- <el-button size="small" type="primary" @click="handleClickCreate()">上传培训</el-button>
|
|
|
+ <el-button size="small" type="primary" @click="handleClickCreate('上传培训')">上传培训</el-button>
|
|
|
<el-table size="small" :data="dataListTrain" border style="margin-top: 20px;width: 960px">
|
|
|
<el-table-column align="center" type="index" width="50" label="序号"></el-table-column>
|
|
|
<el-table-column align="center" prop="title" min-width="100" label="培训主题">
|
|
@@ -418,7 +418,8 @@ export default {
|
|
|
},
|
|
|
dialogStatus:'',
|
|
|
textMap: {
|
|
|
- create: "上传培训",
|
|
|
+ createCite: "上传表彰",
|
|
|
+ createTrain: "上传培训",
|
|
|
edit: "修改",
|
|
|
view: "详情",
|
|
|
},
|
|
@@ -434,23 +435,38 @@ export default {
|
|
|
this.getIntegralNotice();
|
|
|
},
|
|
|
methods: {
|
|
|
- handleClickCreate(){
|
|
|
- this.dialogVisibleTrain = true;
|
|
|
- this.dialogStatus = 'create';
|
|
|
- this.dataFormTrain = {
|
|
|
- title: '',
|
|
|
- startTime: '',
|
|
|
- endTime: '',
|
|
|
- lecturer: '',
|
|
|
- traineeIds: [],
|
|
|
- materialFiles: [],
|
|
|
- materials: [],
|
|
|
- signPhotoFiles: [],
|
|
|
- signPhotos: [],
|
|
|
- sitePhotoFiles: [],
|
|
|
- sitePhotos: [],
|
|
|
- content: '',
|
|
|
- };
|
|
|
+ handleClickCreate(val){
|
|
|
+ if(val=='上传表彰'){
|
|
|
+ this.dialogVisibleCite = true;
|
|
|
+ this.dialogStatus = 'createCite';
|
|
|
+ this.dataFormCite = {
|
|
|
+ type: '',
|
|
|
+ groupIds: [],
|
|
|
+ customerName: '',
|
|
|
+ title: '',
|
|
|
+ fileIds: '',
|
|
|
+ files: [],
|
|
|
+ content: ''
|
|
|
+ };
|
|
|
+ }else{
|
|
|
+ this.dialogVisibleTrain = true;
|
|
|
+ this.dialogStatus = 'createTrain';
|
|
|
+ this.dataFormTrain = {
|
|
|
+ title: '',
|
|
|
+ startTime: '',
|
|
|
+ endTime: '',
|
|
|
+ lecturer: '',
|
|
|
+ traineeIds: [],
|
|
|
+ materialFiles: [],
|
|
|
+ materials: [],
|
|
|
+ signPhotoFiles: [],
|
|
|
+ signPhotos: [],
|
|
|
+ sitePhotoFiles: [],
|
|
|
+ sitePhotos: [],
|
|
|
+ content: '',
|
|
|
+ };
|
|
|
+ }
|
|
|
+
|
|
|
},
|
|
|
handleClickViewCite(row, val) {
|
|
|
if(row.groupUsers && row.groupUsers.length>0){
|
|
@@ -710,11 +726,6 @@ export default {
|
|
|
},
|
|
|
submitFormCite() {
|
|
|
this.$refs['dataFormCite'].validate((valid) => {
|
|
|
- if (valid) {
|
|
|
-
|
|
|
- } else {
|
|
|
- return false;
|
|
|
- }
|
|
|
if (valid) {
|
|
|
if(this.dialogStatus=='create'){
|
|
|
uploadCite(this.dataFormCite)
|