diff --git a/src/api/baseurl.js b/src/api/baseurl.js index abb555c..1d13b8d 100644 --- a/src/api/baseurl.js +++ b/src/api/baseurl.js @@ -1,3 +1,3 @@ var baseurl = "http://192.168.16.81:8082"; -export default baseurl \ No newline at end of file +export default baseurl diff --git a/src/api/system/userlist.js b/src/api/system/userlist.js index 8c0cf17..ac33759 100644 --- a/src/api/system/userlist.js +++ b/src/api/system/userlist.js @@ -6,4 +6,4 @@ export function getListByUser(query) { method: 'GET', params: query }) -} \ No newline at end of file +} diff --git a/src/views/system/StationDepartment/index.vue b/src/views/system/StationDepartment/index.vue index d24dcb9..e9bc2ef 100644 --- a/src/views/system/StationDepartment/index.vue +++ b/src/views/system/StationDepartment/index.vue @@ -8,10 +8,27 @@ v-show="showSearch" label-width="68px" > - + + + + + + + = this.total2) { } else { if (this.nurseStationqueryParams.pageNum >= a) { } else { this.nurseStationqueryParams.pageNum++; - list(this.nurseStationqueryParams).then((res) => { + console.log(this.nurseStationqueryParams.pageNum); + getListByUser(this.nurseStationqueryParams).then((res) => { console.log(res); res.rows.forEach((e) => { this.nurseStationlist.push(e); @@ -571,6 +593,7 @@ export default { }, /** 重置按钮操作 */ resetQuery() { + if (this.nurseStationlist[0].isAdmin == "1") { this.resetForm("queryForm"); this.queryParams = { pageNum: 1, @@ -582,13 +605,31 @@ export default { phone: null, nurseStationName: null, }; - list(this.nurseStationqueryParams).then((res) => { - console.log(res); - this.nurseStationlist = res.rows; - this.total2 = res.total; - console.log(this.nurseStationlist); - }); this.handleQuery(); + }else { + console.log(1); + this.queryParams.departmentCode = null; + this.queryParams.pageSize = 10; + this.queryParams.pageNum = 1; + this.queryParams.departmentName = null; + this.handleQuery(); + } + }, + //权限列表 + info() { + getListByUser(this.nurseStationqueryParams).then((res) => { + console.log(res); + if (res.rows[0].isAdmin == "1") { + console.log(true); + this.nurseStationlist = res.rows; + this.total2 = res.total; + } else { + this.total2 = res.total; + this.nurseStationlist = res.rows; + this.queryParams.nurseStationId = res.rows[0].id; + this.handleQuery(); + } + }); }, // 多选框选中数据 handleSelectionChange(selection) { diff --git a/src/views/system/communityInfo/index.vue b/src/views/system/communityInfo/index.vue index 8896028..1ba8ba3 100644 --- a/src/views/system/communityInfo/index.vue +++ b/src/views/system/communityInfo/index.vue @@ -725,8 +725,8 @@ export default { }, //点击街道 clickstreet(item) { - this.queryParams.areaCode = item.areaCode; - console.log(this.queryParams); + this.form.areaCode = item.areaCode; + console.log(this.form); }, // clickstreet3(item) { // this.form.areaCode = item.areaCode; diff --git a/src/views/system/order/index.vue b/src/views/system/order/index.vue index 073af12..588f6bc 100644 --- a/src/views/system/order/index.vue +++ b/src/views/system/order/index.vue @@ -52,81 +52,83 @@ >重置 + + - - - + + + + + + + - - - - - - - - - - - - - - + 查看 + 删除 + + + + + + +
- - - - - - - - - - - - - - - - - - - -
-
- - + +
\ No newline at end of file diff --git a/src/views/system/person/index.vue b/src/views/system/person/index.vue index 80a5a72..38e39f7 100644 --- a/src/views/system/person/index.vue +++ b/src/views/system/person/index.vue @@ -1614,7 +1614,7 @@ export default { } else{ this.departmentName = response.data.departmentName; } - + }); }, /** 提交按钮 */ diff --git a/src/views/system/station/index.vue b/src/views/system/station/index.vue index ec297e9..d3039bb 100644 --- a/src/views/system/station/index.vue +++ b/src/views/system/station/index.vue @@ -22,7 +22,7 @@ v-if="nurseStationlist.find((e) => e.isAdmin == '1')" >
@@ -46,7 +46,7 @@ v-for="item in nurseStationlist" :key="item.id" :label="item.nurseStationName" - :value="item.nurseStationCode" + :value="item.id" > @@ -164,6 +164,7 @@ icon="el-icon-upload2" size="mini" @click="handledata" + v-hasPermi="['system:station:importData']" >导入 @@ -859,6 +860,7 @@ export default { userId: null, nurseStationCode: null, nurseStationName: null, + id: null, nurseStationType: null, agencyIntroduce: null, nurseStationDescription: null, @@ -1315,7 +1317,7 @@ export default { } else { this.total2 = res.total; this.nurseStationlist = res.rows; - this.queryParams.nurseStationCode = res.rows[0].nurseStationCode; + this.queryParams.id = res.rows[0].id; this.handleQuery(); } });