|
@@ -3,14 +3,22 @@
|
|
|
<Toptitle title="匹配">
|
|
|
<Button
|
|
|
@click="handleAutoMatching"
|
|
|
- v-if="currencyTag == 1"
|
|
|
+ v-show="currencyTag == 1"
|
|
|
type="primary"
|
|
|
style="margin-right: 10px"
|
|
|
>自动匹配</Button
|
|
|
>
|
|
|
<Button
|
|
|
+ v-show="currencyTag != 1"
|
|
|
+ @click="handleMatchedSelectAll(isMatchedSelectAll)"
|
|
|
+ type="primary"
|
|
|
+ :ghost="!isMatchedSelectAll"
|
|
|
+ style="margin-right: 10px"
|
|
|
+ >{{ isMatchedSelectAll ? "取消选中" : "全部选中" }}</Button
|
|
|
+ >
|
|
|
+ <Button
|
|
|
@click="handleMatchedSet({}, 0, 5)"
|
|
|
- v-else
|
|
|
+ v-show="currencyTag != 1"
|
|
|
type="primary"
|
|
|
style="margin-right: 10px"
|
|
|
>撤销匹配</Button
|
|
@@ -499,7 +507,7 @@
|
|
|
<Col span="2">
|
|
|
<Checkbox
|
|
|
v-model="matched_info.isSelect"
|
|
|
- @on-change="(e) => handleMatchedSelectAll(matched_info, e)"
|
|
|
+ @on-change="(e) => handleMatchedSelect(matched_info, e)"
|
|
|
>选择</Checkbox
|
|
|
>
|
|
|
</Col>
|
|
@@ -884,6 +892,7 @@ export default {
|
|
|
unmatchedSelectedList: [],
|
|
|
matchedSelectedList: [],
|
|
|
showHandingMatchModal: false,
|
|
|
+ isMatchedSelectAll: false,
|
|
|
};
|
|
|
},
|
|
|
// 生命周期 - 创建完成(可以访问当前this实例)
|
|
@@ -1105,11 +1114,22 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
- handleMatchedSelectAll(row, e) {
|
|
|
+ handleMatchedSelectAll() {
|
|
|
+ this.isMatchedSelectAll = !this.isMatchedSelectAll;
|
|
|
+ this.matchedList.map((v) => {
|
|
|
+ v.isSelect = this.isMatchedSelectAll;
|
|
|
+ });
|
|
|
+ },
|
|
|
+ handleMatchedSelect(row, e) {
|
|
|
row.isSelect = e;
|
|
|
+ let flag = true
|
|
|
this.matchedSelectedList = this.matchedList.map((v) => {
|
|
|
+ if (!v.isSelect) {
|
|
|
+ flag = false
|
|
|
+ }
|
|
|
return v.id;
|
|
|
});
|
|
|
+ this.isMatchedSelectAll = flag
|
|
|
// for (let index = 0; index < this.matchedDetailList.length; index++) {
|
|
|
// const element = this.matchedDetailList[index];
|
|
|
// this.$refs["matched" + index][0].selectAll(bool);
|
|
@@ -1121,6 +1141,11 @@ export default {
|
|
|
case 5:
|
|
|
if (index == -1) {
|
|
|
this.matchedSelectedList = [row.id];
|
|
|
+ } else {
|
|
|
+ this.matchedSelectedList = [];
|
|
|
+ this.matchedList.map((v) => {
|
|
|
+ v.isSelect && this.matchedSelectedList.push(v.id);
|
|
|
+ });
|
|
|
}
|
|
|
this.axios
|
|
|
.post("/api/bst_cancer_matching", {
|