Commit cd803054 authored by zhanglw's avatar zhanglw

内容管理-产品

parent 5a2006ed
......@@ -4,9 +4,7 @@
<el-form ref="formViewRef" :model="formData" :rules="rules" :status-icon="true" label-width="240px">
<el-form-item label="产品类型名称:" class="form-cell" prop="xxx">
<div class="cell-box">
<el-select v-model="formData.productType" disabled placeholder="无" class="cell-select">
<el-option v-for="item in dict.product_type" :key="item.value" :label="item.label" :value="item.value" />
</el-select>
<el-input v-model="formData.productType" disabled placeholder="暂无" class="cell-input" />
</div>
</el-form-item>
<el-form-item label="产品ID:" class="form-cell" prop="xxx">
......
......@@ -2,9 +2,9 @@
<div class="app-container">
<!--工具栏-->
<div class="head-container">
<el-select v-model="query.productType" clearable placeholder="请选择产品类型" style="width: 150px">
<el-option v-for="item in dict.product_type" :key="item.value" :label="item.label" :value="item.value" />
</el-select>
<!-- <el-select v-model="query.productType" clearable placeholder="请选择产品类型" style="width: 150px">-->
<!-- <el-option v-for="item in dict.product_type" :key="item.value" :label="item.label" :value="item.value" />-->
<!-- </el-select>-->
<el-select v-model="query.status" clearable placeholder="请选择状态" style="width: 120px">
<el-option v-for="item in dict.issue_status" :key="item.value" :label="item.label" :value="item.value" />
</el-select>
......@@ -17,7 +17,7 @@
<div class="content">
<el-table id="dataTable" ref="dataTable" v-loading="loading" :data="tableData" tooltip-effect="dark" style="width:auto;min-height: 70vh">
<el-table-column type="index" width="55" label="序号" :index="indexMethod" />
<el-table-column prop="productType" label="产品类型名称" :formatter="(row, col, val)=>{return dict.label.product_type[val]}" />
<el-table-column prop="productType" label="产品类型名称"/>
<el-table-column label="状态" width="100">
<template slot-scope="scope">
<div :style="'color:'+textColors[scope.row.status]">{{ dict.label.issue_status[scope.row.status] }}</div>
......
......@@ -28,9 +28,9 @@
</el-row>
<el-row style="padding-top: 10px">
<el-col :span="2">
<div class="search-item" :class="query.type===undefined?'active':''">
<span class="touch label" @click="setQuertType()">默认排序</span>
<span v-if="query.type===undefined">
<div class="search-item" :class="query.type===''?'active':''">
<span class="touch label" @click="setQuertType('')">默认排序</span>
<span v-if="query.type===''">
<i v-if="query.sort" class="el-icon-sort-up touch" />
<i v-else class="el-icon-sort-down touch" />
</span>
......@@ -151,8 +151,8 @@ export default {
title: '',
query: {
keyword: '',
area: undefined,
type: undefined,
area: '',
type: '',
sort: false
},
areaOpts: [],
......@@ -291,7 +291,7 @@ export default {
},
methods: {
onDictReady(dict) {
this.areaOpts = [{ value: undefined, label: '全部' }, ...dict.area_province]
this.areaOpts = [{ value: '', label: '全部' }, ...dict.area_province]
this.title = dict.product_type[this.$route.params.type - 1].label
},
keywordClick(item, type) {
......
......@@ -41,7 +41,7 @@
<el-row style="padding-top: 10px">
<el-col :span="2">
<div class="search-item" :class="query.type===''?'active':''">
<span class="touch label" @click="setQuertType()">默认排序</span>
<span class="touch label" @click="setQuertType('')">默认排序</span>
<span v-if="query.type===''">
<i v-if="query.sort" class="el-icon-sort-up touch" />
<i v-else class="el-icon-sort-down touch" />
......
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