Commit b7330153 authored by mzx's avatar mzx

Merge branch 'mengzixuan' of http://gitlab.91isoft.com:90/car-test/web into develop

parents 6ba8525c 3b387ae7
<!-- 查看标准库 -->
<template>
<page-standard>
<el-table
v-loading="loading"
style="width: 100%; min-height: 88px"
border
:span-method="objectSpanMethod"
: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="标准分类"
min-width="200"
prop="standardType"
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
prop="standardNo"
label="标准号"
min-width="200"
align="left"
>
</el-table-column>
<el-table-column
prop="name"
label="标准名称"
min-width="200"
align="left"
>
<template slot-scope="scope">
<div class="font-color" @click="downPdf(scope.row)">
{{ scope.row.name }}
</div>
</template>
</el-table-column>
<el-table-column
prop="standardStatus"
label="标准状态"
min-width="200"
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
label="发布日期"
min-width="200"
align="left"
sortable
prop="releaseDate"
>
<template slot-scope="scope">
<span>{{ parseTime(scope.row.releaseDate) }}</span>
</template>
</el-table-column>
<el-table-column
label="实施日期"
min-width="200"
align="left"
sortable
prop="implementationDate"
>
<template slot-scope="scope">
<span>{{ parseTime(scope.row.implementationDate) }}</span>
</template>
</el-table-column>
<el-table-column
label="操作"
align="left"
min-width="160"
fixed="right"
class-name="fixed-width"
>
<template slot-scope="scope">
<div class="button-bar">
<page-button
v-hasPermi="['setting:standard:update']"
icon="edit"
title="修改"
@click.native="handleUpdate(scope.row)"
></page-button>
</div>
</template>
</el-table-column>
</el-table>
<pagination
v-show="total > 0"
:total="total"
:background="false"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="loadData"
>
</pagination>
<tixi-dialog
ref="TixiDialog"
:dialog-manger="TixiDialogManger"
@close="TixiDialogManger.dialogVisible = false"
@refresh="TixiDialogManger.refreshList = true"
></tixi-dialog>
</page-standard>
</template>
<script>
import page from '@/mixins/page'
import request from '@/utils/request'
import { geSpanList } from '@/utils/table'
export default {
mixins: [page],
dicts: ['sys_detailed_classification'],
data() {
return {
listUrl: '/standard/findStandardList',
showSearch: true,
list: [],
tableData: [],
TixiDialogManger: {
dialogVisible: false,
refreshList: false,
dialogEditId: null
},
classFicationList: [],
standardFicationList: []
}
},
watch: {
'TixiDialogManger.refreshList'(val) {
if (val) {
this.loadData()
this.TixiDialogManger.refreshList = false
}
}
},
mounted() {
this.getDicts('sys_detailed_classification').then(response => {
this.classFicationList = response.data
})
this.getDicts('sys_standard_status').then(response => {
this.standardFicationList = response.data
})
},
methods: {
downPdf(row) {
console.log('row', row)
window.open(process.env.VUE_APP_IMAGE_API + row.file)
},
viewTemplate() {
// this.$router.push({
// path: '/processing/reviewReport'
// })
window.open(
'http://storage.xuetangx.com/public_assets/xuetangx/PDF/PlayerAPI_v1.0.6.pdf'
)
},
objectSpanMethod() {},
handleAdd() {
this.TixiDialogManger.dialogVisible = true
this.TixiDialogManger.source = {}
},
handleDelete(row) {
this.$modal
.confirm('是否确定删除该条数据?', '操作确认')
.then(() => {
// return delNotice(noticeIds)
})
.then(() => {
this.loadData()
this.$modal.msgSuccess('删除成功')
})
.catch(() => {})
},
handleUpdate(row) {
console.log('row', row)
this.TixiDialogManger.dialogVisible = true
this.TixiDialogManger.dialogEditId = row.id
}
}
}
</script>
<style scoped>
.font-color {
text-decoration: underline;
color: #1a6fd7;
cursor: pointer;
}
</style>
<!-- 查看检验内容 -->
<template>
<page-standard> </page-standard>
</template>
<script>
export default {
name: 'Index'
}
</script>
<style scoped></style>
<!-- 查看模板库 -->
<template>
<page-standard> </page-standard>
</template>
<script>
export default {
name: 'Index'
}
</script>
<style scoped></style>
<!-- 查看矩阵 -->
<template>
<page-standard> </page-standard>
</template>
<script>
export default {
name: 'Index'
}
</script>
<style scoped></style>
<!-- 查看测试用例库 -->
<template>
<page-standard> </page-standard>
</template>
<script>
export default {
name: 'Index'
}
</script>
<style scoped></style>
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