Commit 76152568 authored by 姬鋆屾's avatar 姬鋆屾

tui

parent d994ba48
...@@ -440,6 +440,8 @@ export default { ...@@ -440,6 +440,8 @@ export default {
}, },
replaceImage(val) { replaceImage(val) {
this.form.snapPath = val; this.form.snapPath = val;
this.$forceUpdate(this.form);
}, },
staffChange(val) { staffChange(val) {
console.log(val); console.log(val);
...@@ -453,7 +455,6 @@ export default { ...@@ -453,7 +455,6 @@ export default {
// this.urls.currUrl = "perform/attend/record/edit"; // this.urls.currUrl = "perform/attend/record/edit";
// this.getData(); // this.getData();
this.$get("/perform/attend/record/info", { id: row.id }).then((res) => { this.$get("/perform/attend/record/info", { id: row.id }).then((res) => {
console.log(res.data);
if (res.code == 1) { if (res.code == 1) {
this.form = res.data; this.form = res.data;
} else { } else {
...@@ -488,6 +489,8 @@ export default { ...@@ -488,6 +489,8 @@ export default {
}).then((res) => { }).then((res) => {
this.ruleArr = res.data.data; this.ruleArr = res.data.data;
}); });
this.form.snapPath = this.form.snapPath ? this.form.snapPath : "";
console.log(this.form);
this.open = true; this.open = true;
}); });
this.pageInfo.type = "edit"; this.pageInfo.type = "edit";
......
...@@ -220,7 +220,7 @@ export default { ...@@ -220,7 +220,7 @@ export default {
{ {
label: "图片凭证", label: "图片凭证",
prop: "snapPath", prop: "filePaths",
formatter: this.formatterPic, formatter: this.formatterPic,
}, },
......
...@@ -503,6 +503,9 @@ export default { ...@@ -503,6 +503,9 @@ export default {
}, },
replaceImage(val) { replaceImage(val) {
this.form.snapPath = val; this.form.snapPath = val;
this.$forceUpdate(this.form);
}, },
staffChange(val) { staffChange(val) {
let arr = this.staffArr.filter((v) => v.id == val); let arr = this.staffArr.filter((v) => v.id == val);
......
...@@ -224,7 +224,7 @@ export default { ...@@ -224,7 +224,7 @@ export default {
{ {
label: "图片凭证", label: "图片凭证",
prop: "snapPath", prop: "filePaths",
formatter: this.formatterPic, formatter: this.formatterPic,
}, },
......
...@@ -474,6 +474,9 @@ export default { ...@@ -474,6 +474,9 @@ export default {
}, },
replaceImage(val) { replaceImage(val) {
this.form.snapPath = val; this.form.snapPath = val;
this.$forceUpdate(this.form);
}, },
staffChange(val) { staffChange(val) {
console.log(val); console.log(val);
......
...@@ -227,7 +227,7 @@ export default { ...@@ -227,7 +227,7 @@ export default {
{ {
label: "图片凭证", label: "图片凭证",
prop: "snapPath", prop: "filePaths",
formatter: this.formatterPic, formatter: this.formatterPic,
}, },
{ label: "绩效规则", prop: "ruleName" }, { label: "绩效规则", prop: "ruleName" },
......
...@@ -443,6 +443,9 @@ export default { ...@@ -443,6 +443,9 @@ export default {
}, },
replaceImage(val) { replaceImage(val) {
this.form.snapPath = val; this.form.snapPath = val;
this.$forceUpdate(this.form);
}, },
staffChange(val) { staffChange(val) {
console.log(val); console.log(val);
......
...@@ -214,7 +214,7 @@ export default { ...@@ -214,7 +214,7 @@ export default {
{ {
label: "图片凭证", label: "图片凭证",
prop: "snapPath", prop: "filePaths",
formatter: this.formatterPic, formatter: this.formatterPic,
}, },
{ label: "绩效规则", prop: "ruleName" }, { label: "绩效规则", prop: "ruleName" },
......
...@@ -404,7 +404,8 @@ export default { ...@@ -404,7 +404,8 @@ export default {
}, },
replaceImage(val) { replaceImage(val) {
this.form.snapPath = val; this.form.snapPath = val;
this.$forceUpdate(this.form.snapPath);
this.$forceUpdate(this.form);
}, },
staffChange(val) { staffChange(val) {
console.log(val); console.log(val);
......
...@@ -223,7 +223,7 @@ export default { ...@@ -223,7 +223,7 @@ export default {
// { label: "绩效规则id", prop: "ruleId", formatter: this.formatter }, // { label: "绩效规则id", prop: "ruleId", formatter: this.formatter },
{ {
label: "图片凭证", label: "图片凭证",
prop: "snapPath", prop: "filePaths",
formatter: this.formatterPic, formatter: this.formatterPic,
}, },
{ label: "绩效规则", prop: "ruleName" }, { label: "绩效规则", prop: "ruleName" },
......
...@@ -458,6 +458,9 @@ export default { ...@@ -458,6 +458,9 @@ export default {
}, },
replaceImage(val) { replaceImage(val) {
this.form.snapPath = val; this.form.snapPath = val;
this.$forceUpdate(this.form);
}, },
staffChange(val) { staffChange(val) {
console.log(val); console.log(val);
......
...@@ -224,7 +224,7 @@ export default { ...@@ -224,7 +224,7 @@ export default {
{ {
label: "图片凭证", label: "图片凭证",
prop: "snapPath", prop: "filePaths",
formatter: this.formatterPic, formatter: this.formatterPic,
}, },
......
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