|
@@ -20,19 +20,24 @@
|
|
|
</el-breadcrumb>
|
|
|
</el-col>
|
|
|
</el-col>
|
|
|
+ <el-col :span="24" class="one"> <span>商品标签</span> </el-col>
|
|
|
<!-- 查询 -->
|
|
|
- <data-search :fields="searchFields" v-model="searchInfo" @query="search">
|
|
|
- <template #status>
|
|
|
- <el-option v-for="i in statusList" :key="i.model" :label="i.label" :value="i.value"></el-option>
|
|
|
- </template>
|
|
|
- </data-search>
|
|
|
+ <el-col :span="24">
|
|
|
+ <data-search :fields="searchFields" v-model="searchInfo" @query="search">
|
|
|
+ <template #status>
|
|
|
+ <el-option v-for="i in statusList" :key="i.model" :label="i.label" :value="i.value"></el-option>
|
|
|
+ </template>
|
|
|
+ </data-search>
|
|
|
+ </el-col>
|
|
|
<!-- 添加 -->
|
|
|
- <data-btn :fields="btnFields" @add="toAdd" />
|
|
|
- <data-table ref="dataTable" :fields="fields" :opera="opera" :data="list" :total="total" @edit="toEdit" @delete="toDelete" @query="search">
|
|
|
- <template #code="{ row, item }">
|
|
|
- <el-link type="primary" @click="toData(row)">{{ row[item.model] }}</el-link>
|
|
|
- </template>
|
|
|
- </data-table>
|
|
|
+ <el-col :span="24"><data-btn :fields="btnFields" @add="toAdd" /></el-col>
|
|
|
+ <el-col :span="24">
|
|
|
+ <data-table ref="dataTable" :fields="fields" :opera="opera" :data="list" :total="total" @edit="toEdit" @delete="toDelete" @query="search">
|
|
|
+ <template #code="{ row, item }">
|
|
|
+ <el-link type="primary" @click="toData(row)">{{ row[item.model] }}</el-link>
|
|
|
+ </template>
|
|
|
+ </data-table>
|
|
|
+ </el-col>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
</span>
|
|
@@ -149,6 +154,10 @@ export default {
|
|
|
this.data.pop();
|
|
|
this.search();
|
|
|
},
|
|
|
+ toBack() {
|
|
|
+ this.view = 'list';
|
|
|
+ this.form = {};
|
|
|
+ },
|
|
|
},
|
|
|
metaInfo() {
|
|
|
return { title: this.$route.meta.title };
|
|
@@ -164,4 +173,16 @@ export default {
|
|
|
line-height: 30px;
|
|
|
}
|
|
|
}
|
|
|
+.one {
|
|
|
+ margin: 0 0 10px 0;
|
|
|
+
|
|
|
+ span:nth-child(1) {
|
|
|
+ font-size: 20px;
|
|
|
+ font-weight: 700;
|
|
|
+ margin-right: 10px;
|
|
|
+ }
|
|
|
+}
|
|
|
+.el-col {
|
|
|
+ margin: 10px 0;
|
|
|
+}
|
|
|
</style>
|