Merge branch 'hhl' of SH-Arbitrate/Mediation-Frontend into dev
This commit was merged in pull request #68.
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
<el-form :model="ruleForm" label-position="left" :rules="rules" ref="ruleForm" label-width="90px"
|
||||
class="demo-ruleForm">
|
||||
<el-form-item label="节点名称" prop="nodeName">
|
||||
<el-select v-model="ruleForm.nodeName" placeholder="请选择" @change="changenodeName">
|
||||
<el-select v-model="ruleForm.nodeName" placeholder="请选择">
|
||||
<el-option v-for="dict in dict.type.case_flow_node" :key="dict.value" :label="dict.label"
|
||||
:value="dict.value"></el-option>
|
||||
</el-select>
|
||||
@@ -97,13 +97,14 @@ export default {
|
||||
addvisiable(val) {
|
||||
if (val) {
|
||||
this.ruleForm = this.editData;
|
||||
console.log(this.ruleForm,'this.ruleForm');
|
||||
this.getRoles();
|
||||
this.getbackflowArr();
|
||||
if (this.ruleForm && this.ruleForm.fileName) {
|
||||
this.imgSvgUrl = process.env.VUE_APP_BASE_API + this.ruleForm.fileName;
|
||||
this.imageUrl = process.env.VUE_APP_BASE_API + this.ruleForm.fileName
|
||||
} else {
|
||||
this.imgSvgUrl = ''
|
||||
this.imageUrl = ''
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -121,9 +122,6 @@ export default {
|
||||
|
||||
},
|
||||
methods: {
|
||||
changenodeName(val) {
|
||||
console.log(val, 'changeval');
|
||||
},
|
||||
// 获取驳回节点数据
|
||||
getbackflowArr() {
|
||||
let queryParams2 = {
|
||||
@@ -161,13 +159,10 @@ export default {
|
||||
// 图标上传
|
||||
handleAvatarSuccess(res, file) {
|
||||
this.fileName = ''
|
||||
console.log(file.response.fileName,'上传成功的file');
|
||||
this.imageUrl = URL.createObjectURL(file.raw);
|
||||
this.fileName = file.response.fileName
|
||||
console.log(this.imageUrl,'上传成功的this.imageUrl');
|
||||
},
|
||||
beforeAvatarUpload(file) {
|
||||
console.log(file,'file');
|
||||
const isSvg = file.type === 'image/svg+xml';
|
||||
if (!isSvg) {
|
||||
this.$message.error('上传图片只能是 SVG 格式!');
|
||||
|
||||
Reference in New Issue
Block a user