Commit 52e4cec5 authored by 廖旭伟's avatar 廖旭伟

Merge remote-tracking branch 'origin/master'

parents 99abf6a3 618e0a0a
...@@ -147,6 +147,7 @@ export default { ...@@ -147,6 +147,7 @@ export default {
{ required: true, message: '请输入问卷名称', trigger: 'blur' }, { required: true, message: '请输入问卷名称', trigger: 'blur' },
] ]
}, },
feedbackId: '',
drawer: 0, drawer: 0,
Frule: [], Frule: [],
Fopthion: '', Fopthion: '',
...@@ -180,13 +181,17 @@ export default { ...@@ -180,13 +181,17 @@ export default {
mounted() { mounted() {
this.getDeptData() this.getDeptData()
// let query = this.$route // let query = this.$route
// console.log(query.query) // if (query.query.id) {
// if (query.id) { // this.feedbackId = query.query.id
// console.log(this.$route.query)
// let editFeedback = JSON.parse(localStorage.getItem("editFeedback")) // let editFeedback = JSON.parse(localStorage.getItem("editFeedback"))
// console.log(editFeedback) // console.log(editFeedback)
// this.titleForm.title = editFeedback.title // this.titleForm.title = editFeedback.title
// this.titleForm.remark = editFeedback.remark // this.titleForm.remark = editFeedback.remark
// this.Frule = formCreate.parseJson(editFeedback.formContent)
// this.Fopthion = formCreate.parseJson(editFeedback.ruleContent)
// console.log(this.Frule, '***********', this.Fopthion)
// this.$refs.designer.setRule(this.Frule)
// this.$refs.designer.setOption(this.Fopthion)
// } // }
}, },
methods: { methods: {
...@@ -283,7 +288,7 @@ export default { ...@@ -283,7 +288,7 @@ export default {
}) })
let sub = { let sub = {
staffList: this.checkedUser, staffList: this.checkedUser,
id: '', id: this.feedbackId,
...this.titleForm, ...this.titleForm,
feedbackTimeStart: this.issueForm.time[0], feedbackTimeStart: this.issueForm.time[0],
feedbackTimeEnd: this.issueForm.time[1], feedbackTimeEnd: this.issueForm.time[1],
......
...@@ -45,7 +45,7 @@ export default { ...@@ -45,7 +45,7 @@ export default {
/** 重写编辑方法 */ /** 重写编辑方法 */
toEdit(row) { toEdit(row) {
// this.$refs.drawerform.edit(row); // this.$refs.drawerform.edit(row);
this.$router.push({ path: `/feedback/addQuestion/list?id =${row.id}` }); this.$router.push({ path: `/feedback/addQuestion/list?id=${row.id}` });
localStorage.setItem('editFeedback', JSON.stringify(row)) localStorage.setItem('editFeedback', JSON.stringify(row))
}, },
/** 重写查看方法 */ /** 重写查看方法 */
...@@ -102,8 +102,7 @@ export default { ...@@ -102,8 +102,7 @@ export default {
// label: "绩效反馈问题", // label: "绩效反馈问题",
// width: 120, // width: 120,
// prop: "subColumns", // prop: "subColumns",
// formatter: (row) => { // formatter: (row) => {
// let widthsize = this.columnSet.reduce((pre, cur) => {
// return pre + Number(cur.width); // return pre + Number(cur.width);
// }, 50); // }, 50);
// return ( // return (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment