瀏覽代碼

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

xieyong 1 天之前
父節點
當前提交
a60ba73c3f
共有 1 個文件被更改,包括 3 次插入1 次删除
  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') {