提交 a343ca37 authored 作者: thy's avatar thy

合并分支 'thy' 到 'master'

规则配置传参修改 查看合并请求 !97
...@@ -245,26 +245,53 @@ ...@@ -245,26 +245,53 @@
</div> </div>
<el-table
:data=" item.technologyContents"
style="width: 100%"
>
<el-table-column
align='center'
width="200"
prop="keyWord"
label="关键字"
>
</el-table-column>
<el-table-column
align='center'
prop="file"
label="所在文件"
>
</el-table-column>
<el-table-column
align='center'
width="100"
prop="position"
label="位置"
>
</el-table-column>
</el-table>
<!--<div v-if="currenIndex == index && isTear">--> <!--<div v-if="currenIndex == index && isTear">-->
<table cellspacing="0" cellpadding="0" style="width: 88%;text-align: center;cursor: default; "> <!-- <table cellspacing="0" cellpadding="0" style="width: 88%;text-align: center;cursor: default; ">
<tr> <tr> -->
<!--<th>本地程序开发</th>--> <!--<th>本地程序开发</th>-->
<th>关键字</th> <!-- <th>关键字</th>
<th>所在文件</th> <th>所在文件</th>
<th>位置</th> <th>位置</th> -->
<!--<th>替换策略</th>--> <!--<th>替换策略</th>-->
</tr> <!-- </tr>
<tbody> <tbody>
<tr v-for="(itemson,index) in item.technologyContents"> <tr v-for="(itemson,index) in item.technologyContents">
<!--<td width="15%">{{item.local}}</td>--> <!- -<td width="15%">{{item.local}}</td>-->
<td width="20%">{{itemson.keyWord}}</td> <!-- <td width="20%">{{itemson.keyWord}}</td>
<td width="20%">{{itemson.file}}</td> <td width="20%">{{itemson.file}}</td>
<td width="20%">{{itemson.position}}</td> <td width="20%">{{itemson.position}}</td> -->
<!--<td width="20%">{{item.strategy}}</td>--> <!--<td width="20%">{{item.strategy}}</td>-->
</tr> <!-- </tr>
</tbody> </tbody>
</table> </table> -->
<!--</div>--> <!--</div>-->
......
...@@ -63,11 +63,13 @@ export default { ...@@ -63,11 +63,13 @@ export default {
console.log(this.detailData) console.log(this.detailData)
if (this.modalName === '修改规则') { if (this.modalName === '修改规则') {
let row = JSON.stringify(this.detailData); //克隆影响原数据需要处理一下 let row = JSON.stringify(this.detailData); //克隆影响原数据需要处理一下
let obj = JSON.parse(row)
obj.suffix = obj.suffix.split(",")
this.oldRule = JSON.parse(row); this.oldRule = JSON.parse(row);
this.oldRule.suffix = this.oldRule.suffix.split(",")
this.form = { this.form = {
target:this.detailData.target, target:this.detailData.target,
suffix:this.detailData.suffix, suffix: obj.suffix,
technologyId:this.detailData.technologyId, technologyId:this.detailData.technologyId,
id:this.detailData.id id:this.detailData.id
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论