|
|
@ -16,14 +16,16 @@ |
|
|
<el-form-item label="Status"> |
|
|
<el-form-item label="Status"> |
|
|
<el-input v-model="searchData.status" clearable style="width: 100px"></el-input> |
|
|
<el-input v-model="searchData.status" clearable style="width: 100px"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label=" "> |
|
|
|
|
|
<el-button type="primary" @click="getDataList()">查询</el-button> |
|
|
|
|
|
<el-button type="primary" style="margin-left: 2px" @click="toggleEditMode"> |
|
|
|
|
|
{{ editMode ? '确定' : '编辑' }} |
|
|
|
|
|
</el-button> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</el-form> |
|
|
|
|
|
<el-form :inline="true" label-position="top" style="margin-top:10px "> |
|
|
|
|
|
<el-form-item> |
|
|
|
|
|
<el-button type="primary" @click="getDataList()">查询</el-button> |
|
|
|
|
|
<el-button type="primary" style="margin-left: 2px" @click="toggleEditMode"> |
|
|
|
|
|
{{ editMode ? '确定' : '编辑' }} |
|
|
|
|
|
</el-button> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
|
|
|
|
|
|
<el-table |
|
|
<el-table |
|
|
ref="poTable" |
|
|
ref="poTable" |
|
|
:height="height" |
|
|
:height="height" |
|
|
@ -44,11 +46,16 @@ |
|
|
:min-width="item.columnWidth" |
|
|
:min-width="item.columnWidth" |
|
|
:label="item.columnLabel"> |
|
|
:label="item.columnLabel"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<template v-if="item.columnProp==='XXX'"> |
|
|
|
|
|
|
|
|
|
|
|
<span style="color: #c0c4cc">—</span> |
|
|
|
|
|
|
|
|
<template v-if="editMode && item.editAble && item.columnProp==='XXX'"> |
|
|
|
|
|
<el-input |
|
|
|
|
|
v-model="scope.row[item.columnProp]" |
|
|
|
|
|
@click="getBaseList(1100)" |
|
|
|
|
|
type="button" |
|
|
|
|
|
size="mini" |
|
|
|
|
|
> |
|
|
|
|
|
</el-input> |
|
|
</template> |
|
|
</template> |
|
|
<template v-else-if="item.columnProp==='XXXX'"> |
|
|
|
|
|
|
|
|
<template v-else-if="editMode && item.editAble && item.columnProp==='XXXX'"> |
|
|
|
|
|
|
|
|
<span style="color: #c0c4cc">—</span> |
|
|
<span style="color: #c0c4cc">—</span> |
|
|
</template> |
|
|
</template> |
|
|
|