|
|
|
@ -10,7 +10,7 @@
|
|
|
|
|
<el-input v-model="setForm.name" placeholder="请输入分组名"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item style="width:80%" label="封面">
|
|
|
|
|
<uploadFile cover="封面图片尺寸比例为1:1" @change="handlerUpload" :config="{ limit: 10, accept: '.jpg, .jpeg, .png, .gif'}">
|
|
|
|
|
<uploadFile cover="封面图片尺寸比例为1:1,建议尺寸:800*800" @change="handlerUpload" :config="{ limit: 10, accept: '.jpg, .jpeg, .png, .gif'}">
|
|
|
|
|
<el-button>点击上传</el-button>
|
|
|
|
|
</uploadFile>
|
|
|
|
|
</el-form-item>
|
|
|
|
@ -59,7 +59,7 @@
|
|
|
|
|
<el-input v-model="setForm.name" placeholder="请输入分组名"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item style="width:80%" label="封面">
|
|
|
|
|
<uploadFile cover="封面图片尺寸比例为1:1" @change="handlerCoverUpload" :config="{ limit: 1, accept: '.jpg, .jpeg, .png, .gif'}">
|
|
|
|
|
<uploadFile cover="封面图片尺寸比例为1:1,建议尺寸:800*800" @change="handlerCoverUpload" :config="{ limit: 1, accept: '.jpg, .jpeg, .png, .gif'}">
|
|
|
|
|
<el-button>点击上传</el-button>
|
|
|
|
|
</uploadFile>
|
|
|
|
|
<el-link :href="$ImgUrl(setForm.coverUrl)" target="_blank">
|
|
|
|
@ -184,11 +184,15 @@ export default defineComponent({
|
|
|
|
|
handlerChangeSort(value) {
|
|
|
|
|
let obj = {id: this.editId,sortWeight: this.sortValue*1}
|
|
|
|
|
this.proxy.$post("/referenceGroup/updSort", obj).then(res => {
|
|
|
|
|
if(res.code == 200) {
|
|
|
|
|
this.getData();
|
|
|
|
|
this.isEditing = false;
|
|
|
|
|
this.editId = undefined;
|
|
|
|
|
this.sortValue = undefined;
|
|
|
|
|
this.$message.success(res.data)
|
|
|
|
|
this.$message.success('修改成功')
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error(res.msg)
|
|
|
|
|
}
|
|
|
|
|
}).catch(() => {});
|
|
|
|
|
},
|
|
|
|
|
handlerSortEdit(value) {
|
|
|
|
|