瀏覽代碼

按钮答卷地址事件

wkeyuan 3 年之前
父節點
當前提交
4b69fd4126
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      src/components/common/DwSurveyDcsWrapper.vue

+ 4 - 1
src/components/common/DwSurveyDcsWrapper.vue

@@ -31,7 +31,7 @@
                 </el-col>
                 <el-col :span="15" style="text-align: right;">
                   <el-button type="primary" size="small" @click="buttonClickA(`/static/diaowen/design.html?surveyId=${survey.id}`)" >问卷设计</el-button>
-                  <el-button size="small">答卷地址</el-button>
+                  <el-button size="small" @click="handlePush(`/dw/survey/c/url/${survey.id}`)" >答卷地址</el-button>
                 </el-col>
               </el-row>
             </div>
@@ -123,6 +123,9 @@ export default {
     buttonClickA (href) {
       window.location.href = href
     },
+    handlePush: function (to) {
+      this.$router.push(to)
+    },
     getSurveyInfo () {
       dwSurveyInfo(this.$route.params.id).then((response) => {
         const resultData = response.data.data