Commit 1a83f8d5 by lichengming

修改了试样管理

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