作者 张晓杰

查看订单

1 <template> 1 <template>
2 - <j-modal :title="title" :width="width" :visible="visible" :confirmLoading="confirmLoading" :maskClosable="false"  
3 - switchFullscreen @ok="handleOk" @cancel="handleCancel" cancelText="关闭"> 2 + <j-modal :title="title" :width="width" :visible="visible"
  3 + switchFullscreen @cancel="handleCancel" cancelText="关闭">
4 <a-spin :spinning="confirmLoading"> 4 <a-spin :spinning="confirmLoading">
5 <div style="display: flex"> 5 <div style="display: flex">
6 <div style="display:inline-block;width:50%;margin: auto;"> 6 <div style="display:inline-block;width:50%;margin: auto;">
@@ -52,7 +52,7 @@ @@ -52,7 +52,7 @@
52 <th scop="col">{{model.dispatchedWorkingHours}}</th> 52 <th scop="col">{{model.dispatchedWorkingHours}}</th>
53 </tr> 53 </tr>
54 <tr v-if="model.files"> 54 <tr v-if="model.files">
55 - <th scop="col" class="table_lable">主料图文件:</th> 55 + <th scop="col" class="table_lable">文件:</th>
56 <th scop="col"> 56 <th scop="col">
57 <div v-for="(item,index) in model.files.split(',')" :key="index"> 57 <div v-for="(item,index) in model.files.split(',')" :key="index">
58 <a :href=httpUrl+item target="_blank">{{index+1}}. {{item.replace("temp/","")}}</a><br> 58 <a :href=httpUrl+item target="_blank">{{index+1}}. {{item.replace("temp/","")}}</a><br>
@@ -61,7 +61,7 @@ @@ -61,7 +61,7 @@
61 </tr> 61 </tr>
62 </table> 62 </table>
63 </div> 63 </div>
64 - <div style="display:inline-block;width:45%;" v-if="picList"> 64 + <div style="display:inline-block;width:45%;" v-if="model.pics">
65 <div class="show" > 65 <div class="show" >
66 <!-- <img :src="getImgView(show)" :preview="num" alt="" height="100px"> --> 66 <!-- <img :src="getImgView(show)" :preview="num" alt="" height="100px"> -->
67 <img :src="httpUrl+show" :preview="num" alt="" height="100px"> 67 <img :src="httpUrl+show" :preview="num" alt="" height="100px">
@@ -134,6 +134,7 @@ export default { @@ -134,6 +134,7 @@ export default {
134 this.edit(this.modelDefault); 134 this.edit(this.modelDefault);
135 }, 135 },
136 edit(record) { 136 edit(record) {
  137 + this.picList = ""
137 this.model = Object.assign({}, record); 138 this.model = Object.assign({}, record);
138 console.log('this.model',this.model) 139 console.log('this.model',this.model)
139 if(this.model.pics){ 140 if(this.model.pics){