| | |
| | | @keyup.enter.native="dataFormSubmit()" |
| | | label-width="80px" |
| | | > |
| | | <el-form-item |
| | | label="登录人资金密码" |
| | | :label-width="formLabelWidth" |
| | | prop="loginSafeword" |
| | | > |
| | | <el-input |
| | | v-model="loginSafeword" |
| | | type="password" |
| | | placeholder="登录人资金密码" |
| | | autocomplete="off" |
| | | ></el-input> |
| | | </el-form-item> |
| | | </el-form> |
| | | </el-form> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button @click="dialogFormVisible = false">取 消</el-button> |
| | | <el-button type="primary" @click="dataFormSubmit()">确 定</el-button> |
| | |
| | | url: this.$http.adornUrl(`/news/delete`), |
| | | method: "post", |
| | | data: this.$http.adornData({ |
| | | id: id, |
| | | loginSafeword: encrypt(this.loginSafeword), //资金密码 |
| | | id: id //资金密码 |
| | | }), |
| | | }).then(({ data }) => { |
| | | if (data.code == 0) { |
| | |
| | | }); |
| | | }, |
| | | Open(call) { |
| | | this.$prompt("登录人资金密码", "提示", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | }) |
| | | .then(({ value }) => { |
| | | this.loginSafeword = value; |
| | | if (call) { |
| | | call(); |
| | | } |
| | | }) |
| | | .catch((e) => { |
| | | console.log("error = " + e); |
| | | this.$message({ |
| | | type: "info", |
| | | message: "取消输入", |
| | | }); |
| | | }); |
| | | if (call) { |
| | | call(); |
| | | } |
| | | }, |
| | | // 表单提交 |
| | | dataFormSubmit: Debounce(function () { |
| | |
| | | url: this.$http.adornUrl(`/news/delete`), |
| | | method: "post", |
| | | data: this.$http.adornData({ |
| | | id: this.deleteId, |
| | | loginSafeword: encrypt(this.loginSafeword), //资金密码 |
| | | id: this.deleteId //资金密码 |
| | | }), |
| | | }).then(({ data }) => { |
| | | if (data.code == 0) { |