|
@@ -62,6 +62,12 @@
|
|
|
</span>
|
|
|
<span v-else>--</span>
|
|
|
</span>
|
|
|
+ <span v-else-if="item.label == '订单号' && isGoDetail">
|
|
|
+ <el-button v-if="item.value !== '--'" type="text" @click="onGoDetail" style="margin: 0;padding: 0">
|
|
|
+ {{$t(item.value)}}
|
|
|
+ </el-button>
|
|
|
+ <span v-else>--</span>
|
|
|
+ </span>
|
|
|
<span v-else :style="item.style?item.style():''">{{item.value !== ''?$t(item.value):'--'}}</span>
|
|
|
</el-descriptions-item>
|
|
|
</el-descriptions>
|
|
@@ -130,7 +136,8 @@ import taskTemp from './modules/task/index.vue'
|
|
|
import reportCenter from '../reportCenter/index'
|
|
|
import {mapGetters} from 'vuex'
|
|
|
export default {
|
|
|
- props:['titleText','mainAreaData','turnPageId','delApiId','idname','ownertable','formPath','oldFormPath','editData','tags','tabs','statusCheck','pageChange','justsaler','mainData','status','typeTask','isGroup','isBatch','modelName','isDelete','column','attachmentDisabled','disabled'],
|
|
|
+ props:['titleText','mainAreaData','turnPageId','delApiId','idname','ownertable','formPath','oldFormPath','editData','tags','tabs','statusCheck','pageChange','justsaler',
|
|
|
+ 'mainData','status','typeTask','isGroup','isBatch','modelName','isDelete','column','attachmentDisabled','disabled','isGoDetail','detailPath','nowDetailPath','detailId'],
|
|
|
data () {
|
|
|
return {
|
|
|
drawer:false,
|
|
@@ -498,6 +505,17 @@ export default {
|
|
|
},500)
|
|
|
})
|
|
|
},
|
|
|
+ onGoDetail(){
|
|
|
+ let route = this.$route
|
|
|
+ if (route.path == this.nowDetailPath) {
|
|
|
+ this.oldRoute = {path:route.path,query:route.query}
|
|
|
+ this.$store.dispatch('setHistoryRouter',this.oldRoute)
|
|
|
+ }
|
|
|
+ this.$router.push({
|
|
|
+ path:this.detailPath,
|
|
|
+ query:{id:this.detailId,rowindex:this.editData.rowindex}
|
|
|
+ })
|
|
|
+ },
|
|
|
logSuccess(){
|
|
|
this.$emit('logSuccess')
|
|
|
},
|