This commit is contained in:
caoqianming 2025-11-10 14:07:35 +08:00
commit f44e1c65fe
12 changed files with 38 additions and 44 deletions

View File

@ -72,7 +72,7 @@
:title="form.title+'-会议室预定'" :title="form.title+'-会议室预定'"
:t_id="form.id" :t_id="form.id"
:ticket_="form.ticket_" :ticket_="form.ticket_"
@success="()=>{$emit('success')}" @success="()=>{$emit('success', localMode)}"
:submit_b_func="submit_b_func" :submit_b_func="submit_b_func"
ref="ticketd_b" ref="ticketd_b"
></ticketd_b> ></ticketd_b>

View File

@ -64,7 +64,7 @@
:ticket_data="ticket_data" :ticket_data="ticket_data"
:submit_b_func="submit_b_func" :submit_b_func="submit_b_func"
ref="ticketd_b" ref="ticketd_b"
@success="$emit('success')" @success="$emit('success', localMode)"
/> />
</el-footer> </el-footer>
</el-main> </el-main>
@ -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: {

View File

@ -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);

View File

@ -104,7 +104,11 @@
</scTable> </scTable>
</el-main> </el-main>
</el-container> </el-container>
<el-drawer title="宣传报道" v-model="limitedVisible" direction="rtl" size="70%"> <el-drawer
title="宣传报道"
v-model="limitedVisible"
direction="rtl" size="70%"
:destroy-on-close="true">
<div style="display: flex; height: calc(100% - 60px);"> <div style="display: flex; height: calc(100% - 60px);">
<div style="flex: 1; padding-right: 20px; overflow-y: auto;"> <div style="flex: 1; padding-right: 20px; overflow-y: auto;">
<publicity <publicity

View File

@ -138,7 +138,7 @@
:ticket_data="ticket_data" :ticket_data="ticket_data"
:submit_b_func="submit_b_func" :submit_b_func="submit_b_func"
ref="ticketd_b" ref="ticketd_b"
@success="$emit('success')" @success="$emit('success', localMode)"
/> />
</el-footer> </el-footer>
</el-main> </el-main>
@ -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

View File

@ -97,7 +97,7 @@
:ticket_="localForm.ticket_" :ticket_="localForm.ticket_"
:submit_b_func="submit_b_func" :submit_b_func="submit_b_func"
ref="ticketd_b" ref="ticketd_b"
@success="$emit('success')" @success="$emit('success', localMode)"
/> />
</el-footer> </el-footer>
</el-main> </el-main>
@ -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) {

View File

@ -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>
@ -67,7 +67,7 @@
:ticket_="addForm.ticket_" :ticket_="addForm.ticket_"
:ticket_data="ticket_data" :ticket_data="ticket_data"
ref="ticketd_b" ref="ticketd_b"
@success="$emit('success')" @success="$emit('success', localMode)"
/> />
</el-footer> </el-footer>
</el-main> </el-main>
@ -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: {

View File

@ -174,25 +174,6 @@ export default {
this.t_id = null; this.t_id = null;
this.limitedVisible = true; this.limitedVisible = true;
}, },
// getDefaultForm(){
// return {
// paper_name: "",
// publication_name:"",
// author: "",
// paper_type: "",
// is_chinese_core: false,
// is_sci: false,
// tech_status: [{ name: "", status: "", fileList: [] },
// { name: "", status: "", fileList: [] },
// { name: "", status: "", fileList: [] },
// { name: "/", status: "", fileList: [] },
// { name: "", status: "", fileList: [] }],
// tech_file: [ { name: "", status: "", pages: "" },
// { name: "", pages: "" }],
// ticket_:null
// }
// },
//
paperseShow(row) { paperseShow(row) {
this.mode = "show"; this.mode = "show";
this.t_id = row.id; this.t_id = row.id;

View File

@ -84,7 +84,7 @@
:ticket_data="ticket_data" :ticket_data="ticket_data"
:submit_b_func="submit_b_func" :submit_b_func="submit_b_func"
ref="ticketd_b" ref="ticketd_b"
@success="$emit('success')" @success="$emit('success', localMode)"
/> />
</el-footer> </el-footer>
</el-main> </el-main>
@ -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() {

View File

@ -93,7 +93,7 @@
:ticket_data="ticket_data" :ticket_data="ticket_data"
:submit_b_func="submit_b_func" :submit_b_func="submit_b_func"
ref="ticketd_b" ref="ticketd_b"
@success="$emit('success')" @success="$emit('success', localMode)"
/> />
</el-footer> </el-footer>
</el-main> </el-main>
@ -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() {

View File

@ -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

View File

@ -79,7 +79,7 @@
:ticket_data="ticket_data" :ticket_data="ticket_data"
:submit_b_func="submit_b_func" :submit_b_func="submit_b_func"
ref="ticketd_b" ref="ticketd_b"
@success="$emit('success')" @success="$emit('success', localMode)"
@colsed="$emit('closed')" @colsed="$emit('closed')"
/> />
</el-footer> </el-footer>
@ -122,9 +122,6 @@ export default {
...(this.modelValue || {}) } ...(this.modelValue || {}) }
}; };
}, },
mounted() {
console.log('mode', this.localMode)
},
watch: { watch: {
localForm: { localForm: {
handler(val) { handler(val) {