Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user