新版交易所前段管理后台
1
5 days ago b4dd0687c7285f3be32860adccfa523a62bfd4c6
src/views/modules/config/news-config.vue
@@ -67,19 +67,7 @@
        @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>
@@ -222,8 +210,7 @@
          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) {
@@ -248,23 +235,9 @@
      });
    },
    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 () {
@@ -275,8 +248,7 @@
            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) {