|
@@ -316,16 +316,10 @@
|
|
style="width: 100%;"
|
|
style="width: 100%;"
|
|
>
|
|
>
|
|
<el-table-column type="index" width="40"></el-table-column>
|
|
<el-table-column type="index" width="40"></el-table-column>
|
|
- <el-table-column prop="name" label="姓名" width="400" sortable></el-table-column>
|
|
|
|
- <el-table-column prop="document" label="文档名称" sortable></el-table-column>
|
|
|
|
- <el-table-column label="操作" width="400" sortable>
|
|
|
|
- <template slot-scope="scope">
|
|
|
|
- <span v-if="scope.row.operation == 0">浏览</span>
|
|
|
|
- <span v-else-if="scope.row.operation == 1">下载</span>
|
|
|
|
- <span v-else>删除</span>
|
|
|
|
- </template>
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column prop="time" label="时间" width="400" sortable></el-table-column>
|
|
|
|
|
|
+ <el-table-column prop="operatorName" label="姓名" width="200" sortable></el-table-column>
|
|
|
|
+ <el-table-column prop="fileName" label="文档名称" sortable></el-table-column>
|
|
|
|
+ <el-table-column prop="content" label="操作" width="200" sortable></el-table-column>
|
|
|
|
+ <el-table-column prop="indate" label="时间" width="300" sortable></el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
</el-col>
|
|
</el-col>
|
|
|
|
|
|
@@ -382,15 +376,7 @@ export default {
|
|
update: [],
|
|
update: [],
|
|
abandon: []
|
|
abandon: []
|
|
},
|
|
},
|
|
- //临时数据
|
|
|
|
- operations: [
|
|
|
|
- {
|
|
|
|
- name: "王多银",
|
|
|
|
- document: "墨盒产品验证文档.word",
|
|
|
|
- operation: 0,
|
|
|
|
- time: "时间"
|
|
|
|
- }
|
|
|
|
- ],
|
|
|
|
|
|
+ operations: [],
|
|
allDetail: {
|
|
allDetail: {
|
|
overflow: "auto",
|
|
overflow: "auto",
|
|
padding: "0px 5px",
|
|
padding: "0px 5px",
|
|
@@ -400,6 +386,7 @@ export default {
|
|
centerDialog2Visible: false,
|
|
centerDialog2Visible: false,
|
|
listLoading: false,
|
|
listLoading: false,
|
|
activeTab: 0,
|
|
activeTab: 0,
|
|
|
|
+ activeTab2: 0,
|
|
activePage: 0,
|
|
activePage: 0,
|
|
activeArticleId: null,
|
|
activeArticleId: null,
|
|
activeFileName: null
|
|
activeFileName: null
|
|
@@ -415,6 +402,7 @@ export default {
|
|
//标签页面切换时
|
|
//标签页面切换时
|
|
handleClick(tab, event) {
|
|
handleClick(tab, event) {
|
|
this.activeTab = tab.name;
|
|
this.activeTab = tab.name;
|
|
|
|
+ this.getOperationRecord(this.activeTab);
|
|
},
|
|
},
|
|
//模具详情
|
|
//模具详情
|
|
getDetail() {
|
|
getDetail() {
|
|
@@ -456,6 +444,8 @@ export default {
|
|
this.documents.maintain = res.data[3].list;
|
|
this.documents.maintain = res.data[3].list;
|
|
this.documents.update = res.data[4].list;
|
|
this.documents.update = res.data[4].list;
|
|
this.documents.abandon = res.data[5].list;
|
|
this.documents.abandon = res.data[5].list;
|
|
|
|
+ //顺便再把下面操作记录读取一下
|
|
|
|
+ this.getOperationRecord(this.activeTab);
|
|
} else {
|
|
} else {
|
|
this.$message({
|
|
this.$message({
|
|
message: res.msg,
|
|
message: res.msg,
|
|
@@ -587,19 +577,17 @@ export default {
|
|
);
|
|
);
|
|
},
|
|
},
|
|
//获取操作记录
|
|
//获取操作记录
|
|
- getOperationRecord() {
|
|
|
|
|
|
+ getOperationRecord(type) {
|
|
this.http.post(
|
|
this.http.post(
|
|
this.port.mold.moldOperationList,
|
|
this.port.mold.moldOperationList,
|
|
{
|
|
{
|
|
- mould_id: this.detailId,
|
|
|
|
- belong_type: 0
|
|
|
|
|
|
+ mouldId: this.detailId,
|
|
|
|
+ belongType: type
|
|
},
|
|
},
|
|
res => {
|
|
res => {
|
|
if (res.code == "ok") {
|
|
if (res.code == "ok") {
|
|
- this.$message({
|
|
|
|
- message: "获取操作记录成功",
|
|
|
|
- type: "success"
|
|
|
|
- });
|
|
|
|
|
|
+ this.operations = res.data;
|
|
|
|
+ console.log(this.operations);
|
|
} else {
|
|
} else {
|
|
this.$message({
|
|
this.$message({
|
|
message: res.msg,
|
|
message: res.msg,
|
|
@@ -627,7 +615,6 @@ export default {
|
|
mounted() {
|
|
mounted() {
|
|
this.getDetail();
|
|
this.getDetail();
|
|
this.getDocument();
|
|
this.getDocument();
|
|
- this.getOperationRecord()
|
|
|
|
}
|
|
}
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|