|
@@ -61,7 +61,7 @@
|
|
|
<tr v-for="(item,key) in setsignaTable" :key="key" v-on:click="">
|
|
|
<td>{{ item.colName }}</td>
|
|
|
<td>{{ item.sigRoleName }}</td>
|
|
|
- <td align="center"><span style="color:red;cursor: pointer;" v-on:click="deleteTableSig(key)">删除</span></td>
|
|
|
+ <td align="center"><span style="color:red;cursor: pointer;" v-on:click="deleteTableSig(item.id)">删除</span></td>
|
|
|
</tr>
|
|
|
</tbody>
|
|
|
</table>
|
|
@@ -70,7 +70,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import {getSigList, saveDdefual} from "../../../../../api/manager/AdjustForm";
|
|
|
+import {getSigList, saveDdefual,remove} from "../../../../../api/manager/AdjustForm";
|
|
|
|
|
|
export default {
|
|
|
props: ['pkeyId1', 'htmlData1'],
|
|
@@ -119,8 +119,17 @@ export default {
|
|
|
this.$parent.getExcelHtml(this.pkeyId1);
|
|
|
}
|
|
|
},
|
|
|
- deleteTableSig(key) {//删除数据
|
|
|
- this.setsignaTable.splice(key, 1);
|
|
|
+ async deleteTableSig(ids) {//删除数据
|
|
|
+ // this.setsignaTable.splice(key, 1);
|
|
|
+ const {data: res} = await remove(ids);
|
|
|
+ this.getSingInfo();
|
|
|
+ if (res.code === 200) {
|
|
|
+ this.$message({
|
|
|
+ type: "success",
|
|
|
+ message: "操作成功"
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
},
|
|
|
async getSingInfo() {
|
|
|
const {data: res} = await getSigList(
|