|
|
@@ -32,7 +32,7 @@
|
|
|
<!--.slice(0, -4)-->
|
|
|
<!--.replace(RegExp("-", "g"), "/")-->
|
|
|
<!--}}-->
|
|
|
- {{obj.addtime}}
|
|
|
+ {{obj.addtime.substr(0,10)}}
|
|
|
</td>
|
|
|
|
|
|
<td v-if="operation" :style="trStyle" class="operationStyle">
|
|
|
@@ -61,9 +61,7 @@
|
|
|
<p>共{{ totalPage }}页,共{{ sum }}条数据</p>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <keep-alive exclude="dishes">
|
|
|
<router-view :key="this.$route.path"></router-view>
|
|
|
- </keep-alive>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
@@ -156,6 +154,10 @@ export default {
|
|
|
},
|
|
|
//编辑
|
|
|
edit: function (config) {
|
|
|
+ console.log(config,'father')
|
|
|
+ if(typeof (config.area) === 'string'){
|
|
|
+ config.area = (config.area).split(',');
|
|
|
+ }
|
|
|
this.$router.push({
|
|
|
path: "/changShang/editPage",
|
|
|
query: config,
|
|
|
@@ -189,7 +191,7 @@ export default {
|
|
|
},
|
|
|
})
|
|
|
.then((res) => {
|
|
|
- if (res.data.code === 200 || res.data.code === 401) {
|
|
|
+ if (res.data.code === 200) {
|
|
|
alert(res.data.msg);
|
|
|
this.getDataList();
|
|
|
}
|
|
|
@@ -207,16 +209,18 @@ export default {
|
|
|
content:``,
|
|
|
id:'',
|
|
|
files:[],
|
|
|
- area:"全区"
|
|
|
+ area:['全区']
|
|
|
},
|
|
|
});
|
|
|
},
|
|
|
},
|
|
|
+ watch: {
|
|
|
+ // 如果路由发生变化,再次执行该方法
|
|
|
+ "$route": "getDataList"
|
|
|
+ },
|
|
|
created() {
|
|
|
},
|
|
|
mounted() {
|
|
|
- },
|
|
|
- activated() {
|
|
|
this.getDataList()
|
|
|
}
|
|
|
};
|
|
|
@@ -248,7 +252,7 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
.table_gray {
|
|
|
- background-color: #eeeeee;
|
|
|
+ background-color: #f5f5f5;
|
|
|
}
|
|
|
.operationStyle span {
|
|
|
color: #0000ff;
|