提交 88e44f4b 编写于 作者: bo.dang's avatar bo.dang

Merge branch 'dev-20210715' into 'release'

Dev 20210715, code review:bo.dang

See merge request !29
...@@ -176,9 +176,7 @@ ...@@ -176,9 +176,7 @@
<el-col :span="24" class="btn-wrap"> <el-col :span="24" class="btn-wrap">
<el-button type="success" class="submit-btn big-btn" @click="batchSetOperator" v-if="searchParam.menuType == 1" <el-button type="success" class="submit-btn big-btn" @click="batchSetOperator" v-if="searchParam.menuType == 1"
>批量设置运营</el-button> >批量设置运营</el-button>
<el-button type="info" class="submit-btn" @click="download" <el-button type="info" class="submit-btn" @click="download" v-if="fromType != 5">全部导出</el-button>
>全部导出</el-button
>
</el-col> </el-col>
</el-row> </el-row>
</el-form> </el-form>
...@@ -238,6 +236,7 @@ ...@@ -238,6 +236,7 @@
<script> <script>
let vm = null; let vm = null;
import {updateDiagnosis} from "../../../utils/diagnosis"; import {updateDiagnosis} from "../../../utils/diagnosis";
import { base64decode } from "../../../utils/utils.js";
const DOWN_URL= '/diagnose/admin/diagnose/export'; const DOWN_URL= '/diagnose/admin/diagnose/export';
const LIST_URL= '/diagnose/admin/diagnose/list'; const LIST_URL= '/diagnose/admin/diagnose/list';
const DEP_URL= '/hospital/departments/0' const DEP_URL= '/hospital/departments/0'
...@@ -368,7 +367,16 @@ export default { ...@@ -368,7 +367,16 @@ export default {
}, },
methods: { methods: {
init(){ init(){
this.fromType = +(this.$route.query.fromType || 1); let fullPath = this.$route.fullPath;
let fromType = 1;
if(fullPath.indexOf("?") > -1){
let str = base64decode(fullPath.split("?")[1]);
if(str.indexOf("?")){
fromType = str.split("=")[1];
}
}
// this.fromType = +(this.$route.query.fromType || 1);
this.fromType = fromType;
this.activeName = "99"; this.activeName = "99";
this.searchParam.status = ''; this.searchParam.status = '';
this.setTable(); this.setTable();
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册