Browse Source

修改

master
yangzhou-cyber 3 years ago
parent
commit
26e6006088
2 changed files with 27 additions and 13 deletions
  1. +1
    -0
      .gitignore
  2. +26
    -13
      src/views/second/segmentation/contentDetail.vue

+ 1
- 0
.gitignore View File

node_modules node_modules
/dist /dist


/src/config/setting.js
# local env files # local env files
.env.local .env.local
.env.*.local .env.*.local

+ 26
- 13
src/views/second/segmentation/contentDetail.vue View File

<span v-else>{{ row.itemContent }}</span> <span v-else>{{ row.itemContent }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="* 分值" align="center" width="80">
<el-table-column label="分值" align="center" width="80" v-if="type!=3">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
<el-input <el-input
placeholder="请输入分值" placeholder="请输入分值"
</span> </span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="其他牵头部门" align="center" min-width="130">
<el-table-column
label="其他牵头部门"
align="center"
min-width="130"
>
<template slot-scope="{ row }"> <template slot-scope="{ row }">
<treeselect <treeselect
:disable-branch-nodes="true" :disable-branch-nodes="true"
this.$store.dispatch("base/getDepartment", 1); this.$store.dispatch("base/getDepartment", 1);
this.$store.dispatch("base/getPrincipalList"); this.$store.dispatch("base/getPrincipalList");
}, },
filters: {
filters: {
formatList(val) { formatList(val) {
if (val) { if (val) {
return val.join("\n"); return val.join("\n");
return; return;
} }
}); });
this.$set(this.form, "leaderPrincipal", parseInt(nameId)||null);
this.$set(this.form, "leaderPrincipal", parseInt(nameId) || null);
} }
}, },
getApi() { getApi() {
} }
} }
} else { } else {
if (!form[param]) {
debugger;
this.$message({
type: "warning",
message: "请完善信息",
});
return;
if (this.type == 2||this.type==3) {
if (param != "points" && !form[param]) {
this.$message({
type: "warning",
message: "请完善信息",
});
return;
}
}else{
if (!form[param]) {
this.$message({
type: "warning",
message: "请完善信息",
});
return;
}
} }
if ( if (
form[param] && form[param] &&
typeof form[param] == "string" && typeof form[param] == "string" &&
form[param].trim() == "" form[param].trim() == ""
) { ) {
debugger;
this.$message({ this.$message({
type: "warning", type: "warning",
message: "请完善信息", message: "请完善信息",
} }
if ( if (
param == "points" && param == "points" &&
form[param] &&
parseInt(form[param]) !== parseInt(form[param]) parseInt(form[param]) !== parseInt(form[param])
) { ) {
this.$message({ this.$message({
} }
}) })
.catch((e) => { .catch((e) => {
console.log(e)
console.log(e);
this.$message.error("修改小项内容失败"); this.$message.error("修改小项内容失败");
}) })
.finally(() => { .finally(() => {

Loading…
Cancel
Save