25762
This commit is contained in:
13
packages/3.0.0/AppContentInfo/components/Add.vue
vendored
13
packages/3.0.0/AppContentInfo/components/Add.vue
vendored
@@ -24,7 +24,7 @@
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item prop="categoryId" label="分类">
|
||||
<el-form-item prop="categoryId" label="分类" v-if="cateList.length" :rules="[{required: true, message: '请选择分类', trigger: 'change'}]">
|
||||
<el-select style="width: 100%;" v-model="form.categoryId" size="small" placeholder="请选择分类">
|
||||
<el-option
|
||||
v-for="item in cateList"
|
||||
@@ -93,10 +93,6 @@
|
||||
areaName: '',
|
||||
thumbUrl: []
|
||||
},
|
||||
cropOps: {
|
||||
width: "336px",
|
||||
height: "210px"
|
||||
},
|
||||
id: '',
|
||||
contentTypeList: [
|
||||
{
|
||||
@@ -152,12 +148,17 @@
|
||||
confirm () {
|
||||
this.$refs.form.validate((valid) => {
|
||||
if (valid) {
|
||||
let categoryName = ''
|
||||
if (this.cateList.length && this.form.categoryId) {
|
||||
categoryName = this.cateList.filter(v => v.id === this.form.categoryId)[0].categoryName
|
||||
}
|
||||
|
||||
this.instance.post(`/app/appcontentinfo/addOrUpdate`, {
|
||||
...this.form,
|
||||
moduleId: this.$route.query.moduleId,
|
||||
createUserName: this.user.info.name,
|
||||
createUserId: this.user.info.id,
|
||||
categoryName: this.cateList.length ? this.cateList.filter(v => v.id === this.form.categoryId)[0].categoryName : ''
|
||||
categoryName: categoryName
|
||||
}).then(res => {
|
||||
if (res.code == 0) {
|
||||
this.$message.success('提交成功')
|
||||
|
||||
@@ -323,7 +323,9 @@ export default {
|
||||
});
|
||||
},
|
||||
deletePersonFn() {
|
||||
this.resident.instance.post(`/app/appresident/delete?ids=${this.deleteIds}`).then(res => {
|
||||
this.resident.instance.post(`/app/appresident/deleteBody`, {
|
||||
ids: this.deleteIds
|
||||
}).then(res => {
|
||||
if (res && res.code == 0) {
|
||||
this.$message.success("删除成功");
|
||||
if (
|
||||
|
||||
Reference in New Issue
Block a user