fix:一些小改动
This commit is contained in:
parent
93d207b7d4
commit
f3015f58bf
|
@ -3,17 +3,15 @@
|
|||
<el-header>
|
||||
<div class="left-panel">
|
||||
<!-- v-auth="'defect.create'" -->
|
||||
<el-button type="primary" icon="el-icon-plus" @click="defectAdd"></el-button>
|
||||
<el-button type="primary" icon="el-icon-plus" @click="defectAdd" v-auth="'defect.create'"></el-button>
|
||||
</div>
|
||||
<div class="right-panel">
|
||||
<div class="right-panel-search">
|
||||
<el-input v-model="query.search" placeholder="名称" clearable @keyup.enter="handleQuery"></el-input>
|
||||
<el-button type="primary" icon="el-icon-search" @click="handleQuery"></el-button>
|
||||
</div>
|
||||
<el-input v-model="query.search" placeholder="名称" clearable @keyup.enter="handleQuery"></el-input>
|
||||
<el-button type="primary" icon="el-icon-search" @click="handleQuery"></el-button>
|
||||
</div>
|
||||
</el-header>
|
||||
<el-main class="nopadding">
|
||||
<scTable ref="table" :apiObj="apiObj" row-key="id" @selection-change="selectionChange" hidePagination>
|
||||
<scTable ref="table" :apiObj="apiObj" row-key="id">
|
||||
<el-table-column label="#" type="index"></el-table-column>
|
||||
<el-table-column label="名称" prop="name"></el-table-column>
|
||||
<el-table-column label="标识" prop="code"></el-table-column>
|
||||
|
|
|
@ -5,10 +5,8 @@
|
|||
<el-button type="primary" icon="el-icon-plus" @click="tableAdd" v-auth="'qct.create'"></el-button>
|
||||
</div>
|
||||
<div class="right-panel">
|
||||
<div class="right-panel-search">
|
||||
<el-input v-model="query.search" placeholder="检验表名称" clearable @keyup.enter="handleQuery"></el-input>
|
||||
<el-button type="primary" icon="el-icon-search" @click="handleQuery"></el-button>
|
||||
</div>
|
||||
<el-input v-model="query.search" placeholder="检验表名称" clearable @keyup.enter="handleQuery"></el-input>
|
||||
<el-button type="primary" icon="el-icon-search" @click="handleQuery"></el-button>
|
||||
</div>
|
||||
</el-header>
|
||||
<el-main class="nopadding">
|
||||
|
@ -28,7 +26,7 @@
|
|||
<el-divider direction="vertical"></el-divider>
|
||||
<el-button link size="small" @click="tableEdit(scope.row)" v-auth="'qct.update'" type="primary">编辑</el-button>
|
||||
<el-divider direction="vertical"></el-divider>
|
||||
<el-popconfirm title="确定删除吗?" @confirm="roleDel(scope.row, scope.$index)">
|
||||
<el-popconfirm title="确定删除吗?" @confirm="tableDel(scope.row, scope.$index)">
|
||||
<template #reference>
|
||||
<el-button link size="small" v-auth="'role.delete'" type="danger">删除</el-button>
|
||||
</template>
|
||||
|
|
|
@ -5,14 +5,12 @@
|
|||
<el-button type="primary" icon="el-icon-plus" @click="testitemAdd" v-auth="'role.create'"></el-button>
|
||||
</div>
|
||||
<div class="right-panel">
|
||||
<div class="right-panel-search">
|
||||
<el-input v-model="query.search" placeholder="名称" clearable @keyup.enter="handleQuery"></el-input>
|
||||
<el-button type="primary" icon="el-icon-search" @click="handleQuery"></el-button>
|
||||
</div>
|
||||
<el-input v-model="query.search" placeholder="名称" clearable @keyup.enter="handleQuery"></el-input>
|
||||
<el-button type="primary" icon="el-icon-search" @click="handleQuery"></el-button>
|
||||
</div>
|
||||
</el-header>
|
||||
<el-main class="nopadding">
|
||||
<scTable ref="table" :apiObj="apiObj" row-key="id" hidePagination>
|
||||
<scTable ref="table" :apiObj="apiObj" row-key="id">
|
||||
<el-table-column label="#" type="index" width="50"></el-table-column>
|
||||
<el-table-column label="名称" prop="name"></el-table-column>
|
||||
<el-table-column label="检验类型" prop="field_type">
|
||||
|
|
|
@ -55,7 +55,9 @@
|
|||
<el-form-item label="关联检测项">
|
||||
<xtSelect
|
||||
:apiObj="apiObj"
|
||||
:options="itemOptions"
|
||||
v-model="form.affects"
|
||||
v-model:label="form.affects_name"
|
||||
style="width:100%"
|
||||
:multiple="true"
|
||||
>
|
||||
|
@ -190,6 +192,7 @@ export default {
|
|||
{ required: true, message: "请输入名称", trigger: "blur" },
|
||||
],
|
||||
},
|
||||
// itemOptions:null,
|
||||
visible: false,
|
||||
isSaveing: false,
|
||||
options: [
|
||||
|
@ -240,6 +243,9 @@ export default {
|
|||
//表单注入数据
|
||||
setData(data) {
|
||||
Object.assign(this.form, data);
|
||||
// if(data.affects.length>0){
|
||||
// this.itemOptions
|
||||
// }
|
||||
},
|
||||
//表单提交方法
|
||||
submit() {
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
<!-- 最新版生产执行页面 -->
|
||||
<template>
|
||||
<el-container>
|
||||
<el-header>
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
<!-- 左侧工段列表的 生产执行页面 -->
|
||||
<template>
|
||||
<el-container>
|
||||
<el-aside style="width: 100px;background: #ffffff;">
|
||||
|
|
Loading…
Reference in New Issue