fix:coding#560二、1性能检验改动
This commit is contained in:
parent
52aa3b167b
commit
208c0aee5c
|
@ -11,16 +11,31 @@
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
<div class="right-panel">
|
<div class="right-panel">
|
||||||
|
<el-select
|
||||||
|
v-model="query.testitem"
|
||||||
|
clearable
|
||||||
|
style="width: 150px"
|
||||||
|
@change="testitemChange"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item in behaviors"
|
||||||
|
:key="item.id"
|
||||||
|
:label="item.name"
|
||||||
|
:value="item.id"
|
||||||
|
>
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
v-model="query.test_date"
|
v-model="query.test_date"
|
||||||
type="date"
|
type="date"
|
||||||
value-format="YYYY-MM-DD"
|
value-format="YYYY-MM-DD"
|
||||||
|
style="width: 150px"
|
||||||
/>
|
/>
|
||||||
<el-input
|
<el-input
|
||||||
v-model="query.search"
|
v-model="query.search"
|
||||||
placeholder="编号"
|
placeholder="编号"
|
||||||
clearable
|
clearable
|
||||||
style="width: 200px"
|
style="width: 150px"
|
||||||
></el-input>
|
></el-input>
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
|
@ -30,35 +45,6 @@
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
</el-header>
|
</el-header>
|
||||||
<el-main class="nopadding">
|
|
||||||
<!-- <el-radio-group v-model="radio1" class="ml-4">
|
|
||||||
<el-radio
|
|
||||||
v-for="item in behaviors"
|
|
||||||
:key="item.id"
|
|
||||||
:label="item.id"
|
|
||||||
size="large"
|
|
||||||
>
|
|
||||||
{{ item.name }}
|
|
||||||
</el-radio>
|
|
||||||
</el-radio-group> -->
|
|
||||||
<el-container>
|
|
||||||
<el-header style="padding: 13px 15px 7px">
|
|
||||||
<el-tabs
|
|
||||||
v-model="activeId"
|
|
||||||
class="demo-tabs"
|
|
||||||
@tab-click="handleClick"
|
|
||||||
type="card"
|
|
||||||
>
|
|
||||||
<el-tab-pane
|
|
||||||
v-for="item in behaviors"
|
|
||||||
v-bind:key="item.id"
|
|
||||||
:label="item.name"
|
|
||||||
:name="item.id"
|
|
||||||
>
|
|
||||||
</el-tab-pane>
|
|
||||||
</el-tabs>
|
|
||||||
</el-header>
|
|
||||||
<el-main class="nopadding">
|
|
||||||
<scTable
|
<scTable
|
||||||
ref="table"
|
ref="table"
|
||||||
:data="tableData"
|
:data="tableData"
|
||||||
|
@ -66,6 +52,7 @@
|
||||||
row-key="id"
|
row-key="id"
|
||||||
stripe
|
stripe
|
||||||
:params="query"
|
:params="query"
|
||||||
|
:query="query"
|
||||||
>
|
>
|
||||||
<el-table-column type="index" width="50" />
|
<el-table-column type="index" width="50" />
|
||||||
<el-table-column
|
<el-table-column
|
||||||
|
@ -208,14 +195,9 @@
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</scTable>
|
</scTable>
|
||||||
</el-main>
|
|
||||||
</el-container>
|
|
||||||
</el-main>
|
|
||||||
<save-dialog
|
<save-dialog
|
||||||
v-if="visible"
|
v-if="visible"
|
||||||
ref="saveDialog"
|
ref="saveDialog"
|
||||||
:activeName="activeName"
|
|
||||||
:activeId="activeId"
|
|
||||||
@success="handleSuccess"
|
@success="handleSuccess"
|
||||||
@closed="visible = false"
|
@closed="visible = false"
|
||||||
>
|
>
|
||||||
|
@ -287,7 +269,6 @@ export default {
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
activeId: "3442815297965547520",
|
|
||||||
activeName: "折射率",
|
activeName: "折射率",
|
||||||
visible: false,
|
visible: false,
|
||||||
isSaveing: false,
|
isSaveing: false,
|
||||||
|
@ -311,11 +292,14 @@ export default {
|
||||||
that.apiObj = that.$API.qm.ptest.list;
|
that.apiObj = that.$API.qm.ptest.list;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
handleClick(val) {
|
testitemChange(){
|
||||||
this.activeId = val.props.name;
|
let that = this;
|
||||||
this.activeName = val.props.label;
|
that.behaviors.forEach((item) => {
|
||||||
this.query.testitem = val.props.name;
|
if(item.id==that.query.testitem){
|
||||||
this.$refs.table.refresh();
|
that.activeName = item.name;
|
||||||
|
}
|
||||||
|
that.$refs.table.refresh();
|
||||||
|
})
|
||||||
},
|
},
|
||||||
add() {
|
add() {
|
||||||
this.visible = true;
|
this.visible = true;
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
@closed="$emit('closed')"
|
@closed="$emit('closed')"
|
||||||
>
|
>
|
||||||
<el-container v-loading="loading">
|
<el-container v-loading="loading">
|
||||||
<el-main style="padding: 0 20px 20px 20px">
|
<el-main style="padding: 0">
|
||||||
<el-form
|
<el-form
|
||||||
ref="dialogForm"
|
ref="dialogForm"
|
||||||
:model="form"
|
:model="form"
|
||||||
|
@ -22,7 +22,7 @@
|
||||||
placeholder="检验类型"
|
placeholder="检验类型"
|
||||||
clearable
|
clearable
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
disabled
|
@change="testitemChange"
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in behaviors"
|
v-for="item in behaviors"
|
||||||
|
@ -279,7 +279,6 @@ export default {
|
||||||
emits: ["success", "closed"],
|
emits: ["success", "closed"],
|
||||||
props: {
|
props: {
|
||||||
activeId: { type: String, default: "" },
|
activeId: { type: String, default: "" },
|
||||||
activeName: { type: String, default: "" },
|
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
@ -349,6 +348,7 @@ export default {
|
||||||
belong_dept_options: [],
|
belong_dept_options: [],
|
||||||
group: [],
|
group: [],
|
||||||
behaviors: [],
|
behaviors: [],
|
||||||
|
activeName:'折射率'
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
@ -399,6 +399,14 @@ export default {
|
||||||
that.processOptions = res;
|
that.processOptions = res;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
testitemChange(){
|
||||||
|
let that = this;
|
||||||
|
that.behaviors.forEach((item) => {
|
||||||
|
if(item.id==that.form.testitem){
|
||||||
|
that.activeName = item.name;
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
handleClick() {},
|
handleClick() {},
|
||||||
//提交
|
//提交
|
||||||
submit() {
|
submit() {
|
||||||
|
|
Loading…
Reference in New Issue