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 { } else {
this.pageShow = true this.pageShow = true
} }
document.title = !id ? '新建表单' : '编辑表单'
this.init() this.init()
uni.$on('setting', res => { uni.$on('setting', res => {
this.form = { this.form = {

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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