Commit 67ce1b37 by wangweidong

土工试验Lims

parent 1a81fe50
...@@ -3,35 +3,35 @@ ...@@ -3,35 +3,35 @@
<Row> <Row>
<!--查询--> <!--查询-->
<Col span="24"> <Col span="24">
<Form :label-width="80" v-show="searchOpen" inline onsubmit="return false"> <Form v-show="searchOpen" :label-width="80" inline onsubmit="return false">
<label class="label-sign"></label> <label class="label-sign"></label>
<Form-item class="search-item" label="模板名称:"> <Form-item class="search-item" label="模板名称:">
<Input v-model="formObj.title" @on-enter="_formSearch" placeholder="请输入模板名称" clearable></Input> <Input v-model="formObj.title" placeholder="请输入模板名称" clearable @on-enter="_formSearch"></Input>
</Form-item> </Form-item>
<Form-item class="search-item" label="委托编号:"> <Form-item class="search-item" label="委托编号:">
<Input v-model="formObj.entrustCode" @on-enter="_formSearch" placeholder="请输入委托编号" clearable></Input> <Input v-model="formObj.entrustCode" placeholder="请输入委托编号" clearable @on-enter="_formSearch"></Input>
</Form-item> </Form-item>
<Form-item class="search-btn"> <Form-item class="search-btn">
<Button @click="_formSearch" type="primary">搜索</Button> <Button type="primary" @click="_formSearch">搜索</Button>
</Form-item> </Form-item>
</Form> </Form>
</Col> </Col>
<!--操作--> <!--操作-->
<Col span="24"> <Col span="24">
<btn-list :open="searchOpen" :showSearchBtn="true" @on-result-change="_btnClick" <btn-list :open="searchOpen" :show-search-btn="true" class="contHide"
class="contHide"></btn-list> @on-result-change="_btnClick"></btn-list>
</Col> </Col>
<!-- 表格 --> <!-- 表格 -->
<Col span="24"> <Col span="24">
<PTVXETable ref="pageTable" :tableHeight="tableHeight" <PTVXETable ref="pageTable" :table-height="tableHeight"
@on-result-change="_tableResultChange" :icon-msg="iconMsg" :getPage="getPage"> :icon-msg="iconMsg" :get-page="getPage" @on-result-change="_tableResultChange">
<vxe-table-column <vxe-table-column
v-for="item in pageColumns"
:key="item.key"
:field="item.key" :field="item.key"
:title="item.title" :title="item.title"
:min-width="item.width?item.width:200" :min-width="item.width?item.width:200"
:fixed="item.fixed?item.fixed:undefined" :fixed="item.fixed?item.fixed:undefined" sortable>
v-for="item in pageColumns"
:key="item.key" sortable>
<template slot-scope="scope"> <template slot-scope="scope">
<div v-if="item.dateTime"> <div v-if="item.dateTime">
{{scope.row[item.key]?$dateformat(scope.row[item.key],'yyyy-mm-dd HH:MM'):''}} {{scope.row[item.key]?$dateformat(scope.row[item.key],'yyyy-mm-dd HH:MM'):''}}
...@@ -75,9 +75,12 @@ export default { ...@@ -75,9 +75,12 @@ export default {
{ type: 'md-trash', id: '', name: '删除' } { type: 'md-trash', id: '', name: '删除' }
], ],
pageColumns: [ pageColumns: [
{ title: '附录名称', key: 'title' }, { title: '附录标题', key: 'title', width: 85 },
{ title: '填写人', key: 'uname' }, { title: '附录名称', key: 'name', width: 120 },
{ title: '创建时间', key: 'ctime', dateTime: true } { title: '附件类型', key: 'remark', width: 85 },
{ title: '样品编号', key: 'sampleCode', width: 90 },
{ title: '填写人', key: 'uname', width: 85 },
{ title: '创建时间', key: 'ctime', dateTime: true, width: 120 }
], ],
formObj: { formObj: {
entrustId: '' entrustId: ''
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment