|
@@ -37,58 +37,18 @@
|
|
|
</el-col>
|
|
|
<el-col :span="10">
|
|
|
<el-col :span="24">
|
|
|
- <span>对刀比对数据</span>
|
|
|
+ <span>刀具参数对比数据</span>
|
|
|
</el-col>
|
|
|
<el-col :span="24" style="margin-top: 15px;">
|
|
|
<span >
|
|
|
<span>刀具类型:</span>
|
|
|
- <el-select v-model="queryParams.model.cutterTyp" clearable >
|
|
|
- <el-option
|
|
|
- v-for="item in cutterTypList"
|
|
|
- :key="item.value"
|
|
|
- :label="item.label"
|
|
|
- :value="item.value">
|
|
|
- </el-option>
|
|
|
- </el-select>
|
|
|
- </span>
|
|
|
- </el-col>
|
|
|
- <el-col :span="24" style="margin-top: 15px;">
|
|
|
- <span >
|
|
|
- <span>刀具类型:</span>
|
|
|
- <el-select v-model="queryParams.model.cutterTyp" clearable >
|
|
|
- <el-option
|
|
|
- v-for="item in cutterTypList"
|
|
|
- :key="item.value"
|
|
|
- :label="item.label"
|
|
|
- :value="item.value">
|
|
|
- </el-option>
|
|
|
- </el-select>
|
|
|
- </span>
|
|
|
- </el-col>
|
|
|
- <el-col :span="24" style="margin-top: 15px;">
|
|
|
- <span >
|
|
|
- <span>刀具类型:</span>
|
|
|
- <el-select v-model="queryParams.model.cutterTyp" clearable >
|
|
|
- <el-option
|
|
|
- v-for="item in cutterTypList"
|
|
|
- :key="item.value"
|
|
|
- :label="item.label"
|
|
|
- :value="item.value">
|
|
|
- </el-option>
|
|
|
- </el-select>
|
|
|
- </span>
|
|
|
- </el-col>
|
|
|
- <el-col :span="24" style="margin-top: 15px;">
|
|
|
- <span >
|
|
|
- <span>刀具类型:</span>
|
|
|
- <el-select v-model="queryParams.model.cutterTyp" clearable >
|
|
|
- <el-option
|
|
|
- v-for="item in cutterTypList"
|
|
|
- :key="item.value"
|
|
|
- :label="item.label"
|
|
|
- :value="item.value">
|
|
|
- </el-option>
|
|
|
- </el-select>
|
|
|
+ <el-input
|
|
|
+ type="textarea"
|
|
|
+ :cols="10"
|
|
|
+ :rows="6"
|
|
|
+ :disabled="true"
|
|
|
+ v-model="parameterControl.toolSetToCheckParameter">
|
|
|
+ </el-input>
|
|
|
</span>
|
|
|
</el-col>
|
|
|
<el-col :span="24" style="margin-top: 15px;">
|
|
@@ -131,6 +91,9 @@
|
|
|
<script>
|
|
|
import { initDicts, initQueryParams } from '@/utils/commons'
|
|
|
|
|
|
+// 读取机外对刀仪数据获取对刀仪参数
|
|
|
+import classScheduleMgrApi from "@/api/modelingCenter/cutterTestData"
|
|
|
+
|
|
|
export default {
|
|
|
name: "DrawerComponent",
|
|
|
props: {
|
|
@@ -237,6 +200,10 @@ export default {
|
|
|
label: '修磨刀'
|
|
|
}],
|
|
|
queryParams: initQueryParams({}),
|
|
|
+ isReadError: false,
|
|
|
+ parameterControl:{
|
|
|
+ toolSetToCheckParameter : ''
|
|
|
+ }
|
|
|
};
|
|
|
},
|
|
|
watch: {
|
|
@@ -253,9 +220,41 @@ export default {
|
|
|
this.$emit('closed');
|
|
|
},
|
|
|
modifyPicture(){
|
|
|
+ },
|
|
|
+ // 开启定时
|
|
|
+ startTimer() {
|
|
|
+ this.intervalId = setInterval(this.timerFunction, 2000);
|
|
|
+ },
|
|
|
+ // 关闭定时
|
|
|
+ stopTimer() {
|
|
|
+ if (this.intervalId) {
|
|
|
+ clearInterval(this.intervalId);
|
|
|
+ this.intervalId = null;
|
|
|
+ }
|
|
|
+ },
|
|
|
+ // 定时的方法体
|
|
|
+ timerFunction() {
|
|
|
+ console.log('根据刀具类型,查询需要比对的参数');
|
|
|
+ classScheduleMgrApi.getCutterByRfid({ }).then(response => {
|
|
|
+ if (response.status == 200) {
|
|
|
+ this.isReadError = false;
|
|
|
+ console.log(response.data.data)
|
|
|
+ var datada = response.data.data;
|
|
|
+ this.parameterControl.toolSetToCheckParameter = datada.toolSetToCheckParameter
|
|
|
+
|
|
|
+ }else {
|
|
|
+ if(this.isReadError == false){
|
|
|
+ this.$message({
|
|
|
+ message: response.msg,
|
|
|
+ type: "error"
|
|
|
+ })
|
|
|
+ }
|
|
|
+ this.isReadError = true;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
|
|
|
- }
|
|
|
- },
|
|
|
+ },
|
|
|
}
|
|
|
</script>
|
|
|
|