提交 3eaf5d8a 编写于 作者: 刘英杰's avatar 刘英杰

V20240814 优化

上级 c2fc2a0c
.ivu-form-item[data-v-1bec365c]{padding-right:15px}.fileRow[data-v-1bec365c]{display:flex;justify-content:space-between;align-items:center}.fileRow .delIcon[data-v-1bec365c]{color:#ed4014}.fileRow .delIcon[data-v-1bec365c]:hover{color:#f16643;cursor:pointer}.demo-split[data-v-2077d7a0]{height:calc(100vh - 112px)}.demo-split .demo-split-pane-L[data-v-2077d7a0]{padding:10px;height:100%;background-color:#fff}.demo-split .demo-split-pane-R[data-v-2077d7a0]{padding-left:8px} .ivu-form-item[data-v-e4e4b020]{padding-right:15px}.fileRow[data-v-e4e4b020]{display:flex;justify-content:space-between;align-items:center}.fileRow .delIcon[data-v-e4e4b020]{color:#ed4014}.fileRow .delIcon[data-v-e4e4b020]:hover{color:#f16643;cursor:pointer}.demo-split[data-v-2077d7a0]{height:calc(100vh - 112px)}.demo-split .demo-split-pane-L[data-v-2077d7a0]{padding:10px;height:100%;background-color:#fff}.demo-split .demo-split-pane-R[data-v-2077d7a0]{padding-left:8px}
\ No newline at end of file \ No newline at end of file
.ivu-form-item[data-v-1bec365c]{padding-right:15px}.fileRow[data-v-1bec365c]{display:flex;justify-content:space-between;align-items:center}.fileRow .delIcon[data-v-1bec365c]{color:#ed4014}.fileRow .delIcon[data-v-1bec365c]:hover{color:#f16643;cursor:pointer}.searchDiv .ivu-form-item[data-v-45d49b8a]{margin-bottom:12px}.searchDiv .buttonCol[data-v-45d49b8a]{margin-left:auto;text-align:right}.searchDiv .buttonCol .ivu-btn[data-v-45d49b8a]{margin-left:8px} .ivu-form-item[data-v-e4e4b020]{padding-right:15px}.fileRow[data-v-e4e4b020]{display:flex;justify-content:space-between;align-items:center}.fileRow .delIcon[data-v-e4e4b020]{color:#ed4014}.fileRow .delIcon[data-v-e4e4b020]:hover{color:#f16643;cursor:pointer}.searchDiv .ivu-form-item[data-v-45d49b8a]{margin-bottom:12px}.searchDiv .buttonCol[data-v-45d49b8a]{margin-left:auto;text-align:right}.searchDiv .buttonCol .ivu-btn[data-v-45d49b8a]{margin-left:8px}
\ No newline at end of file \ No newline at end of file
<!DOCTYPE html><html><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0"><title>值班管理</title><link href=css/chunk-vendors.cc1990b1.css rel=stylesheet><link href=css/app.a786022a.css rel=stylesheet></head><body><script src=/a/manager/identify/identify.js></script><noscript><strong>请开启 JavaScript 功能来使用 值班管理。</strong></noscript><div id=app></div><script src=js/chunk-vendors.9ae50470.js></script><script src=js/app.fb3ed01d.js></script></body></html> <!DOCTYPE html><html><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0"><title>值班管理</title><link href=css/chunk-vendors.cc1990b1.css rel=stylesheet><link href=css/app.a786022a.css rel=stylesheet></head><body><script src=/a/manager/identify/identify.js></script><noscript><strong>请开启 JavaScript 功能来使用 值班管理。</strong></noscript><div id=app></div><script src=js/chunk-vendors.9ae50470.js></script><script src=js/app.d32d3ec8.js></script></body></html>
\ No newline at end of file \ No newline at end of file
此差异已折叠。
此差异已折叠。
...@@ -113,11 +113,12 @@ ...@@ -113,11 +113,12 @@
style="width: 100%;min-height: 20px;display: flex;border-radius: 10px;padding: 5px;border:1px solid #6cb4fd;margin: 5px 0;"> style="width: 100%;min-height: 20px;display: flex;border-radius: 10px;padding: 5px;border:1px solid #6cb4fd;margin: 5px 0;">
<div style="width: 85%;height: 100%;background-color:#ffffff ;"> <div style="width: 85%;height: 100%;background-color:#ffffff ;">
<div style="width: 100%;height: 50%;display: flex;align-items: center;line-height: 18px"> <div style="width: 100%;height: 50%;display: flex;align-items: center;line-height: 18px">
地址{{index+1}}:{{ item.address }}(范围:{{ item.offset }}米) 地址{{ index + 1 }}:{{ item.address }}(范围:{{ item.offset }}米)
</div> </div>
</div> </div>
<div style="width: 15%;height: 100%;display: flex;justify-content: center;align-items: center;cursor: pointer" <div
@click="()=>formData['attandence_area'].splice(index,1)"> style="width: 15%;height: 100%;display: flex;justify-content: center;align-items: center;cursor: pointer"
@click="()=>formData['attandence_area'].splice(index,1)">
<Icon color="#A3A3A3" size="20" type="md-close"/> <Icon color="#A3A3A3" size="20" type="md-close"/>
</div> </div>
</div> </div>
...@@ -132,8 +133,9 @@ ...@@ -132,8 +133,9 @@
{{ item.begin + '~' + item.end }} {{ item.begin + '~' + item.end }}
</div> </div>
</div> </div>
<div style="width: 15%;height: 100%;display: flex;justify-content: center;align-items: center;cursor: pointer" <div
@click="()=>formData['sign_daytime'].splice(index,1)"> style="width: 15%;height: 100%;display: flex;justify-content: center;align-items: center;cursor: pointer"
@click="()=>formData['sign_daytime'].splice(index,1)">
<Icon color="#A3A3A3" size="20" type="md-close"/> <Icon color="#A3A3A3" size="20" type="md-close"/>
</div> </div>
</div> </div>
...@@ -148,8 +150,9 @@ ...@@ -148,8 +150,9 @@
{{ item.begin + '~' + item.end }} {{ item.begin + '~' + item.end }}
</div> </div>
</div> </div>
<div style="width: 15%;height: 100%;display: flex;justify-content: center;align-items: center;cursor: pointer" <div
@click="()=>formData['sign_night_time'].splice(index,1)"> style="width: 15%;height: 100%;display: flex;justify-content: center;align-items: center;cursor: pointer"
@click="()=>formData['sign_night_time'].splice(index,1)">
<Icon color="#A3A3A3" size="20" type="md-close"/> <Icon color="#A3A3A3" size="20" type="md-close"/>
</div> </div>
</div> </div>
...@@ -158,9 +161,10 @@ ...@@ -158,9 +161,10 @@
</Col> </Col>
<!-- 文件类型 --> <!-- 文件类型 -->
<Col v-for="(item, index) in formItem.filter(a => a.type == 'file' && (!a.hasOwnProperty('show') || a.show))" <Col
:key="item.id" v-for="(item, index) in formItem.filter(a => a.type == 'file' && (!a.hasOwnProperty('show') || a.show))"
span="12"> :key="item.id"
span="12">
<FormItem :label="item.name" :prop="item.name"> <FormItem :label="item.name" :prop="item.name">
<Upload <Upload
:before-upload="(file) => uploadFile(file, item.id, index)" :before-upload="(file) => uploadFile(file, item.id, index)"
...@@ -203,19 +207,19 @@ ...@@ -203,19 +207,19 @@
<span v-if="item.type == 'areaTime1'"> <span v-if="item.type == 'areaTime1'">
<div v-for="(item,index) in formData['sign_daytime']" v-if="formData['sign_daytime'].length >0" <div v-for="(item,index) in formData['sign_daytime']" v-if="formData['sign_daytime'].length >0"
:key="index" :key="index"
> {{ item.begin + '~' + item.end }} </div> > {{ item.begin + '~' + item.end }} </div>
</span> </span>
<span v-if="item.type == 'areaTime2'"> <span v-if="item.type == 'areaTime2'">
<div v-for="(item,index) in formData['sign_daytime']" v-if="formData['sign_daytime'].length >0" <div v-for="(item,index) in formData['sign_daytime']" v-if="formData['sign_daytime'].length >0"
:key="index" :key="index"
> >
{{ item.begin + '~' + item.end }} {{ item.begin + '~' + item.end }}
</div> </div>
</span> </span>
<span v-if="item.type == 'area'"> <span v-if="item.type == 'area'">
<div v-for="(item,index) in formData['attandence_area']" v-if="formData['attandence_area'].length >0" <div v-for="(item,index) in formData['attandence_area']" v-if="formData['attandence_area'].length >0"
:key="index" :key="index"
> 地址{{index+1}}:{{ item.address }}(范围:{{item.offset }}米) </div> > 地址{{ index + 1 }}:{{ item.address }}(范围:{{ item.offset }}米) </div>
</span> </span>
<!-- 存在问题:性别项,有时返回值为null,select的“不限”值为空字符串,会报错 --> <!-- 存在问题:性别项,有时返回值为null,select的“不限”值为空字符串,会报错 -->
<span v-if="item.type == 'select'"> <span v-if="item.type == 'select'">
...@@ -412,7 +416,7 @@ export default { ...@@ -412,7 +416,7 @@ export default {
this.formData[item] = [] this.formData[item] = []
}, },
onCleardatetimerange(event, item) { onCleardatetimerange(event, item) {
console.log("🚀🚀event🚀,",event) console.log("🚀🚀event🚀,", event)
//清空时间时触发 清空的时间应该是数组 才能触发 表单检验 //清空时间时触发 清空的时间应该是数组 才能触发 表单检验
this.formData[item] = [] this.formData[item] = []
}, },
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<!-- 权限管理 --> <!-- 权限管理 -->
<div> <div>
<!-- 白天签到时间--> <!-- 白天签到时间-->
<Modal v-model="daylightHours.show" title="白天签到时间" width="300"> <Modal v-model="daylightHours.show" title="白天签到时间" width="400">
<TimePicker <TimePicker
v-model="daylightHours.value" v-model="daylightHours.value"
format="HH:mm" format="HH:mm"
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
</template> </template>
</Modal> </Modal>
<!-- 晚上签到时间--> <!-- 晚上签到时间-->
<Modal v-model="eveningTime.show" title="晚上签到时间" width="300"> <Modal v-model="eveningTime.show" title="晚上签到时间" width="400">
<TimePicker <TimePicker
v-model="eveningTime.value" v-model="eveningTime.value"
format="HH:mm" format="HH:mm"
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
<template> <template>
<iframe <iframe
id="mapPage" id="mapPage"
:src="`https://apis.map.qq.com/tools/locpicker?search=1&type=1&key=ZNMBZ-NYOEO-WNMWL-SJF4C-MWKQT-KJB7W&referer=myapp`" :src="`https://apis.map.qq.com/tools/locpicker?search=1&type=1&key=IZXBZ-OTAWV-XU7PV-5FAAL-F6VXH-7XBQP&referer=myapp`"
frameborder="0" frameborder="0"
height="500px" height="500px"
width="100%"> width="100%">
...@@ -129,7 +129,7 @@ ...@@ -129,7 +129,7 @@
@onReset="reset" @onReset="reset"
@onSubmit="search"></SearchCondForm> @onSubmit="search"></SearchCondForm>
<Button class="ivu-ml-8" type="primary" @click="add"> <Button class="ivu-ml-8" ghost type="primary" @click="add">
<Icon type="md-add"/> <Icon type="md-add"/>
新增 新增
</Button> </Button>
......
Markdown 格式
0% or
您添加了 0 人 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册 或