Commit 049c4c50 authored by 小费同学阿's avatar 小费同学阿 💬

144环境地址替换

parent c20e814f
......@@ -85,26 +85,29 @@
<div style="margin-top: 10px;">
<!--选择全部-->
<el-button
id="all-choice"
v-hasPermi="['business:case:export']"
class="fourWordswhiteBtn"
size="mini"
@click="checkAll"
@click="checkAll('all-choice')"
><svg-icon style="margin-right: 5px" icon-class="shuaixuan_icon_quanbu" />选择全部
</el-button>
<!--反向选择-->
<el-button
id="re-choice"
v-hasPermi="['business:case:export']"
class="fourWordswhiteBtn"
size="mini"
@click="reverseSelection"
@click="reverseSelection('re-choice')"
><svg-icon icon-class="shuaixuan_icon_fanxiang" />反向选择
</el-button>
<!--批量导出-->
<el-button
id="export-handle"
v-hasPermi="['business:case:export']"
class="direction-warning fourWordswhiteBtn"
size="mini"
@click="handleExport('direction-warning' )"
@click="handleExport('export-handle')"
> <svg-icon style="margin-right: 5px" icon-class="shaixuan_icon_daochu" />批量导出
</el-button>
<el-form-item style="position: absolute;right: 0%;">
......@@ -414,10 +417,11 @@ export default {
this.queryParams.isAsc = val.collation
},
// 选择全部
checkAll() {
checkAll(allChoiceButtonId) {
this.ids = this.idsForever
// 调用手动勾选
this.manualCheck()
document.getElementById(allChoiceButtonId).blur()
},
// 手动勾选
manualCheck() {
......@@ -434,8 +438,9 @@ export default {
})
},
// 反向选择(把永久临时集合和变化的临时集合做减法重新赋给变化的临时集合赋给)
reverseSelection() {
reverseSelection(reChoice) {
const temp = []
document.getElementById(reChoice).blur()
this.idsForever.forEach(item => {
if (!this.ids.includes(item)) {
temp.push(item)
......@@ -471,7 +476,8 @@ export default {
},
/** 功能按钮--导出按钮操作 */
handleExport(ButtonId) {
handleExport(exportButtonId) {
document.getElementById(exportButtonId).blur()
if (this.ids.length !== 0) {
const exportList = {}
exportList.medicalId = this.ids.reverse()
......
......@@ -62,26 +62,29 @@
<el-row :gutter="10" class="mb8" style="margin: 0 0 20px 1px">
<el-button
id="all-choice"
v-hasPermi="['business:hospital:export']"
class="fourWordswhiteBtn"
size="mini"
@click="selectAll()"
@click="selectAll('all-choice')"
>
<svg-icon style="margin-right: 1px" icon-class="shuaixuan_icon_quanbu" />
选择全部
</el-button>
<el-button
id="re-choice"
v-hasPermi="['business:hospital:export']"
class="fourWordswhiteBtn"
size="mini"
@click="reverseSelect(hospitalList)"
@click="reverseSelect(hospitalList,'re-choice')"
><svg-icon style="margin-right: 1px" icon-class="shuaixuan_icon_fanxiang" />反向选择
</el-button>
<el-button
id="export-handle"
v-hasPermi="['business:hospital:export']"
class="fourWordswhiteBtn"
size="mini"
@click="handleExport()"
@click="handleExport('export-handle')"
> <svg-icon style="margin-right: 1px" icon-class="shaixuan_icon_daochu" />
批量导出
</el-button>
......@@ -486,7 +489,8 @@ export default {
* @param selection 已选择内容
* @param all 是否永远进行全选操作
*/
async selectAll(selection = [], all = true) {
async selectAll(selection = [], all = true, allChoiceButtonId) {
document.getElementById(allChoiceButtonId).blur()
if (this.hospitalList.length !== selection.length && !all) {
this.effectTableSelect([])
} else {
......@@ -513,7 +517,8 @@ export default {
this.effectTableSelect(data)
},
// 反向选择
reverseSelect() {
reverseSelect(reChoice) {
document.getElementById(reChoice).blur()
this.changeTableSelect(this.ids)
},
// 表格
......@@ -537,7 +542,8 @@ export default {
return formattedDate
},
/** 导出按钮操作 */
handleExport() {
handleExport(exportButtonId) {
document.getElementById(exportButtonId).blur()
if (this.ids.length !== 0) {
const exportTable = {}
exportTable.inHospitalIds = this.ids
......
......@@ -90,26 +90,29 @@
</el-button>
<!--选择全部-->
<el-button
id="all-choice"
v-hasPermi="['business:registration:export']"
class="fourWordswhiteBtn"
size="mini"
@click="checkAll"
@click="checkAll('all-choice')"
><svg-icon style="margin-right: 1px" icon-class="shuaixuan_icon_quanbu" />选择全部
</el-button>
<!--反向选择-->
<el-button
id="re-choice"
v-hasPermi="['business:registration:export']"
class="fourWordswhiteBtn"
size="mini"
@click="reverseSelection"
@click="reverseSelection('re-choice')"
> <svg-icon style="margin-right: 1px" icon-class="shuaixuan_icon_fanxiang" />反向选择
</el-button>
<!--批量导出-->
<el-button
id="export-handle"
v-hasPermi="['business:registration:export']"
class="fourWordswhiteBtn"
size="mini"
@click="handleExport"
@click="handleExport('export-handle')"
><svg-icon style="margin-right: 1px" icon-class="shaixuan_icon_daochu" />批量导出
</el-button>
</el-form-item>
......@@ -475,10 +478,11 @@ export default {
},
// 选择全部
checkAll() {
checkAll(allChoiceButtonId) {
this.ids = this.idsForever
// 调用手动勾选
this.manualCheck()
document.getElementById(allChoiceButtonId).blur()
},
// 手动勾选
manualCheck() {
......@@ -495,8 +499,9 @@ export default {
})
},
// 反向选择(把永久临时集合和变化的临时集合做减法重新赋给变化的临时集合赋给)
reverseSelection() {
reverseSelection(reChoice) {
const temp = []
document.getElementById(reChoice).blur()
this.idsForever.forEach(item => {
if (!this.ids.includes(item)) {
temp.push(item)
......@@ -531,7 +536,8 @@ export default {
}
},
/** 功能按钮--导出按钮操作 */
handleExport() {
handleExport(exportButtonId) {
document.getElementById(exportButtonId).blur()
if (this.ids.length !== 0) {
const exportTable = {}
exportTable.regIds = this.ids
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment