|
@@ -75,31 +75,26 @@
|
|
<el-input v-model="searchForm.mobilePhone" placeholder="请输入联系电话" clearable></el-input>
|
|
<el-input v-model="searchForm.mobilePhone" placeholder="请输入联系电话" clearable></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="政治面貌" prop="politicalOutlook" :rules="[]">
|
|
<el-form-item label="政治面貌" prop="politicalOutlook" :rules="[]">
|
|
- <el-select v-model="searchForm.politicalOutlook" placeholder="请选择政治面貌" style="width:100%;" clearable>
|
|
|
|
- <el-option v-for="item in $dictUtils.getDictList('political_outlook')" :key="item.value"
|
|
|
|
- :label="item.label" :value="item.value">
|
|
|
|
|
|
+ <el-select v-model="searchForm.politicalOutlook" placeholder="请选择政治面貌"
|
|
|
|
+ style="width:100%;" clearable>
|
|
|
|
+ <el-option v-for="item in $dictUtils.getDictList('political_outlook')"
|
|
|
|
+ :key="item.value" :label="item.label" :value="item.value">
|
|
</el-option>
|
|
</el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="账号状态" prop="loginFlag" :rules="[]">
|
|
<el-form-item label="账号状态" prop="loginFlag" :rules="[]">
|
|
- <el-select v-model="searchForm.loginFlag" placeholder="请选择账号状态" style="width:100%;" clearable>
|
|
|
|
|
|
+ <el-select v-model="searchForm.loginFlag" placeholder="请选择账号状态" style="width:100%;"
|
|
|
|
+ clearable>
|
|
<el-option v-for="item in $dictUtils.getDictList('login_flag')" :key="item.value"
|
|
<el-option v-for="item in $dictUtils.getDictList('login_flag')" :key="item.value"
|
|
- :label="item.label" :value="item.value">
|
|
|
|
|
|
+ :label="item.label" :value="item.value">
|
|
</el-option>
|
|
</el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
|
|
<el-form-item label="入所日期" prop="createDates">
|
|
<el-form-item label="入所日期" prop="createDates">
|
|
- <el-date-picker
|
|
|
|
- style = "width: 300px"
|
|
|
|
- placement="bottom-start"
|
|
|
|
- format="YYYY-MM-DD"
|
|
|
|
- value-format="YYYY-MM-DD"
|
|
|
|
- v-model="searchForm.createDates"
|
|
|
|
- type="daterange"
|
|
|
|
- range-separator="至"
|
|
|
|
- start-placeholder="开始日期"
|
|
|
|
- end-placeholder="结束日期">
|
|
|
|
|
|
+ <el-date-picker style="width: 300px" placement="bottom-start" format="YYYY-MM-DD"
|
|
|
|
+ value-format="YYYY-MM-DD" v-model="searchForm.createDates" type="daterange"
|
|
|
|
+ range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期">
|
|
</el-date-picker>
|
|
</el-date-picker>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
|
|
@@ -115,6 +110,10 @@
|
|
<vxe-toolbar :refresh="{ query: resetSearch }" ref="toolbarRef" import export custom>
|
|
<vxe-toolbar :refresh="{ query: resetSearch }" ref="toolbarRef" import export custom>
|
|
<template #buttons>
|
|
<template #buttons>
|
|
<el-button type="primary" icon="el-icon-plus" @click="start()">新建</el-button>
|
|
<el-button type="primary" icon="el-icon-plus" @click="start()">新建</el-button>
|
|
|
|
+ <!-- <el-button type="primary" icon="el-icon-plus" @click="selectAllEvent()">全选</el-button> -->
|
|
|
|
+ <el-button type="primary" icon="el-icon-plus"
|
|
|
|
+ @click="downloadAttachments()">批量下载附件</el-button>
|
|
|
|
+
|
|
</template>
|
|
</template>
|
|
<template #tools>
|
|
<template #tools>
|
|
<vxe-button type="text" :title="searchVisible ? '收起检索' : '展开检索'
|
|
<vxe-button type="text" :title="searchVisible ? '收起检索' : '展开检索'
|
|
@@ -139,7 +138,9 @@
|
|
types: ['xlsx'],
|
|
types: ['xlsx'],
|
|
modes: ['current', 'selected', 'all']
|
|
modes: ['current', 'selected', 'all']
|
|
}" :menu-config="{}" @sort-change="sortChangeHandle" :sort-config="{ remote: true }" :data="dataList"
|
|
}" :menu-config="{}" @sort-change="sortChangeHandle" :sort-config="{ remote: true }" :data="dataList"
|
|
- :checkbox-config="{}">
|
|
|
|
|
|
+ :checkbox-config="{}" @checkbox-all="selectAllChangeEvent"
|
|
|
|
+ @checkbox-change="selectChangeEvent">
|
|
|
|
+ <vxe-column type="checkbox" width="60"></vxe-column>
|
|
<vxe-column type="seq" width="60" title="序号"></vxe-column>
|
|
<vxe-column type="seq" width="60" title="序号"></vxe-column>
|
|
<vxe-column min-width="160" align="center" title="姓名" field="name">
|
|
<vxe-column min-width="160" align="center" title="姓名" field="name">
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
@@ -164,8 +165,7 @@
|
|
field="departmentName"></vxe-column>
|
|
field="departmentName"></vxe-column>
|
|
<vxe-column min-width="160" align="center" title="联系电话"
|
|
<vxe-column min-width="160" align="center" title="联系电话"
|
|
field="mobilePhone"></vxe-column>
|
|
field="mobilePhone"></vxe-column>
|
|
- <vxe-column min-width="160" align="center" title="进所日期"
|
|
|
|
- field="entryDate"></vxe-column>
|
|
|
|
|
|
+ <vxe-column min-width="160" align="center" title="进所日期" field="entryDate"></vxe-column>
|
|
<!-- <vxe-column min-width="160" fixed="right" align="center" title="是否已加入钉钉" field="ddType">
|
|
<!-- <vxe-column min-width="160" fixed="right" align="center" title="是否已加入钉钉" field="ddType">
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
<el-button v-if="scope.row.ddType === '1'" @click="detail(scope.row)"
|
|
<el-button v-if="scope.row.ddType === '1'" @click="detail(scope.row)"
|
|
@@ -242,14 +242,15 @@
|
|
</el-container>
|
|
</el-container>
|
|
</pane>
|
|
</pane>
|
|
</splitpanes>
|
|
</splitpanes>
|
|
- <!-- <div class="page">-->
|
|
|
|
|
|
|
|
<EnrollmentRegistrationEditForm ref="enrollmentRegistrationEditForm" @refreshDataList="refreshList">
|
|
<EnrollmentRegistrationEditForm ref="enrollmentRegistrationEditForm" @refreshDataList="refreshList">
|
|
</EnrollmentRegistrationEditForm>
|
|
</EnrollmentRegistrationEditForm>
|
|
|
|
|
|
<!-- 修改密码 -->
|
|
<!-- 修改密码 -->
|
|
<EditPassword ref="userPwForm" @refreshDataList="refreshList"></EditPassword>
|
|
<EditPassword ref="userPwForm" @refreshDataList="refreshList"></EditPassword>
|
|
- <!-- </div>-->
|
|
|
|
|
|
+ <!-- 批量下载附件 -->
|
|
|
|
+ <DownloadAttachment ref="downloadAttachment" @refreshDataList="refreshList" />
|
|
|
|
+
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
@@ -264,6 +265,7 @@ import taskService from '@/api/flowable/TaskService'
|
|
import pick from "lodash.pick";
|
|
import pick from "lodash.pick";
|
|
import officeService from "@/api/sys/officeService";
|
|
import officeService from "@/api/sys/officeService";
|
|
import EditPassword from "./EditPassword.vue"
|
|
import EditPassword from "./EditPassword.vue"
|
|
|
|
+import DownloadAttachment from "./components/DownloadAttachment.vue";
|
|
export default {
|
|
export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
@@ -296,6 +298,7 @@ export default {
|
|
searchVisible: true,
|
|
searchVisible: true,
|
|
officeTreeData: [],
|
|
officeTreeData: [],
|
|
filterText: "",
|
|
filterText: "",
|
|
|
|
+ selectChangeList: []
|
|
}
|
|
}
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
@@ -305,7 +308,8 @@ export default {
|
|
EnrollmentRegistrationEditForm,
|
|
EnrollmentRegistrationEditForm,
|
|
Splitpanes,
|
|
Splitpanes,
|
|
Pane,
|
|
Pane,
|
|
- EditPassword
|
|
|
|
|
|
+ EditPassword,
|
|
|
|
+ DownloadAttachment
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|
|
filterText(val) {
|
|
filterText(val) {
|
|
@@ -636,6 +640,31 @@ export default {
|
|
})
|
|
})
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ downloadAttachments() {
|
|
|
|
+ if (!this.selectChangeList || !this.selectChangeList.length) {
|
|
|
|
+ this.$message.warning("未选择任何用户,无法下载附件")
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ let ids = this.selectChangeList.map(item => {
|
|
|
|
+ return item.id
|
|
|
|
+ })
|
|
|
|
+ this.$refs.downloadAttachment.visible = true
|
|
|
|
+ this.$refs.downloadAttachment.ids = ids.join(',');
|
|
|
|
+ },
|
|
|
|
+ selectAllChangeEvent({ checked }) {
|
|
|
|
+ const $table = this.$refs.clientTable
|
|
|
|
+ if ($table) {
|
|
|
|
+ const records = $table.getCheckboxRecords()
|
|
|
|
+ this.selectChangeList = [...records]
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ selectChangeEvent({ checked }) {
|
|
|
|
+ const $table = this.$refs.clientTable
|
|
|
|
+ if ($table) {
|
|
|
|
+ const records = $table.getCheckboxRecords()
|
|
|
|
+ this.selectChangeList = [...records]
|
|
|
|
+ }
|
|
|
|
+ },
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-</script>
|
|
|
|
|
|
+</script>
|