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">
|
<el-descriptions-item label="监控状态:" span=2 v-if="form.mtask_uid">
|
||||||
<span>进行中</span>
|
<span>进行中</span>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="作业前照片:" span=2 v-if="form.create_imgs&&form.create_imgs.length>0">
|
<el-descriptions-item label="现场照片:" span=2 v-if="form.create_imgs&&form.create_imgs.length>0">
|
||||||
<el-image
|
<!-- <el-upload
|
||||||
v-for="item in form.create_imgs_"
|
v-model:file-list="create_imgs_list"
|
||||||
:key="item.id"
|
list-type="picture-card"
|
||||||
:src="item.path"
|
:auto-upload="false"
|
||||||
style="width: 100px;height: 80px;vertical-align: middle;"
|
action="#"
|
||||||
></el-image>
|
: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-item>
|
||||||
|
|
||||||
</el-descriptions>
|
</el-descriptions>
|
||||||
</el-card>
|
</el-card>
|
||||||
<!-- <p class="tables-title" v-if="ticketDetailState">进度流程</p>
|
<!-- <p class="tables-title" v-if="ticketDetailState">进度流程</p>
|
||||||
|
@ -207,6 +228,8 @@
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
create_imgs_list: [],
|
||||||
|
close_imgs_list: [],
|
||||||
mainLoading: false,
|
mainLoading: false,
|
||||||
issave: false, //控制基本信息提交
|
issave: false, //控制基本信息提交
|
||||||
search: {
|
search: {
|
||||||
|
@ -304,9 +327,22 @@
|
||||||
that.form = res;
|
that.form = res;
|
||||||
that.oplcateCode = res.cate_code;
|
that.oplcateCode = res.cate_code;
|
||||||
that.ticketId = res.ticket;
|
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(()=>{
|
that.$nextTick(()=>{
|
||||||
this.$API.wf.ticket.ticketFlowlogs.req(that.ticketId).then((res) => {
|
this.$API.wf.ticket.ticketFlowlogs.req(that.ticketId).then((res2) => {
|
||||||
if (res.err_msg) {
|
if (res2.err_msg) {
|
||||||
} else {
|
} else {
|
||||||
that.logsData = res;
|
that.logsData = res;
|
||||||
}
|
}
|
||||||
|
|
|
@ -166,9 +166,11 @@
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="上传证书">
|
<el-form-item label="上传证书">
|
||||||
|
<!-- <sc-upload v-model="form.file" :modelValue="form.file" title="证件图片" :width="300" :height="148"></sc-upload> -->
|
||||||
<sc-upload-file
|
<sc-upload-file
|
||||||
v-model="form.file"
|
v-model="form.file"
|
||||||
:multiple="false"
|
:multiple="false"
|
||||||
|
:limit="1"
|
||||||
accept="image/png, image/jpeg, image/jpeg, pdf"
|
accept="image/png, image/jpeg, image/jpeg, pdf"
|
||||||
>
|
>
|
||||||
<el-button type="primary" icon="el-icon-upload"
|
<el-button type="primary" icon="el-icon-upload"
|
||||||
|
|
|
@ -39,7 +39,8 @@
|
||||||
</div>
|
</div>
|
||||||
-->
|
-->
|
||||||
<div class="login-oauth">
|
<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>
|
<el-button type="primary" @click="MonitorOpen" style="background-color:orange;border-color:orange">监控视频</el-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -59,6 +60,11 @@
|
||||||
<sc-qr-code class="qrCode" :size="200" :text="appUrl"></sc-qr-code>
|
<sc-qr-code class="qrCode" :size="200" :text="appUrl"></sc-qr-code>
|
||||||
</div>
|
</div>
|
||||||
</el-dialog>
|
</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>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
@ -91,7 +97,9 @@ import passwordForm from './components/passwordForm'
|
||||||
showWechatLogin: false,
|
showWechatLogin: false,
|
||||||
isWechatLoginResult: false,
|
isWechatLoginResult: false,
|
||||||
showApp: 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:{
|
watch:{
|
||||||
|
@ -124,6 +132,9 @@ import passwordForm from './components/passwordForm'
|
||||||
appDown() {
|
appDown() {
|
||||||
this.showApp = true;
|
this.showApp = true;
|
||||||
},
|
},
|
||||||
|
h5Show() {
|
||||||
|
this.showH5 = true;
|
||||||
|
},
|
||||||
MonitorOpen(){
|
MonitorOpen(){
|
||||||
window.open('http://10.99.5.79:5515/')
|
window.open('http://10.99.5.79:5515/')
|
||||||
},
|
},
|
||||||
|
|
|
@ -189,6 +189,7 @@
|
||||||
<sc-upload-file
|
<sc-upload-file
|
||||||
v-model="form.file"
|
v-model="form.file"
|
||||||
:multiple="false"
|
:multiple="false"
|
||||||
|
:limit="1"
|
||||||
accept="image/png, image/jpeg, image/jpeg, pdf"
|
accept="image/png, image/jpeg, image/jpeg, pdf"
|
||||||
>
|
>
|
||||||
<el-button type="primary" icon="el-icon-upload">上传</el-button>
|
<el-button type="primary" icon="el-icon-upload">上传</el-button>
|
||||||
|
|
Loading…
Reference in New Issue