|
@@ -100,7 +100,7 @@
|
|
|
type="text"
|
|
|
@click="rowCell(row, index)"
|
|
|
:disabled="detailData.status == 1"
|
|
|
- >编辑</el-button
|
|
|
+ >{{ row.$cellEdit ? "保存" : "修改" }}</el-button
|
|
|
>
|
|
|
<el-button
|
|
|
size="small"
|
|
@@ -208,6 +208,7 @@
|
|
|
|
|
|
<script>
|
|
|
import { detail, submit, delItem } from "@/api/basicData/salaryConfiguration";
|
|
|
+import { contrastObj, contrastList } from "@/util/contrastData";
|
|
|
export default {
|
|
|
name: "index",
|
|
|
data() {
|
|
@@ -297,6 +298,17 @@ export default {
|
|
|
span: 6
|
|
|
},
|
|
|
{
|
|
|
+ label: "授课类别",
|
|
|
+ prop: "classType",
|
|
|
+ type: "select",
|
|
|
+ dicUrl: "/api/blade-system/dict-biz/dictionary?code=class_type",
|
|
|
+ props: {
|
|
|
+ label: "dictValue",
|
|
|
+ value: "dictValue"
|
|
|
+ },
|
|
|
+ span: 6
|
|
|
+ },
|
|
|
+ {
|
|
|
label: "创建时间",
|
|
|
prop: "createTime",
|
|
|
disabled: true,
|
|
@@ -307,11 +319,11 @@ export default {
|
|
|
prop: "remarks",
|
|
|
type: "textarea",
|
|
|
minRows: 2,
|
|
|
- span: 12
|
|
|
+ span: 24
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
- tableOption:{
|
|
|
+ tableOption: {
|
|
|
align: "center",
|
|
|
addBtn: false,
|
|
|
refreshBtn: false,
|
|
@@ -516,6 +528,7 @@ export default {
|
|
|
},
|
|
|
rowCell(row, index) {
|
|
|
if (row.$cellEdit == true) {
|
|
|
+ this.editCustomer()
|
|
|
this.$set(row, "$cellEdit", false);
|
|
|
} else {
|
|
|
this.$set(row, "$cellEdit", true);
|
|
@@ -598,6 +611,12 @@ export default {
|
|
|
},
|
|
|
//返回列表
|
|
|
backToList() {
|
|
|
+ for(let i=0;i<this.dataList.length;i++){
|
|
|
+ if(this.dataList[i].$cellEdit){
|
|
|
+ return this.$message.error(`请保存明细表数据`);
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
this.$emit("goBack");
|
|
|
}
|
|
|
}
|