Browse Source

chore: auto bump version and changelog [skip ci]

iwt 1 day ago
parent
commit
61d304d3f5
3 changed files with 17 additions and 27 deletions
  1. 14 24
      cfc-frontend/pages/health/report-list.vue
  2. 1 1
      cfc-web/.last_build_commit
  3. 2 2
      cfc-web/package-lock.json

+ 14 - 24
cfc-frontend/pages/health/report-list.vue

@@ -474,7 +474,7 @@ export default {
       var min = ('' + d.getMinutes()).padStart(2, '0')
       return y + '-' + m + '-' + day + ' ' + h + ':' + min
     },
-    // 调整归属(仅在 subjectId 为 null 的报告上显示)
+    // 调整归属(仅在 subjectId 为空(无归属)的报告上显示)
     adjustBinding(item) {
       var self = this
       // 弹出选择操作
@@ -483,35 +483,25 @@ export default {
         itemColor: '#1890ff',
         success: function(res) {
           if (res.tapIndex === 0) {
-            // 绑定新归属:弹出成员选择器
+            // 绑定新归属:提示需选择成员,当前小程序端简化处理
             uni.showModal({
               title: '选择归属成员',
-              content: '请选择报告的归属成员',
-              confirmText: '确定',
-              cancelText: '取消',
-              success: function(modalRes) {
-                if (modalRes.confirm) {
-                  // 这里需要调用后端 reassignReport 接口,传入 newSubjectId
-                  // 由于小程序端需要选择具体成员,简化处理:提示功能待前端完整实现
-                  uni.showToast({ title: '功能待管理端操作', icon: 'none' })
-                }
-              }
+              content: '请在管理端选择归属成员后操作',
+              showCancel: false,
+              confirmText: '确定'
             })
           } else {
             // 解除归属:subjectId 设为 null
-            uni.request({
-              url: '/api/health/report/reassign',
-              method: 'POST',
-              data: {
-                reportId: item.id,
-                subjectId: null
-              },
-              success: function(resp) {
-                if (resp.data.code === 0) {
-                  uni.showToast({ title: '归属已解除', icon: 'success' })
-                  self.loadData()
-                }
+            reassignReport(item.id, null).then(function(resp) {
+              if (resp.code === 200) {
+                uni.showToast({ title: '归属已解除', icon: 'success' })
+                self.loadData()
+              } else {
+                uni.showToast({ title: resp.message || '解除归属失败', icon: 'none' })
               }
+            }).catch(function(e) {
+              console.log('解除归属失败', e)
+              uni.showToast({ title: '操作失败', icon: 'none' })
             })
           }
         }

+ 1 - 1
cfc-web/.last_build_commit

@@ -1 +1 @@
-451c0ef3b27e1fe6fecbe0747e1418eaf1c3aa4a
+3933eaf2d103d664431da445120973ef68ae7b26

+ 2 - 2
cfc-web/package-lock.json

@@ -1,12 +1,12 @@
 {
   "name": "cfc-web",
-  "version": "1.0.1504",
+  "version": "1.0.1505",
   "lockfileVersion": 3,
   "requires": true,
   "packages": {
     "": {
       "name": "cfc-web",
-      "version": "1.0.1504",
+      "version": "1.0.1505",
       "dependencies": {
         "@wangeditor/editor": "^5.1.23",
         "@wangeditor/editor-for-vue": "^1.0.2",