必填校验bug修复

pet
liujun 2024-11-29 16:06:46 +08:00
parent cbe2ac7d3a
commit 8228b34f99
11 changed files with 19 additions and 16 deletions

View File

@ -10,6 +10,7 @@ import uniThead from '@/components/uni-table/uni-thead/uni-thead.vue'
import uniTr from '@/components/uni-table/uni-tr/uni-tr.vue' import uniTr from '@/components/uni-table/uni-tr/uni-tr.vue'
import uniTh from '@/components/uni-table/uni-th/uni-th.vue' import uniTh from '@/components/uni-table/uni-th/uni-th.vue'
import uniTd from '@/components/uni-table/uni-td/uni-td.vue' import uniTd from '@/components/uni-table/uni-td/uni-td.vue'
import {filePath} from '@/utils/tools.js'
Vue.component('empty',empty) Vue.component('empty',empty)
Vue.component('uni-table',uniTable) Vue.component('uni-table',uniTable)
@ -20,6 +21,7 @@ Vue.component('uni-th',uniTh)
Vue.component('uni-td',uniTd) Vue.component('uni-td',uniTd)
Vue.use(uView) Vue.use(uView)
Vue.config.productionTip = false Vue.config.productionTip = false
Vue.prototype.$filePath = filePath
App.mpType = 'app' App.mpType = 'app'
const app = new Vue({ const app = new Vue({
...App, ...App,

View File

@ -1,6 +1,6 @@
{ {
"name" : "秦港双控-监管端", "name" : "秦港双控-监管端",
"appid" : "__UNI__DB65C6B", "appid" : "__UNI__2AFFD9C",
"description" : "秦港双控-监管端", "description" : "秦港双控-监管端",
"versionName" : "01.00.44", "versionName" : "01.00.44",
"versionCode" : 42, "versionCode" : 42,

View File

@ -175,8 +175,8 @@ export default {
BOARD_INSTALL_TIME: '', BOARD_INSTALL_TIME: '',
WORK_END_DATE: '', WORK_END_DATE: '',
WORK_USER: '', WORK_USER: '',
WORK_LONGITUDE: '', WORK_LONGITUDE: '1',
WORK_LATITUDE: '', WORK_LATITUDE: '1',
MEDIUM: '', MEDIUM: '',
TEMPERATURE: '', TEMPERATURE: '',
PRESSURE: '', PRESSURE: '',

View File

@ -128,8 +128,8 @@ export default {
CORP_NAME: '', CORP_NAME: '',
WORK_START_DATE: '', WORK_START_DATE: '',
WORK_END_DATE: '', WORK_END_DATE: '',
WORK_LONGITUDE: '', WORK_LONGITUDE: '1',
WORK_LATITUDE: '', WORK_LATITUDE: '1',
WORK_PLACE: '', WORK_PLACE: '',
JOB_CONTENT: '', JOB_CONTENT: '',
WORK_CONTENT: '', WORK_CONTENT: '',

View File

@ -120,7 +120,7 @@ export default {
WORK_START_DATE: '', WORK_START_DATE: '',
WORK_END_DATE: '', WORK_END_DATE: '',
WORK_LONGITUDE: '1', WORK_LONGITUDE: '1',
WORK_LATITUDE: '2', WORK_LATITUDE: '1',
WORK_USER: '', WORK_USER: '',
SPECIAL_WORK: '', SPECIAL_WORK: '',
RISK_IDENTIFICATION: '', RISK_IDENTIFICATION: '',

View File

@ -128,8 +128,8 @@ export default {
CORP_NAME: '', CORP_NAME: '',
WORK_START_DATE: '', WORK_START_DATE: '',
WORK_END_DATE: '', WORK_END_DATE: '',
WORK_LONGITUDE: '', WORK_LONGITUDE: '1',
WORK_LATITUDE: '', WORK_LATITUDE: '1',
OTHER_DEPT: '', OTHER_DEPT: '',
WORK_REASON: '', WORK_REASON: '',
WORK_CONTENT: '', WORK_CONTENT: '',

View File

@ -132,8 +132,8 @@ export default {
CORP_NAME: '', CORP_NAME: '',
WORK_START_DATE: '', WORK_START_DATE: '',
WORK_END_DATE: '', WORK_END_DATE: '',
WORK_LONGITUDE: '', WORK_LONGITUDE: '1',
WORK_LATITUDE: '', WORK_LATITUDE: '1',
WORK_PLACE: '', WORK_PLACE: '',
WORK_CONTENT: '', WORK_CONTENT: '',
WORK_USER: '', WORK_USER: '',

View File

@ -121,8 +121,8 @@ export default {
WORK_CONTENT: '', WORK_CONTENT: '',
WORK_START_DATE: '', WORK_START_DATE: '',
WORK_END_DATE: '', WORK_END_DATE: '',
WORK_LONGITUDE: '', WORK_LONGITUDE: '1',
WORK_LATITUDE: '', WORK_LATITUDE: '1',
SPECIAL_WORK: '', SPECIAL_WORK: '',
RISK_IDENTIFICATION: '', RISK_IDENTIFICATION: '',
}, },

View File

@ -136,8 +136,8 @@ export default {
WORK_CONTENT: '', WORK_CONTENT: '',
WORK_START_DATE: '', WORK_START_DATE: '',
WORK_END_DATE: '', WORK_END_DATE: '',
WORK_LONGITUDE: '', WORK_LONGITUDE: '1',
WORK_LATITUDE: '', WORK_LATITUDE: '1',
SPECIAL_WORK: '', SPECIAL_WORK: '',
RISK_IDENTIFICATION: '', RISK_IDENTIFICATION: '',
}, },

View File

@ -42,7 +42,7 @@ export default {
], ],
form: { form: {
WORK_LONGITUDE: '1', WORK_LONGITUDE: '1',
WORK_LATITUDE: '2' WORK_LATITUDE: '1'
}, },
rules: { rules: {
WORK_LONGITUDE: [{type: 'string', required: true, message: '请输入经度', trigger: ['blur', 'change']}], WORK_LONGITUDE: [{type: 'string', required: true, message: '请输入经度', trigger: ['blur', 'change']}],

View File

@ -31,7 +31,8 @@ const store = new Vuex.Store({
state.userInfo = userInfo state.userInfo = userInfo
} , } ,
setfilePath(state, filePath) { setfilePath(state, filePath) {
state.filePath = 'https://skqhdg.porthebei.com:9004/file/' // state.filePath = 'https://skqhdg.porthebei.com:9004/file/'
state.filePath = 'https://wwag.qhdsafety.com/file/'
} }
}, },
actions: { actions: {