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