优化
This commit is contained in:
@@ -174,6 +174,7 @@ export default {
|
||||
} else {
|
||||
this.pageShow = true
|
||||
}
|
||||
document.title = !id ? '新建表单' : '编辑表单'
|
||||
this.init()
|
||||
uni.$on('setting', res => {
|
||||
this.form = {
|
||||
|
||||
@@ -158,6 +158,9 @@ export default {
|
||||
isShowAnswer: false
|
||||
}
|
||||
},
|
||||
mounted () {
|
||||
document.title = '表单项配置'
|
||||
},
|
||||
computed: {
|
||||
pointTypeName() {
|
||||
if (!this.config.pointDict) return ''
|
||||
|
||||
@@ -108,6 +108,7 @@ export default {
|
||||
}
|
||||
},
|
||||
created() {
|
||||
document.title = '表单设置'
|
||||
if (this.id) {
|
||||
this.getInfo(this.id)
|
||||
} else this.getFormSetting()
|
||||
|
||||
@@ -100,6 +100,11 @@ export default {
|
||||
...params
|
||||
}
|
||||
},
|
||||
|
||||
mounted () {
|
||||
document.title = '表单预览'
|
||||
},
|
||||
|
||||
methods: {
|
||||
getInfo(id) {
|
||||
uni.showLoading()
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -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()
|
||||
})
|
||||
},
|
||||
|
||||
|
||||
@@ -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();
|
||||
},
|
||||
|
||||
@@ -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}) {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user