|
@@ -7,6 +7,7 @@
|
|
v-model="formInline.engineName"
|
|
v-model="formInline.engineName"
|
|
placeholder="请输入风机名称"
|
|
placeholder="请输入风机名称"
|
|
size="small"
|
|
size="small"
|
|
|
|
+ class="search-input"
|
|
></el-input>
|
|
></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="选择日期:" size="small">
|
|
<el-form-item label="选择日期:" size="small">
|
|
@@ -29,15 +30,11 @@
|
|
</el-form>
|
|
</el-form>
|
|
<div class="newly">
|
|
<div class="newly">
|
|
<el-button @click="upfile" size="small">导入</el-button>
|
|
<el-button @click="upfile" size="small">导入</el-button>
|
|
- <el-button type="primary" @click="newnuedialog" size="small"
|
|
|
|
- >新增</el-button
|
|
|
|
- >
|
|
|
|
|
|
+ <el-button @click="newnuedialog" size="small">新增</el-button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="list-page">
|
|
<div class="list-page">
|
|
-
|
|
|
|
-
|
|
|
|
<el-table
|
|
<el-table
|
|
class="center-align-table"
|
|
class="center-align-table"
|
|
:data="tableData"
|
|
:data="tableData"
|
|
@@ -70,13 +67,20 @@
|
|
label="经度"
|
|
label="经度"
|
|
min-width="100"
|
|
min-width="100"
|
|
>
|
|
>
|
|
|
|
+ <template v-slot="{ row }">
|
|
|
|
+ {{ row.longitude ? `${row.longitude}°` : "-" }}
|
|
|
|
+ </template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
+
|
|
<el-table-column
|
|
<el-table-column
|
|
prop="latitude"
|
|
prop="latitude"
|
|
align="center"
|
|
align="center"
|
|
label="纬度"
|
|
label="纬度"
|
|
min-width="100"
|
|
min-width="100"
|
|
>
|
|
>
|
|
|
|
+ <template v-slot="{ row }">
|
|
|
|
+ {{ row.latitude ? `${row.latitude}°` : "-" }}
|
|
|
|
+ </template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
|
|
<el-table-column
|
|
<el-table-column
|
|
@@ -240,7 +244,7 @@
|
|
v-model="ruleForm.fieldCode"
|
|
v-model="ruleForm.fieldCode"
|
|
filterable
|
|
filterable
|
|
placeholder="请选择"
|
|
placeholder="请选择"
|
|
- size="small"
|
|
|
|
|
|
+
|
|
>
|
|
>
|
|
<el-option
|
|
<el-option
|
|
v-for="item in fieldCodeOptions"
|
|
v-for="item in fieldCodeOptions"
|
|
@@ -257,7 +261,8 @@
|
|
<el-select
|
|
<el-select
|
|
v-model="ruleForm.millTypeCode"
|
|
v-model="ruleForm.millTypeCode"
|
|
placeholder="请选择"
|
|
placeholder="请选择"
|
|
- size="small"
|
|
|
|
|
|
+
|
|
|
|
+ @focus="logClick"
|
|
>
|
|
>
|
|
<el-option
|
|
<el-option
|
|
v-for="item in millTypeCodeOptions"
|
|
v-for="item in millTypeCodeOptions"
|
|
@@ -269,19 +274,19 @@
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="额定容量:" prop="ratedCapacity">
|
|
<el-form-item label="额定容量:" prop="ratedCapacity">
|
|
- <el-input v-model="ruleForm.ratedCapacity" size="small"></el-input>
|
|
|
|
|
|
+ <el-input v-model="ruleForm.ratedCapacity" ></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</div>
|
|
</div>
|
|
<div class="form-row">
|
|
<div class="form-row">
|
|
<el-form-item label="海拔高度:" prop="elevationHeight">
|
|
<el-form-item label="海拔高度:" prop="elevationHeight">
|
|
<el-input
|
|
<el-input
|
|
v-model="ruleForm.elevationHeight"
|
|
v-model="ruleForm.elevationHeight"
|
|
- size="small"
|
|
|
|
|
|
+
|
|
></el-input>
|
|
></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
|
|
<el-form-item label="轮毂高度:" prop="hubHeight">
|
|
<el-form-item label="轮毂高度:" prop="hubHeight">
|
|
- <el-input v-model="ruleForm.hubHeight" size="small"></el-input>
|
|
|
|
|
|
+ <el-input v-model="ruleForm.hubHeight"></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
@@ -290,7 +295,7 @@
|
|
<el-select
|
|
<el-select
|
|
v-model="ruleForm.sightcing"
|
|
v-model="ruleForm.sightcing"
|
|
placeholder="请选择"
|
|
placeholder="请选择"
|
|
- size="small"
|
|
|
|
|
|
+
|
|
>
|
|
>
|
|
<el-option
|
|
<el-option
|
|
v-for="item in sightcingOptions"
|
|
v-for="item in sightcingOptions"
|
|
@@ -321,19 +326,19 @@
|
|
|
|
|
|
<div class="form-row">
|
|
<div class="form-row">
|
|
<el-form-item label="纬度:" prop="latitude">
|
|
<el-form-item label="纬度:" prop="latitude">
|
|
- <el-input v-model="ruleForm.latitude" size="small"></el-input>
|
|
|
|
|
|
+ <el-input v-model="ruleForm.latitude"></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
|
|
<el-form-item label="经度:" prop="longitude">
|
|
<el-form-item label="经度:" prop="longitude">
|
|
- <el-input v-model="ruleForm.longitude" size="small"></el-input>
|
|
|
|
|
|
+ <el-input v-model="ruleForm.longitude" ></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</div>
|
|
</div>
|
|
</el-form>
|
|
</el-form>
|
|
<div class="form-buttons">
|
|
<div class="form-buttons">
|
|
- <el-button type="primary" size="small" @click="submitForm('ruleForm')"
|
|
|
|
|
|
+ <el-button size="small" @click="resetForm('ruleForm')">取消</el-button>
|
|
|
|
+ <el-button type="primary" size="small" @click="submitForm('ruleForm')"
|
|
>确定</el-button
|
|
>确定</el-button
|
|
>
|
|
>
|
|
- <el-button size="small" @click="resetForm('ruleForm')">取消</el-button>
|
|
|
|
<el-button type="primary" size="small" @click="createMachine"
|
|
<el-button type="primary" size="small" @click="createMachine"
|
|
>创建机型</el-button
|
|
>创建机型</el-button
|
|
>
|
|
>
|
|
@@ -525,6 +530,9 @@ export default {
|
|
this.getAllTemplate();
|
|
this.getAllTemplate();
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ logClick() {
|
|
|
|
+ this.relevancy();
|
|
|
|
+ },
|
|
rowStyle() {
|
|
rowStyle() {
|
|
return "text-align:center";
|
|
return "text-align:center";
|
|
},
|
|
},
|
|
@@ -642,7 +650,6 @@ export default {
|
|
});
|
|
});
|
|
},
|
|
},
|
|
|
|
|
|
-
|
|
|
|
handleSFMChange(newValue) {
|
|
handleSFMChange(newValue) {
|
|
this.ruleForm.longitude = "";
|
|
this.ruleForm.longitude = "";
|
|
this.ruleForm.latitude = "";
|
|
this.ruleForm.latitude = "";
|
|
@@ -669,7 +676,6 @@ export default {
|
|
sightcing: this.ruleForm.sightcing,
|
|
sightcing: this.ruleForm.sightcing,
|
|
engineCode: this.thisrow,
|
|
engineCode: this.thisrow,
|
|
};
|
|
};
|
|
-
|
|
|
|
|
|
|
|
if (valid) {
|
|
if (valid) {
|
|
const API = this.isEdit
|
|
const API = this.isEdit
|
|
@@ -853,10 +859,11 @@ export default {
|
|
this.tolead = false;
|
|
this.tolead = false;
|
|
},
|
|
},
|
|
createMachine() {
|
|
createMachine() {
|
|
- this.$router.push({
|
|
|
|
- path: "/home/Ledger/milltype?id=192",
|
|
|
|
- });
|
|
|
|
- }
|
|
|
|
|
|
+ // this.$router.push({
|
|
|
|
+ // path: "/home/Ledger/milltype?id=192",
|
|
|
|
+ // });
|
|
|
|
+ window.open("/home/Ledger/milltype?id=192", "_blank");
|
|
|
|
+ },
|
|
},
|
|
},
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|
|
@@ -969,4 +976,8 @@ export default {
|
|
display: flex;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
justify-content: space-between;
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+.el-range-editor--small.el-input__inner {
|
|
|
|
+ width: 240px;
|
|
|
|
+}
|
|
</style>
|
|
</style>
|