|
@@ -17,7 +17,7 @@
|
|
|
<el-col :span="5" id="header-two-left">
|
|
|
<el-form ref="anFormRef" :model="anForm" label-width="80px">
|
|
|
<el-form-item label="藏品名称(套):" label-width="102px">
|
|
|
- <el-input v-model="anForm.anName" class="anInput" placeholder="筛选公告标题"
|
|
|
+ <el-input v-model="anForm.anName" class="anInput" placeholder="筛选藏品标题"
|
|
|
center></el-input>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
@@ -78,6 +78,7 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
+import { getSet, searchSet } from "@/api/sets/index"
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
@@ -188,23 +189,51 @@ export default {
|
|
|
},
|
|
|
//重置
|
|
|
empty() {
|
|
|
- console.log("重置")
|
|
|
+ this.anForm.anName = "";
|
|
|
+ this.dataput = "";
|
|
|
},
|
|
|
//搜索
|
|
|
check() {
|
|
|
- console.log("搜索")
|
|
|
+ if (this.anForm.anName) {
|
|
|
+ let con = {
|
|
|
+ name: this.anForm.anName
|
|
|
+ }
|
|
|
+ searchNotice(con).then((data) => {
|
|
|
+ this.tableData = data.list;
|
|
|
+ this.total = data.count;
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ this.getnotice();
|
|
|
+ }
|
|
|
},
|
|
|
//添加
|
|
|
addSet() {
|
|
|
- console.log("添加")
|
|
|
+ this.$router.push('./addSet')
|
|
|
},
|
|
|
+ //藏品列表
|
|
|
sList() {
|
|
|
- console.log("藏品列表")
|
|
|
+ this.$router.push('./collectionDetails')
|
|
|
},
|
|
|
+ //上架
|
|
|
upJia() {
|
|
|
- console.log("上架")
|
|
|
- },
|
|
|
+ this.$confirm('是否要上架商品?', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ }).then(() => {
|
|
|
+ this.$message({
|
|
|
+ type: 'success',
|
|
|
+ message: '上架成功!'
|
|
|
+ });
|
|
|
+ }).catch(() => {
|
|
|
+ this.$message({
|
|
|
+ type: 'info',
|
|
|
+ message: '已取消'
|
|
|
+ });
|
|
|
+ });
|
|
|
|
|
|
+ },
|
|
|
+ //修改时间
|
|
|
editTime() {
|
|
|
console.log("修改时间")
|
|
|
}
|