八项作业打回后无法编辑修改
parent
c12b226720
commit
39a3ded06b
|
@ -4,8 +4,8 @@
|
|||
<view class="container">
|
||||
<u-checkbox-group v-model="selectValue" placement="column">
|
||||
<u-checkbox :customStyle="{marginBottom: '8px'}" v-for="(item, index) in list" :key="index"
|
||||
:label="type === 'assignments' ? item.TYPE_NAME : item.NAME"
|
||||
:name="type === 'assignments' ? item.TYPE_NAME : item.NAME">
|
||||
:label="type === 'assignments' ? item.ID : item.NAME"
|
||||
:name="type === 'assignments' ? item.ID : item.NAME">
|
||||
</u-checkbox>
|
||||
</u-checkbox-group>
|
||||
<view class="button_group_placeholder"></view>
|
||||
|
@ -86,14 +86,6 @@
|
|||
this.$emit('update:visible', false)
|
||||
},
|
||||
determine() {
|
||||
// const value = []
|
||||
// for (let i = 0; i < this.selectValue.length; i++) {
|
||||
// if (this.value.indexOf(this.selectValue[i]) === -1) {
|
||||
// value.push(this.selectValue[i])
|
||||
// }
|
||||
// }
|
||||
// this.value && value.unshift(this.value)
|
||||
// const emitValue = value.join(',')
|
||||
const emitValue = this.selectValue.join(',')
|
||||
this.$emit('input', emitValue)
|
||||
this.close()
|
||||
|
|
6
main.js
6
main.js
|
@ -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 uniTh from '@/components/uni-table/uni-th/uni-th.vue'
|
||||
import uniTd from '@/components/uni-table/uni-td/uni-td.vue'
|
||||
import {filePath} from '@/utils/tools.js'
|
||||
|
||||
Vue.component('empty',empty)
|
||||
Vue.component('uni-table',uniTable)
|
||||
|
@ -21,7 +22,10 @@ Vue.component('uni-td',uniTd)
|
|||
Vue.use(uView)
|
||||
Vue.config.productionTip = false
|
||||
// Vue.prototype.$filePath = 'https://qgqy.qhdsafety.com/file/'
|
||||
Vue.prototype.$filePath = 'https://wwag.qhdsafety.com/file/'
|
||||
// Vue.prototype.$filePath = 'https://wwag.qhdsafety.com/file/'
|
||||
Vue.prototype.$filePath = filePath
|
||||
|
||||
|
||||
|
||||
App.mpType = 'app'
|
||||
const app = new Vue({
|
||||
|
|
|
@ -175,8 +175,8 @@ export default {
|
|||
BOARD_INSTALL_TIME: '',
|
||||
WORK_END_DATE: '',
|
||||
WORK_USER: '',
|
||||
WORK_LONGITUDE: '',
|
||||
WORK_LATITUDE: '',
|
||||
WORK_LONGITUDE: '1',
|
||||
WORK_LATITUDE: '2',
|
||||
MEDIUM: '',
|
||||
TEMPERATURE: '',
|
||||
PRESSURE: '',
|
||||
|
@ -247,6 +247,7 @@ export default {
|
|||
otherAssignmentsShow: false,
|
||||
otherIdentificationShow: false,
|
||||
signVisible: false,
|
||||
taskId: ''
|
||||
}
|
||||
},
|
||||
async onLoad(options) {
|
||||
|
@ -256,6 +257,7 @@ export default {
|
|||
this.fnAddBoardList()
|
||||
if (options.taskId) {
|
||||
this.form = await getData(options.taskId)
|
||||
this.taskId = options.taskId
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
@ -352,7 +354,8 @@ export default {
|
|||
form: this.form,
|
||||
formItems: this.formItems,
|
||||
TYPE: this.type,
|
||||
CORP_ID: this.form.CORP_ID
|
||||
CORP_ID: this.form.CORP_ID,
|
||||
EW_RU_TASK_ID: this.taskId
|
||||
})
|
||||
} catch {
|
||||
}
|
||||
|
|
|
@ -128,8 +128,8 @@ export default {
|
|||
CORP_NAME: '',
|
||||
WORK_START_DATE: '',
|
||||
WORK_END_DATE: '',
|
||||
WORK_LONGITUDE: '',
|
||||
WORK_LATITUDE: '',
|
||||
WORK_LONGITUDE: '1',
|
||||
WORK_LATITUDE: '2',
|
||||
WORK_PLACE: '',
|
||||
JOB_CONTENT: '',
|
||||
WORK_CONTENT: '',
|
||||
|
@ -184,6 +184,7 @@ export default {
|
|||
otherAssignmentsShow: false,
|
||||
otherIdentificationShow: false,
|
||||
signVisible: false,
|
||||
taskId: ''
|
||||
}
|
||||
},
|
||||
async onLoad(options) {
|
||||
|
@ -192,6 +193,7 @@ export default {
|
|||
this.type = options.type
|
||||
if (options.taskId) {
|
||||
this.form = await getData(options.taskId)
|
||||
this.taskId = options.taskId
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
@ -243,7 +245,8 @@ export default {
|
|||
form: this.form,
|
||||
formItems: this.formItems,
|
||||
TYPE: this.type,
|
||||
CORP_ID: this.form.CORP_ID
|
||||
CORP_ID: this.form.CORP_ID,
|
||||
EW_RU_TASK_ID: this.taskId
|
||||
})
|
||||
} catch {
|
||||
}
|
||||
|
|
|
@ -171,6 +171,7 @@ export default {
|
|||
},
|
||||
otherAssignmentsShow: false,
|
||||
otherIdentificationShow: false,
|
||||
taskId: ''
|
||||
}
|
||||
},
|
||||
async onLoad(options) {
|
||||
|
@ -179,6 +180,7 @@ export default {
|
|||
this.type = options.type
|
||||
if (options.taskId) {
|
||||
this.form = await getData(options.taskId)
|
||||
this.taskId = options.taskId
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
@ -232,7 +234,8 @@ export default {
|
|||
form: this.form,
|
||||
formItems: this.formItems,
|
||||
TYPE: this.type,
|
||||
CORP_ID: this.form.CORP_ID
|
||||
CORP_ID: this.form.CORP_ID,
|
||||
EW_RU_TASK_ID: this.taskId
|
||||
})
|
||||
} catch {
|
||||
}
|
||||
|
|
|
@ -184,6 +184,7 @@ export default {
|
|||
otherAssignmentsShow: false,
|
||||
otherIdentificationShow: false,
|
||||
signVisible: false,
|
||||
taskId: ''
|
||||
}
|
||||
},
|
||||
async onLoad(options) {
|
||||
|
@ -192,6 +193,7 @@ export default {
|
|||
this.type = options.type
|
||||
if (options.taskId) {
|
||||
this.form = await getData(options.taskId)
|
||||
this.taskId = options.taskId
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
@ -243,7 +245,8 @@ export default {
|
|||
form: this.form,
|
||||
formItems: this.formItems,
|
||||
TYPE: this.type,
|
||||
CORP_ID: this.form.CORP_ID
|
||||
CORP_ID: this.form.CORP_ID,
|
||||
EW_RU_TASK_ID: this.taskId
|
||||
})
|
||||
} catch {
|
||||
}
|
||||
|
|
|
@ -208,6 +208,7 @@ export default {
|
|||
},
|
||||
otherAssignmentsShow: false,
|
||||
otherIdentificationShow: false,
|
||||
taskId: ''
|
||||
}
|
||||
},
|
||||
async onLoad(options) {
|
||||
|
@ -216,6 +217,7 @@ export default {
|
|||
this.type = options.type
|
||||
if (options.taskId) {
|
||||
this.form = await getData(options.taskId)
|
||||
this.taskId = options.taskId
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
@ -257,7 +259,8 @@ export default {
|
|||
form: this.form,
|
||||
formItems: this.formItems,
|
||||
TYPE: this.type,
|
||||
CORP_ID: this.form.CORP_ID
|
||||
CORP_ID: this.form.CORP_ID,
|
||||
EW_RU_TASK_ID: this.taskId
|
||||
})
|
||||
} catch {
|
||||
}
|
||||
|
|
|
@ -168,6 +168,7 @@ export default {
|
|||
},
|
||||
otherAssignmentsShow: false,
|
||||
otherIdentificationShow: false,
|
||||
taskId: ''
|
||||
}
|
||||
},
|
||||
async onLoad(options) {
|
||||
|
@ -176,6 +177,7 @@ export default {
|
|||
this.type = options.type
|
||||
if (options.taskId) {
|
||||
this.form = await getData(options.taskId)
|
||||
this.taskId = options.taskId
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
@ -232,7 +234,8 @@ export default {
|
|||
form: this.form,
|
||||
formItems: this.formItems,
|
||||
TYPE: this.type,
|
||||
CORP_ID: this.form.CORP_ID
|
||||
CORP_ID: this.form.CORP_ID,
|
||||
EW_RU_TASK_ID: this.taskId
|
||||
})
|
||||
} catch {
|
||||
}
|
||||
|
|
|
@ -186,6 +186,7 @@ export default {
|
|||
},
|
||||
otherAssignmentsShow: false,
|
||||
otherIdentificationShow: false,
|
||||
taskId: ''
|
||||
}
|
||||
},
|
||||
async onLoad(options) {
|
||||
|
@ -194,6 +195,7 @@ export default {
|
|||
this.type = options.type
|
||||
if (options.taskId) {
|
||||
this.form = await getData(options.taskId)
|
||||
this.taskId = options.taskId
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
@ -251,7 +253,8 @@ export default {
|
|||
form: this.form,
|
||||
formItems: this.formItems,
|
||||
TYPE: this.type,
|
||||
CORP_ID: this.form.CORP_ID
|
||||
CORP_ID: this.form.CORP_ID,
|
||||
EW_RU_TASK_ID: this.taskId
|
||||
})
|
||||
} catch {
|
||||
}
|
||||
|
|
|
@ -6,6 +6,7 @@ import {
|
|||
setTaskSave
|
||||
} from "@/api";
|
||||
import {addFormInfo} from "../api";
|
||||
import {filePath} from '@/utils/tools.js'
|
||||
|
||||
// 处理表单数据
|
||||
// TYPE 0 纯文本 1 图片 2 视频 3 divider标签 4 动态添加 5 签字
|
||||
|
@ -267,7 +268,7 @@ export const getData = async (taskId) => {
|
|||
}
|
||||
if (item.TYPE === 1) {
|
||||
form[item.ITEM_NAME] = item.list.map((item) => ({
|
||||
url: this.$filePath + item.ITEM_VALUE,
|
||||
url: filePath + item.ITEM_VALUE,
|
||||
}));
|
||||
}
|
||||
if (item.TYPE === 4) {
|
||||
|
@ -281,7 +282,7 @@ export const getData = async (taskId) => {
|
|||
}
|
||||
}
|
||||
if (item.TYPE === 5) {
|
||||
form[item.ITEM_NAME] = this.$filePath + item.ITEM_VALUE;
|
||||
form[item.ITEM_NAME] = filePath + item.ITEM_VALUE;
|
||||
}
|
||||
});
|
||||
return form;
|
||||
|
|
|
@ -22,6 +22,10 @@ export function formatDate(date, fmt) {
|
|||
}
|
||||
}
|
||||
|
||||
export const filePath = 'http://192.168.192.201:8991/file/'
|
||||
//export const filePath = 'https://qgqy.qhdsafety.com/file/'
|
||||
//export const filePath = 'https://wwag.qhdsafety.com/file/'
|
||||
|
||||
function padLeftZero(str) {
|
||||
return ('00' + str).substr(str.length)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue