xsh_1997 1 miesiąc temu
rodzic
commit
a0f91026f8

+ 1 - 1
ruoyi-ui/src/lang/zh/dataModel.js

@@ -152,7 +152,7 @@ export default {
152
   grasslandUsage: {
152
   grasslandUsage: {
153
     queryKeyword: "草场名称",
153
     queryKeyword: "草场名称",
154
     queryKeywordPh: "请输入草场名称关键字",
154
     queryKeywordPh: "请输入草场名称关键字",
155
-    queryReserveDate: "预约日期",
155
+    queryReserveDate: "使用日期",
156
     colGrasslandName: "草场名称",
156
     colGrasslandName: "草场名称",
157
     colUsageAreaMu: "使用面积",
157
     colUsageAreaMu: "使用面积",
158
     colPastureName: "养殖主体",
158
     colPastureName: "养殖主体",

+ 2 - 2
ruoyi-ui/src/layout/components/Navbar.vue

@@ -38,9 +38,9 @@
38
           <size-select id="size-select" class="right-menu-item hover-effect" />
38
           <size-select id="size-select" class="right-menu-item hover-effect" />
39
         </el-tooltip>
39
         </el-tooltip>
40
 
40
 
41
-        <el-tooltip content="消息通知" effect="dark" placement="bottom">
41
+        <!-- <el-tooltip content="消息通知" effect="dark" placement="bottom">
42
           <header-notice id="header-notice" class="right-menu-item hover-effect" />
42
           <header-notice id="header-notice" class="right-menu-item hover-effect" />
43
-        </el-tooltip>
43
+        </el-tooltip> -->
44
 
44
 
45
       </template>
45
       </template>
46
 
46
 

+ 1 - 1
ruoyi-ui/src/views/diseaseTreatment/medicalResource/index.vue

@@ -64,7 +64,7 @@
64
             <span>{{ orgLevelLabel(scope.row.orgLevel) }}</span>
64
             <span>{{ orgLevelLabel(scope.row.orgLevel) }}</span>
65
           </template>
65
           </template>
66
         </el-table-column>
66
         </el-table-column>
67
-        <el-table-column v-if="activeTab === 'equipment'" :label="dtT('colEquipmentModel')" prop="equipmentModel" align="center" width="100" :show-overflow-tooltip="true" />
67
+        <el-table-column v-if="activeTab === 'equipment'" :label="dtT('colEquipmentModel')" prop="equipmentModel" align="center" min-width="150" :show-overflow-tooltip="true" />
68
         <el-table-column v-if="showColAccount" :label="dtT('colAccount')" align="center" min-width="100">
68
         <el-table-column v-if="showColAccount" :label="dtT('colAccount')" align="center" min-width="100">
69
           <template slot-scope="scope">
69
           <template slot-scope="scope">
70
             <span v-if="scope.row.accountAssigned === 1">
70
             <span v-if="scope.row.accountAssigned === 1">

+ 23 - 9
ruoyi-ui/src/views/techService/onlineTrainingCourse/index.vue

@@ -11,7 +11,7 @@
11
             filterable
11
             filterable
12
             style="width: 200px"
12
             style="width: 200px"
13
           >
13
           >
14
-            <el-option v-for="item in courseTopicOptions" :key="item" :label="item" :value="item" />
14
+            <el-option v-for="item in courseTopicOptions" :key="item.code" :label="item.name" :value="item.code" />
15
           </el-select>
15
           </el-select>
16
         </el-form-item>
16
         </el-form-item>
17
         <el-form-item prop="courseTitle">
17
         <el-form-item prop="courseTitle">
@@ -41,7 +41,11 @@
41
             <span>{{ introSummary(scope.row.courseIntro) }}</span>
41
             <span>{{ introSummary(scope.row.courseIntro) }}</span>
42
           </template>
42
           </template>
43
         </el-table-column>
43
         </el-table-column>
44
-        <el-table-column :label="tsT('colCourseTopic')" prop="courseTopic" align="center" width="120" :show-overflow-tooltip="true" />
44
+        <el-table-column :label="tsT('colCourseTopic')" align="center" width="120" :show-overflow-tooltip="true">
45
+          <template slot-scope="scope">
46
+            <span>{{ courseTopicLabel(scope.row.courseTopic) }}</span>
47
+          </template>
48
+        </el-table-column>
45
         <el-table-column :label="tsT('colVideoFile')" align="center" min-width="140" :show-overflow-tooltip="true">
49
         <el-table-column :label="tsT('colVideoFile')" align="center" min-width="140" :show-overflow-tooltip="true">
46
           <template slot-scope="scope">
50
           <template slot-scope="scope">
47
             <span>{{ videoFileLabel(scope.row) }}</span>
51
             <span>{{ videoFileLabel(scope.row) }}</span>
@@ -71,7 +75,7 @@
71
     <el-dialog :title="tsCommon('viewTitle')" :visible.sync="viewOpen" width="720px" append-to-body @close="onViewClose">
75
     <el-dialog :title="tsCommon('viewTitle')" :visible.sync="viewOpen" width="720px" append-to-body @close="onViewClose">
72
       <el-descriptions v-if="viewRow.id" :column="1" border size="small">
76
       <el-descriptions v-if="viewRow.id" :column="1" border size="small">
73
         <el-descriptions-item :label="tsT('viewCourseTitle')">{{ viewRow.courseTitle || dash }}</el-descriptions-item>
77
         <el-descriptions-item :label="tsT('viewCourseTitle')">{{ viewRow.courseTitle || dash }}</el-descriptions-item>
74
-        <el-descriptions-item :label="tsT('viewCourseTopic')">{{ viewRow.courseTopic || dash }}</el-descriptions-item>
78
+        <el-descriptions-item :label="tsT('viewCourseTopic')">{{ courseTopicLabel(viewRow.courseTopic) }}</el-descriptions-item>
75
         <el-descriptions-item :label="tsT('viewCourseIntro')">
79
         <el-descriptions-item :label="tsT('viewCourseIntro')">
76
           <span class="view-text-pre">{{ viewRow.courseIntro || dash }}</span>
80
           <span class="view-text-pre">{{ viewRow.courseIntro || dash }}</span>
77
         </el-descriptions-item>
81
         </el-descriptions-item>
@@ -112,13 +116,12 @@
112
 
116
 
113
 <script>
117
 <script>
114
 import techServiceLocaleMixin from "@/mixins/techServiceLocaleMixin"
118
 import techServiceLocaleMixin from "@/mixins/techServiceLocaleMixin"
115
-import {
116
-  listOnlineTrainingCourse,
117
-  getOnlineTrainingCourse,
118
-  listOnlineTrainingCourseTopics
119
-} from "@/api/techService/onlineTrainingCourse"
119
+import { listOnlineTrainingCourse, getOnlineTrainingCourse } from "@/api/techService/onlineTrainingCourse"
120
+import { listInformationCategoryChildren } from "@/api/category/informationCategory"
120
 
121
 
121
 const INTRO_SUMMARY_LEN = 50
122
 const INTRO_SUMMARY_LEN = 50
123
+const COURSE_TOPIC_PARENT_CODE = "005"
124
+const COURSE_TOPIC_CATEGORY_TYPE = "8"
122
 
125
 
123
 export default {
126
 export default {
124
   name: "OnlineTrainingCourse",
127
   name: "OnlineTrainingCourse",
@@ -163,7 +166,7 @@ export default {
163
   },
166
   },
164
   methods: {
167
   methods: {
165
     loadCourseTopics() {
168
     loadCourseTopics() {
166
-      listOnlineTrainingCourseTopics()
169
+      listInformationCategoryChildren(COURSE_TOPIC_PARENT_CODE, COURSE_TOPIC_CATEGORY_TYPE)
167
         .then((res) => {
170
         .then((res) => {
168
           this.courseTopicOptions = Array.isArray(res.data) ? res.data : []
171
           this.courseTopicOptions = Array.isArray(res.data) ? res.data : []
169
         })
172
         })
@@ -171,6 +174,17 @@ export default {
171
           this.courseTopicOptions = []
174
           this.courseTopicOptions = []
172
         })
175
         })
173
     },
176
     },
177
+    courseTopicLabel(val) {
178
+      if (val == null || val === "") {
179
+        return this.dash
180
+      }
181
+      const key = String(val).trim()
182
+      const item = this.courseTopicOptions.find((o) => String(o.code) === key)
183
+      if (item && item.name) {
184
+        return item.name
185
+      }
186
+      return key
187
+    },
174
     introSummary(text) {
188
     introSummary(text) {
175
       if (text == null || text === "") {
189
       if (text == null || text === "") {
176
         return this.dash
190
         return this.dash