|
@@ -131,7 +131,7 @@
|
|
|
<el-button type="primary" class="bgColor" @click="openTestDataBoard()"
|
|
|
v-if="oid == '4c686762-1d0a-11ed-8c78-005056b86db5'">表单看板</el-button>
|
|
|
<el-button type="primary" class="bgColor" @click="goToCourse()">新建表单</el-button>
|
|
|
- <el-button type="primary" class="bgColor" v-if="checkList.length!==0" @click="aiAnalysis()">AI分析</el-button>
|
|
|
+ <el-button type="primary" class="bgColor" v-if="stype==1" @click="aiAnalysis()">AI分析</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -1342,6 +1342,10 @@ export default {
|
|
|
this.$forceUpdate()
|
|
|
},
|
|
|
aiAnalysis(){
|
|
|
+ if(this.checkList.length == 0){
|
|
|
+ this.$message.error("请先选择表单")
|
|
|
+ return;
|
|
|
+ }
|
|
|
this.$router.push(
|
|
|
"/choseCheckTest?cid=" +
|
|
|
this.checkList.join(',') +
|