Commit 4ddc94eb by 胡悦

first v0.0.1

1 parent 32f94c6f
......@@ -8,6 +8,9 @@
// 动画
@import '~@/assets/style/animate/vue-transition.scss';
// 重置样式
// @import '~@/assets/style/reset.scss';
// 在这里写公用的class
// 注意 这个文件里只写class
// mixin等内容请在 public.scss 里书写
......@@ -21,6 +24,7 @@
.#{$prefix}-fl {
float: left;
}
.#{$prefix}-fr {
float: right;
}
......@@ -29,29 +33,85 @@
$sizes: (0, 5, 10, 15, 20);
@for $index from 1 to 6 {
.#{$prefix}-m-#{nth($sizes, $index)} { margin: #{nth($sizes, $index)}px !important; }
.#{$prefix}-mt-#{nth($sizes, $index)} { margin-top: #{nth($sizes, $index)}px !important; }
.#{$prefix}-mr-#{nth($sizes, $index)} { margin-right: #{nth($sizes, $index)}px !important; }
.#{$prefix}-mb-#{nth($sizes, $index)} { margin-bottom: #{nth($sizes, $index)}px !important; }
.#{$prefix}-ml-#{nth($sizes, $index)} { margin-left: #{nth($sizes, $index)}px !important; }
.#{$prefix}-m-#{nth($sizes, $index)} {
margin: #{nth($sizes, $index)}px !important;
}
.#{$prefix}-mt-#{nth($sizes, $index)} {
margin-top: #{nth($sizes, $index)}px !important;
}
.#{$prefix}-mr-#{nth($sizes, $index)} {
margin-right: #{nth($sizes, $index)}px !important;
}
.#{$prefix}-mb-#{nth($sizes, $index)} {
margin-bottom: #{nth($sizes, $index)}px !important;
}
.#{$prefix}-ml-#{nth($sizes, $index)} {
margin-left: #{nth($sizes, $index)}px !important;
}
.#{$prefix}-p-#{nth($sizes, $index)} {
padding: #{nth($sizes, $index)}px !important;
}
.#{$prefix}-pt-#{nth($sizes, $index)} {
padding-top: #{nth($sizes, $index)}px !important;
}
.#{$prefix}-p-#{nth($sizes, $index)} { padding: #{nth($sizes, $index)}px !important; }
.#{$prefix}-pt-#{nth($sizes, $index)} { padding-top: #{nth($sizes, $index)}px !important; }
.#{$prefix}-pr-#{nth($sizes, $index)} { padding-right: #{nth($sizes, $index)}px !important; }
.#{$prefix}-pb-#{nth($sizes, $index)} { padding-bottom: #{nth($sizes, $index)}px !important; }
.#{$prefix}-pl-#{nth($sizes, $index)} { padding-left: #{nth($sizes, $index)}px !important; }
.#{$prefix}-pr-#{nth($sizes, $index)} {
padding-right: #{nth($sizes, $index)}px !important;
}
.#{$prefix}-pb-#{nth($sizes, $index)} {
padding-bottom: #{nth($sizes, $index)}px !important;
}
.#{$prefix}-pl-#{nth($sizes, $index)} {
padding-left: #{nth($sizes, $index)}px !important;
}
}
// 快速使用
.#{$prefix}-m { margin: 20px !important; }
.#{$prefix}-mt { margin-top: 20px !important; }
.#{$prefix}-mr { margin-right: 20px !important; }
.#{$prefix}-mb { margin-bottom: 20px !important; }
.#{$prefix}-ml { margin-left: 20px !important; }
.#{$prefix}-p { padding: 20px !important; }
.#{$prefix}-pt { padding-top: 20px !important; }
.#{$prefix}-pr { padding-right: 20px !important; }
.#{$prefix}-pb { padding-bottom: 20px !important; }
.#{$prefix}-pl { padding-left: 20px !important; }
.#{$prefix}-m {
margin: 20px !important;
}
.#{$prefix}-mt {
margin-top: 20px !important;
}
.#{$prefix}-mr {
margin-right: 20px !important;
}
.#{$prefix}-mb {
margin-bottom: 20px !important;
}
.#{$prefix}-ml {
margin-left: 20px !important;
}
.#{$prefix}-p {
padding: 20px !important;
}
.#{$prefix}-pt {
padding-top: 20px !important;
}
.#{$prefix}-pr {
padding-right: 20px !important;
}
.#{$prefix}-pb {
padding-bottom: 20px !important;
}
.#{$prefix}-pl {
padding-left: 20px !important;
}
td,
th {
padding: 0 !important;
}
.el-card__body {
padding: 5px;
}
.el-table .cell {
white-space: nowrap;
}
.el-input--small .el-input__inner {
height: 28px;
line-height: 28px;
}
.el-button--mini,
.el-button--mini.is-round {
padding: 6px 10px;
}
.el-pagination.is-background .btn-next,
.el-pagination.is-background .btn-prev,
.el-pagination.is-background .el-pager li {
min-width: 28px;
}
.el-pagination .el-select .el-input .el-input__inner {
height: 22px;
}
/* 框架的 样式 */
.d2-layout-header-aside-group .d2-layout-header-aside-content .d2-theme-header {
height: 36px !important;
}
.d2-layout-header-aside-group .d2-layout-header-aside-content .d2-theme-header .d2-header-right {
height: 36px !important;
}
.d2-layout-header-aside-group .d2-layout-header-aside-content .d2-theme-container .d2-theme-container-main .d2-theme-container-main-header .d2-multiple-page-control-group .d2-multiple-page-control-content .d2-multiple-page-control-content-inner .d2-multiple-page-control .el-tabs__nav .el-tabs__item {
height: 24px !important;
line-height: 24px !important;
}
.d2-layout-header-aside-group .d2-layout-header-aside-content .d2-theme-container .d2-theme-container-main .d2-theme-container-main-header .d2-multiple-page-control-group .d2-multiple-page-control-btn .el-button-group .el-button {
padding: 5px 15px !important;
}
.d2-layout-header-aside-group .d2-layout-header-aside-content .d2-theme-container .d2-theme-container-main .d2-theme-container-main-header {
height: 26px !important;
}
.el-tabs__item {
padding: 0 8px;
}
......@@ -8,8 +8,12 @@
<path d="M966.8023 256.17345 57.196677 256.17345c-31.397081 0-56.850799-25.452695-56.850799-56.849776l0 0c0-31.397081 25.452695-56.850799 56.850799-56.850799l909.605623 0c31.397081 0 56.849776 25.452695 56.849776 56.850799l0 0C1023.653099 230.720755 998.200404 256.17345 966.8023 256.17345z"
p-id="1694"></path>
</svg> -->
<div @click="click" class="hamburger" :class="{'is-active':isActive}">
<d2-el-icon name="s-fold" />
<div
@click="click"
class="hamburger"
:class="{'is-active':isActive}"
>
<d2-el-icon name="s-fold" />
</div>
</template>
......@@ -37,11 +41,13 @@ export default {
<style scoped lang="scss">
.hamburger {
height: 58px;
// height: 36px;
cursor: pointer;
transition: .38s;
transition: 0.38s;
transform-origin: 50% 50%;
i{
i {
line-height: 58px;
// line-height: 36px;
font-size: 28px;
}
}
......
<template>
<d2-container>
<el-card shadow="never" slot="header">
<el-form :inline="true" :model="formInline" class="demo-form-inline" size="small">
<el-card
shadow="never"
slot="header"
>
<el-form
:inline="true"
:model="formInline"
class="demo-form-inline"
size="small"
>
<el-form-item label="属性">
<el-select v-model="formInline.belong" placeholder="请选择">
<el-option value="" label="全部">全部</el-option>
<el-option value="FA" label="工厂">工厂</el-option>
<el-option value="WA" label="仓库">仓库</el-option>
<el-select
v-model="formInline.belong"
placeholder="请选择"
>
<el-option
value=""
label="全部"
>全部</el-option>
<el-option
value="FA"
label="工厂"
>工厂</el-option>
<el-option
value="WA"
label="仓库"
>仓库</el-option>
</el-select>
</el-form-item>
<el-form-item label="工厂/仓库名">
<el-input v-model="formInline.name" placeholder="请输入工厂/仓库名" clearable/>
<el-input
v-model="formInline.name"
placeholder="请输入工厂/仓库名"
clearable
/>
</el-form-item>
<el-form-item>
<el-button type="primary" icon="el-icon-search" :loading="tableLoading" @click="getList()">搜索</el-button>
<el-button
type="primary"
size="mini"
icon="el-icon-search"
:loading="tableLoading"
@click="getList()"
>搜索</el-button>
</el-form-item>
<el-form-item>
<el-button type="primary" icon="el-icon-plus" :loading="tableLoading" @click="editInfo()">新建</el-button>
<el-button
type="primary"
size="mini"
icon="el-icon-plus"
:loading="tableLoading"
@click="editInfo()"
>新建</el-button>
</el-form-item>
</el-form>
</el-card>
<!-- 表格区域 开始 -->
<div class="table_box">
<el-table v-loading="tableLoading" :data="tableData" stripe style="width: 100%" size="small" border>
<el-table-column type="index" :index="index => {return index+1}" label="序号" width="80" />
<el-table-column prop="name" label="工厂/仓库名称" :width="tdWidth" />
<el-table-column prop="belong" label="属性" :width="tdWidth">
<el-table
v-loading="tableLoading"
:data="tableData"
stripe
style="width: 100%"
size="small"
border
>
<el-table-column
type="index"
:index="index => {return index+1}"
label="序号"
width="80"
/>
<el-table-column
prop="name"
label="工厂/仓库名称"
:width="tdWidth"
/>
<el-table-column
prop="belong"
label="属性"
:width="tdWidth"
>
<template slot-scope="scope">{{ BELONGTYPE[scope.row.belong] }}</template>
</el-table-column>
<el-table-column prop="address" label="地址" :width="tdWidth" />
<el-table-column prop="mobile" label="电话" :width="tdWidth" />
<el-table-column prop="contacts" label="联系人" :width="tdWidth" />
<el-table-column prop="createdBy" label="创建人" :width="tdWidth" />
<el-table-column prop="createdDate" label="创建时间" :width="tdWidth">
<el-table-column
prop="address"
label="地址"
:width="tdWidth"
/>
<el-table-column
prop="mobile"
label="电话"
:width="tdWidth"
/>
<el-table-column
prop="contacts"
label="联系人"
:width="tdWidth"
/>
<el-table-column
prop="createdBy"
label="创建人"
:width="tdWidth"
/>
<el-table-column
prop="createdDate"
label="创建时间"
:width="tdWidth"
>
<template slot-scope="scope">{{ DATEFORMATE(scope.row.createdDate, 'YYYY-MM-DD HH:mm:ss') }}</template>
</el-table-column>
<el-table-column prop="updatedDate" label="更新时间" :width="tdWidth">
<el-table-column
prop="updatedDate"
label="更新时间"
:width="tdWidth"
>
<template slot-scope="scope">{{ DATEFORMATE(scope.row.updatedDate, 'YYYY-MM-DD HH:mm:ss') }}</template>
</el-table-column>
<el-table-column prop="操作" label="操作" :width="tdWidth" fixed="right">
<el-table-column
prop="操作"
label="操作"
:width="tdWidth"
fixed="right"
>
<template slot-scope="scope">
<el-button type="primary" size="mini" @click="editInfo(scope.row)">修改</el-button>
<el-button
type="primary"
size="mini"
plain
@click="editInfo(scope.row)"
>修改</el-button>
</template>
</el-table-column>
</el-table>
<div class="pagination_list">
<el-pagination
small
background
layout="sizes, total,prev, pager, next, jumper"
:total="pageTotal"
......@@ -60,7 +151,12 @@
<!-- 表格区域 end -->
<!-- 新增工厂/仓库弹框 开始 -->
<edit-fac :show="showAddDialog" v-if="showAddDialog" :info="info" @closed="closeAddDialog"/>
<edit-fac
:show="showAddDialog"
v-if="showAddDialog"
:info="info"
@closed="closeAddDialog"
/>
<!-- 新增工厂/仓库弹框 结束 -->
</d2-container>
......@@ -100,7 +196,7 @@ export default {
},
mounted: function() {
mounted: function () {
this.getList()
},
methods: {
......@@ -108,7 +204,7 @@ export default {
/**
* 查询列表
*/
getList: function(current) {
getList: function (current) {
const _this = this
const oParams = _this.getParams()
console.log(current)
......@@ -134,7 +230,7 @@ export default {
/**
* 获取查询参数
*/
getParams: function() {
getParams: function () {
const oParams = this.formInline
oParams.pageSize = this.pageSize
return oParams
......@@ -143,7 +239,7 @@ export default {
/**
* 每页展示
*/
changePageSize: function(e) {
changePageSize: function (e) {
this.pageSize = e
this.getList()
},
......@@ -152,10 +248,10 @@ export default {
/**
* 新增或修改工厂/仓库
*/
editInfo: function(row){
if(row){
editInfo: function (row) {
if (row) {
this.info = row
}else{
} else {
this.info = {}
}
this.showAddDialog = true
......@@ -164,9 +260,9 @@ export default {
/**
* 关闭新增弹出框
*/
closeAddDialog: function(isCancel){
closeAddDialog: function (isCancel) {
this.showAddDialog = false
if(isCancel){
if (isCancel) {
return
}
this.getList()
......@@ -177,7 +273,7 @@ export default {
</script>
<style lang="scss">
.table_box {
margin: 20px 0;
}
.table_box {
margin: 20px 0;
}
</style>
<template>
<d2-container>
<el-card shadow="never" slot="header">
<el-form :inline="true" :model="formInline" class="demo-form-inline" size="small">
<el-card
shadow="never"
slot="header"
>
<el-form
:inline="true"
:model="formInline"
class="demo-form-inline"
size="small"
>
<el-form-item label="设备类型">
<el-select v-model="formInline.deviceTypeId" placeholder="请选择">
<el-option value label="全部">全部</el-option>
<el-select
v-model="formInline.deviceTypeId"
placeholder="请选择"
>
<el-option
value
label="全部"
>全部</el-option>
<el-option
v-for="item in deviceTypeList"
:key="item.id"
......@@ -14,11 +28,16 @@
</el-select>
</el-form-item>
<el-form-item label="物料编码">
<el-input v-model="formInline.attribName" placeholder="请输入物料编码" clearable/>
<el-input
v-model="formInline.attribName"
placeholder="请输入物料编码"
clearable
/>
</el-form-item>
<el-form-item>
<el-button
type="primary"
size="mini"
icon="el-icon-search"
:loading="tableLoading"
@click="getList()"
......@@ -27,6 +46,7 @@
<el-form-item>
<el-button
type="primary"
size="mini"
icon="el-icon-plus"
:loading="tableLoading"
@click="showModal = true"
......@@ -45,26 +65,104 @@
size="small"
border
>
<el-table-column type="index" :index="index => {return index+1}" label="序号" width="80" />
<el-table-column prop="attribCode" label="物料编码" width="150" />
<el-table-column prop="attribName" label="物料名称" width="250" />
<el-table-column prop="devTypeName" label="设备类型" :width="tdWidth" />
<el-table-column prop="devMnumName" label="设备型号" :width="tdWidth" :formatter="formatter" />
<el-table-column prop="orNetName" label="是否联网" :width="tdWidth" :formatter="formatter" />
<el-table-column prop="cardSelfName" label="卡类型" :width="tdWidth" :formatter="formatter" />
<el-table-column prop="orOpenName" label="专用/通用" :width="tdWidth" :formatter="formatter" />
<el-table-column prop="screenName" label="是否带屏" :width="tdWidth" :formatter="formatter" />
<el-table-column prop="sourceName" label="有源/无源" :width="tdWidth" :formatter="formatter" />
<el-table-column prop="msizeName" label="尺寸" :width="tdWidth" :formatter="formatter" />
<el-table-column prop="modelName" label="机型" :width="tdWidth" :formatter="formatter" />
<el-table-column prop="typeName" label="裸机/整机" :width="tdWidth" :formatter="formatter" />
<el-table-column prop="configureName" label="配置" :width="tdWidth" :formatter="formatter" />
<el-table-column prop="boardVersion" label="主板版本号" :width="tdWidth" :formatter="formatter"/>
<el-table-column prop="softVersion" label="软件版本号" :width="tdWidth" :formatter="formatter" />
<el-table-column
type="index"
:index="index => {return index+1}"
label="序号"
width="80"
/>
<el-table-column
prop="attribCode"
label="物料编码"
width="150"
/>
<el-table-column
prop="attribName"
label="物料名称"
width="250"
/>
<el-table-column
prop="devTypeName"
label="设备类型"
:width="tdWidth"
/>
<el-table-column
prop="devMnumName"
label="设备型号"
:width="tdWidth"
:formatter="formatter"
/>
<el-table-column
prop="orNetName"
label="是否联网"
:width="tdWidth"
:formatter="formatter"
/>
<el-table-column
prop="cardSelfName"
label="卡类型"
:width="tdWidth"
:formatter="formatter"
/>
<el-table-column
prop="orOpenName"
label="专用/通用"
:width="tdWidth"
:formatter="formatter"
/>
<el-table-column
prop="screenName"
label="是否带屏"
:width="tdWidth"
:formatter="formatter"
/>
<el-table-column
prop="sourceName"
label="有源/无源"
:width="tdWidth"
:formatter="formatter"
/>
<el-table-column
prop="msizeName"
label="尺寸"
:width="tdWidth"
:formatter="formatter"
/>
<el-table-column
prop="modelName"
label="机型"
:width="tdWidth"
:formatter="formatter"
/>
<el-table-column
prop="typeName"
label="裸机/整机"
:width="tdWidth"
:formatter="formatter"
/>
<el-table-column
prop="configureName"
label="配置"
:width="tdWidth"
:formatter="formatter"
/>
<el-table-column
prop="boardVersion"
label="主板版本号"
:width="tdWidth"
:formatter="formatter"
/>
<el-table-column
prop="softVersion"
label="软件版本号"
:width="tdWidth"
:formatter="formatter"
/>
</el-table>
<div class="pagination_list">
<el-pagination
background
small
layout="sizes, total,prev, pager, next, jumper"
:total="pageTotal"
:page-size="pageSize"
......@@ -84,17 +182,21 @@
<el-button @click="showModal = false">取消</el-button>
</div>
</el-dialog> -->
<add-setting :show="showModal" v-if="showModal" @closed="closeAddSettingDialog"/>
<add-setting
:show="showModal"
v-if="showModal"
@closed="closeAddSettingDialog"
/>
<!-- 弹框 end -->
</d2-container>
</template>
<script>
import {
PAGEATTRIBMANA,
GETDEVICETYPE,
// SAVEATTRIBMANA
import {
PAGEATTRIBMANA,
GETDEVICETYPE,
// SAVEATTRIBMANA
} from "@/http/interface";
import GlsxDialog from "@/components/dialog/index";
import AddSetting from "./addSetting";
......@@ -123,24 +225,24 @@ export default {
},
deviceTypeList: [],
showModal: false,
showChildModal:false
showChildModal: false
};
},
created() {},
created() { },
mounted: function() {
mounted: function () {
this.getList();
this.getDeviceList();
},
methods: {
formatter: function(row, column, cellValue) {
if(cellValue){
if(cellValue == '未知' || cellValue == "'未知'"){
formatter: function (row, column, cellValue) {
if (cellValue) {
if (cellValue == '未知' || cellValue == "'未知'") {
return '//'
}else{
} else {
return cellValue
}
}else{
} else {
return ''
}
},
......@@ -148,7 +250,7 @@ export default {
/**
* 查询列表
*/
getList: function(current) {
getList: function (current) {
const _this = this;
const oParams = _this.getParams();
oParams.pageNum = current || _this.currentPage;
......@@ -167,7 +269,7 @@ export default {
/**
* 获取查询参数
*/
getParams: function() {
getParams: function () {
const oParams = this.formInline;
oParams.pageSize = this.pageSize;
return oParams;
......@@ -176,7 +278,7 @@ export default {
/**
* 每页展示
*/
changePageSize: function(e) {
changePageSize: function (e) {
this.pageSize = e;
this.getList();
},
......@@ -184,7 +286,7 @@ export default {
/**
* 获取设备类型列表
*/
getDeviceList: function() {
getDeviceList: function () {
const _this = this;
GETDEVICETYPE().then(res => {
const { data } = res;
......@@ -192,9 +294,9 @@ export default {
});
},
closeAddSettingDialog: function(sub){
closeAddSettingDialog: function (sub) {
this.showModal = false
if(sub){
if (sub) {
this.getList()
}
}
......
<template>
<d2-container>
<el-card shadow="never" slot="header">
<el-form :inline="true" :model="formInline" class="demo-form-inline" size="small">
<el-card
shadow="never"
slot="header"
>
<el-form
:inline="true"
:model="formInline"
class="demo-form-inline"
size="small"
>
<el-form-item label="固件版本号">
<el-input v-model="formInline.fastenerVersion" placeholder="请输入固件版本号" clearable/>
<el-input
v-model="formInline.fastenerVersion"
placeholder="请输入固件版本号"
clearable
/>
</el-form-item>
<el-form-item>
<el-button
type="primary"
size="mini"
icon="el-icon-search"
:loading="tableLoading"
@click="getList()"
......@@ -16,6 +29,7 @@
<el-form-item>
<el-button
type="primary"
size="mini"
icon="el-icon-plus"
:loading="tableLoading"
@click="showModal = true"
......@@ -34,60 +48,119 @@
size="small"
border
>
<el-table-column type="index" :index="index => {return index+1}" label="序号" width="80" />
<el-table-column prop="deviceCode" label="机型">
<el-table-column
type="index"
:index="index => {return index+1}"
label="序号"
width="80"
/>
<el-table-column
prop="deviceCode"
label="机型"
>
<template slot-scope="scoped">{{ scoped.row.attribMana.typeName }}</template>
</el-table-column>
<el-table-column prop="deviceName" label="裸机/整机">
<el-table-column
prop="deviceName"
label="裸机/整机"
>
<template slot-scope="scoped">{{ scoped.row.attribMana.modelName }}</template>
</el-table-column>
<el-table-column prop="iccid" label="配置">
<el-table-column
prop="iccid"
label="配置"
>
<template slot-scope="scoped">{{ scoped.row.attribMana.configureName }}</template>
</el-table-column>
<el-table-column prop="boardVersion" label="主板版本号" />
<el-table-column prop="mcuVersion" label="芯片版本号" />
<el-table-column prop="fastenerVersion" label="固件版本号">
<el-table-column
prop="boardVersion"
label="主板版本号"
/>
<el-table-column
prop="mcuVersion"
label="芯片版本号"
/>
<el-table-column
prop="fastenerVersion"
label="固件版本号"
>
<template slot-scope="scoped">
<el-tooltip class="item" :content="scoped.row.fastenerVersion" placement="top-start">
<el-tooltip
class="item"
:content="scoped.row.fastenerVersion"
placement="top-start"
>
<span>{{ CUTSTR(scoped.row.fastenerVersion) }}</span>
</el-tooltip>
</template>
</el-table-column>
<el-table-column prop="softVersion" label="软件版本号">
<el-table-column
prop="softVersion"
label="软件版本号"
>
<template slot-scope="scoped">
<el-tooltip class="item" :content="scoped.row.softVersion" placement="top-start">
<el-tooltip
class="item"
:content="scoped.row.softVersion"
placement="top-start"
>
<span>{{ CUTSTR(scoped.row.softVersion) }}</span>
</el-tooltip>
</template>
</el-table-column>
<el-table-column prop="vendorCode" label="厂商码">
<el-table-column
prop="vendorCode"
label="厂商码"
>
<template slot-scope="scoped">
<el-tooltip class="item" :content="scoped.row.vendorCode" placement="top-start">
<el-tooltip
class="item"
:content="scoped.row.vendorCode"
placement="top-start"
>
<span>{{ CUTSTR(scoped.row.vendorCode, 14) }}</span>
</el-tooltip>
</template>
</el-table-column>
<el-table-column prop="svnAddress" label="SVN地址">
<el-table-column
prop="svnAddress"
label="SVN地址"
>
<template slot-scope="scoped">
<el-tooltip class="item" :content="scoped.row.svnAddress" placement="top-start">
<el-tooltip
class="item"
:content="scoped.row.svnAddress"
placement="top-start"
>
<span>{{ CUTSTR(scoped.row.svnAddress, 16) }}</span>
</el-tooltip>
</template>
</el-table-column>
<el-table-column prop="updateContent" label="更新内容">
<el-table-column
prop="updateContent"
label="更新内容"
>
<template slot-scope="scoped">
<el-tooltip class="item" :content="scoped.row.updateContent" placement="top-start">
<el-tooltip
class="item"
:content="scoped.row.updateContent"
placement="top-start"
>
<span>{{ CUTSTR(scoped.row.updateContent) }}</span>
</el-tooltip>
</template>
</el-table-column>
<el-table-column prop="createdDate" label="创建时间">
<el-table-column
prop="createdDate"
label="创建时间"
>
<template slot-scope="scoped">{{ DATEFORMATE(scoped.row.createdDate) }}</template>
</el-table-column>
</el-table>
<div class="pagination_list">
<el-pagination
background
small
layout="sizes, total,prev, pager, next, jumper"
:total="pageTotal"
:page-size="pageSize"
......@@ -100,17 +173,28 @@
<!-- 表格区域 end -->
<!-- 弹框 开始 -->
<glsx-dialog title="创建固件版本" :show="showModal" :usefooter="true" @closed="closeDialog">
<glsx-dialog
title="创建固件版本"
:show="showModal"
:usefooter="true"
@closed="closeDialog"
>
<div>
<edit-frimware ref="editFirmware" v-if="showModal" />
<edit-frimware
ref="editFirmware"
v-if="showModal"
/>
</div>
<div slot="footer">
<el-button type="primary" @click="saveInfo()">提交</el-button>
<el-button
type="primary"
@click="saveInfo()"
>提交</el-button>
<el-button @click="closeDialog">取消</el-button>
</div>
</glsx-dialog>
<!-- 弹框 end -->
</d2-container>
</template>
......@@ -150,16 +234,16 @@ export default {
showModal: false
};
},
created() {},
created() { },
mounted: function() {
mounted: function () {
this.getList();
},
methods: {
/**
* 查询列表
*/
getList: function(current) {
getList: function (current) {
const _this = this;
const oParams = _this.getParams();
console.log(current);
......@@ -180,7 +264,7 @@ export default {
/**
* 获取查询参数
*/
getParams: function() {
getParams: function () {
const oParams = this.formInline;
const m = this.registerDate;
if (m && m.length > 0) {
......@@ -197,7 +281,7 @@ export default {
/**
* 每页展示
*/
changePageSize: function(e) {
changePageSize: function (e) {
this.pageSize = e;
this.getList();
},
......@@ -205,7 +289,7 @@ export default {
/**
* 保存数据
*/
saveInfo: function() {
saveInfo: function () {
let _this = this;
let _obj = _this.$refs.editFirmware;
console.log(_obj);
......@@ -230,7 +314,7 @@ export default {
},
/**关闭弹框 */
closeDialog:function(){
closeDialog: function () {
this.showModal = false;
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!