Просмотр исходного кода

修改事务说明截取规则,审批意见默认同意

cfort 3 лет назад
Родитель
Сommit
5925ec3827

+ 2 - 1
src/business/platform/bpmn/components/approval-opinion/index.vue

@@ -182,7 +182,8 @@ export default {
   computed: {
   computed: {
     data: {
     data: {
       get() {
       get() {
-        return this.value
+        // 默认填充同意
+        return this.value ? this.value : '同意'
       },
       },
       set(val) {
       set(val) {
         this.$emit('input', val)
         this.$emit('input', val)

+ 1 - 1
src/views/platform/bpmn/bpmInstHis/list.vue

@@ -241,7 +241,7 @@
                 if (!hasDesc) {
                 if (!hasDesc) {
                     return ''
                     return ''
                 }
                 }
-                return cellValue.split('#')[1].includes('(') ? cellValue.split('#')[1].split('(')[0] : cellValue.split('#')[1]
+                return cellValue.split('#')[1]
             },
             },
             // 获取配置报表数据
             // 获取配置报表数据
             getConfig() {
             getConfig() {

+ 2 - 2
src/views/system/dashboard/components/new-home.vue

@@ -225,12 +225,12 @@
                 let res = {
                 let res = {
                     name: {
                     name: {
                         '0': v.includes('(') ? v.split('(')[0] : v,
                         '0': v.includes('(') ? v.split('(')[0] : v,
-                        '1': hasDesc && v.split('#')[0]
+                        '1': v.split('#')[0]
                     },
                     },
                     // 无#返回空,有#返回(左边的字符串,
                     // 无#返回空,有#返回(左边的字符串,
                     desc: {
                     desc: {
                         '0': '',
                         '0': '',
-                        '1': hasDesc && (v.split('#')[1].includes('(') ? v.split('#')[1].split('(')[0] : v.split('#')[1])
+                        '1': v.split('#')[1]
                     }
                     }
                 }
                 }
                 if (!hasDesc) {
                 if (!hasDesc) {