Commit 77f50345 authored by 姬鋆屾's avatar 姬鋆屾

parent cfaec5d1
......@@ -489,6 +489,7 @@ export default {
},
// 当某一行被点击时会触发该事件
handleRowClick(row, column, event) {},
handleCellClick(row, column, event) {},
// 合并表格行列
handleSpanMethod() {},
// 自定义表格排序
......@@ -619,6 +620,7 @@ export default {
methods: {
handleSelectionChange: this.handleSelectionChange,
handleRowClick: this.handleRowClick,
handleCellClick: this.handleCellClick,
tableRowClassName: this.tableRowClassName,
handleSpanMethod: this.handleSpanMethod,
handleSortChange: this.handleSortChange,
......
......@@ -8,6 +8,7 @@
@selection-change="handleSelectionChange"
@sort-change="handleSortChange"
@row-click="handleRowClick"
@cell-click="handleCellClick"
:row-class-name="tableRowClassName"
:empty-text="emptytxt ? emptytxt : emptyText"
border
......@@ -81,6 +82,11 @@ export default {
required: false,
default: () => {},
},
handleCellClick: {
type: Function,
required: false,
default: () => {},
},
handleSortChange: {
type: Function,
required: false,
......
......@@ -182,6 +182,7 @@
:handleSelectableMethod="config.methods.handleSelectableMethod"
:handleSelectionChange="config.methods.handleSelectionChange"
:handleRowClick="config.methods.handleRowClick"
:handleCellClick="config.methods.handleCellClick"
/>
<DataTableFlow
......
......@@ -71,6 +71,7 @@
>图片凭证:
<el-image
v-if="form.filePaths"
style="width: 100px; height: 100px"
:src="
`${
......@@ -82,6 +83,7 @@
:preview-src-list="form.filePaths"
>
</el-image>
<span v-else>--</span>
</el-col>
</el-row>
</div>
......@@ -115,7 +117,7 @@
</el-radio-group>
</el-form-item>
</el-row>
<div v-if="form.checkResult=='加分或扣分'">
<div v-if="form.checkResult == '加分或扣分'">
<el-row>
<el-form-item
:label="form.view == '查看' ? '绩效规则:' : '修改规则:'"
......
......@@ -86,6 +86,7 @@
<el-col :span="12"
>图片凭证:
<el-image
v-if="form.filePaths"
style="width: 100px; height: 100px"
:src="
`${
......@@ -96,8 +97,9 @@
"
:preview-src-list="form.filePaths"
>
</el-image
></el-col>
</el-image>
<span v-else>--</span>
</el-col>
</el-row>
</div>
</div>
......@@ -130,7 +132,7 @@
</el-radio-group>
</el-form-item>
</el-row>
<div v-if="form.checkResult=='加分或扣分'">
<div v-if="form.checkResult == '加分或扣分'">
<el-row>
<el-form-item
:label="form.view == '查看' ? '绩效规则:' : '修改规则:'"
......
......@@ -63,6 +63,7 @@
<el-col :span="24">
图片凭证:
<el-image
v-if="form.filePaths"
style="width: 100px; height: 100px"
:src="
`${
......@@ -73,8 +74,9 @@
"
:preview-src-list="form.filePaths"
>
</el-image
></el-col>
</el-image>
<span v-else>--</span>
</el-col>
</el-row>
</div>
</div>
......@@ -107,7 +109,7 @@
</el-radio-group>
</el-form-item>
</el-row>
<div v-if="form.checkResult=='加分或扣分'">
<div v-if="form.checkResult == '加分或扣分'">
<el-row>
<el-form-item
:label="form.view == '查看' ? '绩效规则:' : '修改规则:'"
......
......@@ -65,6 +65,7 @@
<el-col :span="24">
图片凭证:
<el-image
v-if="form.filePaths"
style="width: 100px; height: 100px"
:src="
`${
......@@ -75,8 +76,9 @@
"
:preview-src-list="form.filePaths"
>
</el-image
></el-col>
</el-image>
<span v-else>--</span>
</el-col>
</el-row>
</div>
</div>
......@@ -109,7 +111,7 @@
</el-radio-group>
</el-form-item>
</el-row>
<div v-if="form.checkResult=='加分或扣分'">
<div v-if="form.checkResult == '加分或扣分'">
<el-row>
<el-form-item
:label="form.view == '查看' ? '绩效规则:' : '修改规则:'"
......
......@@ -61,6 +61,7 @@
<el-col :span="24"
>图片凭证:
<el-image
v-if="form.filePaths"
style="width: 100px; height: 100px"
:src="
`${
......@@ -71,8 +72,9 @@
"
:preview-src-list="form.filePaths"
>
</el-image
></el-col>
</el-image>
<span v-else>--</span>
</el-col>
</el-row>
</div>
</div>
......@@ -105,7 +107,7 @@
</el-radio-group>
</el-form-item>
</el-row>
<div v-if="form.checkResult=='加分或扣分'">
<div v-if="form.checkResult == '加分或扣分'">
<el-row>
<el-form-item
:label="form.view == '查看' ? '绩效规则:' : '修改规则:'"
......
......@@ -66,6 +66,7 @@
<el-col :span="12"
>图片凭证:
<el-image
v-if="form.filePaths"
style="width: 100px; height: 100px"
:src="
`${
......@@ -76,8 +77,9 @@
"
:preview-src-list="form.filePaths"
>
</el-image
></el-col>
</el-image>
<span v-else>--</span>
</el-col>
</el-row>
</div>
</div>
......@@ -110,7 +112,7 @@
</el-radio-group>
</el-form-item>
</el-row>
<div v-if="form.checkResult=='加分或扣分'">
<div v-if="form.checkResult == '加分或扣分'">
<el-row>
<el-form-item
:label="form.view == '查看' ? '绩效规则:' : '修改规则:'"
......
......@@ -123,6 +123,7 @@
<el-form-item label="图片凭证:">
<div v-if="form.view == '查看'">
<el-image
v-if="form.filePaths"
style="width: 100px; height: 100px"
:src="
`${
......@@ -134,6 +135,7 @@
:preview-src-list="form.filePaths"
>
</el-image>
<span v-else>--</span>
</div>
<ImageUpload
v-else
......
......@@ -175,6 +175,7 @@
<el-form-item label="图片凭证:">
<div v-if="form.view == '查看'">
<el-image
v-if="form.filePaths"
style="width: 100px; height: 100px"
:src="
`${
......@@ -186,6 +187,7 @@
:preview-src-list="form.filePaths"
>
</el-image>
<span v-else>--</span>
</div>
<ImageUpload
v-else
......
......@@ -149,6 +149,7 @@
<el-form-item label="图片凭证:">
<div v-if="form.view == '查看'">
<el-image
v-if="form.filePaths"
style="width: 100px; height: 100px"
:src="
`${
......@@ -160,6 +161,7 @@
:preview-src-list="form.filePaths"
>
</el-image>
<span v-else>--</span>
</div>
<ImageUpload
v-else
......@@ -484,10 +486,9 @@ export default {
});
},
replaceImage(val) {
this.form.filePaths = val;
this.form.filePaths = val;
this.$forceUpdate(this.form);
},
staffChange(val) {
console.log(val);
......
......@@ -127,6 +127,7 @@
<el-form-item label="图片凭证:">
<div v-if="form.view == '查看'">
<el-image
v-if="form.filePaths"
style="width: 100px; height: 100px"
:src="
`${
......@@ -138,6 +139,7 @@
:preview-src-list="form.filePaths"
>
</el-image>
<span v-else>--</span>
</div>
<ImageUpload
v-else
......
......@@ -87,6 +87,7 @@
<el-form-item label="图片凭证:">
<div v-if="form.view == '查看'">
<el-image
v-if="form.filePaths"
style="width: 100px; height: 100px"
:src="
`${
......@@ -98,6 +99,7 @@
:preview-src-list="form.filePaths"
>
</el-image>
<span v-else>--</span>
</div>
<ImageUpload
v-else
......
......@@ -140,6 +140,7 @@
<el-form-item label="图片凭证:">
<div v-if="form.view == '查看'">
<el-image
v-if="form.filePaths"
style="width: 100px; height: 100px"
:src="
`${
......@@ -151,6 +152,7 @@
:preview-src-list="form.filePaths"
>
</el-image>
<span v-else>--</span>
</div>
<ImageUpload
v-else
......
......@@ -381,6 +381,7 @@ export default {
};
},
methods: {
handleRowClick(val) {
val.check = !val.check;
val.check
......
......@@ -103,6 +103,11 @@ export default {
sessionStorage.setItem("type", this.type);
},
methods: {
handleCellClick(row, column, event, cell) {
if (column.label == "负责窗口数量") {
this.$refs.windowdrawerform.edit(row);
}
},
/** 重写新增方法 */
toAdd(row) {
this.$refs.windowdrawerform.add(row);
......
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