diff --git a/src/api/qualityManagement/inspectionArchiving/rbFilePreserve.js b/src/api/qualityManagement/inspectionArchiving/rbFilePreserve.js
index ccb8173c..cc21c7fa 100644
--- a/src/api/qualityManagement/inspectionArchiving/rbFilePreserve.js
+++ b/src/api/qualityManagement/inspectionArchiving/rbFilePreserve.js
@@ -110,11 +110,11 @@ export const updateStatus = (data) =>{
}
// 发布接口
-export const release = (data) =>{
+export const release = (params) =>{
return request({
url:'/api/blade-desk/QA/ProReTemplate/publish',
method:'post',
- data
+ params
})
}
diff --git a/src/views/qualityManagement/inspectionArchiving/rbFilePreserve/index.vue b/src/views/qualityManagement/inspectionArchiving/rbFilePreserve/index.vue
index d8be21bf..7e8061cd 100644
--- a/src/views/qualityManagement/inspectionArchiving/rbFilePreserve/index.vue
+++ b/src/views/qualityManagement/inspectionArchiving/rbFilePreserve/index.vue
@@ -45,7 +45,7 @@
发布
- 审核
新建
待审核
- 审核中
- 使用中
- 废弃
- 审核不通过
+ 审核中
+ 使用中
+ 废弃
+ 审核不通过
-
-
-
-
-
-
+
@@ -142,7 +136,9 @@ import {
deleteRecords,
copyData,
updateStatus,
- release
+ release,
+ audit,
+ auditHistory
} from '@/api/qualityManagement/inspectionArchiving/rbFilePreserve';
import { mapGetters } from 'vuex';
import detailRb from './detailRb2.vue';
@@ -151,6 +147,7 @@ import approvalStandard from '@/views/oem/components/approval/index.vue';
import editTable from './editTable.vue';
import basicImport from '@/components/basic-import/main.vue';
import addPreserve from './addPreserve.vue';
+import checkLine from "./checkLine.vue"
export default {
components: {
detailRb,
@@ -159,6 +156,7 @@ export default {
editTable,
basicImport,
addPreserve,
+ checkLine
},
data() {
return {
@@ -170,10 +168,6 @@ export default {
currentPage: 1,
total: 0,
},
- historyData:[
- {id:2,name:'张三',time:'2021-01-01',result:'审核通过'},
- {id:1,name:'李四',time:'2021-01-01',result:'审核通过'},
- ],
form: {},
query: {},
loading: true,
@@ -185,6 +179,7 @@ export default {
remark:[{ required: false, message: '请填写审核意见', trigger: 'blur' }]
},
checkHistory:false,
+ historyData:[],
option: {
tip: false,
height: 'auto',
@@ -463,6 +458,25 @@ export default {
.catch(() => {});
},
+ // 发布
+ releaseData(row){
+ this.$confirm('确定发布此模板?', '提示', {
+ confirmButtonText: '确定',
+ cancelButtonText: '取消',
+ type: 'warning',
+ }).then(() => {
+ release({
+ id: row.id,
+ }).then((res) => {
+ this.$message({
+ message: '发布成功',
+ type: 'success',
+ });
+ this.onLoad(this.page, this.query);
+ });
+ })
+ },
+
auditData(row){
this.checkId = row.id
this.auditForm = {
@@ -487,12 +501,25 @@ export default {
...this.auditForm,
id:this.checkId
}
+ audit(params).then(res =>{
+ if(res.data.code == 200){
+ this.$message.success('审核成功')
+ this.onLoad()
+ this.approveDialog = false
+ }
+ })
}
})
},
hadleHistory(row){
- this.checkHistory = true
+ auditHistory({
+ id:row.id
+ }).then(res =>{
+ console.log('res----------------',res)
+ this.historyData = res.data.data
+ this.checkHistory = true
+ })
},
// 点击导入按钮