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

144环境地址替换

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