xsh_1997 17 часов назад
Родитель
Сommit
59f3934753

+ 2 - 0
ruoyi-ui/src/lang/bo/dataModel.js

@@ -520,6 +520,7 @@ export default {
520
     sectionOperation: "མཉམ་ལས་ཁང་ཚོང་གཉེར་ཁྱབ་ཁོངས་དང་རྣམ་པ།",
520
     sectionOperation: "མཉམ་ལས་ཁང་ཚོང་གཉེར་ཁྱབ་ཁོངས་དང་རྣམ་པ།",
521
     sectionOperationStatus: "མཉམ་ལས་ཁང་འཁོར་སྐྱོད་གནས་ཚུལ།",
521
     sectionOperationStatus: "མཉམ་ལས་ཁང་འཁོར་སྐྱོད་གནས་ཚུལ།",
522
     btnImport: "ནང་འདྲེན།",
522
     btnImport: "ནང་འདྲེན།",
523
+    btnBatchDelete: "ཚང་མ་སྤྱི་བསུབ།",
523
     btnChooseFile: "ཡིག་ཆ་འདེམས།",
524
     btnChooseFile: "ཡིག་ཆ་འདེམས།",
524
     btnDownloadTemplate: "དཔེ་ཡིག་ཕབ་ལེན།",
525
     btnDownloadTemplate: "དཔེ་ཡིག་ཕབ་ལེན།",
525
     exportTitle: "Excel ཕྱིར་འདྲེན།",
526
     exportTitle: "Excel ཕྱིར་འདྲེན།",
@@ -547,6 +548,7 @@ export default {
547
     dialogAdd: "[གསར་སྣོན]མཉམ་ལས་ཁང་འཕེལ་རྒྱས་གཞི་གྲངས།",
548
     dialogAdd: "[གསར་སྣོན]མཉམ་ལས་ཁང་འཕེལ་རྒྱས་གཞི་གྲངས།",
548
     dialogEdit: "[རྩོམ་སྒྲིག]མཉམ་ལས་ཁང་འཕེལ་རྒྱས་གཞི་གྲངས།",
549
     dialogEdit: "[རྩོམ་སྒྲིག]མཉམ་ལས་ཁང་འཕེལ་རྒྱས་གཞི་གྲངས།",
549
     confirmDelete: "ཐོ་གཞུང་འདི་སུབ་རྒྱུ་གཏན་ཁེལ་ལམ?",
550
     confirmDelete: "ཐོ་གཞུང་འདི་སུབ་རྒྱུ་གཏན་ཁེལ་ལམ?",
551
+    confirmDeleteBatch: "བདམས་པའི་གཞི་གྲངས་སུབ་རྒྱུ་གཏན་ཁེལ་ལམ?",
550
     emptyList: "འབྲི་གཞི་གྲངས་མེད།",
552
     emptyList: "འབྲི་གཞི་གྲངས་མེད།",
551
     unitHousehold: "ཁྱིམ།",
553
     unitHousehold: "ཁྱིམ།",
552
     unitPerson: "མི།",
554
     unitPerson: "མི།",

+ 2 - 0
ruoyi-ui/src/lang/zh/dataModel.js

@@ -520,6 +520,7 @@ export default {
520
     sectionOperation: "合作社经营范围及模式",
520
     sectionOperation: "合作社经营范围及模式",
521
     sectionOperationStatus: "合作社运营情况",
521
     sectionOperationStatus: "合作社运营情况",
522
     btnImport: "导入",
522
     btnImport: "导入",
523
+    btnBatchDelete: "批量删除",
523
     btnChooseFile: "选取文件",
524
     btnChooseFile: "选取文件",
524
     btnDownloadTemplate: "下载模板",
525
     btnDownloadTemplate: "下载模板",
525
     exportTitle: "Excel 导出",
526
     exportTitle: "Excel 导出",
@@ -547,6 +548,7 @@ export default {
547
     dialogAdd: "[新增]合作社发展数据",
548
     dialogAdd: "[新增]合作社发展数据",
548
     dialogEdit: "[编辑]合作社发展数据",
549
     dialogEdit: "[编辑]合作社发展数据",
549
     confirmDelete: "是否确认删除这条数据?",
550
     confirmDelete: "是否确认删除这条数据?",
551
+    confirmDeleteBatch: "是否确认删除选中的数据?",
550
     emptyList: "暂无填报数据",
552
     emptyList: "暂无填报数据",
551
     unitHousehold: "户",
553
     unitHousehold: "户",
552
     unitPerson: "人",
554
     unitPerson: "人",

+ 41 - 4
ruoyi-ui/src/views/dataModel/cooperativeDevelopment/index.vue

@@ -50,6 +50,10 @@
50
         <el-form-item>
50
         <el-form-item>
51
           <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">{{ dmCommon("search") }}</el-button>
51
           <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">{{ dmCommon("search") }}</el-button>
52
           <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">{{ dmCommon("reset") }}</el-button>
52
           <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">{{ dmCommon("reset") }}</el-button>
53
+        </el-form-item>
54
+      </el-form>
55
+      <el-row :gutter="10" class="mb8">
56
+        <el-col :span="1.5">
53
           <el-button
57
           <el-button
54
             v-hasPermi="['dataModel:cooperativeDevelopment:add']"
58
             v-hasPermi="['dataModel:cooperativeDevelopment:add']"
55
             type="primary"
59
             type="primary"
@@ -58,6 +62,8 @@
58
             size="mini"
62
             size="mini"
59
             @click="handleAdd"
63
             @click="handleAdd"
60
           >{{ dmCommon("add") }}</el-button>
64
           >{{ dmCommon("add") }}</el-button>
65
+        </el-col>
66
+        <el-col :span="1.5">
61
           <el-button
67
           <el-button
62
             v-hasPermi="['dataModel:cooperativeDevelopment:import']"
68
             v-hasPermi="['dataModel:cooperativeDevelopment:import']"
63
             type="info"
69
             type="info"
@@ -66,6 +72,8 @@
66
             size="mini"
72
             size="mini"
67
             @click="handleImportOpen"
73
             @click="handleImportOpen"
68
           >{{ dmT("btnImport") }}</el-button>
74
           >{{ dmT("btnImport") }}</el-button>
75
+        </el-col>
76
+        <el-col :span="1.5">
69
           <el-button
77
           <el-button
70
             v-hasPermi="['dataModel:cooperativeDevelopment:export']"
78
             v-hasPermi="['dataModel:cooperativeDevelopment:export']"
71
             type="warning"
79
             type="warning"
@@ -74,17 +82,29 @@
74
             size="mini"
82
             size="mini"
75
             @click="handleExportOpen"
83
             @click="handleExportOpen"
76
           >{{ dmCommon("export") }}</el-button>
84
           >{{ dmCommon("export") }}</el-button>
77
-        </el-form-item>
78
-      </el-form>
85
+        </el-col>
86
+        <el-col :span="1.5">
87
+          <el-button
88
+            v-hasPermi="['dataModel:cooperativeDevelopment:remove']"
89
+            type="danger"
90
+            plain
91
+            icon="el-icon-delete"
92
+            size="mini"
93
+            :disabled="!ids.length"
94
+            @click="handleDeleteBatch"
95
+          >{{ dmT("btnBatchDelete") }}</el-button>
96
+        </el-col>
97
+      </el-row>
79
     </el-card>
98
     </el-card>
80
 
99
 
81
     <br />
100
     <br />
82
 
101
 
83
     <el-card shadow="never">
102
     <el-card shadow="never">
84
-      <el-table v-loading="loading" :data="tableList" border>
103
+      <el-table v-loading="loading" :data="tableList" border @selection-change="handleSelectionChange">
85
         <template slot="empty">
104
         <template slot="empty">
86
           <span>{{ dmT("emptyList") }}</span>
105
           <span>{{ dmT("emptyList") }}</span>
87
         </template>
106
         </template>
107
+        <el-table-column type="selection" width="50" align="center" fixed="left" />
88
         <el-table-column :label="dmT('colStatYear')" prop="statYear" align="center" width="90" />
108
         <el-table-column :label="dmT('colStatYear')" prop="statYear" align="center" width="90" />
89
         <el-table-column :label="dmT('colStatMonth')" align="center" width="80">
109
         <el-table-column :label="dmT('colStatMonth')" align="center" width="80">
90
           <template slot-scope="scope">{{ formatStatMonth(scope.row.statMonth) }}</template>
110
           <template slot-scope="scope">{{ formatStatMonth(scope.row.statMonth) }}</template>
@@ -826,6 +846,7 @@ export default {
826
       dialogEdit: false,
846
       dialogEdit: false,
827
       formKey: 0,
847
       formKey: 0,
828
       total: 0,
848
       total: 0,
849
+      ids: [],
829
       tableList: [],
850
       tableList: [],
830
       yearOptions: buildDataModelYearOptions(),
851
       yearOptions: buildDataModelYearOptions(),
831
       monthOptions: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12],
852
       monthOptions: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12],
@@ -1147,10 +1168,13 @@ export default {
1147
         this.viewOpen = true
1168
         this.viewOpen = true
1148
       })
1169
       })
1149
     },
1170
     },
1171
+    handleSelectionChange(selection) {
1172
+      this.ids = selection.map((item) => item.id)
1173
+    },
1150
     handleDelete(row) {
1174
     handleDelete(row) {
1151
       this.$modal
1175
       this.$modal
1152
         .confirm(this.dmT("confirmDelete"))
1176
         .confirm(this.dmT("confirmDelete"))
1153
-        .then(() => delCooperativeDevelopment(row.id))
1177
+        .then(() => delCooperativeDevelopment(String(row.id)))
1154
         .then(() => {
1178
         .then(() => {
1155
           this.$modal.msgSuccess(this.dmCommon("msgDelOk"))
1179
           this.$modal.msgSuccess(this.dmCommon("msgDelOk"))
1156
           this.viewOpen = false
1180
           this.viewOpen = false
@@ -1158,6 +1182,19 @@ export default {
1158
         })
1182
         })
1159
         .catch(() => {})
1183
         .catch(() => {})
1160
     },
1184
     },
1185
+    handleDeleteBatch() {
1186
+      if (!this.ids.length) {
1187
+        return
1188
+      }
1189
+      this.$modal
1190
+        .confirm(this.dmT("confirmDeleteBatch"))
1191
+        .then(() => delCooperativeDevelopment(this.ids.join(",")))
1192
+        .then(() => {
1193
+          this.$modal.msgSuccess(this.dmCommon("msgDelOk"))
1194
+          this.getList()
1195
+        })
1196
+        .catch(() => {})
1197
+    },
1161
     submitForm() {
1198
     submitForm() {
1162
       this.$refs.form.validate((valid) => {
1199
       this.$refs.form.validate((valid) => {
1163
         if (!valid) {
1200
         if (!valid) {