fix: 证书只能上传一张;opl detail显示
This commit is contained in:
parent
bb1b867238
commit
e63926cffb
|
@ -97,15 +97,36 @@
|
|||
<el-descriptions-item label="监控状态:" span=2 v-if="form.mtask_uid">
|
||||
<span>进行中</span>
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item label="作业前照片:" span=2 v-if="form.create_imgs&&form.create_imgs.length>0">
|
||||
<el-image
|
||||
v-for="item in form.create_imgs_"
|
||||
:key="item.id"
|
||||
:src="item.path"
|
||||
style="width: 100px;height: 80px;vertical-align: middle;"
|
||||
></el-image>
|
||||
<el-descriptions-item label="现场照片:" span=2 v-if="form.create_imgs&&form.create_imgs.length>0">
|
||||
<!-- <el-upload
|
||||
v-model:file-list="create_imgs_list"
|
||||
list-type="picture-card"
|
||||
:auto-upload="false"
|
||||
action="#"
|
||||
:disabled="true"
|
||||
>
|
||||
</el-upload>-->
|
||||
<el-image
|
||||
v-for = "item in form.create_imgs_"
|
||||
:key = "item.id"
|
||||
style="margin-right: 8px;height: 146px;height:146px;"
|
||||
:src="item.path"
|
||||
:preview-src-list="item.path"
|
||||
:initial-index="1"
|
||||
fit="cover"
|
||||
/>
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item label="关闭照片:" span=2 v-if="form.close_imgs&&form.close_imgs.length>0">
|
||||
<el-image
|
||||
v-for = "item in form.close_imgs_"
|
||||
:key = "item.id"
|
||||
style="margin-right: 8px;height: 146px;height:146px;"
|
||||
:src="item.path"
|
||||
:preview-src-list="item.path"
|
||||
:initial-index="1"
|
||||
fit="cover"
|
||||
/>
|
||||
</el-descriptions-item>
|
||||
|
||||
</el-descriptions>
|
||||
</el-card>
|
||||
<!-- <p class="tables-title" v-if="ticketDetailState">进度流程</p>
|
||||
|
@ -207,6 +228,8 @@
|
|||
},
|
||||
data() {
|
||||
return {
|
||||
create_imgs_list: [],
|
||||
close_imgs_list: [],
|
||||
mainLoading: false,
|
||||
issave: false, //控制基本信息提交
|
||||
search: {
|
||||
|
@ -304,9 +327,22 @@
|
|||
that.form = res;
|
||||
that.oplcateCode = res.cate_code;
|
||||
that.ticketId = res.ticket;
|
||||
res.create_imgs_.forEach(item=>{
|
||||
console.log(item)
|
||||
that.create_imgs_list.push({
|
||||
url: item.path,
|
||||
name: '',
|
||||
})
|
||||
})
|
||||
res.close_imgs_.forEach(item=>{
|
||||
that.close_imgs_list.push({
|
||||
url: item.path,
|
||||
name: '',
|
||||
})
|
||||
})
|
||||
that.$nextTick(()=>{
|
||||
this.$API.wf.ticket.ticketFlowlogs.req(that.ticketId).then((res) => {
|
||||
if (res.err_msg) {
|
||||
this.$API.wf.ticket.ticketFlowlogs.req(that.ticketId).then((res2) => {
|
||||
if (res2.err_msg) {
|
||||
} else {
|
||||
that.logsData = res;
|
||||
}
|
||||
|
|
|
@ -166,9 +166,11 @@
|
|||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="上传证书">
|
||||
<!-- <sc-upload v-model="form.file" :modelValue="form.file" title="证件图片" :width="300" :height="148"></sc-upload> -->
|
||||
<sc-upload-file
|
||||
v-model="form.file"
|
||||
:multiple="false"
|
||||
:limit="1"
|
||||
accept="image/png, image/jpeg, image/jpeg, pdf"
|
||||
>
|
||||
<el-button type="primary" icon="el-icon-upload"
|
||||
|
|
|
@ -39,7 +39,8 @@
|
|||
</div>
|
||||
-->
|
||||
<div class="login-oauth">
|
||||
<el-button type="success" @click="appDown" style="background-color:#2cd4f9;border-color:#2cd4f9">安卓APP</el-button>
|
||||
<el-button type="default" @click="appDown">安卓APP</el-button>
|
||||
<el-button type="default" @click="h5Show">H5访问</el-button>
|
||||
<el-button type="primary" @click="MonitorOpen" style="background-color:orange;border-color:orange">监控视频</el-button>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -59,6 +60,11 @@
|
|||
<sc-qr-code class="qrCode" :size="200" :text="appUrl"></sc-qr-code>
|
||||
</div>
|
||||
</el-dialog>
|
||||
<el-dialog v-model="showH5" title="H5页面" :width="400" destroy-on-close>
|
||||
<div class="qrCodeLogin">
|
||||
<sc-qr-code class="qrCode" :size="200" :text="h5Url"></sc-qr-code>
|
||||
</div>
|
||||
</el-dialog>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
@ -91,7 +97,9 @@ import passwordForm from './components/passwordForm'
|
|||
showWechatLogin: false,
|
||||
isWechatLoginResult: false,
|
||||
showApp: false,
|
||||
appUrl: 'http://222.222.144.147:6013/media/zc_ehs.apk'
|
||||
appUrl: 'http://222.222.144.147:6013/media/zc_ehs.apk',
|
||||
showH5: false,
|
||||
h5Url: 'http://222.222.144.147:6013/h5/'
|
||||
}
|
||||
},
|
||||
watch:{
|
||||
|
@ -124,6 +132,9 @@ import passwordForm from './components/passwordForm'
|
|||
appDown() {
|
||||
this.showApp = true;
|
||||
},
|
||||
h5Show() {
|
||||
this.showH5 = true;
|
||||
},
|
||||
MonitorOpen(){
|
||||
window.open('http://10.99.5.79:5515/')
|
||||
},
|
||||
|
|
|
@ -189,6 +189,7 @@
|
|||
<sc-upload-file
|
||||
v-model="form.file"
|
||||
:multiple="false"
|
||||
:limit="1"
|
||||
accept="image/png, image/jpeg, image/jpeg, pdf"
|
||||
>
|
||||
<el-button type="primary" icon="el-icon-upload">上传</el-button>
|
||||
|
|
Loading…
Reference in New Issue