Browse Source

用户管理修改牧场id

Shan9312 4 months ago
parent
commit
c89e226cc0

BIN
dist-正式-20250110-现代牧业.zip


File diff suppressed because it is too large
+ 0 - 0
dist/index.html


File diff suppressed because it is too large
+ 65 - 180
package-lock.json


+ 1 - 1
package.json

@@ -26,6 +26,7 @@
     "js-cookie": "2.2.0",
     "js-table2excel": "^1.0.3",
     "moment": "^2.24.0",
+    "node-sass": "^4.14.1",
     "normalize.css": "7.0.0",
     "nprogress": "0.2.0",
     "path-to-regexp": "2.4.0",
@@ -55,7 +56,6 @@
     "eslint-plugin-vue": "5.2.2",
     "html-webpack-plugin": "3.2.0",
     "mockjs": "1.0.1-beta3",
-    "node-sass": "^4.13.1",
     "runjs": "^4.3.2",
     "sass-loader": "^8.0.2",
     "script-ext-html-webpack-plugin": "2.1.3",

+ 7 - 1
src/views/console/user/index.vue

@@ -7,6 +7,7 @@
           placeholder="牧场"
           style="width:120px"
           class="filter-item"
+          @change="changePastureName"
         >
           <el-option
             v-for="item in findAllPasture"
@@ -244,7 +245,7 @@ export default {
       ],
       getdataListParm: {
         name: 'getuserallL', offset: 1, pagecount: 50, returntype: 'Map',
-        parammaps: { pastureId: Cookies.get('pastureid'), empCode: '', empname: '' }
+        parammaps: { pastureId: Cookies.get('pastureid'), empCode: '', empname: '', }
       },
       updateParam: {
         name: 'getMaintenanceTypeByUser', offset: 1, pagecount: 0, returntype: 'list',
@@ -277,6 +278,11 @@ export default {
     this.get_table_data()
   },
   methods: {
+     changePastureName(item) {
+      this.getdataListParm.parammaps.pastureId = this.findAllPasture.find(
+        (obj) => obj.name == item
+      ).id
+    },
     tableSort(column) {
       sortChange(column, this.list)
     },

+ 1 - 1
src/views/custom/subscribe/index.vue

@@ -2590,7 +2590,7 @@ export default {
       requestParams: [
         { name: 'findAllProvider', offset: 0, pagecount: 0, params: [] },
         {
-          name: 'findAllPasture',
+          name: 'findAllMainPasture',
           offset: 0,
           pagecount: 0,
           returntype: 'Map',

Some files were not shown because too many files changed in this diff