leisure-core 0.5.97 → 0.5.99
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/le-libs/js/hrequest.js
CHANGED
|
@@ -32,7 +32,10 @@ const service = axios.create({
|
|
|
32
32
|
|
|
33
33
|
service.interceptors.request.use(
|
|
34
34
|
(config) => {
|
|
35
|
-
config.headers["Content-Type"]
|
|
35
|
+
if (!config.headers["Content-Type"]) {
|
|
36
|
+
config.headers["Content-Type"] = "application/json;";
|
|
37
|
+
}
|
|
38
|
+
|
|
36
39
|
let userinfo = store.getters.userinfo;
|
|
37
40
|
if (userinfo != undefined && userinfo.token != undefined) {
|
|
38
41
|
config.headers["authentication"] = userinfo.token;
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
ref="ruleForm"
|
|
6
6
|
:label-width="labelWidth"
|
|
7
7
|
class="le-form-container"
|
|
8
|
+
:disabled="formDisabled"
|
|
8
9
|
>
|
|
9
10
|
<div class="form-layout" :class="{ 'has-right-content': hasRightContent }">
|
|
10
11
|
<!-- 主窗体区域 - 保持原有结构 -->
|
|
@@ -74,7 +75,7 @@
|
|
|
74
75
|
v-if="handleStatus == 1 || handleStatus == 2"
|
|
75
76
|
>保存</le-button
|
|
76
77
|
>
|
|
77
|
-
<le-button type="info" @click="close()">关闭</le-button>
|
|
78
|
+
<le-button type="info" @click="close()" :disabled="false">关闭</le-button>
|
|
78
79
|
</el-form-item>
|
|
79
80
|
</el-form>
|
|
80
81
|
</template>
|
|
@@ -130,6 +131,10 @@ export default {
|
|
|
130
131
|
type: Boolean,
|
|
131
132
|
default: false,
|
|
132
133
|
},
|
|
134
|
+
formDisabled: {
|
|
135
|
+
type: Boolean,
|
|
136
|
+
default: false,
|
|
137
|
+
},
|
|
133
138
|
},
|
|
134
139
|
watch: {
|
|
135
140
|
formData: {
|