Explorar el Código

'节点图标编辑回显问题修复'

hhl123456789 hace 2 años
padre
commit
39125fdcdf

+ 3
- 8
src/views/caseprocessManagement/components/addNodeprocess.vue Ver fichero

4
             <el-form :model="ruleForm" label-position="left" :rules="rules" ref="ruleForm" label-width="90px"
4
             <el-form :model="ruleForm" label-position="left" :rules="rules" ref="ruleForm" label-width="90px"
5
                 class="demo-ruleForm">
5
                 class="demo-ruleForm">
6
                 <el-form-item label="节点名称" prop="nodeName">
6
                 <el-form-item label="节点名称" prop="nodeName">
7
-                    <el-select v-model="ruleForm.nodeName" placeholder="请选择" @change="changenodeName">
7
+                    <el-select v-model="ruleForm.nodeName" placeholder="请选择">
8
                         <el-option v-for="dict in dict.type.case_flow_node" :key="dict.value" :label="dict.label"
8
                         <el-option v-for="dict in dict.type.case_flow_node" :key="dict.value" :label="dict.label"
9
                             :value="dict.value"></el-option>
9
                             :value="dict.value"></el-option>
10
                     </el-select>
10
                     </el-select>
97
         addvisiable(val) {
97
         addvisiable(val) {
98
             if (val) {
98
             if (val) {
99
                 this.ruleForm = this.editData;
99
                 this.ruleForm = this.editData;
100
-                console.log(this.ruleForm,'this.ruleForm');
101
                 this.getRoles();
100
                 this.getRoles();
102
                 this.getbackflowArr();
101
                 this.getbackflowArr();
103
                 if (this.ruleForm && this.ruleForm.fileName) {
102
                 if (this.ruleForm && this.ruleForm.fileName) {
104
                     this.imgSvgUrl = process.env.VUE_APP_BASE_API + this.ruleForm.fileName;
103
                     this.imgSvgUrl = process.env.VUE_APP_BASE_API + this.ruleForm.fileName;
104
+                    this.imageUrl = process.env.VUE_APP_BASE_API + this.ruleForm.fileName
105
                 } else {
105
                 } else {
106
                     this.imgSvgUrl = ''
106
                     this.imgSvgUrl = ''
107
+                    this.imageUrl = ''
107
                 }
108
                 }
108
             }
109
             }
109
         },
110
         },
121
 
122
 
122
     },
123
     },
123
     methods: {
124
     methods: {
124
-        changenodeName(val) {
125
-            console.log(val, 'changeval');
126
-        },
127
         // 获取驳回节点数据
125
         // 获取驳回节点数据
128
         getbackflowArr() {
126
         getbackflowArr() {
129
             let queryParams2 = {
127
             let queryParams2 = {
161
         // 图标上传
159
         // 图标上传
162
         handleAvatarSuccess(res, file) {
160
         handleAvatarSuccess(res, file) {
163
         this.fileName = ''
161
         this.fileName = ''
164
-        console.log(file.response.fileName,'上传成功的file');
165
             this.imageUrl = URL.createObjectURL(file.raw);
162
             this.imageUrl = URL.createObjectURL(file.raw);
166
             this.fileName = file.response.fileName
163
             this.fileName = file.response.fileName
167
-        console.log(this.imageUrl,'上传成功的this.imageUrl');
168
         },
164
         },
169
         beforeAvatarUpload(file) {
165
         beforeAvatarUpload(file) {
170
-        console.log(file,'file');
171
             const isSvg = file.type === 'image/svg+xml';
166
             const isSvg = file.type === 'image/svg+xml';
172
             if (!isSvg) {
167
             if (!isSvg) {
173
             this.$message.error('上传图片只能是 SVG 格式!');
168
             this.$message.error('上传图片只能是 SVG 格式!');