commit
This commit is contained in:
@@ -96,11 +96,11 @@
|
||||
>
|
||||
<div class="demo-drawer-content add-demo">
|
||||
<div class="search-area">
|
||||
<el-form :model="opinionContent" class="label-input-form">
|
||||
<el-form-item label="章节编号" label-width="80px" class="add-form-item">
|
||||
<el-form :model="opinionContent" ref="formAdd" :rules="opinionContentRules" class="label-input-form">
|
||||
<el-form-item label="章节编号" label-width="80px" prop="partCode" class="add-form-item">
|
||||
<el-input v-model="opinionContent.partCode" autocomplete="off" placeholder="请输入章节编号"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="修改意见内容(包括理由或依据)" label-width="" class="add-form-item">
|
||||
<el-form-item label="修改意见内容(包括理由或依据)" prop="content" label-width="" class="add-form-item">
|
||||
<el-input :autosize="{ minRows: 2, maxRows: 8}" type="textarea" v-model="opinionContent.content" autocomplete="off" placeholder="请输入修改意见内容"></el-input>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
@@ -132,6 +132,14 @@ export default {
|
||||
partCode: '',
|
||||
content: '',
|
||||
},
|
||||
opinionContentRules: {
|
||||
partCode: [
|
||||
{ required: true, message: '请输入章节编号', trigger: 'blur' },
|
||||
],
|
||||
content: [
|
||||
{ required: true, message: '请输入修改意见内容(包括理由或依据)', trigger: 'blur' }
|
||||
],
|
||||
},
|
||||
standinfoList: [], // 详情列表
|
||||
form: {
|
||||
cid: this.$route.query.item.cid,
|
||||
@@ -228,32 +236,36 @@ export default {
|
||||
},
|
||||
//点击抽屉按钮提交事件
|
||||
saveUserInfo() {
|
||||
var url = ''
|
||||
var form = {
|
||||
cid: this.$route.query.item.cid,
|
||||
content: this.opinionContent.content,
|
||||
partCode: this.opinionContent.partCode,
|
||||
userId: this.$store.getters.userInfo.userId,
|
||||
userName: this.$store.getters.userInfo.account,
|
||||
deptName: this.$store.getters.userInfo.orgName,
|
||||
deptId: this.$store.getters.userInfo.orgId
|
||||
}
|
||||
if (this.type === 'edit') {
|
||||
form.id = this.id
|
||||
form.autUserId = this.$store.getters.userInfo.userId
|
||||
url = 'slrs/sar-public-idea-all/updateStand'
|
||||
} else {
|
||||
url = 'slrs/sar-public-idea-all/insetStand'
|
||||
}
|
||||
this.$http.post(url, form, {
|
||||
_this: this
|
||||
}, res => {
|
||||
if (res.respCode === '200') {
|
||||
this.form.page = 1
|
||||
this.getList()
|
||||
}
|
||||
this.$refs['formAdd'].validate((valid) => {
|
||||
if (valid) {
|
||||
var url = ''
|
||||
var form = {
|
||||
cid: this.$route.query.item.cid,
|
||||
content: this.opinionContent.content,
|
||||
partCode: this.opinionContent.partCode,
|
||||
userId: this.$store.getters.userInfo.userId,
|
||||
userName: this.$store.getters.userInfo.account,
|
||||
deptName: this.$store.getters.userInfo.orgName,
|
||||
deptId: this.$store.getters.userInfo.orgId
|
||||
}
|
||||
if (this.type === 'edit') {
|
||||
form.id = this.id
|
||||
form.autUserId = this.$store.getters.userInfo.userId
|
||||
url = 'slrs/sar-public-idea-all/updateStand'
|
||||
} else {
|
||||
url = 'slrs/sar-public-idea-all/insetStand'
|
||||
}
|
||||
this.$http.post(url, form, {
|
||||
_this: this
|
||||
}, res => {
|
||||
if (res.respCode === '200') {
|
||||
this.form.page = 1
|
||||
this.getList()
|
||||
}
|
||||
})
|
||||
this.isDialog = false
|
||||
}
|
||||
})
|
||||
this.isDialog = false
|
||||
},
|
||||
//点击抽屉按钮取消事件
|
||||
closeDrawer() {
|
||||
|
||||
Reference in New Issue
Block a user