feat: ofm-- 修改form 表单
This commit is contained in:
parent
b52985a844
commit
a7cd474940
|
|
@ -118,7 +118,10 @@ export default {
|
||||||
let that = this;
|
let that = this;
|
||||||
if (that.t_id){
|
if (that.t_id){
|
||||||
this.getTid();
|
this.getTid();
|
||||||
};
|
}else {
|
||||||
|
that.localMode = "add";
|
||||||
|
that.addForm.belong_dept = that.$TOOL.data.get("USER_INFO").belong_dept;
|
||||||
|
};
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
addForm: {
|
addForm: {
|
||||||
|
|
|
||||||
|
|
@ -148,8 +148,6 @@ export default {
|
||||||
|
|
||||||
async submit() {
|
async submit() {
|
||||||
let that = this,res = null;
|
let that = this,res = null;
|
||||||
console.log('that.type',that.type);
|
|
||||||
console.log('that.addForm',that.addForm);
|
|
||||||
try {
|
try {
|
||||||
if (that.type === "add") {
|
if (that.type === "add") {
|
||||||
res = await that.$API.ofm.mroom.create.req(that.addForm);
|
res = await that.$API.ofm.mroom.create.req(that.addForm);
|
||||||
|
|
|
||||||
|
|
@ -186,11 +186,13 @@ export default {
|
||||||
let that = this;
|
let that = this;
|
||||||
if (that.t_id) {
|
if (that.t_id) {
|
||||||
that.getTid();
|
that.getTid();
|
||||||
};
|
}else {
|
||||||
|
that.localMode = "add";
|
||||||
|
that.addForm.belong_dept = that.$TOOL.data.get("USER_INFO").belong_dept;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
'addForm.dept_opinion'(val) {
|
'addForm.dept_opinion'(val) {
|
||||||
console.log('addForm.dept_opinion 发生变化',val)
|
|
||||||
this.ticket_data.dept_opinion = val
|
this.ticket_data.dept_opinion = val
|
||||||
},
|
},
|
||||||
'addForm.secret_period'(val) {
|
'addForm.secret_period'(val) {
|
||||||
|
|
@ -200,14 +202,12 @@ export default {
|
||||||
this.ticket_data.secret_level = val
|
this.ticket_data.secret_level = val
|
||||||
},
|
},
|
||||||
'addForm.disposal_method'(val) {
|
'addForm.disposal_method'(val) {
|
||||||
console.log('addForm.disposal_method 发生变化',val)
|
|
||||||
this.ticket_data.disposal_method = val
|
this.ticket_data.disposal_method = val
|
||||||
},
|
},
|
||||||
'addForm.dept_opinion_review'(val) {
|
'addForm.dept_opinion_review'(val) {
|
||||||
this.ticket_data.dept_opinion_review = val
|
this.ticket_data.dept_opinion_review = val
|
||||||
},
|
},
|
||||||
'addForm.publicity_opinion'(val) {
|
'addForm.publicity_opinion'(val) {
|
||||||
console.log('addForm.publicity_opinion 发生变化',val)
|
|
||||||
this.ticket_data.publicity_opinion = val
|
this.ticket_data.publicity_opinion = val
|
||||||
},
|
},
|
||||||
deep:true
|
deep:true
|
||||||
|
|
|
||||||
|
|
@ -140,7 +140,10 @@ export default {
|
||||||
let that = this;
|
let that = this;
|
||||||
if (that.t_id) {
|
if (that.t_id) {
|
||||||
that.getTid();
|
that.getTid();
|
||||||
}
|
}else {
|
||||||
|
that.localMode = "add";
|
||||||
|
that.localForm.belong_dept = that.$TOOL.data.get("USER_INFO").belong_dept;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
'localForm.actual_return_date'(val) {
|
'localForm.actual_return_date'(val) {
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,7 @@
|
||||||
value-format="YYYY-MM-DD HH:mm:ss"
|
value-format="YYYY-MM-DD HH:mm:ss"
|
||||||
unlink-panels
|
unlink-panels
|
||||||
placeholder="选择日期"
|
placeholder="选择日期"
|
||||||
:disabled="mode==='show'"
|
:disabled="localMode==='show'"
|
||||||
>
|
>
|
||||||
</el-date-picker>
|
</el-date-picker>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
@ -111,7 +111,10 @@ export default {
|
||||||
let that = this;
|
let that = this;
|
||||||
if (that.t_id) {
|
if (that.t_id) {
|
||||||
that.getTid();
|
that.getTid();
|
||||||
}
|
}else {
|
||||||
|
that.localMode = "add";
|
||||||
|
that.addForm.belong_dept = that.$TOOL.data.get("USER_INFO").belong_dept;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
addForm: {
|
addForm: {
|
||||||
|
|
|
||||||
|
|
@ -144,7 +144,10 @@ export default {
|
||||||
let that = this;
|
let that = this;
|
||||||
if (that.t_id) {
|
if (that.t_id) {
|
||||||
that.getTid();
|
that.getTid();
|
||||||
}
|
}else {
|
||||||
|
that.localMode = "add";
|
||||||
|
that.localForm.belong_dept = that.$TOOL.data.get("USER_INFO").belong_dept;
|
||||||
|
};
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
async submit_b_func() {
|
async submit_b_func() {
|
||||||
|
|
|
||||||
|
|
@ -155,7 +155,10 @@ export default {
|
||||||
let that = this;
|
let that = this;
|
||||||
if (that.t_id) {
|
if (that.t_id) {
|
||||||
that.getTid();
|
that.getTid();
|
||||||
}
|
}else {
|
||||||
|
that.localMode = "add";
|
||||||
|
that.localForm.belong_dept = that.$TOOL.data.get("USER_INFO").belong_dept;
|
||||||
|
};
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
async submit_b_func() {
|
async submit_b_func() {
|
||||||
|
|
|
||||||
|
|
@ -72,7 +72,6 @@
|
||||||
size="small"
|
size="small"
|
||||||
type="primary"
|
type="primary"
|
||||||
@click="paperseEdit(scope.row)"
|
@click="paperseEdit(scope.row)"
|
||||||
v-auth="'PaperSe.update'"
|
|
||||||
>详情
|
>详情
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-popconfirm
|
<el-popconfirm
|
||||||
|
|
|
||||||
|
|
@ -122,9 +122,6 @@ export default {
|
||||||
...(this.modelValue || {}) }
|
...(this.modelValue || {}) }
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted() {
|
|
||||||
console.log('mode', this.localMode)
|
|
||||||
},
|
|
||||||
watch: {
|
watch: {
|
||||||
localForm: {
|
localForm: {
|
||||||
handler(val) {
|
handler(val) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue