|
@@ -50,6 +50,14 @@
|
|
|
@click="createClass(scope.row)"
|
|
|
v-hasPermi="['extract:subTask:edit']"
|
|
|
>构建</el-button>
|
|
|
+ <el-button
|
|
|
+ v-show="scope.row.type == 3 && scope.row.status == 0"
|
|
|
+ size="mini"
|
|
|
+ type="text"
|
|
|
+ icon="el-icon-warning-outline"
|
|
|
+ @click="createFlow(scope.row)"
|
|
|
+ v-hasPermi="['extract:subTask:edit']"
|
|
|
+ >构建</el-button>
|
|
|
<el-button
|
|
|
v-show="scope.row.type == 1 && scope.row.status == 3"
|
|
|
size="mini"
|
|
@@ -74,6 +82,14 @@
|
|
|
@click="viewResult2(scope.row)"
|
|
|
v-hasPermi="['extract:subTask:edit']"
|
|
|
>查看构建结果</el-button>
|
|
|
+ <el-button
|
|
|
+ v-show="scope.row.type == 3 && scope.row.status == 3"
|
|
|
+ size="mini"
|
|
|
+ type="text"
|
|
|
+ icon="el-icon-warning-outline"
|
|
|
+ @click="viewFlow(scope.row)"
|
|
|
+ v-hasPermi="['extract:subTask:edit']"
|
|
|
+ >查看构建结果</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -132,13 +148,14 @@
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
<el-dialog :title="tripletInfoOpenTitle" v-if="tripletInfoOpen" :visible.sync="tripletInfoOpen" width="80%" append-to-body destroy-on-close :close-on-click-modal="false">
|
|
|
- <!-- <TripletInfo :subTask="subTask" :subTaskOpen.sync="tripletInfoOpen" @closeInfo="closeInfo"></TripletInfo> -->
|
|
|
<IndexV2 :subTask="subTask" @closeInfo="closeInfo" :readonly="tripletInfoReadOnly"/>
|
|
|
</el-dialog>
|
|
|
<el-dialog :title="createInfoOpenTitle" v-if="createInfoOpen" :visible.sync="createInfoOpen" width="80%" append-to-body destroy-on-close :close-on-click-modal="false">
|
|
|
- <!-- <CreateInfo :subTask="subTask" :subTaskOpen.sync="createInfoOpen" @closeInfo="closeInfo"></CreateInfo> -->
|
|
|
<classCreateV :subTask="subTask" @closeInfo="closeInfo" :readonly="createInfoReadOnly"/>
|
|
|
</el-dialog>
|
|
|
+ <el-dialog :title="flowInfoOpenTitle" v-if="flowInfoOpen" :visible.sync="flowInfoOpen" width="80%" append-to-body destroy-on-close :close-on-click-modal="false">
|
|
|
+ <buildFlow :subTask="subTask" @closeInfo="closeInfo" :readonly="flowInfoReadOnly"/>
|
|
|
+ </el-dialog>
|
|
|
<el-dialog title="分句结果" v-if="viewSentenceOpen" :visible.sync="viewSentenceOpen" width="80%" append-to-body destroy-on-close :close-on-click-modal="false">
|
|
|
<p v-for="sentence in sentenceList" :key="sentence.id">
|
|
|
{{ sentence.id }}. {{ sentence.text }}
|
|
@@ -153,10 +170,11 @@ import { getSentence } from "@/api/extract/result";
|
|
|
import TripletInfo from '@/views/extract/info';
|
|
|
import IndexV2 from '@/views/extract/info/indexV2';
|
|
|
import classCreateV from '@/views/extract/info/classCreateV';
|
|
|
+import buildFlow from '@/views/extract/info/buildFlow';
|
|
|
export default {
|
|
|
name: "SubTask",
|
|
|
dicts: ['extract_sub_task_status', 'extract_sub_task_list'],
|
|
|
- components: { TripletInfo,IndexV2,classCreateV },
|
|
|
+ components: { TripletInfo,IndexV2,classCreateV,buildFlow },
|
|
|
props: {
|
|
|
task: {
|
|
|
type: Object,
|
|
@@ -204,13 +222,20 @@ export default {
|
|
|
},
|
|
|
tripletInfoOpenTitle: "",
|
|
|
tripletInfoOpen: false,
|
|
|
+ tripletInfoReadOnly: false,
|
|
|
+
|
|
|
createInfoOpenTitle: "",
|
|
|
createInfoOpen: false,
|
|
|
+ createInfoReadOnly: false,
|
|
|
+
|
|
|
+ flowInfoOpenTitle: "",
|
|
|
+ flowInfoOpen: false,
|
|
|
+ flowInfoReadOnly: false,
|
|
|
+
|
|
|
subTask: {},
|
|
|
viewSentenceOpen: false,
|
|
|
sentenceList: [],
|
|
|
- tripletInfoReadOnly: false,
|
|
|
- createInfoReadOnly: false,
|
|
|
+
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
@@ -333,7 +358,13 @@ export default {
|
|
|
createClass(row){
|
|
|
this.createInfoReadOnly = false
|
|
|
this.createInfoOpen = true
|
|
|
- this.createtInfoOpenTitle = this.dict.label.extract_sub_task_list[row.type]
|
|
|
+ this.createInfoOpenTitle = this.dict.label.extract_sub_task_list[row.type]
|
|
|
+ this.subTask = row
|
|
|
+ },
|
|
|
+ createFlow(row){
|
|
|
+ this.flowInfoReadOnly = false
|
|
|
+ this.flowInfoOpen = true
|
|
|
+ this.flowInfoOpenTitle = this.dict.label.extract_sub_task_list[row.type]
|
|
|
this.subTask = row
|
|
|
},
|
|
|
handleViewLog(row){
|
|
@@ -342,6 +373,7 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
closeInfo(){
|
|
|
+ this.flowInfoOpen = false
|
|
|
this.createInfoOpen = false
|
|
|
this.tripletInfoOpen = false
|
|
|
this.tripletInfoOpenTitle = ''
|
|
@@ -363,7 +395,13 @@ export default {
|
|
|
viewResult2(row){
|
|
|
this.createInfoReadOnly = true
|
|
|
this.createInfoOpen = true
|
|
|
- this.createtInfoOpenTitle = this.dict.label.extract_sub_task_list[row.type]
|
|
|
+ this.createInfoOpenTitle = this.dict.label.extract_sub_task_list[row.type]
|
|
|
+ this.subTask = row
|
|
|
+ },
|
|
|
+ viewFlow(row){
|
|
|
+ this.flowInfoReadOnly = true
|
|
|
+ this.flowInfoOpen = true
|
|
|
+ this.flowInfoOpenTitle = this.dict.label.extract_sub_task_list[row.type]
|
|
|
this.subTask = row
|
|
|
}
|
|
|
}
|