| | |
| | | return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`; |
| | | } |
| | | // 历史任务 |
| | | const iframeUrl = ref(''); |
| | | const handlehistorical = (row) => { |
| | | blindb.value = true; |
| | | historical() |
| | | iframeUrl.value = `${window.location.origin}/#/GlassStorage/rawhistory`; |
| | | }; |
| | | // 历史任务 |
| | | const historical = async () => { |
| | | try { |
| | | let celllista=[] |
| | | let stateLista=[] |
| | | if(selectValuesb[0]!=null&&selectValuesb[0]!='undefined'){ |
| | | if(selectValuesb[0]!=""){ |
| | | celllista=[selectValuesb[0]]; |
| | | } |
| | | } |
| | | if(selectValuesb[1]!=null&&selectValuesb[1]!='undefined'){ |
| | | if(selectValuesb[1]!=""){ |
| | | stateLista=[selectValuesb[1]]; |
| | | } |
| | | } |
| | | const response = await request.post("/glassStorage/rawGlassStorageTask/queryRawGlassHistoryTask", { |
| | | beginDate: (timeRangea.value && timeRangea.value[0]) || '', |
| | | endDate: (timeRangea.value && timeRangea.value[1]) || '', |
| | | taskState: [], |
| | | taskType: [] |
| | | }) |
| | | if (response.code == 200) { |
| | | ElMessage.success(response.message); |
| | | tableDatad.value = response.data; |
| | | } else { |
| | | ElMessage.error(response.message); |
| | | } |
| | | } |
| | | catch (error) { |
| | | console.error(error); |
| | | } |
| | | } |
| | | // 任务成功处理 |
| | | const successfull = async(row) => { |
| | | try { |
| | |
| | | </el-dialog> |
| | | <!-- 历史任务 --> |
| | | <el-dialog v-model="blindb" top="10vh" width="90%"> |
| | | <iframe |
| | | :src="iframeUrl" |
| | | marginwidth="2000px" |
| | | marginheight="2000px" |
| | | width="100%" |
| | | height="700px" |
| | | frameborder="0" |
| | | ></iframe> |
| | | </el-dialog> |
| | | <!-- <el-dialog v-model="blindb" top="10vh" width="90%"> |
| | | <div style="display: flex;"> |
| | | <el-date-picker style="margin-left: 10px;" v-model="timeRangea" type="datetimerange" |
| | | format="YYYY/MM/DD HH:mm:ss" |
| | |
| | | <el-button @click="blindb = false">{{ $t('large.close') }}</el-button> |
| | | </div> |
| | | </template> |
| | | </el-dialog> |
| | | </el-dialog> --> |
| | | <el-dialog v-model="dialogFormVisibleb" top="23vh" width="55%" :title="$t('film.addglass')" > |
| | | <div style="margin-left: -50px;margin-top: 10px;margin-bottom: 10px;"> |
| | | <el-form size="mini" label-width="150px"> |