Commit d2d0c758 by liuyong

修改代码

1 parent 25eea0a8
...@@ -226,16 +226,32 @@ export default { ...@@ -226,16 +226,32 @@ export default {
window.open(row.fileUrl); window.open(row.fileUrl);
}, },
editItem(row) {//编辑 editItem(row) {//编辑
console.log(row)
this.is_add_edit = 'edit'; this.is_add_edit = 'edit';
this.editId = row.krtId; this.editId = row.krtId;
this.ruleForm.let1 = row.tempName; this.ruleForm.let1 = row.tempName;
this.ruleForm.let2 = row.tempType; this.ruleForm.let2 = row.tempType;
this.ruleForm.let4 = row.tempRemark; this.ruleForm.let4 = row.tempRemark;
if(row.fileName) {
this.ruleForm.let3 = row.fileId;
this.ruleForm.let5 = row.fileName;
this.ruleForm.let6 = row.fileUrl;
this.fileList = [
{
name: row.fileName,
url: row.fileUrl
}
]
this.$refs.form.clearValidate('let3');
}else {
this.ruleForm.let3 = null;
this.ruleForm.let5 = null;
this.ruleForm.let6 = null;
this.fileList = [];
}
this.add_dialog = true; this.add_dialog = true;
}, },
handleRemove(file, fileList) {//文件移出 handleRemove(file, fileList) {//文件移出
console.log(fileList);
console.log(this.fileList);
this.ruleForm.let3 = null; this.ruleForm.let3 = null;
this.ruleForm.let5 = null; this.ruleForm.let5 = null;
this.ruleForm.let6 = null; this.ruleForm.let6 = null;
......
...@@ -34,14 +34,14 @@ ...@@ -34,14 +34,14 @@
<el-table-column prop="deptName" label="单位" align="center"></el-table-column> <el-table-column prop="deptName" label="单位" align="center"></el-table-column>
<el-table-column prop="startTime" label="统计时间" align="center"></el-table-column> <el-table-column prop="startTime" label="统计时间" align="center"></el-table-column>
<el-table-column prop="tpoName" label="政策名称" align="center"></el-table-column> <el-table-column prop="tpoName" label="政策名称" align="center"></el-table-column>
<el-table-column prop="tpoContent" label="政策描述" align="center"> <el-table-column prop="tpoContent" label="政策描述" align="center"></el-table-column>
<el-table-column prop="conformCount" label="符合度" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<div> <div>
{{ scope.row.tpoContent }}% {{ scope.row.conformCount }}%
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="conformCount" label="符合度" align="center"></el-table-column>
<el-table-column prop="usefulCount" label="应用数量" align="center"></el-table-column> <el-table-column prop="usefulCount" label="应用数量" align="center"></el-table-column>
<el-table-column prop="ktplRemark" label="备注" align="center"></el-table-column> <el-table-column prop="ktplRemark" label="备注" align="center"></el-table-column>
</el-table> </el-table>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!