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