|
@@ -94,7 +94,8 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
-
|
|
|
+import {addPublisher} from '../../api/publisher/publisher.js';
|
|
|
+
|
|
|
export default {
|
|
|
name: "IssuerCreate",
|
|
|
data() {
|
|
@@ -143,20 +144,9 @@
|
|
|
this.$refs[formName].validate((valid) => {
|
|
|
if (valid) {
|
|
|
// 校验通过 调接口提交数据
|
|
|
- createIssuer(this.ruleForm).then((res) => {
|
|
|
- if (res.code === 200) {
|
|
|
- // 如果返回状态码为200 提示添加成功 200为后端定义成功状态码
|
|
|
- // 提示添加成功
|
|
|
- this.$message({
|
|
|
- message: "添加成功",
|
|
|
- type: "success",
|
|
|
- });
|
|
|
- // 重置表单
|
|
|
- this.resetForm(formName);
|
|
|
- // 返回上一页 真实接口取消注释
|
|
|
- // this.$router.back();
|
|
|
- }
|
|
|
- });
|
|
|
+ addPublisher().then((res)=>{
|
|
|
+ console.log(res);
|
|
|
+ })
|
|
|
}
|
|
|
});
|
|
|
},
|