单位端,资产名称不得在编辑的时候修改

lijinlongNew
许宏杰 1 month ago
parent 86d076498a
commit 756a732f69

@ -28,7 +28,10 @@
}"
prop="xtmc"
>
<el-input v-model="ruleForm.xtmc"></el-input>
<el-input
v-model="ruleForm.xtmc"
:disabled="pageType == 'change'"
></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
@ -6086,6 +6089,7 @@ export default {
auditState: "3",
auditYy: this.dialogruleForm.auditYy,
currentId: Number(this.id),
xzType: 1,
};
assetAudit(tijioaobj).then((res) => {
if (res.code == 200) {
@ -6103,7 +6107,7 @@ export default {
//
btnPass() {
this.loading = true;
assetAudit({ currentId: Number(this.id), auditState: "2" })
assetAudit({ currentId: Number(this.id), auditState: "2", xzType: 1 })
.then((res) => {
this.$modal.msgSuccess("审核通过");
// this.$router.go(-1);

@ -32,6 +32,7 @@
<el-input
v-model="ruleForm.xcxmc"
placeholder="请输入小程序名称"
:disabled="pageType == 'change'"
></el-input>
</el-form-item>
</el-col>
@ -685,6 +686,7 @@ export default {
auditState: "3",
auditYy: this.dialogruleForm.auditYy,
currentId: Number(this.id),
xzType: 1,
};
miniProgramsAudit(tijioaobj).then((res) => {
if (res.code == 200) {
@ -702,7 +704,11 @@ export default {
//
btnPass() {
this.loading = true;
miniProgramsAudit({ currentId: Number(this.id), auditState: "2" })
miniProgramsAudit({
currentId: Number(this.id),
auditState: "2",
xzType: 1,
})
.then((res) => {
this.$modal.msgSuccess("审核通过");
// this.$router.go(-1);

@ -29,7 +29,11 @@
</el-col>
<el-col :span="12">
<el-form-item label="平台类型" prop="ptlx" required>
<el-select v-model="ruleForm.ptlx" placeholder="请选择平台类型">
<el-select
v-model="ruleForm.ptlx"
placeholder="请选择平台类型"
:disabled="pageType == 'change'"
>
<el-option
v-for="dict in dict.type.sys_ptlx_type"
:key="dict.value"
@ -1021,6 +1025,7 @@ export default {
auditState: "3",
auditYy: this.dialogruleForm.auditYy,
currentId: Number(this.id),
xzType: 1,
};
gzhAudit(tijioaobj).then((res) => {
if (res.code == 200) {
@ -1038,7 +1043,7 @@ export default {
//
btnPass() {
this.loading = true;
gzhAudit({ currentId: Number(this.id), auditState: "2" })
gzhAudit({ currentId: Number(this.id), auditState: "2", xzType: 1 })
.then((res) => {
this.$modal.msgSuccess("审核通过");
// this.$router.go(-1);

@ -32,6 +32,7 @@
<el-input
v-model="ruleForm.dzyxhz"
placeholder="请输入电子邮箱后缀"
:disabled="pageType == 'change'"
></el-input>
</el-form-item>
</el-col>
@ -558,6 +559,7 @@ export default {
auditState: "3",
auditYy: this.dialogruleForm.auditYy,
currentId: Number(this.id),
xzType: 1,
};
EmailAudit(tijioaobj).then((res) => {
if (res.code == 200) {
@ -575,7 +577,7 @@ export default {
//
btnPass() {
this.loading = true;
EmailAudit({ currentId: Number(this.id), auditState: "2" })
EmailAudit({ currentId: Number(this.id), auditState: "2", xzType: 1 })
.then((res) => {
this.$modal.msgSuccess("审核通过");
// this.$router.go(-1);

@ -32,6 +32,7 @@
<el-input
v-model="ruleForm.appName"
placeholder="请输入移动应用名称"
:disabled="pageType == 'change'"
></el-input>
</el-form-item>
</el-col>
@ -542,6 +543,7 @@ export default {
auditState: "3",
auditYy: this.dialogruleForm.auditYy,
currentId: Number(this.id),
xzType: 1,
};
AppAudit(tijioaobj).then((res) => {
if (res.code == 200) {
@ -559,7 +561,7 @@ export default {
//
btnPass() {
this.loading = true;
AppAudit({ currentId: Number(this.id), auditState: "2" })
AppAudit({ currentId: Number(this.id), auditState: "2", xzType: 1 })
.then((res) => {
this.$modal.msgSuccess("审核通过");
// this.$router.go(-1);

@ -17,17 +17,33 @@
>
<!-- 上传按钮 -->
<slot v-if="fileList.length == 0"></slot>
</el-upload>
<!-- 文件列表 -->
<transition-group class="upload-file-list el-upload-list el-upload-list--text" name="el-fade-in-linear" tag="ul">
<li :key="file.url" class="el-upload-list__item ele-upload-list__item-content" v-for="(file, index) in fileList">
<el-link :href="`${baseUrl}${file.url}`" :underline="false" target="_blank">
<transition-group
class="upload-file-list el-upload-list el-upload-list--text"
name="el-fade-in-linear"
tag="ul"
>
<li
:key="file.url"
class="el-upload-list__item ele-upload-list__item-content"
v-for="(file, index) in fileList"
>
<el-link
:href="`${baseUrl}${file.url}`"
:underline="false"
target="_blank"
>
<span class="el-icon-document"> {{ getFileName(file.name) }} </span>
</el-link>
<div class="ele-upload-list__item-content-action" v-if="$route.query.pageType != 'look'">
<el-link :underline="false" @click="handleDelete(index)" type="danger">删除</el-link>
<div
class="ele-upload-list__item-content-action"
v-if="$route.query.pageType != 'look'"
>
<el-link :underline="false" @click="handleDelete(index)" type="danger"
>删除</el-link
>
</div>
</li>
</transition-group>
@ -60,17 +76,17 @@ export default {
//
isShowTip: {
type: Boolean,
default: true
}
default: true,
},
},
data() {
return {
number: 0,
uploadList: [],
// baseUrl: process.env.VUE_APP_BASE_API,
baseUrl: location.origin + '/api',
// uploadFileUrl: process.env.VUE_APP_BASE_API + "/common/upload", //
uploadFileUrl: location.origin + '/api/common/upload',
baseUrl: process.env.VUE_APP_BASE_API,
// baseUrl: location.origin + '/api',
uploadFileUrl: process.env.VUE_APP_BASE_API + "/common/upload", //
// uploadFileUrl: location.origin + '/api/common/upload',
headers: {
Authorization: "Bearer " + getToken(),
},
@ -83,9 +99,9 @@ export default {
if (val) {
let temp = 1;
//
const list = Array.isArray(val) ? val : this.value.split(',');
const list = Array.isArray(val) ? val : this.value.split(",");
//
this.fileList = list.map(item => {
this.fileList = list.map((item) => {
if (typeof item === "string") {
item = { name: item, url: item };
}
@ -98,8 +114,8 @@ export default {
}
},
deep: true,
immediate: true
}
immediate: true,
},
},
computed: {
//
@ -112,17 +128,19 @@ export default {
handleBeforeUpload(file) {
//
if (this.fileType) {
const fileName = file.name.split('.');
const fileName = file.name.split(".");
const fileExt = fileName[fileName.length - 1];
const isTypeOk = this.fileType.indexOf(fileExt) >= 0;
if (!isTypeOk) {
this.$modal.msgError(`文件格式不正确,请上传${this.fileType.join("/")}格式文件!`);
this.$modal.msgError(
`文件格式不正确,请上传${this.fileType.join("/")}格式文件!`
);
return false;
}
}
//
if (file.name.includes(',')) {
this.$modal.msgError('文件名不正确,不能包含英文逗号!');
if (file.name.includes(",")) {
this.$modal.msgError("文件名不正确,不能包含英文逗号!");
return false;
}
//
@ -152,13 +170,13 @@ export default {
this.uploadList.push({ name: res.fileName, url: res.fileName });
this.uploadedSuccessfully();
} else if (res.code == 401) {
this.$store.dispatch('LogOut').then(() => {
this.$store.dispatch("LogOut").then(() => {
// location.href = '/login';
this.$modal.msgError(res.msg);
this.$modal.closeLoading();
this.uploadedSuccessfully();
this.$router.replace("/login");
})
});
} else {
this.number--;
this.$modal.closeLoading();
@ -198,9 +216,9 @@ export default {
for (let i in list) {
strs += list[i].url + separator;
}
return strs != '' ? strs.substr(0, strs.length - 1) : '';
}
}
return strs != "" ? strs.substr(0, strs.length - 1) : "";
},
},
};
</script>

@ -53,6 +53,7 @@
<el-input v-model="ruleForm.xtym"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="访问网址" class="fangwenwangzhi">
<el-row>

Loading…
Cancel
Save