This commit is contained in:
yanran200730
2022-01-20 10:36:52 +08:00
parent 66236dfb5b
commit 4755651c38
9 changed files with 29 additions and 13 deletions

View File

@@ -174,6 +174,7 @@ export default {
} else {
this.pageShow = true
}
document.title = !id ? '新建表单' : '编辑表单'
this.init()
uni.$on('setting', res => {
this.form = {

View File

@@ -158,6 +158,9 @@ export default {
isShowAnswer: false
}
},
mounted () {
document.title = '表单项配置'
},
computed: {
pointTypeName() {
if (!this.config.pointDict) return ''

View File

@@ -108,6 +108,7 @@ export default {
}
},
created() {
document.title = '表单设置'
if (this.id) {
this.getInfo(this.id)
} else this.getFormSetting()

View File

@@ -100,6 +100,11 @@ export default {
...params
}
},
mounted () {
document.title = '表单预览'
},
methods: {
getInfo(id) {
uni.showLoading()

View File

@@ -53,25 +53,34 @@ export default {
created() {
this.searchDetail();
},
onLoad () {
document.title = this.$route.query.id ? '调查走访详情' : '新增调查走访'
},
methods: {
submitForm() {
if (!this.form.title) {
return this.$u.toast("请输入调查走访事项")
}
this.$loading()
this.$refs.interviewForm?.validate(v => {
if (v) {
this.$http.post(`/app/appinterview/add-xcx`, {
...this.form
}).then(res => {
uni.hideLoading()
if (res?.code == 0) {
this.$u.toast("提交成功!")
setTimeout(() => {
uni.navigateBack({})
}, 1000)
}
}).catch(() => {
uni.hideLoading()
})
}
}).catch(() => {
uni.hideLoading()
})
},
searchDetail() {

View File

@@ -251,6 +251,7 @@ export default {
if (!this.form.ticket) return this.$u.toast("请选择参会人")
}
this.$loading()
this.$http.post("/app/appmeetinginfo/add-update", {
...this.form,
files: this.form.files.map(e => e.id),
@@ -258,10 +259,16 @@ export default {
startTime: this.form.startTime.year + "-" + this.form.startTime.month + "-" + this.form.startTime.day + " " + this.form.startTime.time + ":00",
endTime: this.form.endTime.year + "-" + this.form.endTime.month + "-" + this.form.endTime.day + " " + this.form.endTime.time + ":00",
}).then(res => {
uni.hideLoading()
if (res.code == 0) {
this.$u.toast(status == 1 ? "发布成功" : "保存成功")
uni.navigateBack({})
setTimeout(() => {
uni.navigateBack()
}, 500)
}
}).catch(() => {
uni.hideLoading()
})
},

View File

@@ -114,6 +114,7 @@ export default {
},
onLoad(opt) {
this.id = opt.id;
document.title = "会议详情";
},
computed: {
...mapState(["user"]),
@@ -234,7 +235,6 @@ export default {
},
onShow() {
document.title = "会议详情";
this.$dict.load("meetStatus");
wx.hideOptionMenu();
},

View File

@@ -58,10 +58,10 @@ export default {
onLoad(opt) {
this.index = opt.index
document.title = opt.index == 0 ? "历史会议" : "草稿箱"
},
onShow() {
this.getData();
document.title = opt.index == 0 ? "历史会议" : "草稿箱"
},
methods: {
detail({id}) {

View File

@@ -199,16 +199,6 @@ export default {
.item {
position: relative;
height: 80px;
&:after {
width: 100%;
height: 1px;
background-color: rgba(216, 221, 230, 0.5);
content: "";
position: absolute;
left: 0;
bottom: 0;
}
}
& > span {