Commit 1a81fe50 by lichengming

录入历史管理项目添加查看指标按钮

parent fc4ffa69
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
</Col> </Col>
<!-- 表格 --> <!-- 表格 -->
<Col span="24"> <Col span="24">
<PTVXETable ref="pageTable" :table-height="tableHeight" :form-id="formId" :loading="true" <PTVXETable ref="pageTable" :table-height="tableHeight" :icon-msg="iconMsg" :form-id="formId" :loading="true"
:get-page="getPage" @on-result-change="_tableResultChange"> :get-page="getPage" @on-result-change="_tableResultChange">
<vxe-table-column <vxe-table-column
v-for="item in pageColumns" v-for="item in pageColumns"
...@@ -105,13 +105,15 @@ ...@@ -105,13 +105,15 @@
<modal-footer ref="footerModal" :footer="footerList" @on-result-change="_footerResult" /> <modal-footer ref="footerModal" :footer="footerList" @on-result-change="_footerResult" />
</div> </div>
</Modal> </Modal>
<IndexManage ref="indexModal" @on-result-change="_page"></IndexManage>
</div> </div>
</template> </template>
<script> <script>
import http from '../../../api/http' import http from '../../../api/http'
import { soilEntrust } from '../../../api' import { soilEntrust } from '../../../api'
import IndexManage from './IndexManage'
export default { export default {
components: {}, components: { IndexManage },
data() { data() {
return { return {
formId: 'SoilSampleItemManage', formId: 'SoilSampleItemManage',
...@@ -120,7 +122,7 @@ export default { ...@@ -120,7 +122,7 @@ export default {
// { type: 'success', id: '', name: '提交分包' }, // { type: 'success', id: '', name: '提交分包' },
{ type: 'success', id: 'ZBC', name: '取消分包' } { type: 'success', id: 'ZBC', name: '取消分包' }
], ],
iconMsg: [{ type: 'pt-a-end', id: '', name: '删除' }], iconMsg: [{ type: 'md-apps', id: '', name: '查看指标' }],
sampleId: '', // 样品id sampleId: '', // 样品id
showModal: false, showModal: false,
modalTitle: '管理检测项目', modalTitle: '管理检测项目',
...@@ -377,25 +379,15 @@ export default { ...@@ -377,25 +379,15 @@ export default {
this.currentComponent = componentName this.currentComponent = componentName
this.$nextTick(function() { this.$nextTick(function() {
switch (res) { switch (res) {
case '编辑': case '查看指标':
this._editModal(true, data) this._indexManage(data)
break
case '复制':
this._copy(data)
break
case '删除':
console.log(index)
this._deleteById(data.id)
break
case '导出样品委托协议':
this._exportAgreement(data.id)
break
case '附件':
this.$refs.refModal._open(data.id, 'sampleId')
break break
} }
}) })
}, },
_indexManage(data) {
this.$refs.indexModal._open(data)
},
_tableResultChange(msg, data) { _tableResultChange(msg, data) {
const selectIds = [] const selectIds = []
switch (msg) { switch (msg) {
...@@ -406,9 +398,9 @@ export default { ...@@ -406,9 +398,9 @@ export default {
this.selectIds = selectIds this.selectIds = selectIds
this.selectData = data this.selectData = data
break break
// case 'iconClick': case 'iconClick':
// this._iconClick(data.name, data.rowData, data.componentName) this._iconClick(data.name, data.rowData, data.componentName)
// break break
case 'page': case 'page':
this._page() this._page()
break break
......
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