|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
- <div class="car_add">
|
|
|
+ <div class="car_add visit-box">
|
|
|
<div>
|
|
|
<div class="communal-title">
|
|
|
<div>{{ title }}</div>
|
|
@@ -12,7 +12,7 @@
|
|
|
<div style="width: 25%;">
|
|
|
<el-form-item label="团组名称:" label-width="160px">
|
|
|
<el-select v-model="DiId" clearable filterable placeholder="团组选择" @change="DiIdChang"
|
|
|
- :disabled="isShow" style="width: 220px;">
|
|
|
+ :disabled="isShow">
|
|
|
<el-option v-for="item in delegationInfoList" :key="item.id" :label="item.teamName"
|
|
|
:value="item.id">
|
|
|
</el-option>
|
|
@@ -91,13 +91,14 @@
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
</div>
|
|
|
- <el-form-item label="公务形式:" prop="officialForm" label-width="160px">
|
|
|
- <el-select v-model="OpOfficialActivitiesDto.officialForm" clearable filterable placeholder="公务形式"
|
|
|
- style="width: 220px;">
|
|
|
- <el-option v-for="item in OfficialFormList" :key="item.id" :label="item.name" :value="item.id">
|
|
|
- </el-option>
|
|
|
- </el-select>
|
|
|
- </el-form-item>
|
|
|
+ <div style="width: 25%;">
|
|
|
+ <el-form-item label="公务形式:" prop="officialForm" label-width="160px">
|
|
|
+ <el-select v-model="OpOfficialActivitiesDto.officialForm" clearable filterable placeholder="公务形式">
|
|
|
+ <el-option v-for="item in OfficialFormList" :key="item.id" :label="item.name" :value="item.id">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<div style="display: flex;">
|
|
|
<div style="width: 25%;">
|
|
@@ -157,55 +158,56 @@
|
|
|
</el-form-item>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <div>
|
|
|
+ <div>
|
|
|
+ <div class="communal-title">
|
|
|
+ <div>公务文件</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <span style="color: red;">上传、删除文件时请谨慎!!!</span>
|
|
|
+ <hr style='background-color:#5555; height:1px; border:none;' />
|
|
|
+ <div style="display: flex;">
|
|
|
+ <div style="width: 33%;">
|
|
|
+ 公务方简介:
|
|
|
+ <el-upload :file-list="uploadFiles1" ref="upload1" :on-success="upLoadSuccess1" :on-error="upLoadError1"
|
|
|
+ :before-remove="beforeRemove1" :on-change="onChange1" :limit="1" :on-exceed="exceed1"
|
|
|
+ :action="uploadURL" :headers="headers1" :auto-upload="false" :on-preview="onPreview1">
|
|
|
+ <el-button slot="trigger" size="small" type="primary">选取文件</el-button>
|
|
|
+ <el-button style="margin-left: 10px;" size="small" type="success"
|
|
|
+ @click="submitUpload1">上传</el-button>
|
|
|
+ </el-upload>
|
|
|
+ </div>
|
|
|
+ <div style="width: 33%;">
|
|
|
+ 公务活动图片:
|
|
|
+ <el-upload :file-list="uploadFiles2" ref="upload2" :on-success="upLoadSuccess2" :on-error="upLoadError2"
|
|
|
+ :before-remove="beforeRemove2" :on-change="onChange2" :limit="1" :on-exceed="exceed2"
|
|
|
+ :action="uploadURL" :headers="headers2" :auto-upload="false" :on-preview="onPreview2">
|
|
|
+ <el-button slot="trigger" size="small" type="primary">选取文件</el-button>
|
|
|
+
|
|
|
+ <el-button style="margin-left: 10px;" size="small" type="success"
|
|
|
+ @click="submitUpload2">上传</el-button>
|
|
|
+ </el-upload>
|
|
|
+ </div>
|
|
|
+ <div style="width: 33%;">
|
|
|
+ 发票:
|
|
|
+ <el-upload :file-list="uploadFiles3" ref="upload3" :on-success="upLoadSuccess3" :on-error="upLoadError3"
|
|
|
+ :before-remove="beforeRemove3" :on-change="onChange3" :limit="1" :on-exceed="exceed3"
|
|
|
+ :action="uploadURL" :headers="headers3" :auto-upload="false" :on-preview="onPreview3">
|
|
|
+ <el-button slot="trigger" size="small" type="primary">选取文件</el-button>
|
|
|
+ <el-button style="margin-left: 10px;" size="small" type="success"
|
|
|
+ @click="submitUpload3">上传</el-button>
|
|
|
+ </el-upload>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
<el-form-item>
|
|
|
- <div style="margin-left: 60%;">
|
|
|
+ <div style="text-align: right;">
|
|
|
<el-button type="primary" @click="addBtn">保存</el-button>
|
|
|
- <router-link to='/home/OfficialActivities'>
|
|
|
- <el-button>取消</el-button>
|
|
|
- </router-link>
|
|
|
+ <el-button @click="returnbtn">取消</el-button>
|
|
|
</div>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
- <div>
|
|
|
- <div class="communal-title">
|
|
|
- <div>公务文件</div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <span style="color: red;">上传、删除文件时请谨慎!!!</span>
|
|
|
- <hr style='background-color:#5555; height:1px; border:none;' />
|
|
|
- <div style="display: flex;">
|
|
|
- <div style="width: 33%;">
|
|
|
- 公务方简介:
|
|
|
- <el-upload :file-list="uploadFiles1" ref="upload1" :on-success="upLoadSuccess1" :on-error="upLoadError1"
|
|
|
- :before-remove="beforeRemove1" :on-change="onChange1" :limit="1" :on-exceed="exceed1"
|
|
|
- :action="uploadURL" :headers="headers1" :auto-upload="false" :on-preview="onPreview1">
|
|
|
- <el-button slot="trigger" size="small" type="primary">选取文件</el-button>
|
|
|
- <el-button style="margin-left: 10px;" size="small" type="success"
|
|
|
- @click="submitUpload1">上传</el-button>
|
|
|
- </el-upload>
|
|
|
- </div>
|
|
|
- <div style="width: 33%;">
|
|
|
- 公务活动图片:
|
|
|
- <el-upload :file-list="uploadFiles2" ref="upload2" :on-success="upLoadSuccess2" :on-error="upLoadError2"
|
|
|
- :before-remove="beforeRemove2" :on-change="onChange2" :limit="1" :on-exceed="exceed2"
|
|
|
- :action="uploadURL" :headers="headers2" :auto-upload="false" :on-preview="onPreview2">
|
|
|
- <el-button slot="trigger" size="small" type="primary">选取文件</el-button>
|
|
|
-
|
|
|
- <el-button style="margin-left: 10px;" size="small" type="success"
|
|
|
- @click="submitUpload2">上传</el-button>
|
|
|
- </el-upload>
|
|
|
- </div>
|
|
|
- <div style="width: 33%;">
|
|
|
- 发票:
|
|
|
- <el-upload :file-list="uploadFiles3" ref="upload3" :on-success="upLoadSuccess3" :on-error="upLoadError3"
|
|
|
- :before-remove="beforeRemove3" :on-change="onChange3" :limit="1" :on-exceed="exceed3"
|
|
|
- :action="uploadURL" :headers="headers3" :auto-upload="false" :on-preview="onPreview3">
|
|
|
- <el-button slot="trigger" size="small" type="primary">选取文件</el-button>
|
|
|
- <el-button style="margin-left: 10px;" size="small" type="success"
|
|
|
- @click="submitUpload3">上传</el-button>
|
|
|
- </el-upload>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
+
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -363,7 +365,9 @@ export default {
|
|
|
that.delegationInfoList = res.data.data.delegation;
|
|
|
that.OfficialFormList = res.data.data.setData;
|
|
|
if (that.OfficialFormList.length != 0) {
|
|
|
- that.OpOfficialActivitiesDto.officialForm = that.OfficialFormList[0].id
|
|
|
+ if(that.id!=that.id){
|
|
|
+ that.OpOfficialActivitiesDto.officialForm = that.OfficialFormList[0].id
|
|
|
+ }
|
|
|
}
|
|
|
for (let index = 0; index < that.delegationInfoList.length; index++) {
|
|
|
if (that.delegationInfoList[index].id == parseInt(that.DiId)) {
|
|
@@ -452,7 +456,7 @@ export default {
|
|
|
message: res.data.msg,
|
|
|
type: 'success'
|
|
|
});
|
|
|
-
|
|
|
+ that.returnbtn();
|
|
|
that.loading = true;
|
|
|
} else {
|
|
|
that.$message.error(res.data.msg);
|
|
@@ -643,6 +647,15 @@ export default {
|
|
|
a.remove();
|
|
|
//window.location.href = "http://132.232.92.186:24/Office/GrpFile/商邀相关文件/" + file.name
|
|
|
},
|
|
|
+ //返回
|
|
|
+ returnbtn(){
|
|
|
+ this.$router.push({
|
|
|
+ path: "/home/OfficialActivities",
|
|
|
+ query: {
|
|
|
+ DiId: this.DiId,
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
},
|
|
|
|
|
|
mounted() {
|
|
@@ -680,13 +693,6 @@ export default {
|
|
|
}
|
|
|
</script>
|
|
|
<style>
|
|
|
-.communal-list {
|
|
|
- background-color: #fff;
|
|
|
- padding: 10px;
|
|
|
- box-shadow: 0 0 5px #0005;
|
|
|
- border-radius: 10px;
|
|
|
-}
|
|
|
-
|
|
|
.car_add .communal-title {
|
|
|
display: flex;
|
|
|
font-size: 17px;
|
|
@@ -722,8 +728,14 @@ export default {
|
|
|
padding: 20px;
|
|
|
box-shadow: 0 0 5px #0005;
|
|
|
border-radius: 10px;
|
|
|
+ min-height: 810px;
|
|
|
+}
|
|
|
+.visit-box .el-date-editor.el-input, .el-date-editor.el-input__inner{
|
|
|
+ width: 100%;
|
|
|
+}
|
|
|
+.visit-box .el-select{
|
|
|
+ width: 100%;
|
|
|
}
|
|
|
-
|
|
|
@media screen and (max-width: 1700px) {
|
|
|
.appraise-box>div {
|
|
|
width: 48%;
|