Commit 1a83f8d5 by lichengming

修改了试样管理

parent 11617162
......@@ -11,7 +11,7 @@
<!-- </el-tab-pane>-->
<!-- </el-tabs>-->
<el-tabs v-model="activeName" @tab-click="_changeTabs">
<el-tab-pane label="数据审核" name="check"></el-tab-pane>
<el-tab-pane label="报告编制" name="check"></el-tab-pane>
<el-tab-pane label="历史任务" name="checkHis"></el-tab-pane>
</el-tabs>
<keep-alive>
......
......@@ -286,10 +286,10 @@ export default {
this.$nextTick(function() {
switch (res) {
case '管理样品和报告':
this.$refs.refModal._open(data.id)
this._sampleManage(data.id)
break
case '查看原始记录':
this.$refs.refModal._open(data.id)
this._viewRecord(data.id)
break
case '上传报告':
this._uploadReport(data.id)
......@@ -312,6 +312,18 @@ export default {
}
})
},
_viewRecord(id) {
this.currentComponent = 'OriginalRecordView'
this.$nextTick(() => {
this.$refs.refModal._open(id)
})
},
_sampleManage(id) {
this.currentComponent = 'SampleByMakeModal'
this.$nextTick(() => {
this.$refs.refModal._open(id)
})
},
_uploadReport(id) {
this.currentComponent = 'UploadByReport'
this.$nextTick(() => {
......@@ -358,7 +370,7 @@ export default {
}
break
case 'iconClick':
this._iconClick(data.name, data.rowData, data.componentName)
this._iconClick(data.name, data.rowData, data.currentComponent)
break
case 'changeSize':
this._page()
......
......@@ -43,12 +43,15 @@
<!-- </el-input>-->
<Input :value="scope.row.describeDetail" @change.native="_inputChange($event.target.value,scope.row)"></Input>
</div>
<div v-else-if="item.key==='remark'" @click.stop="_handleRow(scope)">
<div v-if="item.key==='remark'" @click.stop="_handleRow(scope)">
<el-input v-model="scope.row.remark" @change="_remarkChange(scope.row)"></el-input>
</div>
</template>
<template slot-scope="scope">
<div v-if>
<div v-if="item.status">
{{ scope.row[item.key].display }}
</div>
<div v-else>
{{ scope.row[item.key] }}
</div>
</template>
......
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