|
@@ -114,6 +114,11 @@
|
114
|
114
|
<!-->查待遇-->
|
115
|
115
|
<!--</el-button>-->
|
116
|
116
|
|
|
117
|
+ <el-button size="small" @click="query" type="primary"
|
|
118
|
+ >查询
|
|
119
|
+ </el-button>
|
|
120
|
+
|
|
121
|
+
|
117
|
122
|
|
118
|
123
|
</div>
|
119
|
124
|
|
|
@@ -464,6 +469,25 @@
|
464
|
469
|
this.getPatientList()
|
465
|
470
|
},
|
466
|
471
|
methods: {
|
|
472
|
+ query(){
|
|
473
|
+ if (this.$store.getters.xt_user.org_id == 4) {
|
|
474
|
+ var that = this
|
|
475
|
+ axios.get('http://127.0.0.1:9532/api/org/info', {
|
|
476
|
+ params: {}
|
|
477
|
+ })
|
|
478
|
+ .then(function(response) {
|
|
479
|
+ if (response.data.state == 0) {
|
|
480
|
+ that.$message.error(response.data.msg)
|
|
481
|
+ return false
|
|
482
|
+ } else {
|
|
483
|
+
|
|
484
|
+ }
|
|
485
|
+ })
|
|
486
|
+ .catch(function(error) {
|
|
487
|
+
|
|
488
|
+ })
|
|
489
|
+ }
|
|
490
|
+ },
|
467
|
491
|
getDepartment(department_id) {
|
468
|
492
|
for (let i = 0; i < this.department.length; i++) {
|
469
|
493
|
if (this.department[i].id == department_id) {
|