Browse Source

导入下载模板接口联调

feature
mk 1 year ago
parent
commit
d37b3d0e7a
  1. 2
      src/views/modules/shequzhili/Delivery/index.vue
  2. 9
      src/views/modules/shequzhili/eventHandling/index.vue
  3. 15
      src/views/modules/shequzhili/timeOut/index.vue

2
src/views/modules/shequzhili/Delivery/index.vue

@ -85,7 +85,7 @@
@command="(command) => importTypeChange(command)">
导入
<el-dropdown-menu slot="dropdown">
<el-dropdown-item command="1">下载模板</el-dropdown-item>
<el-dropdown-item command="0" @click.native="handleExportModule">下载模板</el-dropdown-item>
<el-upload :headers="$getElUploadHeaders()" ref="upload" class="upload-btn" action="uploadUlr"
:limit="1" :accept="'.xls,.xlsx'" :with-credentials="true" :show-file-list="false"
:auto-upload="true" :on-progress="handleProgress" :on-success="handleExcelSuccess"

9
src/views/modules/shequzhili/eventHandling/index.vue

@ -74,8 +74,13 @@
@command="(command) => handleMarkDiffcult(command)">
导入
<el-dropdown-menu slot="dropdown">
<el-dropdown-item command="1">下载模板</el-dropdown-item>
<el-dropdown-item command="2">上传导入</el-dropdown-item>
<el-dropdown-item command="0" @click.native="handleExportModule">下载模板</el-dropdown-item>
<el-upload :headers="$getElUploadHeaders()" ref="upload" class="upload-btn" action="uploadUlr"
:limit="1" :accept="'.xls,.xlsx'" :with-credentials="true" :show-file-list="false"
:auto-upload="true" :on-progress="handleProgress" :on-success="handleExcelSuccess"
:before-upload="beforeExcelUpload" :http-request="uploadHttpRequest">
<el-dropdown-item command="1">上传导入</el-dropdown-item>
</el-upload>
</el-dropdown-menu>
</el-dropdown>
</div>

15
src/views/modules/shequzhili/timeOut/index.vue

@ -41,11 +41,11 @@
value: 'id',
}" />
</el-form-item>
<el-form-item label="办理状态" prop="resolveStatus">
<el-form-item label="办理状态" prop="operationType">
<el-cascader class="u-item-width-normal"
size="small"
ref="myCascader"
v-model.trim="formData.resolveStatus"
v-model.trim="formData.operationType"
:options="ProcessingList"
:show-all-levels="false"
clearable></el-cascader>
@ -277,7 +277,6 @@ export default {
}
],
formData: {
agencyId: "",
sourceType: "",
@ -293,7 +292,8 @@ export default {
firstIdList: [],
secondIdList: [],
workOrderNum: "",
limitStatus:""
limitStatus:"",
operationType:""
},
cateOptions: [],
eventTypeCheck: [],
@ -653,8 +653,10 @@ export default {
const { pageSize, pageNo, formData } = this;
// formData
const newFormData = { ...formData };
let newFormData = { ...formData };
if(!this.formData.limitStatus){
newFormData.limitStatus = '3'
}
// agencyId
if (Array.isArray(newFormData.agencyId) && newFormData.agencyId.length) {
if (this.level == "grid") {
@ -761,6 +763,7 @@ export default {
endTime: "",
limitStartTime: "",
limitEndTime: "",
operationType:'',
status: "",
firstIdList: [],
secondIdList: [],

Loading…
Cancel
Save