Commit 3cb866af authored by 盖献康's avatar 盖献康

Merge branch 'develop' of ssh://gitlab.91isoft.com:10022/car-test/web into developer/gaixiankang

parents a9af5b25 a62a2100
import request from '@/utils/request' import request from '@/utils/request'
// 体系审查、车型审查检验内容列表
export function listInspection(data) { export function listInspection(data) {
return request({ return request({
url: '/review/standard/getInspectionContent', url: '/review/standard/getInspectionContent',
...@@ -7,3 +8,12 @@ export function listInspection(data) { ...@@ -7,3 +8,12 @@ export function listInspection(data) {
data: data data: data
}) })
} }
// 文档审查检验内容列表
export function listDocumentReview(data) {
return request({
url: '/review/standard/test/getInspectionContent',
method: 'post',
data: data
})
}
...@@ -117,13 +117,13 @@ export default { ...@@ -117,13 +117,13 @@ export default {
list-style-type: none; list-style-type: none;
margin-top: 5px; margin-top: 5px;
padding: 0; padding: 0;
width:100%;
li { li {
margin: 10px 0; margin: 10px 0;
cursor: pointer; cursor: pointer;
font-size: 14px; font-size: 14px;
color: rgb(102, 102, 102); color: rgb(102, 102, 102);
width: 90%; width: 100%;
.standard-item { .standard-item {
width: 100%; width: 100%;
overflow: hidden; //超出的文本隐藏 overflow: hidden; //超出的文本隐藏
......
...@@ -6,6 +6,18 @@ ...@@ -6,6 +6,18 @@
:wrapper-closable="false" :wrapper-closable="false"
@close="closeMaterial" @close="closeMaterial"
> >
<div
style="
color: rgb(26, 111, 215);
position: absolute;
top: 22px;
left: 90px;
cursor: pointer;
"
@click="refresh"
>
<i class="el-icon-refresh"></i>刷新
</div>
<div <div
v-for="(item, index) in materialList" v-for="(item, index) in materialList"
:key="index" :key="index"
...@@ -15,7 +27,7 @@ ...@@ -15,7 +27,7 @@
<div class="tips"></div> <div class="tips"></div>
<div> <div>
<span style="color: #1a6fd7"> <span style="color: #1a6fd7">
{{ item.createTime }} {{ isTodayOrYesterday(item.createTime) }}
</span> </span>
</div> </div>
</div> </div>
...@@ -67,6 +79,30 @@ export default { ...@@ -67,6 +79,30 @@ export default {
this.getMaterialList() this.getMaterialList()
}, },
methods: { methods: {
refresh() {
this.selectList = []
this.getMaterialList()
},
// 根据日期判断是今天还是昨天啊
isTodayOrYesterday(dateString) {
const inputDate = new Date(dateString)
const today = new Date()
const yesterday = new Date(today)
yesterday.setDate(today.getDate() - 1)
const inputDateStr = inputDate.toDateString()
const todayStr = today.toDateString()
const yesterdayStr = yesterday.toDateString()
if (inputDateStr === todayStr) {
return '今天'
} else if (inputDateStr === yesterdayStr) {
return '昨天'
} else {
return dateString
}
},
selectImage(a, b, path, id) { selectImage(a, b, path, id) {
if (this.selectList.length >= this.limit) { if (this.selectList.length >= this.limit) {
this.$message({ this.$message({
......
...@@ -327,18 +327,24 @@ ...@@ -327,18 +327,24 @@
label-width="100px" label-width="100px"
> >
<el-form-item label="商标:" prop="trademark"> <el-form-item label="商标:" prop="trademark">
<image-preview <div v-if="clickNameForm.trademark">
:src="clickNameForm.trademark" <image-preview
width="150px" :src="clickNameForm.trademark"
height="150px" width="150px"
></image-preview> height="150px"
></image-preview>
</div>
<div v-else>暂无数据</div>
</el-form-item> </el-form-item>
<el-form-item label="样品照片:" prop="samplePhotos"> <el-form-item label="样品照片:" prop="samplePhotos">
<image-preview <div v-if="clickNameForm.samplePhotos">
:src="clickNameForm.samplePhotos" <image-preview
width="150px" :src="clickNameForm.samplePhotos"
height="150px" width="150px"
></image-preview> height="150px"
></image-preview>
</div>
<div v-else>暂无数据</div>
</el-form-item> </el-form-item>
</el-form> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
...@@ -444,18 +450,18 @@ export default { ...@@ -444,18 +450,18 @@ export default {
data.forEach(item => { data.forEach(item => {
item.path = item.path.replace('http://49.232.167.247:22038', '') item.path = item.path.replace('http://49.232.167.247:22038', '')
}) })
} if (this.materialFlag === 'trademark') {
if (this.materialFlag === 'trademark') { this.editParamsForm.trademark = data[0].path
this.editParamsForm.trademark = data[0].path } else if (this.materialFlag === 'sample') {
} else { var arr = []
var arr = [] if (this.editParamsForm.samplePhotos) {
if (this.editParamsForm.samplePhotos) { arr = this.editParamsForm.samplePhotos.split(',')
arr = this.editParamsForm.samplePhotos.split(',') }
data.forEach(item => {
arr.push(item.path)
})
this.editParamsForm.samplePhotos = arr.join(',')
} }
data.forEach(item => {
arr.push(item.path)
})
this.editParamsForm.samplePhotos = arr.join(',')
} }
this.materialShow = false this.materialShow = false
}, },
...@@ -508,7 +514,6 @@ export default { ...@@ -508,7 +514,6 @@ export default {
console.log(this.editParamsForm) console.log(this.editParamsForm)
this.$refs['editForm'].validate(valid => { this.$refs['editForm'].validate(valid => {
if (valid) { if (valid) {
this.addLoading = true
if ( if (
this.editParamsForm.id === null || this.editParamsForm.id === null ||
this.editParamsForm.id === '' this.editParamsForm.id === ''
......
...@@ -8,9 +8,9 @@ ...@@ -8,9 +8,9 @@
:before-close="handleClose" :before-close="handleClose"
> >
<el-form ref="form" :model="model" :rules="rules"> <el-form ref="form" :model="model" :rules="rules">
<el-form-item label="标准分类" prop="status"> <el-form-item label="标准分类" prop="standardType">
<el-select <el-select
v-model="model.status" v-model="model.standardType"
style="width: 100%" style="width: 100%"
placeholder="请选择" placeholder="请选择"
clearable clearable
...@@ -23,39 +23,49 @@ ...@@ -23,39 +23,49 @@
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="标准号" prop="status"> <el-form-item label="标准号" prop="standardNo">
<el-input v-model="model.status" placeholder="请输入" clearable /> <el-input
v-model="model.standardNo"
disabled
placeholder="请输入"
clearable
/>
</el-form-item> </el-form-item>
<el-form-item label="标准名称" prop="status"> <el-form-item label="标准名称" prop="name">
<el-input v-model="model.status" placeholder="请输入" clearable /> <el-input
v-model="model.name"
disabled
placeholder="请输入"
clearable
/>
</el-form-item> </el-form-item>
<el-form-item label="标准状态" prop="status"> <el-form-item label="标准状态" prop="standardStatus">
<el-select <el-select
v-model="model.status" v-model="model.standardStatus"
style="width: 100%" style="width: 100%"
placeholder="请选择" placeholder="请选择"
clearable clearable
> >
<el-option <el-option
v-for="dict in dict.type.sys_detailed_classification" v-for="dict in dict.type.sys_standard_status"
:key="dict.value" :key="dict.value"
:label="dict.label" :label="dict.label"
:value="dict.value" :value="dict.value"
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="发布日期" prop="status"> <el-form-item label="发布日期" prop="releaseDate">
<el-date-picker <el-date-picker
v-model="model.status" v-model="model.releaseDate"
style="width: 100%" style="width: 100%"
type="date" type="date"
placeholder="选择日期" placeholder="选择日期"
> >
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
<el-form-item label="实施日期" prop="status"> <el-form-item label="实施日期" prop="implementationDate">
<el-date-picker <el-date-picker
v-model="model.status" v-model="model.implementationDate"
style="width: 100%" style="width: 100%"
type="date" type="date"
placeholder="选择日期" placeholder="选择日期"
...@@ -77,43 +87,101 @@ export default { ...@@ -77,43 +87,101 @@ export default {
default() { default() {
return { return {
dialogVisible: false, dialogVisible: false,
source: {} dialogEditId: null
} }
} }
} }
}, },
dicts: ['sys_detailed_classification'], dicts: ['sys_detailed_classification', 'sys_standard_status'],
data() { data() {
return { return {
model: {}, model: this.$modelDataSource({
url: '/standard/getInfo',
dataKey: 'model',
attributes: {
standardType: '',
standardNo: '',
name: '',
standardStatus: '',
releaseDate: '',
implementationDate: ''
}
}),
rules: { rules: {
status: [ standardType: [
{ required: true, message: '菜单名称不能为空', trigger: 'blur' } { required: true, message: '菜单名称不能为空', trigger: 'blur' }
], ],
orderNum: [ standardNo: [
{ required: true, message: '菜单顺序不能为空', trigger: 'blur' } { required: true, message: '菜单顺序不能为空', trigger: 'blur' }
], ],
path: [{ required: true, message: '路由地址不能为空', trigger: 'blur' }] name: [
{ required: true, message: '路由地址不能为空', trigger: 'blur' }
],
standardStatus: [
{ required: true, message: '路由地址不能为空', trigger: 'blur' }
],
releaseDate: [
{ required: true, message: '路由地址不能为空', trigger: 'blur' }
],
implementationDate: [
{ required: true, message: '路由地址不能为空', trigger: 'blur' }
]
} }
} }
}, },
computed: { computed: {
modelTitle() { modelTitle() {
return this.dialogManger.source.id ? '编辑标准' : '新增标准' return this.dialogManger.dialogEditId ? '编辑标准' : '新增标准'
}
},
watch: {
'dialogManger.dialogEditId'(newValue) {
this.model.fetch(
newValue,
{},
() => {
this.dialogManger.dialogVisible = true
},
() => {
this.$emit('refresh')
}
)
} }
}, },
methods: { methods: {
handleClose() { handleClose() {
this.$emit('close') this.model.reset()
this.dialogManger.dialogEditId = null
this.dialogManger.dialogVisible = false
// this.$emit('close')
}, },
handleConfirm() { handleConfirm() {
// console.log('dialogManger', this.dialogManger)
// this.$refs['form'].validate(valid => {
// if (valid) {
// console.log(valid)
// console.log('体系审查')
// }
// })
this.$refs['form'].validate(valid => { this.$refs['form'].validate(valid => {
if (valid) { if (valid) {
console.log(valid) console.log('表单验证通过')
console.log('体系审查') this.model.save(
() => {
this.$message.success('保存成功')
this.$emit('refresh')
this.handleClose()
},
errors => {
this.handleClose()
}
)
} else {
console.log('表单验证失败')
} }
}) })
} }
} }
} }
</script> </script>
<style scoped></style>
...@@ -17,52 +17,59 @@ ...@@ -17,52 +17,59 @@
<el-table-column <el-table-column
label="标准分类" label="标准分类"
min-width="200" min-width="200"
prop="category" prop="standardType"
align="left" align="left"
> >
<!-- <template slot-scope="scope">-->
<!-- <div v-for="dict in classFicationList" :key="dict.dictValue">-->
<!-- <div-->
<!-- v-if="dict.dictValue == scope.row.standardType"-->
<!-- style="display: flex"-->
<!-- >-->
<!-- {{ dict.dictLabel }}-->
<!-- </div>-->
<!-- </div>-->
<!-- </template>-->
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="section" prop="standardNo"
label="标准号" label="标准号"
min-width="200" min-width="200"
align="left" align="left"
> >
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="request" prop="name"
label="标准名称" label="标准名称"
min-width="200" min-width="200"
align="left" align="left"
> />
<template slot-scope="scope">
<span class="font-color" @click="viewTemplate">{{
scope.row.request
}}</span>
</template>
</el-table-column>
<!-- <el-table-column-->
<!-- prop="resultYes"-->
<!-- label="标准文件"-->
<!-- min-width="200"-->
<!-- align="left"-->
<!-- >-->
<!-- </el-table-column>-->
<el-table-column <el-table-column
prop="resultNO" prop="standardStatus"
label="标准状态" label="标准状态"
min-width="200" min-width="200"
align="left" align="left"
> >
<template slot-scope="scope">
<div v-for="dict in standardFicationList" :key="dict.dictValue">
<div
v-if="dict.dictValue == scope.row.standardStatus"
style="display: flex"
>
{{ dict.dictLabel }}
</div>
</div>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
label="发布日期" label="发布日期"
min-width="200" min-width="200"
align="left" align="left"
sortable sortable
prop="createTime" prop="releaseDate"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ parseTime(scope.row.createTime) }}</span> <span>{{ parseTime(scope.row.releaseDate) }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
...@@ -70,10 +77,10 @@ ...@@ -70,10 +77,10 @@
min-width="200" min-width="200"
align="left" align="left"
sortable sortable
prop="createTime" prop="implementationDate"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ parseTime(scope.row.createTime) }}</span> <span>{{ parseTime(scope.row.implementationDate) }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
...@@ -90,7 +97,7 @@ ...@@ -90,7 +97,7 @@
size="mini" size="mini"
type="text" type="text"
icon="el-icon-edit" icon="el-icon-edit"
@click="handleUpdate(1, scope.row)" @click="handleUpdate(scope.row)"
>修改</el-button >修改</el-button
> >
</template> </template>
...@@ -99,12 +106,13 @@ ...@@ -99,12 +106,13 @@
<pagination <pagination
v-show="total > 0" v-show="total > 0"
:total="total" :total="total"
:page.sync="queryParams.page" :page.sync="queryParams.pageNum"
:limit.sync="queryParams.size" :limit.sync="queryParams.pageSize"
@pagination="loadData" @pagination="loadData"
> >
</pagination> </pagination>
<tixi-dialog <tixi-dialog
ref="TixiDialog"
:dialog-manger="TixiDialogManger" :dialog-manger="TixiDialogManger"
@close="TixiDialogManger.dialogVisible = false" @close="TixiDialogManger.dialogVisible = false"
></tixi-dialog> ></tixi-dialog>
...@@ -123,16 +131,17 @@ export default { ...@@ -123,16 +131,17 @@ export default {
dicts: ['sys_detailed_classification'], dicts: ['sys_detailed_classification'],
data() { data() {
return { return {
listUrl: '/standard-list', listUrl: '/standard/findStandardList',
showSearch: true, showSearch: true,
list: [], list: [],
tableData: [], tableData: [],
queryParams: { type: '1' },
TixiDialogManger: { TixiDialogManger: {
dialogVisible: false, dialogVisible: false,
refreshList: false, refreshList: false,
source: {} dialogEditId: null
} },
classFicationList: [],
standardFicationList: []
} }
}, },
...@@ -144,6 +153,14 @@ export default { ...@@ -144,6 +153,14 @@ export default {
} }
} }
}, },
mounted() {
this.getDicts('sys_detailed_classification').then(response => {
this.classFicationList = response.data
})
this.getDicts('sys_standard_status').then(response => {
this.standardFicationList = response.data
})
},
methods: { methods: {
viewTemplate() { viewTemplate() {
// this.$router.push({ // this.$router.push({
...@@ -154,36 +171,7 @@ export default { ...@@ -154,36 +171,7 @@ export default {
) )
}, },
objectSpanMethod() {}, objectSpanMethod() {},
loadData() { handleAdd() {
this.loading = true
console.log(this.queryParams)
request({
url: this.listUrl,
method: 'get',
params: this.queryParams
})
.then(res => {
if (res.code === 200) {
console.log(res.rows)
this.list = res.rows
if (this.queryParams.type === '2') {
this.tableData = geSpanList(res.rows, ['way', 'object', 'scene'])
} else {
this.tableData = res.rows
}
this.total = res.total
}
this.loading = false
})
.catch(error => {
if (error.msg) {
this.$message.error(error.msg)
}
this.loading = false
})
},
handleAdd(type) {
this.TixiDialogManger.dialogVisible = true this.TixiDialogManger.dialogVisible = true
this.TixiDialogManger.source = {} this.TixiDialogManger.source = {}
}, },
...@@ -199,9 +187,10 @@ export default { ...@@ -199,9 +187,10 @@ export default {
}) })
.catch(() => {}) .catch(() => {})
}, },
handleUpdate(type, row) { handleUpdate(row) {
console.log('row', row)
this.TixiDialogManger.dialogVisible = true this.TixiDialogManger.dialogVisible = true
this.TixiDialogManger.source = row this.TixiDialogManger.dialogEditId = row.id
} }
} }
} }
......
<template>
<el-drawer
title="检验内容"
:visible.sync="dialogManger.dialogVisible"
direction="rtl"
size="40%"
:before-close="handleClose"
>
<el-table
class="el-table"
v-loading="loading"
style="min-height: 88px; margin: 20px"
border
:scroll-x="'1500px'"
:default-sort="{ prop: 'createTime', order: 'descending' }"
:data="tableData"
>
<el-table-column type="index" width="55" label="序号" align="center">
<template slot-scope="scope">
<span>{{ scope.$index + 1 }}</span>
</template>
</el-table-column>
<el-table-column
label="测试场景"
align="left"
sortable
prop="testScenario"
>
</el-table-column>
<el-table-column
label="测试类型"
align="left"
sortable
prop="testType"
>
</el-table-column>
<el-table-column
label="用例编号"
align="left"
sortable
prop="useCaseNumber"
>
</el-table-column>
<el-table-column
label="用例名称"
align="left"
sortable
prop="useCaseName"
>
</el-table-column>
</el-table>
</el-drawer>
</template>
<script>
import { listDocumentReview } from '../../../../api/setting/standardTerms'
import { getRows, getRows2 } from '../../../../utils/reviewDetailsTable'
export default {
props: {
dialogManger: {
type: Object,
default: () => {
return {
dialogVisible: false,
refreshList: false,
source: {},
dialogEditId: undefined
}
}
}
},
data() {
return {
loading: true,
tableData: []
}
},
methods: {
getRows,
getRows2,
/** 获取文档审查检验内容 */
init() {
this.loading = true
listDocumentReview({ id: this.dialogManger.dialogEditId }).then(res => {
this.tableData = res.data
this.loading = false
})
},
/** 关闭抽屉 */
handleClose() {
this.dialogManger.dialogVisible = false
}
}
}
</script>
<style scoped>
.el-table {
width: auto;
}
</style>
...@@ -3,46 +3,48 @@ ...@@ -3,46 +3,48 @@
title="检验内容" title="检验内容"
:visible.sync="dialogManger.dialogVisible" :visible.sync="dialogManger.dialogVisible"
direction="rtl" direction="rtl"
size="50%" size="40%"
:before-close="handleClose"
> >
<el-table <table class="table" style="margin: 20px">
v-loading="loading" <thead>
border <tr>
:default-sort="{ prop: 'createTime', order: 'descending' }" <th>标准章节</th>
:data="tableData" <th>标准要求</th>
> <th>关联场景</th>
<el-table-column type="index" width="55" label="序号" align="center"> </tr>
<template slot-scope="scope"> </thead>
<span>{{ scope.$index + 1 }}</span> <tbody>
<!-- 循环遍历 keyPointList -->
<template v-for="(i, PointIndex) in tableData.keyPointList">
<tr :key="'PointIndex-2' + PointIndex">
<td align="center" :rowspan="getRows(i)">
{{ i.text }}
</td>
</tr>
<!-- 循环遍历 reviewDetailsList -->
<template v-for="(v, reviewDetailIndex) in i.reviewDetailsList">
<tr :key="'reviewDetailIndex-3' + PointIndex + reviewDetailIndex">
<td align="center">
{{ v.text }}
</td>
<td align="center">
<template v-for="(a, reviewSceneIndex) in v.reviewSceneList">
<span>{{ a.text }}</span>
<br />
</template>
</td>
</tr>
</template>
</template> </template>
</el-table-column> </tbody>
<el-table-column </table>
prop="text"
label="审查要点"
min-width="200"
align="center"
>
</el-table-column>
<el-table-column
prop="as"
label="审查细则"
min-width="200"
align="center"
>
</el-table-column>
<el-table-column
prop="test"
label="关联场景"
min-width="200"
align="center"
>
</el-table-column>
</el-table>
</el-drawer> </el-drawer>
</template> </template>
<script> <script>
import { listInspection } from '../../../../api/setting/standardTerms' import { listInspection } from '../../../../api/setting/standardTerms'
import { getRows, getRows2 } from '../../../../utils/reviewDetailsTable'
export default { export default {
props: { props: {
...@@ -64,26 +66,27 @@ export default { ...@@ -64,26 +66,27 @@ export default {
tableData: [] tableData: []
} }
}, },
// computed: {
// modelTitle: function () {
// return '检验内容'
// }
// },
methods: { methods: {
getRows,
getRows2,
/** 获取体系审查、车型审查检验内容 */
init() { init() {
this.loading = true this.loading = true
listInspection({ id: this.dialogManger.dialogEditId }).then(res => { listInspection({ id: this.dialogManger.dialogEditId }).then(res => {
this.tableData = res.data.keyPointList this.tableData = res.data
this.loading = false this.loading = false
console.log('res', res)
}) })
// alert() },
/** 关闭抽屉 */
handleClose() {
this.dialogManger.dialogVisible = false
} }
// handleClose() {
// this.dialogManger.dialogVisible = false
// }
} }
} }
</script> </script>
<style scoped></style> <style scoped>
.table {
width: auto;
}
</style>
...@@ -98,7 +98,7 @@ ...@@ -98,7 +98,7 @@
plain plain
size="mini" size="mini"
type="text" type="text"
@click="handleUpdate(3, scope.row)" @click="handleUpdate(scope.row)"
>检验内容</el-button >检验内容</el-button
> >
</template> </template>
...@@ -118,15 +118,24 @@ ...@@ -118,15 +118,24 @@
@close="vehicleModelDialogManger.dialogVisible = false" @close="vehicleModelDialogManger.dialogVisible = false"
> >
</vehiclemodel-dialog> </vehiclemodel-dialog>
<document-review-dialog
ref="documentReviewDialog"
:dialog-manger="documentReviewDialogManger"
@close="documentReviewDialogManger.dialogVisible = false"
>
</document-review-dialog>
</page-standard-option> </page-standard-option>
</template> </template>
<script> <script>
import page from '@/mixins/page' import page from '@/mixins/page'
import { mapGetters } from 'vuex' import { mapGetters } from 'vuex'
import vehicleModelDialog from './components/vehicleModelDialog' import vehicleModelDialog from './components/vehicleModelDialog'
import documentReviewDialog from './components/documentReviewDialog'
import request from '../../../utils/request'
export default { export default {
components: { components: {
'vehiclemodel-dialog': vehicleModelDialog 'vehiclemodel-dialog': vehicleModelDialog,
'document-review-dialog': documentReviewDialog
}, },
dicts: ['sys_scene_type'], dicts: ['sys_scene_type'],
mixins: [page], mixins: [page],
...@@ -161,10 +170,17 @@ export default { ...@@ -161,10 +170,17 @@ export default {
source: {}, source: {},
dialogEditId: '' dialogEditId: ''
}, },
documentReviewDialogManger: {
dialogVisible: false,
refreshList: false,
source: {},
dialogEditId: ''
},
refreshList: false refreshList: false
} }
}, },
watch: { watch: {
// 公共组件左侧标准全局变量选中
'$store.getters.standard': { '$store.getters.standard': {
handler(newVal, oldVal) { handler(newVal, oldVal) {
this.queryParams.standardId = newVal this.queryParams.standardId = newVal
...@@ -185,14 +201,47 @@ export default { ...@@ -185,14 +201,47 @@ export default {
} }
}, },
methods: { methods: {
loadData() {
if (this.queryParams.standardId !== '') {
this.loading = true
request({
url: this.listUrl,
method: 'post',
data: this.queryParams
})
.then(res => {
if (res.code === 200) {
console.log(res.rows)
// res.rows[0].carReviewStatus = 'FINISH'
res.rows[0].reviewStatus = 'SIGNED'
// res.rows[0].carReviewStatus = 'FINISH'
this.tableData = res.rows
this.total = res.total
}
this.loading = false
})
.catch(error => {
if (error.msg) {
this.$message.error(error.msg)
}
this.loading = false
})
}
},
reset() { reset() {
this.queryParams.chapter = '' this.queryParams.chapter = ''
this.queryParams.text = '' this.queryParams.text = ''
}, },
handleUpdate(id, row) { handleUpdate(row) {
this.vehicleModelDialogManger.dialogVisible = true if (this.queryParams.type === 'test') {
this.vehicleModelDialogManger.dialogEditId = row.id this.documentReviewDialogManger.dialogVisible = true
this.$refs.vehicleModelDialog.init() this.documentReviewDialogManger.dialogEditId = row.id
this.$refs.documentReviewDialog.init()
} else {
this.vehicleModelDialogManger.dialogVisible = true
this.vehicleModelDialogManger.dialogEditId = row.id
this.$refs.vehicleModelDialog.init()
}
// console.log('dialogEditId', this.vehicleModelDialogManger.dialogEditId) // console.log('dialogEditId', this.vehicleModelDialogManger.dialogEditId)
} }
} }
......
...@@ -128,7 +128,7 @@ export default { ...@@ -128,7 +128,7 @@ export default {
dicts: ['sys_detailed_classification'], dicts: ['sys_detailed_classification'],
data() { data() {
return { return {
classFicationList: undefined, classFicationList: [],
listUrl: '/system/type/getList', listUrl: '/system/type/getList',
showSearch: true, showSearch: true,
tableData: [], tableData: [],
......
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