提交 8115f0db 编写于 作者: jq's avatar jq

选择复原

上级 db733e0c
...@@ -256,6 +256,12 @@ ...@@ -256,6 +256,12 @@
return []; return [];
}, },
}, },
saveTableData: {
type: Array,
default() {
return [];
},
},
searchParam: { searchParam: {
type: Object, type: Object,
default: () => {}, default: () => {},
...@@ -285,11 +291,13 @@ ...@@ -285,11 +291,13 @@
watch: { watch: {
}, },
mounted() { mounted() {
this.showTableData = this.saveTableData;
}, },
methods: { methods: {
// 获取展示的tab // 获取展示的tab
updateTableProps(newdata) { updateTableProps(newdata) {
this.showTableData = newdata; this.showTableData = newdata;
this.$emit('getTableData', newdata);
}, },
reFeach() { reFeach() {
this.isFreash = false; this.isFreash = false;
......
...@@ -277,6 +277,7 @@ ...@@ -277,6 +277,7 @@
</span> </span>
</div> </div>
<table-set-component <table-set-component
v-if="saveFresh"
:menu-type="searchParam.menuType" :menu-type="searchParam.menuType"
:loading="loading" :loading="loading"
:table-data="tableData" :table-data="tableData"
...@@ -284,7 +285,7 @@ ...@@ -284,7 +285,7 @@
:table-height="tableHeight" :table-height="tableHeight"
:total-rows="totalRows" :total-rows="totalRows"
:multiple-selection.sync="multipleSelection" :multiple-selection.sync="multipleSelection"
@handleClick="handleClick" :save-table-data="saveTableData"
@sortfunc="sortfunc" @sortfunc="sortfunc"
@witeDiagnose="witeDiagnose" @witeDiagnose="witeDiagnose"
@changeRun="changeRun" @changeRun="changeRun"
...@@ -304,6 +305,7 @@ ...@@ -304,6 +305,7 @@
@setOffice="setOffice" @setOffice="setOffice"
@handleSizeChange="handleSizeChange" @handleSizeChange="handleSizeChange"
@handleCurrentChange="handleCurrentChange" @handleCurrentChange="handleCurrentChange"
@getTableData="getTableData"
/> />
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
...@@ -386,6 +388,7 @@ ...@@ -386,6 +388,7 @@
let vm = null; let vm = null;
import { updateDiagnosis } from '../../../utils/diagnosis'; import { updateDiagnosis } from '../../../utils/diagnosis';
import { base64decode } from '../../../utils/utils.js'; import { base64decode } from '../../../utils/utils.js';
import { DIAGNOS_LIST_NEW } from '@/utils/GeneralData/diagnosis-list-new';
import { import {
TYPE_LIST, TYPE_LIST,
IS_FLLOW, IS_FLLOW,
...@@ -430,7 +433,7 @@ ...@@ -430,7 +433,7 @@
}, },
data() { data() {
return { return {
isFreash:true, saveFresh:true,
isUp: false, isUp: false,
endFlag: false, endFlag: false,
beginFlag: false, beginFlag: false,
...@@ -494,7 +497,7 @@ ...@@ -494,7 +497,7 @@
doctorId: 0, doctorId: 0,
operateUserID: '', operateUserID: '',
triageDepartmentId: 0, triageDepartmentId: 0,
saveTableData:DIAGNOS_LIST_NEW,
pickerOptions1: { pickerOptions1: {
disabledDate: (time) => { disabledDate: (time) => {
return time.getTime() > new Date().getTime(); // 减去一天的时间代表可以选择同一天; return time.getTime() > new Date().getTime(); // 减去一天的时间代表可以选择同一天;
...@@ -533,6 +536,9 @@ ...@@ -533,6 +536,9 @@
clearInterval(this.timer); clearInterval(this.timer);
}, },
methods: { methods: {
getTableData(val) {
this.saveTableData = val || [];
},
selectToggle() { selectToggle() {
this.isUp = !this.isUp; this.isUp = !this.isUp;
}, },
...@@ -573,7 +579,6 @@ ...@@ -573,7 +579,6 @@
this.searchParam.status = ''; this.searchParam.status = '';
this.Raw_tabpaneList = []; this.Raw_tabpaneList = [];
this.getTabs().then((res) => { this.getTabs().then((res) => {
console.log(res);
if (res) { if (res) {
this.getsearch(); this.getsearch();
} }
...@@ -668,8 +673,6 @@ ...@@ -668,8 +673,6 @@
}, },
// tab切换 // tab切换
handleClick(val) { handleClick(val) {
console.log('changeTableDatachangeTableData', val);
console.log('this.fromType', this.fromType);
for (let i = 0; i < this.tabpaneList.length; i++) { for (let i = 0; i < this.tabpaneList.length; i++) {
if (this.tabpaneList[i].active == val.paneName) { if (this.tabpaneList[i].active == val.paneName) {
this.tabpaneList[i].isdot = false; this.tabpaneList[i].isdot = false;
...@@ -710,8 +713,11 @@ ...@@ -710,8 +713,11 @@
delete this.searchParam.hasToFollowReason; delete this.searchParam.hasToFollowReason;
} }
} }
this.getsearch(); this.getsearch();
this.saveFresh = false;
this.$nextTick(() => {
this.saveFresh = true;
});
}, },
// 初始化时间 // 初始化时间
...@@ -770,7 +776,6 @@ ...@@ -770,7 +776,6 @@
search(isTabs) { search(isTabs) {
this.loading = true; this.loading = true;
if (!isTabs) { if (!isTabs) {
console.log('isTabs', isTabs);
this.getTabs(); this.getTabs();
} }
this.initTime(); this.initTime();
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册