Explorar el Código

feat: 更新modelWidth计算逻辑,增加对出差任务的宽度处理

xieyong hace 21 horas
padre
commit
a60ba73c3f
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      src/views/bpm/handleTask/formParser/formParserDialog.vue

+ 3 - 1
src/views/bpm/handleTask/formParser/formParserDialog.vue

@@ -286,8 +286,10 @@ export default {
   },
   computed: {
     modelWidth() {
+      const isPC = this.jsonData.config?.platform && this.jsonData.config.platform === 'pc';
+      const isbusinessTrip = this.jsonData?.list?.[0]?.name.includes('出差');
       let width =
-        this.jsonData.config?.platform && this.jsonData.config.platform === 'pc'
+        isPC || isbusinessTrip
           ? 1100
           : 450;
       if (this.form?.taskDefinitionKey == 'CGYSP') {