资产修改

lijinlong
吕天方 5 months ago
parent cdcd4b3e96
commit 0377083bd7

@ -2865,12 +2865,21 @@ export default {
this.xjgywxt.remark = this.radio; this.xjgywxt.remark = this.radio;
} }
this.loading = true; this.loading = true;
assetUnitData('post',this.ruleForm).then(res=>{ if(this.$route.query.pageType == 'change') {
console.log(res,"res"); assetUnitData('put',this.ruleForm).then(res=>{
this.loading = false; console.log(res,"res");
this.$modal.msgSuccess("新增成功"); this.loading = false;
this.$router.go(-1); this.$modal.msgSuccess("修改成功");
}) this.$router.go(-1);
})
} else {
assetUnitData('post',this.ruleForm).then(res=>{
console.log(res,"res");
this.loading = false;
this.$modal.msgSuccess("新增成功");
this.$router.go(-1);
})
}
}, },
}, },
} }

@ -112,7 +112,7 @@
</template> --> </template> -->
</el-table-column> </el-table-column>
<el-table-column label="新增时间" key="createTime" prop="createTime" align="center" /> <el-table-column label="新增时间" key="createTime" prop="createTime" align="center" />
<el-table-column label="系统状态" key="status" width="200px" prop="status" class-name="table-status" align="center"> <el-table-column label="系统状态" key="status" prop="status" class-name="table-status" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.xtzt == 1" style="color: #16B771;"> <span v-if="scope.row.xtzt == 1" style="color: #16B771;">
已安装 已安装
@ -134,17 +134,17 @@
<el-table-column label="操作" prop="userId" class-name="table-operation" align="center"> <el-table-column label="操作" prop="userId" class-name="table-operation" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<div style="display: flex;align-items: center;justify-content: center;"> <div style="display: flex;align-items: center;justify-content: center;">
<div style="display: flex;align-items: center;cursor: pointer;"> <div style="display: flex;align-items: center;cursor: pointer;" @click="goInfo(scope.row,1)">
<img src="@/assets/images/icon-ck@2x.png" alt="" style="width: 20px;margin-right: 5px;"> <img src="@/assets/images/icon-ck@2x.png" alt="" style="width: 20px;margin-right: 5px;">
<span class="look-info" @click="goInfo(scope.row,1)" style="color: #1485EF;margin-right: 15px;">查看</span> <span class="look-info" style="color: #1485EF;margin-right: 15px;">查看</span>
</div> </div>
<div style="display: flex;align-items: center;cursor: pointer;"> <div style="display: flex;align-items: center;cursor: pointer;" @click="goInfo(scope.row,2)">
<img src="@/assets/images/edit.png" alt="" style="width: 15px;margin-right: 5px;"> <img src="@/assets/images/edit.png" alt="" style="width: 15px;margin-right: 5px;">
<span class="look-info" @click="goInfo(scope.row,2)" style="color: #1485EF;margin-right: 15px;">编辑</span> <span class="look-info" style="color: #1485EF;margin-right: 15px;">编辑</span>
</div> </div>
<div style="display: flex;align-items: center;cursor: pointer;"> <div style="display: flex;align-items: center;cursor: pointer;" @click="goInfo(scope.row,3)">
<img src="@/assets/images/del.png" alt="" style="width: 20px;margin-right: 5px;"> <img src="@/assets/images/del.png" alt="" style="width: 20px;margin-right: 5px;">
<span class="look-info" @click="goInfo(scope.row,3)" style="color: #F50C0C;margin-right: 15px;">删除</span> <span class="look-info" style="color: #F50C0C;margin-right: 15px;">删除</span>
</div> </div>
</div> </div>
</template> </template>

Loading…
Cancel
Save