Commit cd803054 authored by zhanglw's avatar zhanglw

内容管理-产品

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