Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
wanglei
2021-12-03 16:52:31 +08:00
3 changed files with 22 additions and 4 deletions

View File

@@ -6,7 +6,7 @@
</ai-top-fixed> </ai-top-fixed>
<div class="form-list"> <div class="form-list">
<div class="form-item" v-for="(item, index) in list" :key="index" <div class="form-item" v-for="(item, index) in list" :key="index"
@click="info = item, id = item.id, isShow = true"> @click="showPopup(item)">
<div class="form-item__top"> <div class="form-item__top">
<div class="form-item__left"> <div class="form-item__left">
<h2>{{ item.title }}</h2> <h2>{{ item.title }}</h2>
@@ -125,6 +125,20 @@ export default {
}) })
}, },
showPopup (item) {
if (item.status === '2') {
this.$confirm('表单已停止发布,请在后台管理系统中查看调查结果', '', {
showCancel: false
})
return false
}
this.info = item
this.id = item.id
this.isShow = true
},
toStop() { toStop() {
this.$http.post(`/app/appquestionnairetemplate/stopRelease?id=${this.info.id}`).then(res => { this.$http.post(`/app/appquestionnairetemplate/stopRelease?id=${this.info.id}`).then(res => {
if (res.code === 0) { if (res.code === 0) {

View File

@@ -28,6 +28,8 @@
</template> </template>
<script> <script>
import {mapActions} from 'vuex'
export default { export default {
name: 'Result', name: 'Result',
@@ -39,6 +41,8 @@
}, },
methods: { methods: {
...mapActions(['injectJWeixin', 'wxInvoke']),
copy() { copy() {
let oInput = document.createElement('input') let oInput = document.createElement('input')
oInput.value = this.params.linkUrl oInput.value = this.params.linkUrl

View File

@@ -126,6 +126,9 @@ export default {
} }
}, },
methods: { methods: {
emitShow(){
document.title = this.form.title || "调查问卷"
},
getForm() { getForm() {
let {id} = this.$route.query let {id} = this.$route.query
this.$http.post("/app/appquestionnairetemplate/queryDetailById", null, { this.$http.post("/app/appquestionnairetemplate/queryDetailById", null, {
@@ -223,9 +226,6 @@ export default {
}, },
created() { created() {
this.isResult ? this.getResult() : this.getForm() this.isResult ? this.getResult() : this.getForm()
},
mounted() {
document.title = this.form.title || "调查问卷"
} }
} }
</script> </script>