|
@@ -29,17 +29,7 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="架次号" prop="sortieNo">
|
|
|
- <LTable
|
|
|
- ref="sortieNoTableRef"
|
|
|
- :defaultFetch="false"
|
|
|
- :fetch="sortieNoFetch"
|
|
|
- @selection-change="sortieNoSelection"
|
|
|
- class="single-select-table"
|
|
|
- :columns="sortieNoColumns"
|
|
|
- :dataSource="sortieNoList"
|
|
|
- :options="sortieNoOptions"
|
|
|
- :pagination="SortieNoTableRequset"
|
|
|
- ></LTable>
|
|
|
+ <LTable ref="sortieNoTableRef" :defaultFetch="false" :fetch="sortieNoFetch" @selection-change="sortieNoSelection" class="single-select-table" :columns="sortieNoColumns" :dataSource="sortieNoList" :options="sortieNoOptions"></LTable>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="部件" prop="partId">
|
|
|
<treeselect noOptionsText="该机型暂无构型信息,请在构型管理中添加" :value="form.partId" :normalizer="normalizer" :options="partsData" :show-count="true" placeholder="请选择部件" @select="partIdSelect" />
|
|
@@ -54,12 +44,8 @@
|
|
|
<el-dialog title="执行进度" :visible.sync="progressVisible" width="800px" :before-close="handleClose">
|
|
|
<el-progress :text-inside="true" :stroke-width="24" :percentage="percentage" status="success"></el-progress>
|
|
|
</el-dialog>
|
|
|
- <el-dialog title="结果展示" :visible.sync="resultVisible" width="50%">
|
|
|
- <el-image style="width: 500px" :src="resultUrl" :preview-src-list="[resultUrl]"></el-image>
|
|
|
- <span slot="footer" class="dialog-footer">
|
|
|
- <el-button @click="resultVisible = false">取 消</el-button>
|
|
|
- <el-button type="primary" @click="resultVisible = false">确 定</el-button>
|
|
|
- </span>
|
|
|
+ <el-dialog title="结果展示" :visible.sync="resultVisible" width="50%" :before-close="resultShowDialogClose">
|
|
|
+ <el-image style="width: 500px" :src="resultShowData.ossId" :preview-src-list="[resultShowData.ossId]"></el-image>
|
|
|
</el-dialog>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -75,7 +61,7 @@ import '@riophae/vue-treeselect/dist/vue-treeselect.css'
|
|
|
import { getAirConfiguration } from '@/api/als/airConfiguration'
|
|
|
import { handleTree } from '../utils/common'
|
|
|
import { executeEvaluation } from '@/api/als/algorithm'
|
|
|
-import { getDataImport } from '@/api/als/dataImport'
|
|
|
+import { getAllDataImport } from '@/api/als/dataImport'
|
|
|
|
|
|
export default {
|
|
|
name: 'LifePrediction',
|
|
@@ -212,12 +198,6 @@ export default {
|
|
|
border: true,
|
|
|
height: '250px'
|
|
|
},
|
|
|
- SortieNoTableRequset: {
|
|
|
- total: 0,
|
|
|
- pageIndex: 1,
|
|
|
- pageSize: 10,
|
|
|
- searchValue: ''
|
|
|
- },
|
|
|
sortieNoList: [],
|
|
|
sortieNoCheckItems: [],
|
|
|
form: {
|
|
@@ -246,7 +226,10 @@ export default {
|
|
|
aircraftId: [{ required: true, message: '编目不能为空', trigger: 'change' }],
|
|
|
partId: [{ required: true, message: '部件不能为空', trigger: 'change' }]
|
|
|
},
|
|
|
- resultUrl: ''
|
|
|
+ resultUrl: '',
|
|
|
+ resultShowData: {
|
|
|
+ ossId: ''
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
watch: {
|
|
@@ -337,13 +320,10 @@ export default {
|
|
|
this.sortieNoCheckItems = []
|
|
|
try {
|
|
|
if (this.$refs.sortieNoTableRef) this.$refs.sortieNoTableRef.clearSelection()
|
|
|
- const { keyWord } = this
|
|
|
- const { pageSize, pageIndex } = this.SortieNoTableRequset
|
|
|
- const {
|
|
|
- data: { list, total }
|
|
|
- } = await getDataImport({ pageSize, pageNum: pageIndex, ...params, source: 1 })
|
|
|
- this.sortieNoList = list
|
|
|
- this.SortieNoTableRequset.total = total
|
|
|
+ const { code, data } = await getAllDataImport({ ...params, source: 1 })
|
|
|
+ if (code === 200) {
|
|
|
+ this.sortieNoList = data
|
|
|
+ }
|
|
|
} catch (error) {}
|
|
|
},
|
|
|
|
|
@@ -398,16 +378,23 @@ export default {
|
|
|
ossIds: []
|
|
|
}
|
|
|
},
|
|
|
+
|
|
|
+ resultShowDialogClose() {
|
|
|
+ this.resultVisible = true
|
|
|
+ this.resultShowData = {
|
|
|
+ ossId: ''
|
|
|
+ }
|
|
|
+ },
|
|
|
+
|
|
|
checkResult(row) {
|
|
|
// this.form = deepClone(row)
|
|
|
- this.resultUrl = row.resultContent
|
|
|
+ this.resultShowData = JSON.parse(row.resultContent)
|
|
|
this.resultVisible = true
|
|
|
},
|
|
|
async beginExecute() {
|
|
|
this.sortieNoCheckItems.forEach((item) => {
|
|
|
this.form.ossIds.push(item.ossId)
|
|
|
})
|
|
|
- console.log('333', this.form)
|
|
|
if (this.sortieNoCheckItems.length == 0) {
|
|
|
this.$message({
|
|
|
type: 'success',
|
|
@@ -437,6 +424,8 @@ export default {
|
|
|
type: 'success',
|
|
|
message: '执行成功!'
|
|
|
})
|
|
|
+ this.resultShowData = JSON.parse(res.data)
|
|
|
+ this.resultVisible = true
|
|
|
this.getLifePredictionAPI({ aircraftId: this.aircaftModelIdList })
|
|
|
}
|
|
|
} catch (error) {
|