|
@@ -1,8 +1,9 @@
|
|
|
<template>
|
|
|
- <el-table
|
|
|
+<div class="remarks">
|
|
|
+ <el-table
|
|
|
:data="data"
|
|
|
border
|
|
|
- style="width: 100%">
|
|
|
+ style="width: 100%;height:400px;">
|
|
|
<el-table-column
|
|
|
type="index"
|
|
|
width="80"
|
|
@@ -50,24 +51,78 @@
|
|
|
label="操作"
|
|
|
width="100">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-button @click="handleClick(scope.row)" type="text" size="small">查看</el-button>
|
|
|
- <el-button type="text" size="small">编辑</el-button>
|
|
|
+ <el-button @click="handleClick(scope.row)" type="text" size="small">备注</el-button>
|
|
|
+ <el-button @click="dumpAduit(scope.row)" type="text" size="small">申诉</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
+
|
|
|
+ <el-dialog
|
|
|
+ title="备注"
|
|
|
+ :visible.sync="dialogVisible"
|
|
|
+ width="30%"
|
|
|
+ >
|
|
|
+ <el-input
|
|
|
+ type="textarea"
|
|
|
+ :autosize="{ minRows: 2, maxRows: 4}"
|
|
|
+ placeholder="请填写备注内容"
|
|
|
+ v-model="remarks">
|
|
|
+</el-input>
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
+ <el-button @click="dialogVisible = false">关闭</el-button>
|
|
|
+ <el-button type="primary" @click="saveCommand">保存</el-button>
|
|
|
+ </span>
|
|
|
+</el-dialog>
|
|
|
+</div>
|
|
|
+
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+import { updateCommand } from "@/api/strategy/strategy.js";
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
-
|
|
|
+ dialogVisible:false,
|
|
|
+ remarks:'',
|
|
|
+ id:""
|
|
|
}
|
|
|
},
|
|
|
- props:['data']
|
|
|
+ props:['data'],
|
|
|
+ methods:{
|
|
|
+ handleClick(row){
|
|
|
+ this.id = row.id
|
|
|
+ this.dialogVisible = true
|
|
|
+ },
|
|
|
+ saveCommand(row){
|
|
|
+ this.dialogVisible = false
|
|
|
+ let postParams = {
|
|
|
+ criteria: {
|
|
|
+ id: this.id,
|
|
|
+ remarks: this.remarks
|
|
|
+ }
|
|
|
+ };
|
|
|
+ updateCommand({ postParams }).then(res => {
|
|
|
+ if (res.result == "success") {
|
|
|
+ this.$message.success("添加备注成功!");
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ dumpAduit(){
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
</script>
|
|
|
|
|
|
-<style>
|
|
|
-
|
|
|
+<style lang='scss' >
|
|
|
+.remarks{
|
|
|
+ .el-dialog{
|
|
|
+ margin-top: 30vh !important;
|
|
|
+ z-index:999999 !important;
|
|
|
+ }
|
|
|
+}
|
|
|
+ .v-modal{
|
|
|
+ z-index:1!important;
|
|
|
+ background: #fff !important;
|
|
|
+ }
|
|
|
</style>
|